Comprehensive Stock Comparison

Compare Costco Wholesale Corporation (COST) vs Walmart Inc. (WMT) Stock

Analyze side-by-side fundamentals, valuation, growth, and profitability to decide which stock is the better buy.

Tickers 2 / 10100+ Metrics

Selected Stocks

Add up to 10 tickers. Use presets or search to get started.

2 / 10
Try these comparisons:

Quick Verdict

CategoryWinnerWhy
GrowthCOST8.2% revenue growth vs WMT's 4.7%
ValueWMTLower P/E (43.8x vs 49.8x)
Quality / MarginsWMT3.3% net margin vs COST's 3.0%
Stability / SafetyCOSTBeta 0.44 vs WMT's 0.53, lower leverage
DividendsWMT0.7% yield, 37-year raise streak, vs COST's 0.5%
Momentum (1Y)WMT+30.7% vs COST's -3.1%
Efficiency (ROA)COST10.0% ROA vs WMT's 7.9%, ROIC 34.5% vs 14.7%
Bottom line: WMT leads in 4 of 7 categories, making it the stronger pick for investors who prioritize valuation and capital efficiency and profitability and margin quality. Costco Wholesale Corporation is the better choice for growth and revenue expansion and capital preservation and lower volatility. As direct sector peers, they can serve as alternatives in the same portfolio allocation.

Who Each Stock Is For

Income & stability

Growth exposure

Long-term compounding (10Y)

Sleep-well-at-night portfolio

Valuation efficiency (growth/$)

Defensive / Recession hedge

Business Model

What each company does and how it makes money

COSTCostco Wholesale Corporation
Consumer Defensive

Costco operates a global chain of membership warehouse clubs that sell a wide range of merchandise at low prices to members. It generates revenue primarily from membership fees — which account for roughly 70% of operating income — and merchandise sales, with a razor-thin markup on goods. The company's moat lies in its extreme operational efficiency, massive buying power, and fiercely loyal membership base that renews at over 90% rates.

WMTWalmart Inc.
Consumer Defensive

Walmart is the world's largest retailer operating a vast network of physical stores and e-commerce platforms. It generates revenue primarily through retail sales — with Walmart U.S. contributing about 65% of total revenue, Walmart International around 20%, and Sam's Club membership warehouse clubs roughly 15%. Its key competitive advantage is massive scale and supply chain efficiency, enabling everyday low prices that competitors struggle to match.

Revenue Breakdown by Segment

How each company's revenue is distributed across its business units

COSTCostco Wholesale Corporation
FY 2025
Food and Sundries
39.8%$109.6B
Non-Foods
25.9%$71.2B
Other
18.6%$51.2B
Fresh Food
13.8%$38.0B
Membership
1.9%$5.3B
WMTWalmart Inc.
FY 2025
Walmart U S
68.6%$462.4B
Walmart International
18.1%$121.9B
Sams Club
13.4%$90.2B

Financial Metrics Comparison

Side-by-side fundamentals across 2 stocks. BestLagging

Financial Scorecard

WMT 3COST 1
Financial MetricsWMT4/6 metrics
Valuation MetricsWMT6/7 metrics
Profitability & EfficiencyCOST9/9 metrics
Total ReturnsTie3/6 metrics
Risk & VolatilityTie1/2 metrics
Analyst OutlookWMT2/2 metrics

WMT leads in 3 of 6 categories (Financial Metrics, Valuation Metrics). COST leads in 1 (Profitability & Efficiency). 2 tied.

Financial Metrics (TTM)

WMT is the larger business by revenue, generating $703.1B annually — 2.5x COST's $280.4B. Profitability is closely matched — net margins range from 3.3% (WMT) to 3.0% (COST).

MetricCOSTCostco Wholesale …WMTWalmart Inc.
RevenueTrailing 12 months$280.4B$703.1B
EBITDAEarnings before interest/tax$13.4B$42.8B
Net IncomeAfter-tax profit$8.3B$22.9B
Free Cash FlowCash after capex$9.0B$15.3B
Gross MarginGross profit ÷ Revenue+12.9%+24.9%
Operating MarginEBIT ÷ Revenue+3.8%+4.1%
Net MarginNet income ÷ Revenue+3.0%+3.3%
FCF MarginFCF ÷ Revenue+3.2%+2.2%
Rev. Growth (YoY)Latest quarter vs prior year+8.3%+5.8%
EPS Growth (YoY)Latest quarter vs prior year+11.4%+35.1%
WMT leads this category, winning 4 of 6 comparable metrics.

Valuation Metrics

At 46.9x trailing earnings, WMT trades at a 16% valuation discount to COST's 55.5x P/E. Adjusting for growth (PEG ratio), COST offers better value at 3.68x vs WMT's 4.26x — a lower PEG means you pay less per unit of expected earnings growth.

MetricCOSTCostco Wholesale …WMTWalmart Inc.
Market CapShares × price$448.0B$1.02T
Enterprise ValueMkt cap + debt − cash$442.0B$1.08T
Trailing P/EPrice ÷ TTM EPS55.51x46.87x
Forward P/EPrice ÷ next-FY EPS est.49.80x43.76x
PEG RatioP/E ÷ EPS growth rate3.68x4.26x
EV / EBITDAEnterprise value multiple34.51x24.44x
Price / SalesMarket cap ÷ Revenue1.63x1.43x
Price / BookPrice ÷ Book value/share15.42x10.27x
Price / FCFMarket cap ÷ FCF57.17x24.53x
WMT leads this category, winning 6 of 7 comparable metrics.

Profitability & Efficiency

COST delivers a 27.4% return on equity — every $100 of shareholder capital generates $27 in annual profit, vs $22 for WMT. COST carries lower financial leverage with a 0.28x debt-to-equity ratio, signaling a more conservative balance sheet compared to WMT's 0.67x. On the Piotroski fundamental quality scale (0–9), COST scores 7/9 vs WMT's 6/9, reflecting strong financial health.

MetricCOSTCostco Wholesale …WMTWalmart Inc.
ROE (TTM)Return on equity+27.4%+22.3%
ROA (TTM)Return on assets+10.0%+7.9%
ROICReturn on invested capital+34.5%+14.7%
ROCEReturn on capital employed+27.9%+17.5%
Piotroski ScoreFundamental quality 0–976
Debt / EquityFinancial leverage0.28x0.67x
Net DebtTotal debt minus cash-$6.0B$56.4B
Cash & Equiv.Liquid assets$14.2B$10.7B
Total DebtShort + long-term debt$8.2B$67.1B
Interest CoverageEBIT ÷ Interest expense72.26x11.85x
COST leads this category, winning 9 of 9 comparable metrics.

Total Returns (with DRIP)

A $10,000 investment in COST five years ago would be worth $31,542 today (with dividends reinvested), compared to $30,135 for WMT. Over the past 12 months, WMT leads with a +30.7% total return vs COST's -3.1%. The 3-year compound annual growth rate (CAGR) favors WMT at 40.2% vs COST's 29.0% — a key indicator of consistent wealth creation.

MetricCOSTCostco Wholesale …WMTWalmart Inc.
YTD ReturnYear-to-date+18.4%+13.5%
1-Year ReturnPast 12 months-3.1%+30.7%
3-Year ReturnCumulative with dividends+114.7%+175.4%
5-Year ReturnCumulative with dividends+215.4%+201.3%
10-Year ReturnCumulative with dividends+616.5%+512.5%
CAGR (3Y)Annualised 3-year return+29.0%+40.2%
Evenly matched — COST and WMT each lead in 3 of 6 comparable metrics.

Risk & Volatility

COST is the less volatile stock with a 0.44 beta — it tends to amplify market swings less than WMT's 0.53 beta. A beta below 1.0 means the stock typically moves less than the S&P 500.

MetricCOSTCostco Wholesale …WMTWalmart Inc.
Beta (5Y)Sensitivity to S&P 5000.44x0.53x
52-Week HighHighest price in past year$1067.08$134.69
52-Week LowLowest price in past year$846.80$79.81
% of 52W HighCurrent price vs 52-week peak+94.7%+95.0%
RSI (14)Momentum oscillator 0–10053.449.9
Avg Volume (50D)Average daily shares traded2.1M29.5M
Evenly matched — COST and WMT each lead in 1 of 2 comparable metrics.

Analyst Outlook

Wall Street rates COST as "Buy" and WMT as "Buy". Consensus price targets imply 6.5% upside for WMT (target: $136) vs 3.7% for COST (target: $1048). For income investors, WMT offers the higher dividend yield at 0.73% vs COST's 0.49%.

MetricCOSTCostco Wholesale …WMTWalmart Inc.
Analyst RatingConsensus buy/hold/sellBuyBuy
Price TargetConsensus 12-month target$1048.21$136.31
# AnalystsCovering analysts5764
Dividend YieldAnnual dividend ÷ price+0.5%+0.7%
Dividend StreakConsecutive years of raises037
Dividend / ShareAnnual DPS$4.91$0.94
Buyback YieldShare repurchases ÷ mkt cap+0.2%+0.8%
WMT leads this category, winning 2 of 2 comparable metrics.

Historical Charts

Charts are rendered on first load. Hover for details.

Chart 1Total Return — 5 Years (Rebased to 100)

StockMar 20Feb 26Change
Costco Wholesale Co… (COST)100313.24+213.2%
Walmart Inc. (WMT)100321.15+221.1%

Costco Wholesale Co… (COST) returned +215% over 5 years vs Walmart Inc. (WMT)'s +201%. A $10,000 investment in COST 5 years ago would be worth $31,542 today (including dividends reinvested).

Chart 2Revenue Growth — 10 Years

Stock20172026Change
Costco Wholesale Co… (COST)$129.0B$275.2B+113.3%
Walmart Inc. (WMT)$485.9B$713.2B+46.8%

Walmart Inc.'s revenue grew from $485.9B (2017) to $713.2B (2026) — a 4.4% CAGR.

Chart 3Net Margin Trend — 10 Years

Stock20172026Change
Costco Wholesale Co… (COST)2.1%2.9%+41.7%
Walmart Inc. (WMT)2.8%3.1%+9.3%

Walmart Inc.'s net margin went from 3% (2017) to 3% (2026).

Chart 4P/E Ratio History — 10 Years

Stock20172026Change
Costco Wholesale Co… (COST)30.647.4+54.9%
Walmart Inc. (WMT)22.546.9+108.4%

Costco Wholesale Corporation has traded in a 29x–55x P/E range over 9 years; current trailing P/E is ~56x. Walmart Inc. has traded in a 23x–53x P/E range over 10 years; current trailing P/E is ~47x.

Chart 5EPS Growth — 10 Years

Stock20172026Change
Costco Wholesale Co… (COST)6.0818.21+199.5%
Walmart Inc. (WMT)1.462.73+87.0%

Walmart Inc.'s EPS grew from $1.46 (2017) to $2.73 (2026) — a 7% CAGR.

Chart 6Free Cash Flow — 5 Years

2022
$4B
$11B
2023
$7B
$12B
2024
$7B
$15B
2025
$8B
$13B
2026
$42B
Costco Wholesale Co… (COST)Walmart Inc. (WMT)

Costco Wholesale Corporation generated $8B FCF in 2025 (+46% vs 2021). Walmart Inc. generated $42B FCF in 2026 (+61% vs 2021).

Loading custom metrics...

COST vs WMT: Frequently Asked Questions

9 questions · data-driven answers · updated daily

01

Is COST or WMT a better buy right now?

Walmart Inc. (WMT) offers the better valuation at 46.9x trailing P/E (43.8x forward), making it the more compelling value choice. Analysts rate Costco Wholesale Corporation (COST) a "Buy" — based on 57 analyst ratings — the highest consensus in this comparison. The "better buy" depends entirely on your goals: growth investors should weight revenue trajectory, value investors should weight P/E and PEG, and income investors should weight dividend yield and streak.

02

Which has the better valuation — COST or WMT?

On trailing P/E, Walmart Inc. (WMT) is the cheapest at 46.9x versus Costco Wholesale Corporation at 55.5x. On forward P/E, Walmart Inc. is actually cheaper at 43.8x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: Costco Wholesale Corporation wins at 3.30x versus Walmart Inc.'s 3.98x.

03

Which is the better long-term investment — COST or WMT?

Over the past 5 years, Costco Wholesale Corporation (COST) delivered a total return of +215.4%, compared to +201.3% for Walmart Inc. (WMT). A $10,000 investment in COST five years ago would be worth approximately $32K today (assuming dividends reinvested). Over 10 years, the gap is even starker: COST returned +616.5% versus WMT's +512.5%. Past returns do not guarantee future results, and the stock with the higher historical return may already have its best growth priced in.

04

Which is safer — COST or WMT?

By beta (market sensitivity over 5 years), Costco Wholesale Corporation (COST) is the lower-risk stock at 0.44β versus Walmart Inc.'s 0.53β — meaning WMT is approximately 19% more volatile than COST relative to the S&P 500. On balance sheet safety, Costco Wholesale Corporation (COST) carries a lower debt/equity ratio of 28% versus 67% for Walmart Inc. — giving it more financial flexibility in a downturn.

05

Which has better profit margins — COST or WMT?

Walmart Inc. (WMT) is the more profitable company, earning 3.1% net margin versus 2.9% for Costco Wholesale Corporation — meaning it keeps 3.1% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: WMT leads at 4.2% versus 3.8% for COST. At the gross margin level — before operating expenses — WMT leads at 24.9%, reflecting greater pricing power or product mix advantage. Stronger margins indicate durable pricing power, lower cost of revenue, or higher mix of software/services. They are one of the clearest signs of business quality.

06

Is COST or WMT more undervalued right now?

The PEG ratio (forward P/E divided by expected earnings growth rate) is the most precise measure of undervaluation relative to growth potential. By this metric, Costco Wholesale Corporation (COST) is the more undervalued stock at a PEG of 3.30x versus Walmart Inc.'s 3.98x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, Walmart Inc. (WMT) trades at 43.8x forward P/E versus 49.8x for Costco Wholesale Corporation — 6.0x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for WMT: 6.5% to $136.31.

07

Which pays a better dividend — COST or WMT?

All stocks in this comparison pay dividends. Walmart Inc. (WMT) offers the highest yield at 0.7%, versus 0.5% for Costco Wholesale Corporation (COST).

08

Is COST or WMT better for a retirement portfolio?

For long-horizon retirement investors, Walmart Inc. (WMT) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0.53), 0.7% yield, +512.5% 10Y return). Both have compounded well over 10 years (WMT: +512.5%, COST: +616.5%), confirming both are viable long-term holds — but the lower-volatility option typically results in less emotional selling during corrections. Retirement portfolios generally favour predictability over maximum returns. Consult a financial advisor before making allocation decisions.

09

What are the main differences between COST and WMT?

Both stocks operate in the Consumer Defensive sector, making this a peer-level intra-sector comparison — the same macro tailwinds and headwinds will affect both. WMT pays a dividend while COST does not, making them suitable for different income and tax situations. These fundamental differences mean investors should not choose between them on a single metric — the "better stock" depends entirely on which of these characteristics aligns with your investment strategy.

Find Stocks Like These

Explore pre-built screens for each stock's profile, or build a custom screen to find stocks that beat both.

🏦
Stocks Like

COST

Stable Dividend Mega-Cap

  • Sector: Consumer Defensive
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Dividend Yield > 0.5%
Run This Screen
🏦
Stocks Like

WMT

Stable Dividend Mega-Cap

  • Sector: Consumer Defensive
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Gross Margin > 14%
Run This Screen
Custom Screen

Better Than Both

Find stocks that beat COST and WMT on the metrics you choose

Revenue Growth>
%
(COST: 8.3% · WMT: 5.8%)
Net Margin>
%
(COST: 3.0% · WMT: 3.3%)
P/E Ratio<
x
(COST: 55.5x · WMT: 46.9x)