W.W. Grainger, Inc. (GWW) vs Ubiquiti Inc. (UI)

A side-by-side comparison of W.W. Grainger, Inc. and Ubiquiti Inc. across valuation, profitability, dividends, and growth — built entirely from reported fundamentals, as of July 28, 2026. Differences are shown without an overall score or investment verdict.

Compare
Different business models: GWW is classified in Industrials; UI is classified in Technology. Margin, capital intensity, and valuation differences should be interpreted in that sector context.

Total returnGWW vs UI

growth of $100 · dividends reinvested · last 15y
GWW +981.6%UI +3282.1%UI compounded faster
02k4k6kStart $10020142017202020232026$1,082$3,382
GWW UI

GWW vs UI: by the numbers

  • GWW is the larger company ($66.05B vs $32.36B market cap).
  • UI trades at the lower trailing earnings multiple (34.68 vs 37.61 P/E), one valuation lens rather than an overall verdict.
  • UI converts more revenue to profit (30.43% vs 9.70% net margin).
  • UI grew revenue faster over the past five years (12.27% vs 9.12% CAGR).
  • GWW pays the higher dividend yield (0.66% vs 0.59%).

Metrics side by side

Valuation

MetricGWWUI
P/E ratio37.6134.68
Forward P/E30.6335.38
P/S ratio3.6110.56
P/B ratio16.8727.19
PEG ratio1.690.34
EV / EBITDA23.8228.78
FCF yield2.08%2.29%

Profitability

MetricGWWUI
Gross margin39.15%46.02%
Operating margin14.23%35.75%
Net margin9.70%30.43%
ROE45.34%78.37%
ROIC27.73%72.62%

Dividends

MetricGWWUI
Dividend yield0.66%0.59%
Payout ratio26.13%27.19%

Growth (annualized)

MetricGWWUI
Revenue CAGR (5Y)9.12%12.27%
EPS CAGR (5Y)22.25%15.17%
FCF CAGR (5Y)7.67%6.21%
Total return CAGR (5Y)26.59%13.32%

Frequently asked

Which has the lower trailing P/E, GWW or UI?
UI has the lower trailing P/E: GWW trades at 37.61 and UI at 34.68. P/E is one valuation measure and does not by itself establish which business is cheaper.
Which has grown faster, GWW or UI?
Over the past five years, UI grew revenue faster — GWW at a 9.12% CAGR versus UI at 12.27%.
Does GWW or UI pay a bigger dividend?
GWW yields 0.66% and UI yields 0.59% based on trailing dividends and the latest price.
Is GWW or UI more profitable?
UI runs the higher net margin — GWW at 9.70% versus UI at 30.43%.
How have GWW and UI total returns compared?
Over the past 10 years, GWW delivered 22.17% and UI delivered 29.42% annualized total return. Past performance doesn't predict future results.

Figures are sourced from reported fundamentals and the latest end-of-day price. This comparison is informational only and is not investment advice. Past performance does not predict future results. See our methodology. Compiled by TGMCharts Research · data verified July 28, 2026.