WASHINGTON—A surge in retail sales and rising manufacturing output suggest the U.S. economy’s strong growth in the second quarter continued into the third.

Retail sales—a measure of spending at U.S. stores, websites and restaurants—rose a seasonally adjusted 0.5% in July from the prior month, the Commerce Department said Wednesday. That was well ahead of economists’ forecasts for a 0.1% increase.

Compared...