IBM gave the biggest boost to the Dow, which led the day's gains. The stock, which also helped drive the S&P 500's advance, jumped 2.7% to $182.12 after the company's board of directors approved another $15 billion for stock buybacks.
In the latest economic data, a gauge of US consumer spending rose in September, but another report showed consumer confidence fell sharply in October because of worries about the impact of the partial government shutdown.
The data added to evidence of sluggish economic growth just as the Fed began a two-day policy meeting. Expectations are high that officials are unlikely to shift monetary policy this week as they wait for more evidence of how badly Washington's budget battle has hurt the US economy.
"The ghosts of tapering are not coming this Halloween," said Omar Aguilar, chief investment officer for equities at Charles Schwab Corp. "The government shutdown pushed the tapering discussion further out."
That's likely to keep a floor under stocks for the near term at least, though longer term, slow growth in earnings and especially in revenue may be a concern, he said.
Also Read
Limiting some of the day's gains in both the Nasdaq and the S&P 500, Apple
The Dow Jones industrial average gained 111.42 points, or 0.72%, to end at 15,680.35, a record close. The Standard & Poor's 500 Index rose 9.84 points, or 0.56%, to finish at 1,771.95, also a record closing high. The S&P 500 hit another intraday record high at 1,772.09.
The Nasdaq Composite Index advanced 12.21 points, or 0.31%, to close at 3,952.34.
Tuesday's rally brings the S&P 500's gain for the year to date to 24.2%.
In the latest technical issue to befall the Nasdaq exchange, the Nasdaq OMX Group
After the bell, shares of LinkedIn
During the regular session, the Dow also got a boost from Pfizer Inc
As has been the case in recent quarters, more companies have been beating analysts' earnings expectations than revenue expectations. With results in from 281 of the S&P 500 companies, 68.7% have topped profit expectations, above the long-term average of 63%, while just 52.5% have beaten revenue estimates, below the 61% rate since 2002, based on Thomson Reuters data.
Cummins Inc
Another decliner was JPMorgan Chase