Home Depot Inc , the world's largest home improvement chain, raised its fiscal-year profit forecast for the second time in three months on Tuesday as timely promotions and renewed focus on cheaper products helped it gain market share from rival Lowe's Cos Inc .

Home Depot has been quicker to cut costs than Lowe's, and in some cases has benefited as housing markets have improved in regions where it has a heavy presence.

Lowe's reported weaker-than-expected quarterly sales on Monday and cut its fiscal-year outlook for the second time in three months.

Home Depot said it still expects fiscal-year sales to rise 2.5 percent. It forecast earnings of $2.34 a share excluding future stock repurchases, up from a prior forecast of $2.24.

They are operating at a high level, taking chances where appropriate in merchandising, leveraging technology investments, and benefiting from a return to more localized marketing and merchandising in the store, said analyst David Strasser of Janney Capital Markets.

In the second quarter, Home Depot's same-store sales, or sales at stores open at least a year, rose 4.3 percent globally, including a 3.5 percent rise in U.S. same-store sales, making it the ninth consecutive quarter that it has outshone its smaller rival. Lowe's same-store sales fell 0.3 percent in the quarter.

Strasser said the 4.3 percent same-store sales rise was better than his 2.5 percent estimate. Promotional programs, including a U.S. Independence Day appliance event and a late July event on storage products, helped win shoppers, he added,

Home Depot also beat estimates on quarterly profit as demand picked up for seasonal goods after a soft start to the spring selling season. Storm-related repairs also helped the retailer's sales.

Its second-quarter net income rose to $1.36 billion, or 86 cents a share, from $1.19 billion, or 72 cents a share, a year earlier. Analysts on average were expecting 83 cents a share, according to Thomson Reuters I/B/E/S.

Sales rose 4.2 percent to $20.23 billion, beating analysts' average estimate of $19.96 billion.

In recent months, Home Depot has shifted focus to cheaper products like faucets and paint to increase shopper traffic.

It reported a 1.1 percent rise in the number of customer transactions in the second quarter, while the average ticket rose 3.3 percent to $54.04.

Sales at home improvement chains have suffered as homeowners have stayed away from bigger renovations and expensive items such as appliances in a weak U.S. economy.

U.S. homebuilder sentiment remained stuck near historic lows this month, even as consumer sentiment in the world's largest economy worsened sharply in early August, falling to the lowest level in more than three decades. U.S. economic growth was anemic in the first half of the year.

(Reporting by Dhanya Skariachan; editing by John Wallace)