The gains came from high-growth stocks such as retail and industrial companies, and energy companies benefited as crude oil rose about 2 percent. Smaller and more domestically-focused companies surged. Those sectors have slumped over the last two months. Despite the gains Wednesday, the S&P 500 is down 3.2 percent so far this week.
The S&P 500 index rose as much as 1.1 percent in early trading, but finished with a gain of just 8.04 points, or 0.3 percent, at 2,649.93.
The Dow Jones Industrial Average slipped 0.95 points to 24,464.69. The Nasdaq composite climbed 63.43 points, or 0.9 percent, to 6,972.25. The Russell 2000 index of smaller-company stocks rose 19.27 points, or 1.3 percent, to 1,488.28.
Trading was relatively quiet ahead of the Thanksgiving holiday. U.S. markets will be closed Thursday and open for a half-day on Friday.
Strong reports from companies including Foot Locker helped retailers. The shoe and athletic apparel company climbed 14.9 percent to $52.96 after its third-quarter profit and revenue surpassed Wall Street’s expectations.
That contributed to a rebound for retailers after they dropped on Tuesday. Home improvement company Lowe’s gained 2.5 percent to $88.37 and Nike rose 1.8 percent to $72.37.
Technology companies recovered a sliver of their recent losses. Adobe rose 2.8 percent to $225.98 and design software maker Autodesk climbed 9.7 percent to $135.04 after a strong quarterly report. The company also said it is buying construction software company PlanGrid for $875 million.
Amazon rose 1.4 percent to $1,516.73 and Facebook jumped 1.8 percent to $134.75. Microsoft picked up 1.4 percent to $103.11, but Apple lost 0.1 percent to $176.89.
Apple’s market value has dropped by $264 billion since early October and Amazon has fallen by $251 billion since early September. Since late July, Facebook has lost $241 billion and Alphabet is down by $169 billion. That’s $925 billion in value lost by just those four companies, more than any S&P 500 company is worth.
Oil prices rebounded as benchmark U.S. crude gained 2.2 percent to $54.63 a barrel in New York. It fell 6.6 percent on Tuesday and finished at its lowest price in a year. Brent crude, the international standard traded in London, rose 1.5 percent to $63.48 a barrel.
Chevron rose 1.3 percent to $117.57 and Exxon Mobil gained 0.8 percent to $77.56.
Crude prices have plunged since early October as global stockpiles surged. Production increased after the U.S. said it would re-impose sanctions on Iran’s energy sector, but it later granted waivers that allowed many countries that buy oil from Iran to continue making those purchases. If the global economy slows significantly, that would also reduce demand for oil.
Bond prices fell. The yield on the 10-year Treasury note rose to 3.06 percent from 3.04 percent.
Utilities and other high-dividend stocks also declined. Those companies have done better than the rest of the market during turbulent trading in October and November, but when the market makes a broad rebound they usually get left behind.