Comprehensive Stock Comparison
Compare Walmart Inc. (WMT) vs Dollar General Corporation (DG) Stock
Analyze side-by-side fundamentals, valuation, growth, and profitability to decide which stock is the better buy.
Selected Stocks
Add up to 10 tickers. Use presets or search to get started.
Quick Verdict
| Category | Winner | Why |
|---|---|---|
| Growth | DG | 5.0% revenue growth vs WMT's 4.7% |
| Value | DG | Lower P/E (24.0x vs 43.8x) |
| Quality / Margins | WMT | 3.3% net margin vs DG's 3.0% |
| Stability / Safety | WMT | Lower D/E ratio (67.2% vs 235.6%) |
| Dividends | DG | 1.5% yield, 11-year raise streak, vs WMT's 0.7% |
| Momentum (1Y) | DG | +113.8% vs WMT's +30.7% |
| Efficiency (ROA) | WMT | 7.9% ROA vs DG's 4.0%, ROIC 14.7% vs 5.3% |
Who Each Stock Is For
Income & stability
Growth exposure
Long-term compounding (10Y)
Sleep-well-at-night portfolio
Defensive / Recession hedge
Business Model
What each company does and how it makes money
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.
Dollar General is a discount retailer operating thousands of small-format stores primarily in rural and suburban communities across the United States. It generates revenue primarily from consumable goods — including food, household essentials, and health/beauty products — which represent about 80% of sales, with the remainder from seasonal items and home products. The company's competitive advantage lies in its extensive rural footprint — often being the only convenient retailer in underserved communities — and its disciplined low-cost operating model that keeps prices consistently below traditional retailers.
Revenue Breakdown by Segment
How each company's revenue is distributed across its business units
Financial Metrics Comparison
Side-by-side fundamentals across 2 stocks. BestLagging
Financial Scorecard
DG leads in 3 of 6 categories (Financial Metrics, Valuation Metrics). WMT leads in 2 (Profitability & Efficiency, Total Returns). 1 tied.
Financial Metrics (TTM)
WMT is the larger business by revenue, generating $703.1B annually — 16.7x DG's $42.1B. Profitability is closely matched — net margins range from 3.3% (WMT) to 3.0% (DG).
| Metric | WMTWalmart Inc. | DGDollar General Co… |
|---|---|---|
| RevenueTrailing 12 months | $703.1B | $42.1B |
| EBITDAEarnings before interest/tax | $42.8B | $2.9B |
| Net IncomeAfter-tax profit | $22.9B | $1.3B |
| Free Cash FlowCash after capex | $15.3B | $2.3B |
| Gross MarginGross profit ÷ Revenue | +24.9% | +30.4% |
| Operating MarginEBIT ÷ Revenue | +4.1% | +4.5% |
| Net MarginNet income ÷ Revenue | +3.3% | +3.0% |
| FCF MarginFCF ÷ Revenue | +2.2% | +5.6% |
| Rev. Growth (YoY)Latest quarter vs prior year | +5.8% | +4.6% |
| EPS Growth (YoY)Latest quarter vs prior year | +35.1% | +43.8% |
Valuation Metrics
At 30.6x trailing earnings, DG trades at a 35% valuation discount to WMT's 46.9x P/E. On an enterprise value basis, DG's 19.0x EV/EBITDA is more attractive than WMT's 24.4x.
| Metric | WMTWalmart Inc. | DGDollar General Co… |
|---|---|---|
| Market CapShares × price | $1.02T | $34.4B |
| Enterprise ValueMkt cap + debt − cash | $1.08T | $50.9B |
| Trailing P/EPrice ÷ TTM EPS | 46.87x | 30.58x |
| Forward P/EPrice ÷ next-FY EPS est. | 43.76x | 23.97x |
| PEG RatioP/E ÷ EPS growth rate | 4.26x | — |
| EV / EBITDAEnterprise value multiple | 24.44x | 18.95x |
| Price / SalesMarket cap ÷ Revenue | 1.43x | 0.85x |
| Price / BookPrice ÷ Book value/share | 10.27x | 4.64x |
| Price / FCFMarket cap ÷ FCF | 24.53x | 20.38x |
Profitability & Efficiency
WMT delivers a 22.3% return on equity — every $100 of shareholder capital generates $22 in annual profit, vs $16 for DG. WMT carries lower financial leverage with a 0.67x debt-to-equity ratio, signaling a more conservative balance sheet compared to DG's 2.36x. On the Piotroski fundamental quality scale (0–9), WMT scores 6/9 vs DG's 5/9, reflecting solid financial health.
| Metric | WMTWalmart Inc. | DGDollar General Co… |
|---|---|---|
| ROE (TTM)Return on equity | +22.3% | +15.6% |
| ROA (TTM)Return on assets | +7.9% | +4.0% |
| ROICReturn on invested capital | +14.7% | +5.3% |
| ROCEReturn on capital employed | +17.5% | +7.1% |
| Piotroski ScoreFundamental quality 0–9 | 6 | 5 |
| Debt / EquityFinancial leverage | 0.67x | 2.36x |
| Net DebtTotal debt minus cash | $56.4B | $16.5B |
| Cash & Equiv.Liquid assets | $10.7B | $933M |
| Total DebtShort + long-term debt | $67.1B | $17.5B |
| Interest CoverageEBIT ÷ Interest expense | 11.85x | 7.75x |
Total Returns (with DRIP)
A $10,000 investment in WMT five years ago would be worth $30,135 today (with dividends reinvested), compared to $8,669 for DG. Over the past 12 months, DG leads with a +113.8% total return vs WMT's +30.7%. The 3-year compound annual growth rate (CAGR) favors WMT at 40.2% vs DG's -8.9% — a key indicator of consistent wealth creation.
| Metric | WMTWalmart Inc. | DGDollar General Co… |
|---|---|---|
| YTD ReturnYear-to-date | +13.5% | +14.6% |
| 1-Year ReturnPast 12 months | +30.7% | +113.8% |
| 3-Year ReturnCumulative with dividends | +175.4% | -24.5% |
| 5-Year ReturnCumulative with dividends | +201.3% | -13.3% |
| 10-Year ReturnCumulative with dividends | +512.5% | +133.2% |
| CAGR (3Y)Annualised 3-year return | +40.2% | -8.9% |
Risk & Volatility
DG is the less volatile stock with a -0.06 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. DG currently trades 98.8% from its 52-week high vs WMT's 95.0% drawdown — a narrower gap to the peak suggests stronger recent price momentum.
| Metric | WMTWalmart Inc. | DGDollar General Co… |
|---|---|---|
| Beta (5Y)Sensitivity to S&P 500 | 0.53x | -0.06x |
| 52-Week HighHighest price in past year | $134.69 | $158.23 |
| 52-Week LowLowest price in past year | $79.81 | $70.01 |
| % of 52W HighCurrent price vs 52-week peak | +95.0% | +98.8% |
| RSI (14)Momentum oscillator 0–100 | 49.9 | 62.3 |
| Avg Volume (50D)Average daily shares traded | 29.5M | 2.5M |
Analyst Outlook
Wall Street rates WMT as "Buy" and DG as "Buy". Consensus price targets imply 6.5% upside for WMT (target: $136) vs -8.4% for DG (target: $143). For income investors, DG offers the higher dividend yield at 1.51% vs WMT's 0.73%.
| Metric | WMTWalmart Inc. | DGDollar General Co… |
|---|---|---|
| Analyst RatingConsensus buy/hold/sell | Buy | Buy |
| Price TargetConsensus 12-month target | $136.31 | $143.17 |
| # AnalystsCovering analysts | 64 | 50 |
| Dividend YieldAnnual dividend ÷ price | +0.7% | +1.5% |
| Dividend StreakConsecutive years of raises | 37 | 11 |
| Dividend / ShareAnnual DPS | $0.94 | $2.36 |
| Buyback YieldShare repurchases ÷ mkt cap | +0.8% | 0.0% |
Historical Charts
Charts are rendered on first load. Hover for details.
Chart 1Total Return — 5 Years (Rebased to 100)
| Stock | Mar 20 | Feb 26 | Change |
|---|---|---|---|
| Walmart Inc. (WMT) | 100 | 321.15 | +221.1% |
| Dollar General Corp… (DG) | 100 | 89.92 | -10.1% |
Walmart Inc. (WMT) returned +201% over 5 years vs Dollar General Corp… (DG)'s -13%. A $10,000 investment in WMT 5 years ago would be worth $30,135 today (including dividends reinvested).
Chart 2Revenue Growth — 10 Years
| Stock | 2017 | 2026 | Change |
|---|---|---|---|
| Walmart Inc. (WMT) | $485.9B | $713.2B | +46.8% |
| Dollar General Corp… (DG) | $23.5B | $40.6B | +73.0% |
Walmart Inc.'s revenue grew from $485.9B (2017) to $713.2B (2026) — a 4.4% CAGR.
Chart 3Net Margin Trend — 10 Years
| Stock | 2017 | 2026 | Change |
|---|---|---|---|
| Walmart Inc. (WMT) | 2.8% | 3.1% | +9.3% |
| Dollar General Corp… (DG) | 6.6% | 2.8% | -57.7% |
Walmart Inc.'s net margin went from 3% (2017) to 3% (2026).
Chart 4P/E Ratio History — 10 Years
| Stock | 2017 | 2026 | Change |
|---|---|---|---|
| Walmart Inc. (WMT) | 22.5 | 46.9 | +108.4% |
| Dollar General Corp… (DG) | 16.5 | 14.8 | -10.3% |
Walmart Inc. has traded in a 23x–53x P/E range over 10 years; current trailing P/E is ~47x. Dollar General Corporation has traded in a 15x–24x P/E range over 8 years; current trailing P/E is ~31x.
Chart 5EPS Growth — 10 Years
| Stock | 2017 | 2026 | Change |
|---|---|---|---|
| Walmart Inc. (WMT) | 1.46 | 2.73 | +87.0% |
| Dollar General Corp… (DG) | 5.63 | 5.11 | -9.2% |
Walmart Inc.'s EPS grew from $1.46 (2017) to $2.73 (2026) — a 7% CAGR.
Chart 6Free Cash Flow — 5 Years
Walmart Inc. generated $42B FCF in 2026 (+61% vs 2021). Dollar General Corporation generated $2B FCF in 2024 (-6% vs 2021).
WMT vs DG: Frequently Asked Questions
9 questions · data-driven answers · updated daily
01Is WMT or DG a better buy right now?
Dollar General Corporation (DG) offers the better valuation at 30.6x trailing P/E (24.0x forward), making it the more compelling value choice. Analysts rate Walmart Inc. (WMT) a "Buy" — based on 64 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.
02Which has the better valuation — WMT or DG?
On trailing P/E, Dollar General Corporation (DG) is the cheapest at 30.6x versus Walmart Inc. at 46.9x. On forward P/E, Dollar General Corporation is actually cheaper at 24.0x.
03Which is the better long-term investment — WMT or DG?
Over the past 5 years, Walmart Inc. (WMT) delivered a total return of +201.3%, compared to -13.3% for Dollar General Corporation (DG). A $10,000 investment in WMT five years ago would be worth approximately $30K today (assuming dividends reinvested). Over 10 years, the gap is even starker: WMT returned +512.5% versus DG's +133.2%. Past returns do not guarantee future results, and the stock with the higher historical return may already have its best growth priced in.
04Which is safer — WMT or DG?
By beta (market sensitivity over 5 years), Dollar General Corporation (DG) is the lower-risk stock at -0.06β versus Walmart Inc.'s 0.53β — meaning WMT is approximately -1020% more volatile than DG relative to the S&P 500. On balance sheet safety, Walmart Inc. (WMT) carries a lower debt/equity ratio of 67% versus 2% for Dollar General Corporation — giving it more financial flexibility in a downturn.
05Which has better profit margins — WMT or DG?
Walmart Inc. (WMT) is the more profitable company, earning 3.1% net margin versus 2.8% for Dollar General Corporation — meaning it keeps 3.1% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: DG leads at 4.2% versus 4.2% for WMT. At the gross margin level — before operating expenses — DG leads at 29.6%, 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.
06Is WMT or DG more undervalued right now?
On forward earnings alone, Dollar General Corporation (DG) trades at 24.0x forward P/E versus 43.8x for Walmart Inc. — 19.8x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for WMT: 6.5% to $136.31.
07Which pays a better dividend — WMT or DG?
All stocks in this comparison pay dividends. Dollar General Corporation (DG) offers the highest yield at 1.5%, versus 0.7% for Walmart Inc. (WMT).
08Is WMT or DG better for a retirement portfolio?
For long-horizon retirement investors, Dollar General Corporation (DG) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β -0.06), 1.5% yield, +133.2% 10Y return). Both have compounded well over 10 years (DG: +133.2%, WMT: +512.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.
09What are the main differences between WMT and DG?
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. 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.