The retailer, which operates more than 5,000 stores in the United States, has been using its market power to negotiate better prices from its suppliers and ward off competition from rivals such as Target Corp, whose shelves are relatively pricier.

However, lower prices and discounts, along with Walmart's decisions to increase employee wages, are expected to take a toll on its margins this year.

"There's still a lot of trepidation and uncertainty with the economic outlook. Balance sheets are continuing to get thinner, savings rate is roughly half of what it was at a pre-pandemic level and we've not been in a situation like this where the Fed is raising at the rate that it does," Chief Financial Officer John David Rainey told Reuters.

"So, that makes us cautious on the economic outlook because we simply don't know what we don't know."

Walmart forecast fiscal 2024 earnings of $5.90 to $6.05 per share, compared with analysts' estimates of $6.50 per share, according to Refinitiv IBES data.

The consolidated gross profit rate declined 83 basis points in the holiday quarter, primarily due to markdowns and sales of lower-margin products, the company said.

There is also no guarantee that Walmart will be able to keep prices lower enough to spur demand, with a number of its biggest suppliers, including Nestle, Coca-Cola Co, Procter & Gamble and Unilever, disclosing in recent weeks that they are planning for more price hikes this year.

In contrast, Kraft Heinz and PepsiCo plan to pause further price hikes to counteract declining volumes, but their prices are still substantially elevated compared to a year earlier.

Still, Walmart reported strong demand in the quarter ended Jan. 31, posting total revenue of $164.05 billion, a 7.3% increase from last year. Analysts had estimated revenues of $159.76 billion.

The company's quarterly attributable net income rose 76.2% to $6.28 billion, helped by unrealized gains in equity and other investments.

(Reporting by Uday Sampath in Bengaluru and Siddharth Cavale and Arriana McLymore in New York; Editing by Anil D'Silva)