The technology sector jumped 2.3%, giving the S&P 500 its biggest boost, with shares of Microsoft Corp and Apple Inc rising.

Shares of Citigroup, Bank of America Corp and Morgan Stanley also gained after they topped quarterly earnings estimates. The rebounding economy allowed them to release more cash they had set aside for pandemic losses, while sizzling deals, equity financing and trading added to profits. The S&P bank index jumped 1.5%.

Also, UnitedHealth Group Inc climbed 4.2% after the health insurer reported results and raised its full-year adjusted profit forecast on strength from its Optum unit that manages drug benefits.

Adding to optimism, data showed the number of Americans filing new claims for unemployment benefits last week fell close to a 19-month low, and a separate report showed producer prices eased in September.

Data from recent inflation reports suggested COVID-driven price increases may have peaked. Still, Federal Reserve policymakers remain divided over inflation and what to do about it.

"Some of the things that worried the market in September, and even last week, as far as the inflation aspect and higher interest rates and the Delta variant, maybe have lessened," said Alan Lancz, president, Alan B. Lancz & Associates Inc., an investment advisory firm, based in Toledo, Ohio.

"Not that it's all over, but on a temporary scale at least, you can make a case for it trending in the right direction."

The Dow Jones Industrial Average rose 534.75 points, or 1.56%, to 34,912.56, the S&P 500 gained 74.46 points, or 1.71%, to 4,438.26 and the Nasdaq Composite added 251.79 points, or 1.73%, to 14,823.43.

While the S&P 500 registered its biggest daily percentage gain since March 5, the Nasdaq notched its biggest since May 20 and the Dow its biggest since July 20.

Gains were broad-based, with all but one S&P 500 sector rising more than 1%.

Shares of Moderna Inc ended up 3.2% after a panel of expert advisers to the U.S. Food and Drug Administration voted to recommend booster shots of its COVID-19 vaccine for Americans aged 65 and older and those at high risk of severe illness.

Walgreens Boots Alliance Inc jumped 7.4% after the drugstore chain reported fourth-quarter revenue and adjusted profit above estimates and forecast growth of 11% to 13% in the long term.

U.S. companies are expected to report strong profit growth for the third quarter, but investors have been keen to hear what they say about rising costs, labor shortages and supply problems.

Advancing issues outnumbered declining ones on the NYSE by a 3.58-to-1 ratio; on Nasdaq, a 1.97-to-1 ratio favored advancers.

The S&P 500 posted 32 new 52-week highs and no new lows; the Nasdaq Composite recorded 82 new highs and 46 new lows.

Volume on U.S. exchanges was 9.26 billion shares, compared with the 10.8 billion average for the full session over the last 20 trading days.

(Additional reporting by Devik Jain in Bengaluru and Federica Urso in Gdansk; Editing by Arun Koyyur and David Gregorio)

By Caroline Valetkevitch