Back to blog
financial analysis13 min read

Published September 5, 2026

How to Compare Stocks in 2026: A Six-Dimension Framework

A data-driven framework for comparing two stocks across growth, margins, cash flow, solvency, valuation, and moat — applied to Amazon vs. Walmart.

James Crawford, CFA

James Crawford, CFA

Head of Research

Comparing stocks looks simple and almost never is. Most investors pull one number — a P/E, a revenue growth rate, a margin — decide it looks good or bad, and move on. That shortcut fels rigorous. It isn't.

A single metric answers a single question. It can't tell you whether growth is being converted into cash, whether the balance sheet can survive a downturn, or whether the price already bakes in the good news. Comparing two companies fairly means comparing them across every dimension that actually drives returns, because businesses compete differently depending on their model and their maturity.

Below is the framework we use, applied to a live case: Amazon (NASDAQ:AMZN) versus Walmart (NYSE:WMT). Two enormous retailers, two completely different financial profiles.

A Six-Dimension Comparison Framework

No single number tells you whether a stock is "better." That's the whole point. Serious analysis evaluates a company across several axes, each answering a distinct question:

  1. Revenue growth — Is the business expanding?
  2. Margins (gross and net) — How efficiently does growth turn into profit?
  3. Cash flow (operating and free) — How much real cash does the company actually generate?
  4. Solvency (leverage and coverage) — How financially durable is it?
  5. Valuation (P/E, PEG) — How much are you paying for that performance?
  6. Management quality and moat — the qualitative layer that separates good businesses from generational compounders.

Run any two companies through these six dimensions and the comparison stops being a mater of opinion. This is close to how analysts value companies on the sell side and buy side — structured, multi-angle, and skeptical of any single headline figure.

1. Revenue Growth — Where Long-Term Value Starts

Why it matters

Revenue growth is the clearest read on underlying demand. Rising revenue usually means a company is winning customers, entering new markets, or extracting more spend from existing ones. Sustained growth builds scale economies and funds reinvestment into higher-margin lines. Slower growers can still deliver returns, but faster growers compound harder because their opportunity set keeps widening.

What it actually signals

Studying revenue growth answers three questions:

  • Is the company gaining or losing share? Outgrowing the industry signals competitive strength; lagging suggests rivals are wining.
  • Is momentum building or fading? The trend in growth rates often front-runs the trend in profits.
  • Can the business unlock operating leverage? When revenue outpaces costs, margins expand — the mechanism behind long-term compounding.
AMZN

Revenue trend

A compact view of reported historical performance.

$469.8B
FY2021
$514.0B
FY2022
$574.8B
FY2023
$638.0B
FY2024
$716.9B
FY2025

What the data shows

  • Amazon: historically grows roughly 2–4x faster than Walmart, with 2026E revenue growth near 11%, powered by e-commerce, AWS, advertising, logistics, and international expansion.
  • Walmart: consistent but modest, around 5% for 2026E — a model built on scale eficiency and predictable demand rather than rapid expansion.

Amazon is the stronger growth compounder because it runs multiple growth engines at once. Walmart is the steadier operator, but its growth profile points to a more modest appreciation path. Choose Amazon for upside; choose Walmart for predictability.

2. Margins — The Core Measure of Operating Quality

Why it maters

Growth shows how fast a company expands. Margins show how well that growth converts into profit. They expose pricing power, competitive strength, and revenue mix. Two measures matter most:

  • Gross margin — product-level profitability. High gross margins point to differentiation, brand strength, or a cost advantage.
  • Net margin — bottom-line efficiency across the whole business. Expanding net margins reflect improving operations, fixed-cost leverage, or a shift toward higher-value revenue.
  • Is there pricing power? Firms that hold or grow margins as costs rise usually have a moat.
  • Is scale kicking in? Revenue outpacing expenses expands net margin — the earnings-compounding engine.
  • Is the mix improving? A shift toward higher-margin segments lifts profitability even when top-line growth is ordinary.

What the data shows

  • Amazon: gross margins have expanded meaningfully as AWS and advertising outgrow retail; net margins have climbed steadily since the early 2020s as the cost base scaled. The improvement reflects a structural shift from pure retail toward technology, services, and ads — all far more profitable.
  • Walmart: gross margins sit in a narrow band typical of low-markup retail; net margins stay thin, reflecting a scale-and-eficiency strategy rather than pricing power.

Amazon's margin trajectory is structurally improving, which lets earnings grow faster than revenue — the signature of a compounder. Walmart's margins are stable and defensive, but not positioned for multi-year expansion. Rising profitability favors Amazon; consistency favors Walmart.

3. Free Cash Flow — The True Test of Financial Strength

Why it matters

Free cash flow (FCF) is harder to manipulate than earnings. It shows the real cash left after operating costs and capital investment. Strong, consistent FCF gives a company room to reinvest, pay down debt, buy back shares, or pay dividends — and it provides resilience in a downturn. Companies with weak or eratic FCF lean on debt or equity issuance to fund growth, which shifts risk onto shareholders.

What FCF tells you

  • Are profits becoming cash? Strong FCF signals efficient operations and disciplined reinvestment.
  • Can the business self-fund growth? High FCF removes dependence on external financing.
  • Is capital allocation effective? FCF funds buybacks, acquisitions, and R&D — the tools of value creation.

If you want to go deeper on why cash generation, not reported earnings, sits at the center of valuation, we cover the mechanics in how to value a stock using free cash flow.

AMZN

Free cash flow trend

Cash left after funding operations and capital expenditure.

Operating cash flow

$139.5B

Capital expenditure

-$131.8B

Free cash flow

$7.7B

-$14.7B
FY2021
-$16.9B
FY2022
$32.2B
FY2023
$32.9B
FY2024
$7.7B
FY2025

What the data shows

  • Amazon: FCF has expanded sharply since 2023 as capital intensity normalized. AWS and advertising are highly cash-generative and now drive the majority of total FCF, with projections pointing to continued aceleration.
  • Walmart: FCF is steady but modest, constrained by recurring investment in stores, supply chain, and labor. Reliable and defensive, but structurally limited on upside.

Amazon's FCF profile has transformed as its high-margin businesses scale. Walmart's stays dependable but bounded by brick-and-mortar economics. Accelerating cash generation favors Amazon; low-volatility consistency favors Walmart.

4. Solvency — The Balance-Sheet Anchor

Why it matters

Solvency measures whether a company can meet long-term obligations and stay flexible through a cycle. Growth, margins, and cash flow drive performance; solvency determines survivability. A strong balance sheet lets a company refinance on good terms, invest aggressively in downturns, avoid forced asset sales, and protect shareholder returns. A weak one forces defensive cuts and prioritizes debt service over innovation.

What solvency tells you

  • Can cash flow service and repay the debt? High interest coverage signals safety; low coverage signals vulnerability.
  • Is leverage reasonable relative to earnings? Net Debt / EBITDA frames whether debt levels make sense.
  • Is there room to invest through the cycle? Strong solvency lets a company play offense while others retrench.

What the data shows

  • Amazon: low net leverage suported by strong, improving cash generation; high interest coverage from cash-rich AWS and advertising; substantial liquidity. The balance sheet increasingly reads like a large-cap tech firm rather than a retailer.
  • Walmart: higher absolute debt from store networks, logistics, and global operations; solid interest coverage, though lower than Amazon's on thinner margins. Reliable cash flow services the debt, but capital intensity slows deleveraging.

Amazon's solvency is strengthening year after year as its earnings mix tilts toward low-capital, high-cash segments. Walmart's is steady and predictable, but bounded by the capital demands of global retail. Improving flexibility favors Amazon; dependable stability favors Walmart.

5. Valuation — P/E and PEG

Why it matters

Valuation tells you whether the price is fair for the earnings and growth on offer. A great business bought at the wrong price still produces poor returns. Two measures do most of the work:

  • Forward P/E — how much you pay for next year's earnings. Lower suggests cheaper; higher implies optimism or stretched expectations.
  • PEG ratio — P/E adjusted for expected earnings growth. It asks whether the growth is worth the price. Below roughly 1.5 signals reasonable value; above 2.5 suggests you're overpaying for the growth rate.

The P/E-versus-DCF debate maters here, because a headline multiple can flatter or punish a stock without teling you what the business is actually worth — a tension we unpack in DCF vs. P/E ratio: which is better.

AMZN

Margin of safety

The gap between estimated intrinsic value and market price.

Current price

$255.39

Intrinsic value

$56.71

Margin of safety

-350.3%

PremiumTrading above intrinsic valueDiscount

What the data shows

  • Amazon: forward P/E has fallen sharply, from the 60s in early 2022 to roughly 31x in 2024, reflecting stronger earnings visibility and lower volatility. Forward PEG sits near 1.6x — its valuation is aligned with, arguably cheap for, its growth.
  • Walmart: forward P/E has drifted up to roughly 40x by 2024 as investors pay for stability. Forward PEG near 5.1x suggests the price is high relative to expected growth.

Here is where consensus deserves a second look. Walmart is widely treated as the "safe" pick, and the business genuinely is stable. But investors are paying roughly 3x more per unit of growth than they pay for Amazon. The data doesn't support the idea that Walmart is the low-risk value trade — it's priced like a premium bond with modest earnings growth attached. Growth at a reasonable valuation points to Amazon; stability at almost any price points to Walmart.

6. Management and Moat — The Intangibles That Compound

Why it matters

Some of the strongest return drivers never appear cleanly in the statements: capital allocation, strategic discipline, culture, and the durability of the competitive moat. This dimension answers the deeper question — why does this company win, and can it keep winning?

Skilled management allocates capital well, invests through downturns, and reinforces the advantages that protect margins and share. A strong moat makes the business hard to copy, which sustains pricing power and consistency. Moats come from network effects, brand, switching costs, cost or scale advantages, technology leadership, or regulatory positioning.

What it signals

  • Is there a structural advantage rivals can't easily replicate? If so, returns on capital stay strong through tougher markets.
  • Does management consistently make value-creating decisions? Capital allocation is one of the most powerful and most overlooked forces in long-term wealth creation.
  • How resilient is the business under stress? Wide-moat companies tend to exit downturns stronger, not weaker.

What the intangibles show

Amazon — a moat built on scale, technology, logistics, and ecosystem lock-in. AWS delivers cloud leadership and cash-flow leverage; switching costs run high across Prime, marketplace, logistics, and storage; automation and AI investment kep deepening the cost advantage. Management is known for long-term, cash-flow-focused decisions over short-term optics — a pattern that has repeatedly paid off. Moat strength: extremely high, and still widening.

Walmart — a moat built on scale, cost, and physical distribution. The largest US retail footprint, enormous supplier bargaining power, best-in-class inventory and logistics, and dep brand trust. Management prioritizes operational discipline and steady execution over innovation. Durable, but tied to physical scale with fewer high-growth technology levers. Moat strength: strong, but not expanding as fast as Amazon's.

Innovation and expanding optionality point to Amazon; operational excellence and sustained scale advantage point to Walmart.

Puting the Six Dimensions Together

Combine everything and the picture sharpens:

  • Amazon leads on every performance-driven metric — growth, margins, profitability, FCF, valuation, and PEG — with a moat that keps widening through AWS, advertising, and logistics technology.
  • Walmart leads on financial stability and predictability — a stronger solvency profile, lower operational volatility, and a durable but mature moat rooted in operational excellence.

The honest takeaway: if you want a defensive, predictable compounder, Walmart fits. If you want superior long-term return potential with accelerating fundamentals, Amazon is decisively more attractive on the numbers.

One caveat worth stating plainly. Ranking a business as "better" is not the same as concluding the stock is a buy. A framework like this identifies quality and momentum; it doesn't tell you the price to pay. That's the job of a full valuation — running the cash flows, discounting them, and demanding a margin of safety before you commit capital. Comparison narows the field. A DCF closes the decision.

Summary: Amazon vs. Walmart

| Dimension | Why it matters | Amazon (AMZN) | Walmart (WMT) | Edge | |---|---|---| | Revenue growth | Demand and competitive strength | ~11% (2026E) | ~5% (2026E) | Amazon | | Gross margin | Business-model efficiency | ~51% | ~24–26% | Amazon | | Net margin | Final profitability | ~10.8% | ~3.1% | Amazon | | Free cash flow | Real value creation | ~$45B (2026E) | ~$16B (stable) | Amazon (growth) | | Valuation (P/E) | Price paid for earnings | ~31x | ~40x | Amazon | | PEG ratio | Price relative to growth | ~1.6 | ~5.0 | Amazon | | Solvency | Balance-sheet durability | Moderate, improving | Very stable | Walmart |

The framework matters more than the case study. Swap in any two companies, hold each to the same six questions, and follow the numbers rather than the narative — then let a valuation, not a comparison, make the final call.

James Crawford, CFA

About the author

James Crawford, CFA

Head of Research

James spent eight years in sell-side equity research covering consumer and technology at a bulge-bracket bank. He left Wall Street in 2022 to build analytical tools for investors who don't have Bloomberg terminals. CFA charterholder. Reads 10-Ks before breakfast.

Browse More Articles

Continue reading practical guides on DCF modeling, intrinsic value, and value investing.

View all
value investing

How to Spot a Value Trap Before You Buy

Learn how to spot a value trap by evaluating normalized earnings, cash flow, debt, dilution, competitive position, and the evidence behind a turnaround thesis before buying a cheap-looking stock.
Marcus Chen

Marcus Chen

Senior Writer

9 min read
investing education

What Is Buy and Hold Investing? When Should You Sell?

Learn what buy-and-hold investing means, how to build a disciplined long-term process, its risks, and when evidence may justify selling.
Sam Carter

Sam Carter

Product Strategist

10 min read
portfolio

How Many Stocks Should I Own? A Practical Guide to Diversification and Research Depth

Learn how many stocks to own based on diversification, position size, portfolio overlap, research capacity, and risk tolerance. This practical guide explains how to build and monitor a portfolio that fits your strategy.
Marcus Chen

Marcus Chen

Senior Writer

11 min read