Comprehensive Stock Comparison

Compare Dollar General Corporation (DG) vs Costco Wholesale Corporation (COST) 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 DG's 5.0%
ValueDGLower P/E (24.0x vs 49.8x)
Quality / MarginsDG3.0% net margin vs COST's 3.0%
Stability / SafetyCOSTLower D/E ratio (28.0% vs 235.6%)
DividendsDG1.5% yield, 11-year raise streak, vs COST's 0.5%
Momentum (1Y)DG+113.8% vs COST's -3.1%
Efficiency (ROA)COST10.0% ROA vs DG's 4.0%, ROIC 34.5% vs 5.3%
Bottom line: DG 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

Defensive / Recession hedge

Business Model

What each company does and how it makes money

DGDollar General Corporation
Consumer Defensive

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.

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.

Revenue Breakdown by Segment

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

DGDollar General Corporation
FY 2024
Consumables
82.2%$33.4B
Seasonal
10.0%$4.1B
Home Products
5.1%$2.1B
Apparel
2.7%$1.1B
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

Financial Metrics Comparison

Side-by-side fundamentals across 2 stocks. BestLagging

Financial Scorecard

DG 4COST 2
Financial MetricsDG5/6 metrics
Valuation MetricsDG6/6 metrics
Profitability & EfficiencyCOST9/9 metrics
Total ReturnsCOST5/6 metrics
Risk & VolatilityDG2/2 metrics
Analyst OutlookDG2/2 metrics

DG leads in 4 of 6 categories (Financial Metrics, Valuation Metrics). COST leads in 2 (Profitability & Efficiency, Total Returns).

Financial Metrics (TTM)

COST is the larger business by revenue, generating $280.4B annually — 6.7x DG's $42.1B. Profitability is closely matched — net margins range from 3.0% (DG) to 3.0% (COST). On growth, COST holds the edge at +8.3% YoY revenue growth, suggesting stronger near-term business momentum.

MetricDGDollar General Co…COSTCostco Wholesale …
RevenueTrailing 12 months$42.1B$280.4B
EBITDAEarnings before interest/tax$2.9B$13.4B
Net IncomeAfter-tax profit$1.3B$8.3B
Free Cash FlowCash after capex$2.3B$9.0B
Gross MarginGross profit ÷ Revenue+30.4%+12.9%
Operating MarginEBIT ÷ Revenue+4.5%+3.8%
Net MarginNet income ÷ Revenue+3.0%+3.0%
FCF MarginFCF ÷ Revenue+5.6%+3.2%
Rev. Growth (YoY)Latest quarter vs prior year+4.6%+8.3%
EPS Growth (YoY)Latest quarter vs prior year+43.8%+11.4%
DG leads this category, winning 5 of 6 comparable metrics.

Valuation Metrics

At 30.6x trailing earnings, DG trades at a 45% valuation discount to COST's 55.5x P/E. On an enterprise value basis, DG's 19.0x EV/EBITDA is more attractive than COST's 34.5x.

MetricDGDollar General Co…COSTCostco Wholesale …
Market CapShares × price$34.4B$448.0B
Enterprise ValueMkt cap + debt − cash$50.9B$442.0B
Trailing P/EPrice ÷ TTM EPS30.58x55.51x
Forward P/EPrice ÷ next-FY EPS est.23.97x49.80x
PEG RatioP/E ÷ EPS growth rate3.68x
EV / EBITDAEnterprise value multiple18.95x34.51x
Price / SalesMarket cap ÷ Revenue0.85x1.63x
Price / BookPrice ÷ Book value/share4.64x15.42x
Price / FCFMarket cap ÷ FCF20.38x57.17x
DG leads this category, winning 6 of 6 comparable metrics.

Profitability & Efficiency

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

MetricDGDollar General Co…COSTCostco Wholesale …
ROE (TTM)Return on equity+15.6%+27.4%
ROA (TTM)Return on assets+4.0%+10.0%
ROICReturn on invested capital+5.3%+34.5%
ROCEReturn on capital employed+7.1%+27.9%
Piotroski ScoreFundamental quality 0–957
Debt / EquityFinancial leverage2.36x0.28x
Net DebtTotal debt minus cash$16.5B-$6.0B
Cash & Equiv.Liquid assets$933M$14.2B
Total DebtShort + long-term debt$17.5B$8.2B
Interest CoverageEBIT ÷ Interest expense7.75x72.26x
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 $8,669 for DG. Over the past 12 months, DG leads with a +113.8% total return vs COST's -3.1%. The 3-year compound annual growth rate (CAGR) favors COST at 29.0% vs DG's -8.9% — a key indicator of consistent wealth creation.

MetricDGDollar General Co…COSTCostco Wholesale …
YTD ReturnYear-to-date+14.6%+18.4%
1-Year ReturnPast 12 months+113.8%-3.1%
3-Year ReturnCumulative with dividends-24.5%+114.7%
5-Year ReturnCumulative with dividends-13.3%+215.4%
10-Year ReturnCumulative with dividends+133.2%+616.5%
CAGR (3Y)Annualised 3-year return-8.9%+29.0%
COST leads this category, winning 5 of 6 comparable metrics.

Risk & Volatility

DG is the less volatile stock with a -0.06 beta — it tends to amplify market swings less than COST's 0.44 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 COST's 94.7% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricDGDollar General Co…COSTCostco Wholesale …
Beta (5Y)Sensitivity to S&P 500-0.06x0.44x
52-Week HighHighest price in past year$158.23$1067.08
52-Week LowLowest price in past year$70.01$846.80
% of 52W HighCurrent price vs 52-week peak+98.8%+94.7%
RSI (14)Momentum oscillator 0–10062.353.4
Avg Volume (50D)Average daily shares traded2.5M2.1M
DG leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

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

MetricDGDollar General Co…COSTCostco Wholesale …
Analyst RatingConsensus buy/hold/sellBuyBuy
Price TargetConsensus 12-month target$143.17$1048.21
# AnalystsCovering analysts5057
Dividend YieldAnnual dividend ÷ price+1.5%+0.5%
Dividend StreakConsecutive years of raises110
Dividend / ShareAnnual DPS$2.36$4.91
Buyback YieldShare repurchases ÷ mkt cap0.0%+0.2%
DG 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
Dollar General Corp… (DG)10089.92-10.1%
Costco Wholesale Co… (COST)100313.24+213.2%

Costco Wholesale Co… (COST) returned +215% over 5 years vs Dollar General Corp… (DG)'s -13%. A $10,000 investment in COST 5 years ago would be worth $31,542 today (including dividends reinvested).

Chart 2Revenue Growth — 10 Years

Stock20162025Change
Dollar General Corp… (DG)$22.0B$40.6B+84.7%
Costco Wholesale Co… (COST)$118.7B$275.2B+131.8%

Costco Wholesale Corporation's revenue grew from $118.7B (2016) to $275.2B (2025) — a 9.8% CAGR.

Chart 3Net Margin Trend — 10 Years

Stock20162025Change
Dollar General Corp… (DG)5.7%2.8%-51.3%
Costco Wholesale Co… (COST)2.0%2.9%+48.7%

Costco Wholesale Corporation's net margin went from 2% (2016) to 3% (2025).

Chart 4P/E Ratio History — 9 Years

Stock20172025Change
Dollar General Corp… (DG)16.514.8-10.3%
Costco Wholesale Co… (COST)30.647.4+54.9%

Dollar General Corporation has traded in a 15x–24x P/E range over 8 years; current trailing P/E is ~31x. Costco Wholesale Corporation has traded in a 29x–55x P/E range over 9 years; current trailing P/E is ~56x.

Chart 5EPS Growth — 10 Years

Stock20162025Change
Dollar General Corp… (DG)4.435.11+15.3%
Costco Wholesale Co… (COST)5.3318.21+241.7%

Costco Wholesale Corporation's EPS grew from $5.33 (2016) to $18.21 (2025) — a 15% CAGR.

Chart 6Free Cash Flow — 5 Years

2021
$2B
$5B
2022
$424M
$4B
2023
$692M
$7B
2024
$2B
$7B
2025
$8B
Dollar General Corp… (DG)Costco Wholesale Co… (COST)

Dollar General Corporation generated $2B FCF in 2024 (-6% vs 2021). Costco Wholesale Corporation generated $8B FCF in 2025 (+46% vs 2021).

Loading custom metrics...

DG vs COST: Frequently Asked Questions

9 questions · data-driven answers · updated daily

01

Is DG or COST 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 Dollar General Corporation (DG) a "Buy" — based on 50 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 — DG or COST?

On trailing P/E, Dollar General Corporation (DG) is the cheapest at 30.6x versus Costco Wholesale Corporation at 55.5x. On forward P/E, Dollar General Corporation is actually cheaper at 24.0x.

03

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

Over the past 5 years, Costco Wholesale Corporation (COST) delivered a total return of +215.4%, compared to -13.3% for Dollar General Corporation (DG). 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 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.

04

Which is safer — DG or COST?

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

05

Which has better profit margins — DG or COST?

Costco Wholesale Corporation (COST) is the more profitable company, earning 2.9% net margin versus 2.8% for Dollar General Corporation — meaning it keeps 2.9% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: DG leads at 4.2% versus 3.8% for COST. 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.

06

Is DG or COST more undervalued right now?

On forward earnings alone, Dollar General Corporation (DG) trades at 24.0x forward P/E versus 49.8x for Costco Wholesale Corporation — 25.8x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for COST: 3.7% to $1048.21.

07

Which pays a better dividend — DG or COST?

All stocks in this comparison pay dividends. Dollar General Corporation (DG) offers the highest yield at 1.5%, versus 0.5% for Costco Wholesale Corporation (COST).

08

Is DG or COST 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%, 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 DG and COST?

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. DG 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

DG

Income & Dividend Stock

  • Sector: Consumer Defensive
  • Market Cap > $100B
  • Gross Margin > 18%
  • Dividend Yield > 0.6%
Run This Screen
🏦
Stocks Like

COST

Stable Dividend Mega-Cap

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

Better Than Both

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

Revenue Growth>
%
(DG: 4.6% · COST: 8.3%)
Net Margin>
%
(DG: 3.0% · COST: 3.0%)
P/E Ratio<
x
(DG: 30.6x · COST: 55.5x)