DG vs WMT

Dollar General and Walmart, both Consumer Defensive

Walmart is the larger company at $952B against $29B. On trailing earnings DG is the cheaper of the two at a P/E of 17.2 against 43.3, a gap that is only a bargain if the two are growing at similar rates. Over the past year DG returned +29% against +13% for WMT. The RyuScore puts DG ahead, 69 against 64 out of 100.

Dollar General and Walmart compared on valuation, return and the RyuScore
FigureDGWMT
Last close$133$120
Market cap$29B$952B
Trailing P/Elower is cheaper for the same earnings, not automatically better17.243.3
Dividend yield1.8%0.8%
1-year return+29%+13%
5-year return-32%+174%
RyuScoresector-relative, 1–1069/10064/100

Figures from SEC filings and end-of-day closes. Highlighting marks the higher or lower number, which is not the same as the better investment, a low P/E can be a warning and a high one can be deserved.

Dollar General

Revenue of $11B in Q2 2026, net income $550M. Its largest reported line is Consumables, 82% of the disclosed total.

Walmart

Revenue of $188B in Q2 2027, net income $6.4B. Its largest reported line is Grocery, 57% of the disclosed total.

Open these two in the interactive comparison to add more names, change the period or see the correlation.