The stock market is rebounding from a sharp six-day slump that was triggered by concerns about the health of the Chinese economy.
Traders were encouraged by a surge in the Chinese stock market as the nation's main index logged its biggest gain in eight weeks. In the U.S., a report showed that the economy expanded at a much faster pace than previously estimated in the second quarter.
Energy stocks were among the biggest gainers as oil surged 9 percent, trading back above $40 a barrel.
The Dow Jones industrial average climbed 178 points, or 1.2 percent, to 16,459 as of 3:28 p.m. Eastern time. The index had been up as almost 400 points at its peak.
The Standard & Poor's 500 index gained 24 points, or 1.3 percent, to 1,966. The Nasdaq composite rose 66 points, or 1.5 percent, to 4,765.
U.S. stocks are rising for a second day after logging their best performance in almost four years Wednesday, as the market bounced back from its six-day slump. The rebound helped push the Nasdaq composite back into positive territory for the week.
"It looks to be more buying on depressed valuations," said Tim Dreiling, senior portfolio manager at U.S. Bank Private Client Reserve. "Capital comes back in, finding valuations to be more favorable than a week ago."
Financial markets have been volatile since China decided to weaken its currency earlier this month, a move investors interpreted as an attempt to bolster a sagging economy. Traders are also jittery about the outlook for interest rates. The Federal Reserve has signaled it could raise its key interest rate for the first time in nearly a decade later this year.
William Dudley, president of the New York Federal Reserve Bank, said Wednesday that the case for a U.S. interest rate hike in September is "less compelling" given China's troubles, falling oil prices and emerging markets weakness.
Given those headwinds, investors worry the economy could falter if the Fed raises rates too soon, chocking economic growth.
SECTOR VIEW: All of the 10 sectors in the S&P 500 rose, led by energy stocks. The sector rose 2.7 percent, paring its losses for the year to 22 percent.
COPPER-BOTTOMED: Freeport-McMoRan notched the biggest gain in the index. The copper producer said it is cutting spending, production and jobs as it deals with declining copper prices. Its stock climbed $2.43, or 30.1 percent, to $10.35.
STRONGER GROWTH: The Commerce Department said that the economy, as measured by gross domestic product, expanded at an annual rate of 3.7 percent in the April-June quarter. That's a much bigger rebound in growth during the spring that previously estimated, and the strongest growth since last summer. That suggests the U.S. economy is on a level of solid footing heading into the second half of the year.
The report gave investors comfort that the global economy isn't headed for the kind of downturn that could lead into a recession, said David Lyon, global investment specialist at J.P. Morgan Private Bank in San Francisco.
"It's an adjustment to a global slowdown where the globe is just going to be growing at a low-to-moderate pace," Lyon said.
DAZZLING RESULTS: Signet Jewelers jumped 12.4 percent after reporting earnings that surpassed the expectations of Wall Street analysts. The stock gained $15.01 to $136.30.
TASTY QUARTER: The J. M. Smucker Co. rose 5.1 percent after the food maker's fiscal first-quarter earnings beat financial analysts' forecasts. Smucker also gave a positive full-year outlook. Its shares gained $5.52 to $114.67.
EUROPEAN MARKETS: Germany's DAX gained 3.2 percent. France's CAC-40 increased 3.5 percent. Britain's FTSE 100 rose 3.6 percent.
ASIA'S DAY: The Shanghai Composite Index posted its first gain in six days, bouncing back from losses that triggered worldwide selling and wiped nearly 23 percent off its value over the past week. Hong Kong's Hang Seng advanced 2.9 percent to 21,697.31 and Tokyo's Nikkei 225 added 1.1 percent to 18,574.44.
ENERGY: Benchmark U.S. crude gained $3.96, or 10.3 percent, to $42.56 a barrel in New York. Brent crude, a benchmark for international oils used by many U.S. refineries, rose $4.42 to close at $47.56 in London.
BONDS AND CURRENCIES: U.S. government bond prices rose. The yield on the 10-year Treasury note fell to 2.16 percent from 2.18 percent on Wednesday. The dollar rose to 120.66 yen from Wednesday's 121.31 yen. The euro edged down to $1.1265 from the previous session's $1.1337.
METALS: Gold fell $2 to $1,122.60 an ounce. Silver rose 37.60 cents to $14.42 an ounce. Copper gained 8.6 cents to $2.33 per pound.