U.S. stocks rose on Tuesday, with the Dow closing above 18,000 for the first time ever and the S&P 500 ending at a record after an unexpectedly strong report on economic growth.

The Nasdaq ended modestly lower, pressured by the biggest selloff in biotech names in many months, while trading was light ahead of the Christmas holiday. Markets will close early on Wednesday and will be closed all of Thursday.

Both the Dow and S&P 500 hit intraday records in their fifth-straight day of gains. The Dow rose as high as 18,069.22 and is up about 175 percent from a 12-year closing low hit on March 9, 2009. The S&P's record close was its 51st such record this year.