The company's shares rose as much as 5% to $310.78 as Home Depot's first-quarter comparable sales increased, driven by higher sales of plumbing, building materials and paint, even as it flagged a late start to the spring selling season.

During the COVID-19 lockdowns people flush with stimulus money took up several do-it-yourself (DIY) home projects and hired professionals to upgrade their homes, lifting sales at Home Depot and smaller rival Lowe's Cos Inc in 2020.

Sales from DIY customers have slowed, but demand from home-improvement professionals has been steady despite an uptick in prices on higher lumber and copper costs.

"The home improvement consumer remains engaged ... and project backlogs are very healthy," Chief Executive Officer Edward Decker said.

Home Depot now expects fiscal 2022 comparable sales to increase about 3%, compared with its previous forecast of a slight positive growth, and estimates per-share earnings to rise in the mid-single digits percentage range.

The forecast and results suggest underlying housing metrics are still favorable, Wells Fargo analyst Zachary Fadem said, despite the threat of rising mortgage rates.

Some Wall Street analysts found Home Depot's forecast raise "unexpected", given the volatile macro environment, that also saw Walmart cut its profit forecast for the year.

Home Depot's same-store sales rose 2.2% for the quarter ended May 1, compared with estimates of a near 3% decline, as customers spent more per trip. The company earned $4.09 per share in the first quarter, beating estimates of $3.68, according to IBES data from Refinitiv.

(Reporting by Praveen Paramasivam in Bengaluru; Editing by Shounak Dasgupta)

By Praveen Paramasivam