When evaluating the top line, Walmart generates significantly higher total revenue than Costco Wholesale across all measured historical periods.
Both companies demonstrate steady long-term growth trajectories alongside recurring quarter-over-quarter seasonal fluctuations that regularly impact their top-line results.
Both companies are placing greater emphasis on AI initiatives to drive efficencies and improve the customer experience.
Investors should closely monitor whether the absolute revenue gap between the two companies continues to steadily widen or starts to narrow in upcoming quarters.
These retail rivals have similar margins, but different revenue and growth profiles. Walmart (NASDAQ:WMT) enjoys far greater scale and revenue, and its stock has significantly outperformed Costco Wholesale’s (NASDAQ:COST) over the last two years. This is despite Costco posting a 9.2% year-over-year increase in sales last quarter, higher than Walmart’s 5.6%.
But recent growth doesn’t tell the whole story. Both companies are investing in technology that could be a deciding factor in how these stocks perform over the next five years and beyond.
Walmart primarily generates revenue through its massive global network of retail supercenters, warehouse clubs, and diverse e-commerce websites.
It recently announced a massive reinvestment plan to remodel hundreds of stores across multiple states. In the quarter that ended Jan. 31, 2026, it reported a net income margin of 2.3%.
Costco Wholesale primarily earns revenue by operating a wide network of membership warehouses that offer bulk branded and private-label merchandise to consumers.
While navigating several recent product recalls and ongoing class-action litigation, it implemented a nationwide rollout of membership-card scanners. For the quarter that ended Feb. 15, 2026, it reported a net income margin of 2.9%.
Revenue is the most fundamental measure of a company’s performance. Changes over time can tell investors how well the company is executing its growth strategy, including its efforts to reach new customers. It becomes a very useful measure for comparing companies in the same industry, like Walmart and Costco.
Image source: The Motley Fool.
| Quarter (Period End) | Walmart Revenue | Costco Wholesale Revenue |
|---|---|---|
| Q2 2024 | $161.5 billion (period ended April 2024) | $58.5 billion (period ended May 2024) |
| Q3 2024 | $169.3 billion (period ended July 2024) | $79.7 billion (period ended Sept. 2024) |
| Q4 2024 | $169.6 billion (period ended Oct. 2024) | $62.2 billion (period ended Nov. 2024) |
| Q1 2025 | $180.6 billion (period ended Jan. 2025) | $63.7 billion (period ended Feb. 2025) |
| Q2 2025 | $165.6 billion (period ended April 2025) | $63.2 billion (period ended May 2025) |
| Q3 2025 | $177.4 billion (period ended July 2025) | $86.2 billion (period ended Aug. 2025) |
| Q4 2025 | $179.5 billion (period ended Oct. 2025) | $67.3 billion (period ended Nov. 2025) |
| Q1 2026 | $190.7 billion (period ended Jan. 2026) | $69.6 billion (period ended Feb. 2026) |
Data source: Company filings. Data as of May 10, 2026.
The revenue performance between these two competitors paints a clear contrast. While Walmart’s quarterly revenue is massive compared to Costco’s, Costco has consistently reported higher year-over-year growth.
But Costco’s superior quarterly growth hasn’t translated to better returns to shareholders. Walmart stock has outperformed Costco over the past two years, rising 115%, compared with Costco’s 30% return.
Looking forward, the better stock may be the one that can better leverage artificial intelligence (AI) and e-commerce investments to drive greater revenue growth and earnings.
Walmart has its AI shopping assistant, Sparky, that is already driving higher order values. Meanwhile, Costco is touting its digital investments, including AI, for driving meaningful improvements in checkout speed and employee productivity in the latest quarter.
The better stock over the next five years will likely center on each company’s ability to leverage technology to improve the customer experience and reduce operational costs. Watch to see if Costco can use its digital initiatives to not only close the revenue gap with Walmart, but potentially better earnings growth.
Before you buy stock in Walmart, consider this:
The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Walmart wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.
Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $483,476!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,362,941!*
Now, it’s worth noting Stock Advisor’s total average return is 998% — a market-crushing outperformance compared to 207% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.
See the 10 stocks »
*Stock Advisor returns as of May 19, 2026.
John Ballard has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Costco Wholesale and Walmart. The Motley Fool has a disclosure policy.