Home Depot Inc. rose 2.7 percent, the most of the 30 companies in the Dow Jones industrial average. The retailer said it would buy $1 billion of its own stock.
Stocks started lower Tuesday morning after a report showed that home prices fell in 19 of the 20 large U.S. cities tracked by the S&P/Case-Shiller index.
The Conference Board said its confidence index dropped in February, dragged down by higher gas prices. But some economists had expected it to be much worse.
The Dow is up 55 points, or 0.4 percent, to 12,252. The S&P 500 index is up 5 to 1,314. The Nasdaq is up 18, or 0.6 percent, to 2,748.