(Updated through the market close on Dec. 31.)

One very important theme for the stock market during 2018 was the return of volatility, as investors worried about Federal Reserve tightening and President Trump’s trade dispute with China.

The Dow Jones Industrial Average US:DJIA declined 5.6% during 2018, but it was down 13.4% from the intraday high it hit on Oct. 3. Illustrating that volatility, the best performer of the year among the S&P 500 US:SPX was Advanced Micro Devices US:AMD, up 79.6% for the year but which also fell 40.2% during the fourth quarter.

This was the worst year for the Dow since 2008, and the first decline for the benchmark index since 2015, when it was down 2.2%.

Read:Here’s how ugly 2018 was for stocks and other assets

Before listing this year’s stock-price winners and losers, here are price changes for the major indexes and the S&P 500 sectors:

Index or S&P 500 sector Price change - 2018 Price change - 2017 Decline from 52-week high Dow Jones Industrial Average US:DJIA -5.6% 25.1% -13.4% Nasdaq Composite Index US:COMP -3.9% 28.2% -18.4% S&P 500 US:SPX -6.2% 19.4% -14.8% S&P Mid Cap 400 US:MID -12.9% 14.5% -19.4% S&P Small Cap 600 US:SML -9.8% 11.7% -23.2% S&P Composite 1500 -6.8% 18.8% -15.0% S&P 500 / Health Care 4.7% 20.0% -9.6% S&P 500 / Utilities 0.5% 8.3% -6.4% S&P 500 / Consumer Discretionary -0.5% 21.2% -16.8% S&P 500 / Information Technology -1.6% 36.9% -18.3% S&P 500 / Real Estate - SEC -5.6% 7.2% -9.5% S&P 500 / Consumer Staples -11.2% 10.5% -13.8% S&P 500 / Financials -14.7% 20.0% -21.0% S&P 500 / Industrials -15.0% 18.5% -20.1% S&P 500 / Communication Services -16.4% -6.0% -17.9% S&P 500 / Materials -16.4% 21.4% -21.2% S&P 500 / Energy -20.5% -3.8% -26.8% Source: FactSet

These figures don’t include dividends.

The only two S&P 500 sectors that were up for the year through were health care and utilities. The utilities sector was the least volatile when compared to its 52-week high. The energy sector fared worst, which is also probably no surprise, as the oil-price recovery stalled. West Texas Crude oil US:CL1 slumped 25% in 2018.

Winners and losers

Dow Jones Industrial Average

Here are 2018 price changes for all 30 Dow stocks, sorted from best to worst. Only 13 of its components were up for the year:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Merck & Co. US:MRK 35.8% -4.4% -4.7% Pfizer Inc. US:PFE 20.5% 11.5% -6.1% Microsoft Corp. US:MSFT 18.7% 37.7% -12.6% Nike Inc. Class B US:NKE 18.5% 23.1% -13.8% Visa Inc. Class A US:V 15.7% 46.1% -12.9% Cisco Systems Inc. C US:CSCO 13.1% 26.7% -12.4% UnitedHealth Group Inc. US:UNH 13.0% 37.8% -13.5% Boeing Co. US:BA 9.4% 89.4% -18.2% Verizon Communications Inc. US:VZ 6.2% -0.8% -8.7% Coca-Cola Co. US:KO 3.2% 10.7% -6.9% McDonald's Corp. US:MCD 3.2% 41.4% -7.0% Walt Disney Co. US:DIS 2.0% 3.2% -8.8% Intel Corp. US:INTC 1.7% 27.3% -18.5% Procter & Gamble Co. US:PG 0.0% 9.3% -5.1% American Express Co. US:AXP -4.0% 34.1% -16.8% Walmart Inc. US:WMT -5.7% 42.9% -15.3% Walgreens Boots Alliance Inc. US:WBA -5.9% -12.3% -20.8% Apple Inc. US:AAPL -6.7% 46.1% -32.4% Johnson & Johnson US:JNJ -7.6% 21.3% -13.4% JPMorgan Chase & Co. US:JPM -8.7% 23.9% -18.2% Home Depot Inc. US:HD -9.3% 41.4% -20.2% Travelers Cos. US:TRV -11.7% 10.8% -20.5% Chevron Corp. US:CVX -13.1% 6.4% -18.7% United Technologies Corp. US:UTX -16.5% 16.4% -26.1% Exxon Mobil Corp. US:XOM -18.5% -7.3% -23.6% 3M Co. US:MMM -19.0% 31.8% -26.7% Caterpillar Inc. US:CAT -19.4% 69.9% -26.7% DowDuPont Inc. US:DWDP -24.9% 24.5% -30.6% International Business Machines Corp. US:IBM -25.9% -7.6% -33.6% Goldman Sachs Group Inc. US:GS -34.4% 6.4% -39.3% Source: FactSet

You can click the tickers for more about each company, including news, profiles, charts, price ratios and financials.

S&P 500

Here are the 10 S&P 500 stocks that rose the most during 2018:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Advanced Micro Devices Inc. US:AMD 79.6% -9.3% -45.9% Abiomed Inc. US:ABMD 73.4% 66.3% -29.3% Fortinet Inc. US:FTNT 61.2% 45.1% -25.4% Advance Auto Parts Inc. US:AAP 57.9% -41.1% -15.4% TripAdvisor Inc. US:TRIP 56.5% -25.7% -21.8% Chipotle Mexican Grill Inc. US:CMG 49.4% -23.4% -18.6% Keysight Technologies Inc. US:KEYS 49.2% 13.8% -11.8% Red Hat Inc. US:RHT 46.2% 72.3% -2.1% O'Reilly Automotive Inc. US:ORLY 43.1% -13.6% -5.2% Boston Scientific Corp. US:BSX 42.6% 14.6% -10.4% Source: FactSet

But 329 components — 66% of the index — declined during 2018. Here are the 10 that fell the most:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Coty Inc. Class A US:COTY -67.0% 8.6% -69.7% Mohawk Industries Inc. US:MHK -57.6% 38.2% -58.6% L Brands Inc. US:LB -57.4% -8.5% -58.2% General Electric Co. US:GE -56.6% -44.8% -60.9% Perrigo Co. PLC US:PRGO -55.5% 4.7% -59.6% Invesco Ltd. US:IVZ -54.2% 20.4% -56.4% Western Digital Corp. US:WDC -53.5% 17.0% -65.4% Newfield Exploration Co. US:NFX -53.5% -22.1% -58.4% Affiliated Managers Group Inc. US:AMG -52.5% 41.3% -55.1% Cimarex Energy Co. US:XEC -49.5% -10.2% -52.6% Source: FactSetr

S&P 400 Mid Cap

Among the three main S&P indexes, the S&P 400 Mid Cap Index US:MID was the worst performer of 2018, with a 12.9% decline.

Here are the year’s 10 best performers among the S&P 400:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high World Wrestling Entertainment Inc. Class A US:WWE 144.3% 66.2% -23.5% Haemonetics Corp. US:HAE 72.3% 44.5% -14.9% Integrated Device Technology Inc. US:IDTI 62.9% 26.2% -0.6% Insperity Inc. US:NSP 62.8% 61.7% -22.9% Esterline Technologies Corp. US:ESL 62.6% -16.3% -0.6% Ciena Corp. US:CIEN 62.0% -14.3% -7.2% Deckers Outdoor Corp. US:DECK 59.4% 44.9% -6.9% Five Below Inc. US:FIVE 54.3% 66.0% -24.8% Zebra Technologies Corp. Class A US:ZBRA 53.4% 21.0% -13.8% Molina Healthcare Inc. US:MOH 51.6% 41.3% -24.6% Source: FactSet

Here are the 10 worst performers:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Adient PLC US:ADNT -80.9% 34.3% -82.2% Delphi Technologies PLC US:DLPH -72.7% N/A -76.3% Wyndham Destinations Inc. US:WYND -69.1% 51.7% -37.9% McDermott International Inc. US:MDR -66.9% -11.0% -76.0% EQT Corp. US:EQT -66.8% -13.0% -41.8% Thor Industries Inc. US:THO -65.5% 50.6% -67.8% Scientific Games Corp. US:SGMS -65.1% 266.4% -71.5% Hain Celestial Group Inc. US:HAIN -62.6% 8.6% -62.9% Coherent Inc. US:COHR -62.5% 105.4% -67.9% Dana Inc. US:DAN -57.4% 68.7% -61.4% Source: FactSet

S&P 600 Small Cap

The S&P 600 Small Cap Index US:SML fell 9.8% during 2018.

Here are the 10 biggest winners among the index components:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Tabula Rasa Healthcare Inc. US:TRHC 127.3% 87.2% -30.1% Amedisys Inc. US:AMED 122.2% 23.6% -16.9% eHealth Inc. US:EHTH 121.2% 63.1% -5.6% Renewable Energy Group Inc. US:REGI 117.8% 21.6% -21.0% Evertec Inc. US:EVTC 110.3% -23.1% -3.4% Crocs Inc. US:CROX 105.5% 84.3% -12.8% Belmond Ltd. Class A US:BEL 104.3% -8.2% -1.4% Fossil Group Inc. US:FOSL 102.4% -70.0% -51.1% BioTelemetry Inc. US:BEAT 99.7% 33.8% -20.1% Addus HomeCare Corp. US:ADUS 95.1% -0.7% -12.8% Source: FactSetr

And the 10 biggest losers:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Cloud Peak Energy Inc. US:CLD -91.8% -20.7% -93.6% Akorn Inc. US:AKRX -89.5% 47.6% -89.9% Francesca's Holdings Corp. US:FRAN -86.7% -59.5% -88.6% Diebold Nixdorf Inc. US:DBD -84.8% -35.0% -86.9% Bristow Group Inc. US:BRS -82.0% -34.2% -87.1% Lannett Co. US:LCI -78.6% 5.2% -80.5% United Natural Foods Inc. US:UNFI -78.5% 3.2% -78.8% Maiden Holdings Ltd. US:MHLD -75.0% -62.2% -81.9% Invacare Corp. US:IVC -74.5% 29.1% -78.5% Nabors Industries Ltd. US:NBR -70.7% -58.4% -77.4% Source: FactSet

Nasdaq-100

The Nasdaq Composite Index US:COMP was down 3.9% for the year.

Narrowing things down, here are the best performers of 2018 among the Nasdaq-100 US:NDX :

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Advanced Micro Devices Inc. US:AMD 79.6% -9.3% -45.9% Workday Inc. Class A US:WDAY 56.9% 53.9% -7.5% Lululemon Athletica Inc US:LULU 54.7% 20.9% -26.2% O'Reilly Automotive Inc. US:ORLY 43.1% -13.6% -5.2% Netflix Inc. US:NFLX 39.4% 55.1% -36.8% Twenty-First Century Fox Inc. Class A US:FOXA 39.4% 23.1% -4.0% Illumina Inc. US:ILMN 37.3% 70.6% -19.5% Intuitive Surgical Inc. US:ISRG 31.2% 72.6% -17.6% VeriSign Inc. US:VRSN 29.6% 50.4% -16.1% Adobe Inc. US:ADBE 29.1% 70.2% -18.5% Souce: FactSet

And the worst 10 of 2018 among the Nasdaq-100:

Company Ticker Price change - 2018 Price change - 2017 Decline from 52-week high Western Digital Corp. US:WDC -53.5% 17.0% -65.4% JD.com Inc. ADR Class A US:JD -49.5% 62.8% -58.7% Kraft Heinz Co. US:KHC -44.7% -10.9% -46.6% Wynn Resorts Ltd. US:WYNN -41.3% 94.9% -51.4% Liberty Global PLC Class A US:LBTYA -40.5% 17.2% -46.3% Ctrip.com International Ltd. ADR US:CTRP -38.6% 10.3% -47.9% Celgene Corp. US:CELG -38.6% -9.8% -41.7% American Airlines Group Inc. US:AAL -38.3% 11.4% -45.6% NXP Semiconductors NV US:NXPI -37.4% 19.5% -41.8% Applied Materials Inc. US:AMAT -36.0% 58.4% -47.5% Source: FactSet

Don’t miss:There will be ‘plenty of opportunity’ for investors in 2019, says manager of $74 billion Franklin Income Fund

Create an email alert for Philip van Doorn’s Deep Dive columns here.