Sales of new U.S. homes unexpectedly rose 2.8% to an 870,000 annual sales pace in July, reversing two months of declines, and inventories eased, a Commerce Department report showed Friday.

Analysts were expecting new-home sales to fall 1.4% to an 820,000 sales pace. New-home sales in June were revised to an annual rate of 846,000 from the previously reported 834,000 rate.