In addition, sales at stores open at least a year, a key metric of a retailer’s health, declined 3.3% in the quarter. In the U.S., the figure fell 3.6%.

The company is now expecting 2024 sales at stores open at least a year to decline between 3% and 4%. Its previous outlook was for a decline of approximately 1%. Home Depot expects full-year earnings per share to fall between 2% and 4%. Previously, the company predicted earnings per share growth of about 1%. The company said that the total sales for the year are expected to be up 2.5% to 3.5%. Its prior guidance was for an increase of about 1%.

Shares of Home Depot slipped 4.7% before the opening bell on Tuesday.

“The underlying long-term fundamentals supporting home improvement demand are strong,” CEO and Chair Ted Decker said in a prepared statement Tuesday. “During the quarter, higher interest rates and greater macro-economic uncertainty pressured consumer demand more broadly, resulting in weaker spend across home improvement projects.”

Home improvement retailers like Home Depot have been dealing with homeowners putting off bigger projects due to higher rates and lingering concerns about inflation.

Elevated mortgage rates, which can add hundreds of dollars a month in costs for borrowers, have discouraged home shoppers for a while, extending the nation’s housing slump into its third year.

Sales of previously occupied U.S. homes fell in June for the fourth month. And sales of new single-family homes fell last month to the slowest annual pace since November.

For the three months ended July 28, Home Depot Inc. earned $4.56 billion, or $4.60 per share. A year ago it earned $4.66 billion, or $4.65 per share.

Removing certain items, earnings were $4.67 per share. Wall Street was calling for $4.54 per share.