Retail sales in the U.S. climbed in July by the most in four months, showing consumers are holding up even as employment slows.

The 0.5 percent increase reported by the Commerce Department in Washington today matched the median forecast of 81 economists surveyed by Bloomberg News and followed a 0.3 percent gain in June that was larger than previously estimated. Excluding auto sales, purchases rose more than projected.