Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

CDW vs MSFT

Revenue, margins, valuation, and 5-year total return — side by side.

Live fundamentals10-year financials5-year price chart
CDW
CDW Corporation

Information Technology Services

TechnologyNASDAQ • US
Market Cap$14.06B
5Y Perf.-1.7%
MSFT
Microsoft Corporation

Software - Infrastructure

TechnologyNASDAQ • US
Market Cap$3.07T
5Y Perf.+125.8%

CDW vs MSFT — Key Financials

Market cap, revenue, margins, and valuation side-by-side.

Company Snapshot
CDW logoCDW
MSFT logoMSFT
IndustryInformation Technology ServicesSoftware - Infrastructure
Market Cap$14.06B$3.07T
Revenue (TTM)$22.90B$318.27B
Net Income (TTM)$1.08B$125.22B
Gross Margin21.6%68.3%
Operating Margin7.3%46.8%
Forward P/E10.4x24.9x
Total Debt$6.33B$112.18B
Cash & Equiv.$619M$30.24B

CDW vs MSFTLong-Term Stock Performance

Price return indexed to 100 at period start. Dividends excluded.

CDW
MSFT
StockMay 20May 26Return
CDW Corporation (CDW)10098.3-1.7%
Microsoft Corporati… (MSFT)100225.8+125.8%

Price return only. Dividends and distributions are not included.

Quick Verdict: CDW vs MSFT

Each card shows where this stock fits in a portfolio — not just who wins on paper.

Bottom line: MSFT leads in 5 of 7 categories, making it the strongest pick for growth and revenue expansion and profitability and margin quality. CDW Corporation is the stronger pick specifically for valuation and capital efficiency and dividend income and shareholder returns. As sector peers, any of these can serve as alternatives in the same allocation.
CDW
CDW Corporation
The Value Pick

CDW is the clearest fit if your priority is valuation efficiency.

  • PEG 1.26 vs MSFT's 1.32
  • Lower P/E (10.4x vs 24.9x), PEG 1.26 vs 1.32
  • 2.3% yield, 12-year raise streak, vs MSFT's 0.8%
Best for: valuation efficiency
MSFT
Microsoft Corporation
The Income Pick

MSFT carries the broadest edge in this set and is the clearest fit for income & stability and growth exposure.

  • Dividend streak 19 yrs, beta 0.89, yield 0.8%
  • Rev growth 14.9%, EPS growth 15.6%, 3Y rev CAGR 12.4%
  • 7.7% 10Y total return vs CDW's 210.0%
Best for: income & stability and growth exposure
See the full category breakdown
CategoryWinnerWhy
GrowthMSFT logoMSFT14.9% revenue growth vs CDW's 6.8%
ValueCDW logoCDWLower P/E (10.4x vs 24.9x), PEG 1.26 vs 1.32
Quality / MarginsMSFT logoMSFT39.3% margin vs CDW's 4.7%
Stability / SafetyMSFT logoMSFTBeta 0.89 vs CDW's 1.15, lower leverage
DividendsCDW logoCDW2.3% yield, 12-year raise streak, vs MSFT's 0.8%
Momentum (1Y)MSFT logoMSFT-3.7% vs CDW's -32.0%
Efficiency (ROA)MSFT logoMSFT19.2% ROA vs CDW's 6.8%, ROIC 24.9% vs 15.4%

CDW vs MSFT — Revenue Breakdown by Segment

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

CDWCDW Corporation
FY 2025
Total Hardware
71.7%$16.1B
Software Products
18.7%$4.2B
Services
9.1%$2.0B
Other Segments
0.5%$115M
MSFTMicrosoft Corporation
FY 2025
Server Products And Cloud Services
34.9%$98.4B
Microsoft Three Six Five Commercial Products And Cloud Services
31.2%$87.8B
Gaming
8.3%$23.5B
Linked In Corporation
6.3%$17.8B
Windows
6.1%$17.3B
Search Advertising
4.9%$13.9B
Dynamics Products And Cloud Services
2.8%$7.8B
Other (3)
5.4%$15.2B

CDW vs MSFT — Financial Metrics

Side-by-side numbers across 2 stocks — who leads on profitability, valuation, growth, and risk.

BEST OVERALLMSFTLAGGINGCDW

Income & Cash Flow (Last 12 Months)

MSFT leads this category, winning 6 of 6 comparable metrics.

MSFT is the larger business by revenue, generating $318.3B annually — 13.9x CDW's $22.9B. MSFT is the more profitable business, keeping 39.3% of every revenue dollar as net income compared to CDW's 4.7%. On growth, MSFT holds the edge at +18.3% YoY revenue growth, suggesting stronger near-term business momentum.

MetricCDW logoCDWCDW CorporationMSFT logoMSFTMicrosoft Corpora…
RevenueTrailing 12 months$22.9B$318.3B
EBITDAEarnings before interest/tax$1.9B$192.6B
Net IncomeAfter-tax profit$1.1B$125.2B
Free Cash FlowCash after capex$1.1B$72.9B
Gross MarginGross profit ÷ Revenue+21.6%+68.3%
Operating MarginEBIT ÷ Revenue+7.3%+46.8%
Net MarginNet income ÷ Revenue+4.7%+39.3%
FCF MarginFCF ÷ Revenue+4.7%+22.9%
Rev. Growth (YoY)Latest quarter vs prior year+9.2%+18.3%
EPS Growth (YoY)Latest quarter vs prior year+7.7%+23.4%
MSFT leads this category, winning 6 of 6 comparable metrics.

Valuation Metrics

CDW leads this category, winning 6 of 7 comparable metrics.

At 13.5x trailing earnings, CDW trades at a 56% valuation discount to MSFT's 30.3x P/E. Adjusting for growth (PEG ratio), MSFT offers better value at 1.61x vs CDW's 1.65x — a lower PEG means you pay less per unit of expected earnings growth.

MetricCDW logoCDWCDW CorporationMSFT logoMSFTMicrosoft Corpora…
Market CapShares × price$14.1B$3.07T
Enterprise ValueMkt cap + debt − cash$19.8B$3.16T
Trailing P/EPrice ÷ TTM EPS13.49x30.34x
Forward P/EPrice ÷ next-FY EPS est.10.36x24.91x
PEG RatioP/E ÷ EPS growth rate1.65x1.61x
EV / EBITDAEnterprise value multiple10.13x19.40x
Price / SalesMarket cap ÷ Revenue0.63x10.91x
Price / BookPrice ÷ Book value/share5.53x8.99x
Price / FCFMarket cap ÷ FCF12.92x42.93x
CDW leads this category, winning 6 of 7 comparable metrics.

Profitability & Efficiency

MSFT leads this category, winning 6 of 9 comparable metrics.

CDW delivers a 42.4% return on equity — every $100 of shareholder capital generates $42 in annual profit, vs $33 for MSFT. MSFT carries lower financial leverage with a 0.33x debt-to-equity ratio, signaling a more conservative balance sheet compared to CDW's 2.43x. On the Piotroski fundamental quality scale (0–9), MSFT scores 6/9 vs CDW's 5/9, reflecting solid financial health.

MetricCDW logoCDWCDW CorporationMSFT logoMSFTMicrosoft Corpora…
ROE (TTM)Return on equity+42.4%+33.1%
ROA (TTM)Return on assets+6.8%+19.2%
ROICReturn on invested capital+15.4%+24.9%
ROCEReturn on capital employed+18.4%+29.7%
Piotroski ScoreFundamental quality 0–956
Debt / EquityFinancial leverage2.43x0.33x
Net DebtTotal debt minus cash$5.7B$81.9B
Cash & Equiv.Liquid assets$619M$30.2B
Total DebtShort + long-term debt$6.3B$112.2B
Interest CoverageEBIT ÷ Interest expense11.25x55.65x
MSFT leads this category, winning 6 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

MSFT leads this category, winning 6 of 6 comparable metrics.

A $10,000 investment in MSFT five years ago would be worth $17,152 today (with dividends reinvested), compared to $6,976 for CDW. Over the past 12 months, MSFT leads with a -3.7% total return vs CDW's -32.0%. The 3-year compound annual growth rate (CAGR) favors MSFT at 11.1% vs CDW's -11.2% — a key indicator of consistent wealth creation.

MetricCDW logoCDWCDW CorporationMSFT logoMSFTMicrosoft Corpora…
YTD ReturnYear-to-date-17.7%-12.3%
1-Year ReturnPast 12 months-32.0%-3.7%
3-Year ReturnCumulative with dividends-29.9%+37.2%
5-Year ReturnCumulative with dividends-30.2%+71.5%
10-Year ReturnCumulative with dividends+210.0%+768.1%
CAGR (3Y)Annualised 3-year return-11.2%+11.1%
MSFT leads this category, winning 6 of 6 comparable metrics.

Risk & Volatility

MSFT leads this category, winning 2 of 2 comparable metrics.

MSFT is the less volatile stock with a 0.89 beta — it tends to amplify market swings less than CDW's 1.15 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. MSFT currently trades 74.5% from its 52-week high vs CDW's 56.7% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricCDW logoCDWCDW CorporationMSFT logoMSFTMicrosoft Corpora…
Beta (5Y)Sensitivity to S&P 5001.15x0.89x
52-Week HighHighest price in past year$192.30$555.45
52-Week LowLowest price in past year$106.00$356.28
% of 52W HighCurrent price vs 52-week peak+56.7%+74.5%
RSI (14)Momentum oscillator 0–10060.452.6
Avg Volume (50D)Average daily shares traded1.6M32.8M
MSFT leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

Evenly matched — CDW and MSFT each lead in 1 of 2 comparable metrics.

Wall Street rates CDW as "Buy" and MSFT as "Buy". Consensus price targets imply 49.0% upside for CDW (target: $162) vs 33.3% for MSFT (target: $552). For income investors, CDW offers the higher dividend yield at 2.28% vs MSFT's 0.78%.

MetricCDW logoCDWCDW CorporationMSFT logoMSFTMicrosoft Corpora…
Analyst RatingConsensus buy/hold/sellBuyBuy
Price TargetConsensus 12-month target$162.40$551.75
# AnalystsCovering analysts1881
Dividend YieldAnnual dividend ÷ price+2.3%+0.8%
Dividend StreakConsecutive years of raises1219
Dividend / ShareAnnual DPS$2.49$3.23
Buyback YieldShare repurchases ÷ mkt cap+4.6%+0.6%
Evenly matched — CDW and MSFT each lead in 1 of 2 comparable metrics.
Key Takeaway

MSFT leads in 4 of 6 categories (Income & Cash Flow, Profitability & Efficiency). CDW leads in 1 (Valuation Metrics). 1 tied.

Best OverallMicrosoft Corporation (MSFT)Leads 4 of 6 categories
Loading custom metrics...

CDW vs MSFT: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is CDW or MSFT a better buy right now?

For growth investors, Microsoft Corporation (MSFT) is the stronger pick with 14.

9% revenue growth year-over-year, versus 6. 8% for CDW Corporation (CDW). CDW Corporation (CDW) offers the better valuation at 13. 5x trailing P/E (10. 4x forward), making it the more compelling value choice. Analysts rate CDW Corporation (CDW) a "Buy" — based on 18 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 — CDW or MSFT?

On trailing P/E, CDW Corporation (CDW) is the cheapest at 13.

5x versus Microsoft Corporation at 30. 3x. On forward P/E, CDW Corporation is actually cheaper at 10. 4x. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: CDW Corporation wins at 1. 26x versus Microsoft Corporation's 1. 32x — a reasonable growth-adjusted valuation.

03

Which is the better long-term investment — CDW or MSFT?

Over the past 5 years, Microsoft Corporation (MSFT) delivered a total return of +71.

5%, compared to -30. 2% for CDW Corporation (CDW). Over 10 years, the gap is even starker: MSFT returned +768. 1% versus CDW's +210. 0%. 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 — CDW or MSFT?

By beta (market sensitivity over 5 years), Microsoft Corporation (MSFT) is the lower-risk stock at 0.

89β versus CDW Corporation's 1. 15β — meaning CDW is approximately 30% more volatile than MSFT relative to the S&P 500. On balance sheet safety, Microsoft Corporation (MSFT) carries a lower debt/equity ratio of 33% versus 2% for CDW Corporation — giving it more financial flexibility in a downturn.

05

Which is growing faster — CDW or MSFT?

By revenue growth (latest reported year), Microsoft Corporation (MSFT) is pulling ahead at 14.

9% versus 6. 8% for CDW Corporation (CDW). On earnings-per-share growth, the picture is similar: Microsoft Corporation grew EPS 15. 6% year-over-year, compared to 1. 4% for CDW Corporation. Over a 3-year CAGR, MSFT leads at 12. 4% annualised revenue growth. Higher growth typically commands a higher valuation multiple — check whether the premium P/E or P/S is justified by the growth rate using the PEG ratio.

06

Which has better profit margins — CDW or MSFT?

Microsoft Corporation (MSFT) is the more profitable company, earning 36.

1% net margin versus 4. 8% for CDW Corporation — meaning it keeps 36. 1% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: MSFT leads at 45. 6% versus 7. 4% for CDW. At the gross margin level — before operating expenses — MSFT leads at 68. 8%, 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.

07

Is CDW or MSFT more undervalued right now?

The PEG ratio (forward P/E divided by expected earnings growth rate) is the most precise measure of undervaluation relative to growth potential.

By this metric, CDW Corporation (CDW) is the more undervalued stock at a PEG of 1. 26x versus Microsoft Corporation's 1. 32x. A PEG below 1. 5 suggests fair-to-attractive pricing relative to expected growth. On forward earnings alone, CDW Corporation (CDW) trades at 10. 4x forward P/E versus 24. 9x for Microsoft Corporation — 14. 6x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for CDW: 49. 0% to $162. 40.

08

Which pays a better dividend — CDW or MSFT?

All stocks in this comparison pay dividends.

CDW Corporation (CDW) offers the highest yield at 2. 3%, versus 0. 8% for Microsoft Corporation (MSFT).

09

Is CDW or MSFT better for a retirement portfolio?

For long-horizon retirement investors, Microsoft Corporation (MSFT) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0.

89), 0. 8% yield, +768. 1% 10Y return). Both have compounded well over 10 years (MSFT: +768. 1%, CDW: +210. 0%), 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.

10

What are the main differences between CDW and MSFT?

Both stocks operate in the Technology sector, making this a peer-level intra-sector comparison — the same macro tailwinds and headwinds will affect both.

In terms of investment character: CDW is a mid-cap deep-value stock; MSFT is a mega-cap quality compounder stock. 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 outperform both.

Stocks Like

CDW

Income & Dividend Stock

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 5%
  • Gross Margin > 12%
Run This Screen
Stocks Like

MSFT

High-Growth Quality Leader

  • Sector: Technology
  • Market Cap > $100B
  • Revenue Growth > 9%
  • Net Margin > 23%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform CDW and MSFT on the metrics below

Revenue Growth>
%
(CDW: 9.2% · MSFT: 18.3%)
Net Margin>
%
(CDW: 4.7% · MSFT: 39.3%)
P/E Ratio<
x
(CDW: 13.5x · MSFT: 30.3x)

You Might Also Compare

Based on how these companies actually compete and overlap — not just which sector they're filed under.