Compare Stocks

2 / 10
Try these comparisons:

Stock Comparison

CGNX vs NVDA

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

Live fundamentals10-year financials5-year price chart
CGNX
Cognex Corporation

Hardware, Equipment & Parts

TechnologyNASDAQ • US
Market Cap$10.40B
5Y Perf.+9.7%
NVDA
NVIDIA Corporation

Semiconductors

TechnologyNASDAQ • US
Market Cap$5.05T
5Y Perf.+2238.6%

CGNX vs NVDA — Key Financials

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

Company Snapshot
CGNX logoCGNX
NVDA logoNVDA
IndustryHardware, Equipment & PartsSemiconductors
Market Cap$10.40B$5.05T
Revenue (TTM)$994M$215.94B
Net Income (TTM)$114M$120.07B
Gross Margin66.9%71.1%
Operating Margin16.3%60.4%
Forward P/E50.1x25.1x
Total Debt$77M$11.41B
Cash & Equiv.$263M$10.61B

CGNX vs NVDALong-Term Stock Performance

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

CGNX
NVDA
StockMay 20May 26Return
Cognex Corporation (CGNX)100109.7+9.7%
NVIDIA Corporation (NVDA)1002338.6+2238.6%

Price return only. Dividends and distributions are not included.

Quick Verdict: CGNX vs NVDA

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

Bottom line: NVDA leads in 4 of 7 categories, making it the strongest pick for growth and revenue expansion and valuation and capital efficiency. Cognex Corporation is the stronger pick specifically for capital preservation and lower volatility and dividend income and shareholder returns. As sector peers, any of these can serve as alternatives in the same allocation.
CGNX
Cognex Corporation
The Income Pick

CGNX is the clearest fit if your priority is income & stability and sleep-well-at-night.

  • Dividend streak 4 yrs, beta 1.50, yield 0.5%
  • Lower volatility, beta 1.50, Low D/E 5.1%, current ratio 3.80x
  • Beta 1.50, yield 0.5%, current ratio 3.80x
Best for: income & stability and sleep-well-at-night
NVDA
NVIDIA Corporation
The Growth Play

NVDA carries the broadest edge in this set and is the clearest fit for growth exposure and long-term compounding.

  • Rev growth 65.5%, EPS growth 66.7%, 3Y rev CAGR 100.0%
  • 234.3% 10Y total return vs CGNX's 228.2%
  • 65.5% revenue growth vs CGNX's 8.7%
Best for: growth exposure and long-term compounding
See the full category breakdown
CategoryWinnerWhy
GrowthNVDA logoNVDA65.5% revenue growth vs CGNX's 8.7%
ValueNVDA logoNVDALower P/E (25.1x vs 50.1x)
Quality / MarginsNVDA logoNVDA55.6% margin vs CGNX's 11.5%
Stability / SafetyCGNX logoCGNXBeta 1.50 vs NVDA's 1.73, lower leverage
DividendsCGNX logoCGNX0.5% yield, 4-year raise streak, vs NVDA's 0.0%
Momentum (1Y)CGNX logoCGNX+124.9% vs NVDA's +82.9%
Efficiency (ROA)NVDA logoNVDA58.1% ROA vs CGNX's 5.8%, ROIC 81.8% vs 9.0%

CGNX vs NVDA — Revenue Breakdown by Segment

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

CGNXCognex Corporation
FY 2025
Standard Product and Services
88.5%$880M
Application of Customer Specific Solutions
11.5%$114M
NVDANVIDIA Corporation
FY 2026
Data Center
89.7%$193.7B
Gaming
7.4%$16.0B
Professional Visualization
1.5%$3.2B
Automotive
1.1%$2.3B
OEM And Other
0.3%$619M

CGNX vs NVDA — Financial Metrics

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

BEST OVERALLCGNXLAGGINGNVDA

Income & Cash Flow (Last 12 Months)

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

NVDA is the larger business by revenue, generating $215.9B annually — 217.2x CGNX's $994M. NVDA is the more profitable business, keeping 55.6% of every revenue dollar as net income compared to CGNX's 11.5%. On growth, NVDA holds the edge at +73.2% YoY revenue growth, suggesting stronger near-term business momentum.

MetricCGNX logoCGNXCognex CorporationNVDA logoNVDANVIDIA Corporation
RevenueTrailing 12 months$994M$215.9B
EBITDAEarnings before interest/tax$193M$133.2B
Net IncomeAfter-tax profit$114M$120.1B
Free Cash FlowCash after capex$237M$96.7B
Gross MarginGross profit ÷ Revenue+66.9%+71.1%
Operating MarginEBIT ÷ Revenue+16.3%+60.4%
Net MarginNet income ÷ Revenue+11.5%+55.6%
FCF MarginFCF ÷ Revenue+23.8%+44.8%
Rev. Growth (YoY)Latest quarter vs prior year+9.9%+73.2%
EPS Growth (YoY)Latest quarter vs prior year+18.8%+97.8%
NVDA leads this category, winning 6 of 6 comparable metrics.

Valuation Metrics

Evenly matched — CGNX and NVDA each lead in 3 of 6 comparable metrics.

At 42.4x trailing earnings, NVDA trades at a 54% valuation discount to CGNX's 91.6x P/E. On an enterprise value basis, NVDA's 37.9x EV/EBITDA is more attractive than CGNX's 52.8x.

MetricCGNX logoCGNXCognex CorporationNVDA logoNVDANVIDIA Corporation
Market CapShares × price$10.4B$5.05T
Enterprise ValueMkt cap + debt − cash$10.2B$5.05T
Trailing P/EPrice ÷ TTM EPS91.56x42.38x
Forward P/EPrice ÷ next-FY EPS est.50.11x25.09x
PEG RatioP/E ÷ EPS growth rate0.44x
EV / EBITDAEnterprise value multiple52.81x37.89x
Price / SalesMarket cap ÷ Revenue10.46x23.37x
Price / BookPrice ÷ Book value/share7.07x32.26x
Price / FCFMarket cap ÷ FCF43.92x52.21x
Evenly matched — CGNX and NVDA each lead in 3 of 6 comparable metrics.

Profitability & Efficiency

Evenly matched — CGNX and NVDA each lead in 4 of 8 comparable metrics.

NVDA delivers a 76.3% return on equity — every $100 of shareholder capital generates $76 in annual profit, vs $8 for CGNX. CGNX carries lower financial leverage with a 0.05x debt-to-equity ratio, signaling a more conservative balance sheet compared to NVDA's 0.07x. On the Piotroski fundamental quality scale (0–9), CGNX scores 7/9 vs NVDA's 4/9, reflecting strong financial health.

MetricCGNX logoCGNXCognex CorporationNVDA logoNVDANVIDIA Corporation
ROE (TTM)Return on equity+7.7%+76.3%
ROA (TTM)Return on assets+5.8%+58.1%
ROICReturn on invested capital+9.0%+81.8%
ROCEReturn on capital employed+8.9%+97.2%
Piotroski ScoreFundamental quality 0–974
Debt / EquityFinancial leverage0.05x0.07x
Net DebtTotal debt minus cash-$186M$807M
Cash & Equiv.Liquid assets$263M$10.6B
Total DebtShort + long-term debt$77M$11.4B
Interest CoverageEBIT ÷ Interest expense545.03x
Evenly matched — CGNX and NVDA each lead in 4 of 8 comparable metrics.

Total Returns (Dividends Reinvested)

NVDA leads this category, winning 4 of 6 comparable metrics.

A $10,000 investment in NVDA five years ago would be worth $143,108 today (with dividends reinvested), compared to $8,076 for CGNX. Over the past 12 months, CGNX leads with a +124.9% total return vs NVDA's +82.9%. The 3-year compound annual growth rate (CAGR) favors NVDA at 92.4% vs CGNX's 8.4% — a key indicator of consistent wealth creation.

MetricCGNX logoCGNXCognex CorporationNVDA logoNVDANVIDIA Corporation
YTD ReturnYear-to-date+68.8%+10.0%
1-Year ReturnPast 12 months+124.9%+82.9%
3-Year ReturnCumulative with dividends+27.4%+612.7%
5-Year ReturnCumulative with dividends-19.2%+1331.1%
10-Year ReturnCumulative with dividends+228.2%+23433.1%
CAGR (3Y)Annualised 3-year return+8.4%+92.4%
NVDA leads this category, winning 4 of 6 comparable metrics.

Risk & Volatility

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

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

MetricCGNX logoCGNXCognex CorporationNVDA logoNVDANVIDIA Corporation
Beta (5Y)Sensitivity to S&P 5001.50x1.73x
52-Week HighHighest price in past year$63.01$216.80
52-Week LowLowest price in past year$27.61$110.82
% of 52W HighCurrent price vs 52-week peak+98.8%+95.8%
RSI (14)Momentum oscillator 0–10069.850.8
Avg Volume (50D)Average daily shares traded1.9M166.2M
CGNX leads this category, winning 2 of 2 comparable metrics.

Analyst Outlook

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

Wall Street rates CGNX as "Hold" and NVDA as "Buy". Consensus price targets imply 34.3% upside for NVDA (target: $279) vs -3.3% for CGNX (target: $60). CGNX is the only dividend payer here at 0.52% yield — a key consideration for income-focused portfolios.

MetricCGNX logoCGNXCognex CorporationNVDA logoNVDANVIDIA Corporation
Analyst RatingConsensus buy/hold/sellHoldBuy
Price TargetConsensus 12-month target$60.22$278.83
# AnalystsCovering analysts3179
Dividend YieldAnnual dividend ÷ price+0.5%+0.0%
Dividend StreakConsecutive years of raises42
Dividend / ShareAnnual DPS$0.32$0.04
Buyback YieldShare repurchases ÷ mkt cap+1.5%+0.8%
CGNX leads this category, winning 2 of 2 comparable metrics.
Key Takeaway

NVDA leads in 2 of 6 categories (Income & Cash Flow, Total Returns). CGNX leads in 2 (Risk & Volatility, Analyst Outlook). 2 tied.

Best OverallCognex Corporation (CGNX)Leads 2 of 6 categories
Loading custom metrics...

CGNX vs NVDA: Frequently Asked Questions

10 questions · data-driven answers · updated daily

01

Is CGNX or NVDA a better buy right now?

For growth investors, NVIDIA Corporation (NVDA) is the stronger pick with 65.

5% revenue growth year-over-year, versus 8. 7% for Cognex Corporation (CGNX). NVIDIA Corporation (NVDA) offers the better valuation at 42. 4x trailing P/E (25. 1x forward), making it the more compelling value choice. Analysts rate NVIDIA Corporation (NVDA) a "Buy" — based on 79 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 — CGNX or NVDA?

On trailing P/E, NVIDIA Corporation (NVDA) is the cheapest at 42.

4x versus Cognex Corporation at 91. 6x. On forward P/E, NVIDIA Corporation is actually cheaper at 25. 1x.

03

Which is the better long-term investment — CGNX or NVDA?

Over the past 5 years, NVIDIA Corporation (NVDA) delivered a total return of +1331%, compared to -19.

2% for Cognex Corporation (CGNX). Over 10 years, the gap is even starker: NVDA returned +234. 3% versus CGNX's +228. 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 — CGNX or NVDA?

By beta (market sensitivity over 5 years), Cognex Corporation (CGNX) is the lower-risk stock at 1.

50β versus NVIDIA Corporation's 1. 73β — meaning NVDA is approximately 15% more volatile than CGNX relative to the S&P 500. On balance sheet safety, Cognex Corporation (CGNX) carries a lower debt/equity ratio of 5% versus 7% for NVIDIA Corporation — giving it more financial flexibility in a downturn.

05

Which is growing faster — CGNX or NVDA?

By revenue growth (latest reported year), NVIDIA Corporation (NVDA) is pulling ahead at 65.

5% versus 8. 7% for Cognex Corporation (CGNX). On earnings-per-share growth, the picture is similar: NVIDIA Corporation grew EPS 66. 7% year-over-year, compared to 9. 7% for Cognex Corporation. Over a 3-year CAGR, NVDA leads at 100. 0% 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 — CGNX or NVDA?

NVIDIA Corporation (NVDA) is the more profitable company, earning 55.

6% net margin versus 11. 5% for Cognex Corporation — meaning it keeps 55. 6% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: NVDA leads at 60. 4% versus 16. 3% for CGNX. At the gross margin level — before operating expenses — NVDA leads at 71. 1%, 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 CGNX or NVDA more undervalued right now?

On forward earnings alone, NVIDIA Corporation (NVDA) trades at 25.

1x forward P/E versus 50. 1x for Cognex Corporation — 25. 0x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for NVDA: 34. 3% to $278. 83.

08

Which pays a better dividend — CGNX or NVDA?

In this comparison, CGNX (0.

5% yield) pays a dividend. NVDA does not pay a meaningful dividend and should not be held primarily for income.

09

Is CGNX or NVDA better for a retirement portfolio?

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

5% yield, +228. 2% 10Y return). NVIDIA Corporation (NVDA) carries a higher beta of 1. 73 — meaning larger drawdowns in market downturns, which matters significantly when you cannot wait years for a recovery. Both have compounded well over 10 years (CGNX: +228. 2%, NVDA: +234. 3%), 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 CGNX and NVDA?

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: CGNX is a mid-cap quality compounder stock; NVDA is a mega-cap high-growth stock. CGNX pays a dividend while NVDA 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 outperform both.

Stocks Like

CGNX

Stable Dividend Mega-Cap

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

NVDA

High-Growth Quality Leader

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

Beat Both

Find stocks that outperform CGNX and NVDA on the metrics below

Revenue Growth>
%
(CGNX: 9.9% · NVDA: 73.2%)
Net Margin>
%
(CGNX: 11.5% · NVDA: 55.6%)
P/E Ratio<
x
(CGNX: 91.6x · NVDA: 42.4x)

You Might Also Compare

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