• The S&P 500 erased its year-to-date losses on June 8, ending the coronavirus slump amid growing optimism for economic recovery.
  • The index bottomed on March 23 after sliding 34% from its record high on early coronavirus worries.
  • Since reaching that trough, the S&P 500 has rallied on unprecedented Federal Reserve aid, optimism for a swift rebound, and better-than-expected economic data.
  • Here’s how all 11 of the index’s sectors have performed since hitting the March 23 floor.
  • Watch the S&P 500 update live here.

On June 8, optimism for a rapid economic recovery retraced the last of the coronavirus-fueled market slump.

A last-minute rally through Monday’s session led the S&P 500 to close just above its December 31 level, erasing losses made in the early days of the pandemic. The index slid as much as 34% from its peak to a March 23 floor before the Federal Reserve’s announcement of unprecedented relief measures fueled a steady run-up through April and May.

Stocks’ surge over recent months hasn’t been evenly shared across sectors. Firms viewed as prime stay-at-home plays outperformed at the start of the pandemic before sliding on hopes for a quicker-than-expected rebound. Companies slammed hardest by the initial outbreak soared as economic data suggested the worst was over.

Energy firms posted some of the biggest leaps of all. After oil’s historic plunge to negative prices shocked investors around the world, widespread production cuts and recovering demand renewed hope for the struggling commodity.

The index's year-to-date gains lasted only a few days. US stocks nosedived on Thursday as rising coronavirus cases across the nation and cautious messaging from the Federal Reserve revived investor fears. The S&P 500 dropped as much as 5.5% through the session. Yet the index's segments are still up massively from their virus-induced lows.

Here's how all 11 S&P 500 sectors have performed since bottoming on March 23, ranked in ascending order of gains. Data is as of 1:55 p.m. ET Thursday.

Read more: Famed short-seller Andrew Left lays out his methodology for finding the stock market's weakest links - and says he's terrified of newbie day-traders that think they can outsmart Carl Icahn and Warren Buffett


11. Consumer staples

Foto: Source: Anthony Souffle/Star Tribune via Getty Images

Return: 19.6%


10. Utilities

Foto: Electric city Ruesselsheim project Source: Reuters

Return: 30.2%


9. Healthcare

Foto: Scientist Xinhua Yan works in the lab at Moderna in Cambridge, MA on Feb. 28, 2020. Source: David L. Ryan/The Boston Globe/Getty Images

Return: 30.5%


8. Communication services

Foto: Eric Yuan, CEO of Zoom Video Communications takes part in a bell ringing ceremony at the NASDAQ MarketSite in New York, New York, U.S., April 18, 2019. Source: Carlo Allegri/Reuters

Return: 31.2%


7. Financials

Foto: The entrance to JPMorgan Chase's international headquarters on Park Avenue is seen in New York Source: Reuters

Return: 32.8%


6. Real estate

Foto: Workers are seen as new construction takes place at the Umbria a Lennar Corp. project on September 19, 2011 in Miami, Florida. Source: Joe Raedle/Getty Images

Return: 35.5%


5. Industrials

Return: 40.6%


4. Information technology

Foto: Source: Photo by Lisa Maree Williams/Getty Images

Return: 41.5%


3. Materials

Foto: A LB Steel LLC's employee manufactures a component for new Amtrak Acela trains in Harvey, Illinois. Source: Reuters

Return: 41.9%


2. Consumer discretionary

Foto: A United Airlines Boeing 787 Dreamliner. Source: David McNew/Getty Images

Return: 43.3%


1. Energy

Foto: Source: Eric Glenn/Shutterstock

Return: 65.6%

Now read more markets coverage from Markets Insider and Business Insider:

'Plenty of tricks up their sleeve': Here's what 4 experts think about the Fed's dismal economic forecast and extension of near-zero rates

Bill Ackman's Pershing Square reportedly files to create 'blank check' company worth more than $1 billion

We spoke to 3 financial experts, who broke down why you should buy these 13 ETFs to maximize stock-market returns right now