U.S. stocks ended lower Tuesday, with the three major indexes falling between 1 percent and 2 percent. In U.S. economic news, prices of U.S. single-family homes rose in June, a private-sector survey showed. The S&P/Case-Shiller composite index of 20 metropolitan areas rose 0.9 percent in June, following a 1 percent advance the previous month. Meanwhile, U.S. consumer confidence rose unexpectedly in August, the Conference Board said. Its index of consumer attitudes rose to 81.5 from 80.3 in July, in contrast to economist expectations for a decline to 79.0. The dollar rose against the euro and the pound, but fell against the yen. Light sweet crude oil for September delivery surged to $108.89 a barrel on the New York Mercantile Exchange. Gold futures rose to $1,415.30. The Dow Jones industrial average fell 170.33, or 1.1 percent, to 14,776.13. The broader Standard & Poor's 500 index fell 26.30, or 1.6 percent, to 1,630.48. The technology-heavy Nasdaq composite index fell 79.05, or 2.2 percent, to 3,578.52.