Walmart Inc. (NYSE: WMT) and Costco Wholesale Corporation (NASDAQ: COST) both command premium valuations, but the metrics investors use to measure them tell very different stories.

At the October 7 close, Walmart traded at roughly 39 times trailing earnings while Costco fetched approximately 45 times, making Walmart appear cheaper on that single measure.

When the lens shifts to trailing free cash flow, the rankings reverse sharply, with Walmart costing investors around 64 times and Costco coming in at roughly 44 times.

That reversal places Walmart’s heavy capital investment program at the center of any serious comparison between the two retail giants.

Walmart’s fiscal second-quarter revenue climbed 5.9% to $187.9 billion, with global e-commerce sales surging 23%, advertising revenue rising 38%, and membership fee income growing 17%.

Those headline figures reflect an ambitious omnichannel strategy that combines physical stores, delivery infrastructure, digital marketplaces, and an expanding advertising business.

The cash cost of building that proposition is already evident in the financials, with first-half capital equipment spending rising to $14.18 billion from $11.41 billion in the prior year period.

First-half operating cash flow did grow, moving to $19.71 billion from $18.35 billion, but free cash flow still fell to $5.53 billion from $6.94 billion as spending outpaced operational gains.

Walmart also recorded tariff-refund benefits within operating-income growth, meaning the headline improvement should not be treated entirely as a durable operating advance.

Costco’s fiscal fourth-quarter sales rose 11.2% to $93.9 billion, while annual membership fees grew approximately 11% to $5.91 billion, reinforcing the company’s unique model of low merchandise markups paired with a paid membership relationship.

Trailing free cash flow stood at approximately $13.51 billion for Walmart and $9.38 billion for Costco, using figures ending in July and August 2026 respectively.

At October 7 equity values, Walmart would need to generate approximately $19.28 billion in annual free cash flow to match Costco’s 44.5 times cash flow multiple, representing a 43% increase above its current trailing figure.

That gap is a meaningful hurdle, one Walmart could close if its omnichannel investments produce more profitable sales without triggering another equivalent round of capital expenditure.

Costco’s advantage could erode if membership economics weaken or if the company undertakes heavier investment spending that compresses its cash conversion ratio.

On institutional sentiment, Walmart attracted 111 hedge fund holders in Insider Monkey’s second-quarter 2026 data, up from 99 in the first quarter, while Costco saw holders dip slightly to 104 from 107.

Costco’s September 15 short interest stood at 7.36 million shares, equivalent to 1.7% of float, suggesting the market retains some skepticism about its premium valuation.

On current cash economics, Costco holds the stronger position despite carrying a higher earnings multiple, while Walmart’s investment thesis depends on converting its infrastructure buildout into sustainable free cash flow growth.