Stocks ended higher on Tuesday, led by gains in shares of Goldman Sachs Group Inc and strength in beaten-down homebuilders and raw materials companies.

Based on the latest available data, the Dow Jones industrial average <.DJI> rose 75.53 points, or 0.74 percent, to end at 10,229.96. The Standard & Poor's 500 Index <.SPX> was up 12.22 points, or 1.14 percent, at 1,083.47. The Nasdaq Composite Index <.IXIC> was up 24.26 points, or 1.10 percent, at 2,222.49.

(Reporting by Caroline Valetkevitch; Editing by Kenneth Barry)