U.S. retail sales rose 0.2% in October as households pulled back on purchases of motor vehicles and other big-ticket goods amid higher prices, the Commerce Department's Census Bureau said on Tuesday.

The increase matched the forecast of economists polled by Reuters and followed an unrevised 0.8% surge in September. Retail sales, which are mostly goods and are not adjusted for inflation, have now risen in three of the last four months.

Core retail sales, which exclude automobiles, gasoline, building materials and food services and correspond most closely with the consumer spending component of gross domestic product, increased 0.6% last month after an upwardly revised 0.5% rise in September. Economists had forecast a 0.4% gain.

Consumer spending increased at a 3.8% annualized rate in the third quarter, and the economy grew at a 3.4% pace in the July-September quarter, but the October figures point to a more cautious consumer heading into the holiday season.

The ongoing U.S.-Israeli war with Iran is driving up inflation and eroding households' purchasing power. The government reported last month that income at the disposal of households, after adjusting for inflation and taxes, fell 0.3% in September.

Consumer spending has been supported largely by higher-income households, which have been cushioned against inflation by stock market gains. But the recent technology-led selloff could temper spending by making consumers more cautious.

Economists have also noted a reliance on credit cards by more households, with money from generous tax refunds earlier in the year exhausted. Households are also saving less and dipping into their nest eggs to afford purchases, and the saving rate fell to near a four-year low in September.

"Credit card balances per active account are increasing at more than a 9% yearly pace, the fastest pace since before the pandemic," said Brian LeBlanc, head of economic analysis at PNC Financial. "Older and wealthier households remain better positioned to absorb higher prices and interest rates ... younger households have less room to absorb these pressures, with smaller savings buffers and increasing reliance on credit."