U.S. stocks closed more than 2 percent higher in a second straight day of recovery from a recent plunge, with sentiment helped by a rebound in oil and continued signs of strength in the U.S. economy.
The major averages ended near session highs after briefly more than halving gains in choppy trade leading into the close.
The Nasdaq Composite outperformed with gains of 2.45 percent to swing out of correction and into positive territory for 2015.
Read MoreWhat exactly is a market correction?
The Dow Jones industrial average also emerged from correction territory, closing 369 points higher after earlier adding as much as 381 points. The index briefly traded less than 100 points higher in the hour leading into the close.
"These couple days has been the bounce," said John Canally of LPL Financial. As for the intraday dip, "I think we're just getting some people hesitant to buy much further."
Intraday performance on the Dow
"No real catalysts. Lack of bids at this point," Peter Coleman, head of trading at Convergex, said of the late afternoon fade. He noted that the Dow briefly added more than 1,000 points over the last two trading sessions and people were taking profits and covering short positions.
"This isn't a one-day event," he said, noting that it will likely take two to three weeks for stocks to recover from the recent plunge.
The S&P 500 rose out of correction with Wednesday's stellar gains of about 4 percent. As of late-morning trade, no components of the index had set new 52-week highs or lows.
Crude oil was in focus after surging more than 10 percent to top $42 a barrel, with most of the gains attributed to short covering after lower-than-expected crude inventories. Futures for October delivery jumped 10.3 percent to $42.56 a barrel on the New York Mercantile Exchange for its biggest daily gain since March 2009.
Brent also surged more than 8 percent to above $46 a barrel, on track for its best day since April 2009.
"That's a big positive. That breaks the downside momentum, too," said Bruce Bittles, chief investment strategist at R.W. Baird. "If oil kept crashing that would send a terrible message for the global economy."
Energy surged 4.9 percent to lead the S&P 500, while Chevron jumping more than 6 percent as the greatest blue chip advancer.
Apple jumped nearly 3 percent. The stock remains in correction territory after closing out of a bear market on Wednesday.
"Obviously the rally is continuing this morning. It's basically strength here after the good economic news we got," said Peter Cardillo, chief market economist at Rockwell Global Capital. He said stocks have likely hit a bottom. "The China concerns are about to subside as the market concentrates on the (U.S.) economic data."
The second estimate of second-quarter GDP came in at 3.7 percent, topping the first read of an annualized 2.3 percent.
"I thought it was a very pretty number, particularly the revisions," said Marie Schofield, chief economist and senior portfolio manager at Columbia Threadneedle Investments. "The principle areas where we saw those revisions (such as final sales) were important, gives the underlying trend in demand and growth."
However, she said with the increased trade deficit and buildup in inventories she is "not as encouraged by the second half as the second quarter."
The earliest Schofield expects a rate to come is in October, with a greater probability for January.
In a sign of continued improvement in the labor market, weekly jobless claims came in slightly lower than expected at 271,000, marking the
July pending home sales rose 0.5 percent, holding steady from an upwardly revised June reading of a 0.5 percent increase.
The Treasury Department's auction of $29 billion of 7-year notes at a high yield of 1.930 percent was met with slightly above-average demand.
The U.S. dollar traded mixed, weaker against emerging market currencies and stronger against the euro and yen. The euro traded near $1.12 and the yen held around 120.96 yen against the greenback.
"EM (currencies) are up today because there's been such a massive unwind in the last week or so," said Jason Leinwand, managing director of Riverside Risk Advisors. He noted positive sentiment on the U.S. economy supported the dollar against the euro and yen.
Gold futures for December delivery settled down $2.00 to $1,122.60 an ounce.
"The combination of stronger economic data from both the U.S. and Europe and more stable China and EM, combined with a somewhat more dovish Fed postponing rate hikes is definitely good news for both the U.S. and Europe," said Ilya Feygin, senior strategist at WallachBeth Capital.
"The U.S. market has already partially reacted yesterday and will open about 0.8 percent higher this morning," he said. It faces overhead resistance less than 1 percent above here and buying on the elevated opening gap has not been a good tactical buy point in this more volatile market with lower liquidity."
The major averages had their best day in four years on Wednesday. After five consecutive days of triple-digit declines, the Dow surged 619 points into Wednesday's close, finishing the day at 16,285. The S&P 500 was up nearly 73 at 1,940.5. The Nasdaq surged more than 4 percent to 4,697.
The gains supported global markets on Thursday, with the DAX and STOXX Europe 600 both surging more than 3 percent and China's Shanghai Composite index closing up 5.4 percent to reclaim the critical 3,000 mark. The Nikkei and Hang Seng closed up 1.08 and 3.60 percent, respectively.
The positive close in China was the first in five trading sessions, after improved sentiment in the U.S. managed to outweigh the fears surrounding China's slowing economy, which has been partly responsible for the recent selloff seen in global stocks.
As of the U.S. close on Wednesday, losses on the S&P Global BMI totaled $3.45 trillion, according to Howard Silverblatt of S&P Dow Jones Indices.
However, many analysts cautioned the selloff could have further to go despite the near-term rally.
In a note late Wednesday, S&P Capital IQ's Sam Stovall said, "The S&P 500 breached critical support at 2034 and let loose to the downside. This move leaves a formidable zone of resistance at the high-volume area of 2092-2115 that has been building since March. According to i10Research, there is no reason to turn bullish until this zone is eclipsed."
The CBOE Volatility Index, widely considered the best gauge of fear in the market, traded near 26.
After spiking above 50 on Monday, the VIX closed near 30 on Wednesday, still far above the 20 level that most analysts would be more comfortable with.
"The VIX at 30 with a rally like that (Wednesday) is pretty surprising. To me with the VIX at 30 shows there's still a lot of uncertainty out there," said Randy Frederick, managing director of trading and derivatives at Charles Schwab.