Gains were broad, with areas of the market closely tied to the pace of economic growth among the day's leaders. Consumer discretionary stocks rose 1.4 percent while technology shares were up 1.3 percent.
Among other groups, the PHLX housing sector index rose 1.6 percent and the Nasdaq biotechnology index added 2.1 percent. The Dow Jones Transportation index rose 0.9 percent to a record.
The Institute for Supply Management (ISM) said its index of national factory activity rose to 53.7 in March, its second straight monthly acceleration. However, the report was below the median forecast of 54.0.
The ISM report was the latest to point to improving economic conditions, giving credence to the theory that soft data earlier this year was due to weather and not weakening fundamentals.
"There's a whiff of spring in the economic data, which means we're starting the second quarter with signs that the economy is maintaining the kind of reasonable growth that will continue to support the market," said Jim McDonald, chief investment strategist at Chicago-based Northern Trust Global Investments, which has about $884 billion in assets under management.
"I'm comforted by the rise in discretionary and homebuilding stocks, since those are the ones that really show economic strength. Meanwhile the rise in biotech shows improved risk appetite."
Ford Motor Co
More From This Section
General Motors Co
Among tech names, Google Inc
The Dow Jones industrial average was up 74.95 points, or 0.46 percent, at 16,532.61. The Standard & Poor's 500 Index was up 13.18 points, or 0.70 percent, at 1,885.52. The Nasdaq Composite Index was up 69.05 points, or 1.64 percent, at 4,268.04.
The S&P 500 has gained for three straight sessions, up about 2 percent over that period.
About 69 percent of stocks traded on the New York Stock Exchange closed higher on Tuesday while 72 percent of Nasdaq-listed shares ended up. About 6.41 billion shares traded on all U.S. platforms, according to BATS exchange data.
Financial data firm Markit said its U.S. Manufacturing Purchasing Managers Index slipped to 55.5 in March, unchanged from a preliminary reading, but the rate of growth and the pace of hiring remained strong.
Construction spending edged up 0.1 percent in February, curbed by a drop in private residential projects.
Intuitive Surgical Inc
Medicines Co
After the market closed, shares of Apollo Education
(Editing by Bernadette Baum and Nick Zieminski)