Cognex (CGNX) vs Trimble (TRMB)
Head-to-head comparison of performance, valuation, growth, profitability and dividends. Prices delayed 15 minutes; data as of Oct 8, 2026.
Summary
Cognex (CGNX) has outperformed Trimble (TRMB) over the past year, gaining 33.2% versus a loss of 24.3%. Over five years, CGNX leads with a -27.5% price change compared with -29.3% for TRMB. Trimble is the larger company by market cap ($13.77 billion vs $10.20 billion), about 1.4 times the size, while Cognex is growing revenue faster (+8.7% vs -2.6%).
On valuation, Trimble trades at a lower forward P/E (14.3x vs 29.9x for Cognex). Cognex pays a dividend yielding 0.55%, while Trimble does not currently pay one. Trimble converts more of its revenue into profit, with a net margin of 11.8% versus 11.5%.
Summary generated from market data by MetaCap's automated system. Methodology
Relative performance
Percent change in share price from the first common trading day shown; excludes dividends.
Head-to-head
| Metric | CGNX | TRMB |
|---|---|---|
| Share price | $60.62 | $59.05 |
| Market cap | $10.20B | $13.77B |
| 1-day change | -0.97% | -1.68% |
| YTD return | +70.12% | -23.34% |
| 1-year return | +33.21% | -24.26% |
| 5-year return | -27.48% | -29.28% |
| P/E ratio (TTM) | 58.28 | — |
| Forward P/E | 29.90 | 14.27 |
| EPS (TTM) | $1.04 | $-0.48 |
| Dividend yield | 0.55% | 0.00% |
| Annual dividend | $0.335 | $0.00 |
| Revenue (latest FY) | $994.36M | $3.59B |
| Revenue growth (YoY) | +8.73% | -2.61% |
| Net income (latest FY) | $114.44M | $424.00M |
| Gross margin | 66.92% | 69.07% |
| Operating margin | 16.35% | 16.50% |
| Net margin | 11.51% | 11.82% |
| 52-week high | $72.88 | $84.42 |
| 52-week low | $34.60 | $47.92 |
| Distance from 52-week high | -16.83% | -30.05% |
| Analyst consensus | buy | strong_buy |
| Avg. price target upside | +30.51% | +34.63% |
| Average volume | 1.89M | 2.93M |
| Shares outstanding | 168.22M | 233.18M |
| Employees | 2,745 | 11,500 |
| Sector | Industrials | Industrials |
| Industry | Industrial Machinery/Components | Industrial Machinery/Components |
Highlighted cells mark the higher value for growth, returns, margins and yield, and the lower value for P/E ratios. Highlighting is a mechanical comparison, not a recommendation.
Key differences
- CGNX has outperformed TRMB by 57.5 percentage points over the past year.
- Cognex grew revenue faster in its latest fiscal year (+8.73% vs -2.61%).
About Cognex
CGNX stock →Cognex Corporation provides machine vision products that capture and analyze visual information to automate manufacturing and distribution tasks in the United States, Europe, Greater China, and internationally. Its machine vision products are used to automate the manufacture and distribution of discrete items, such as mobile phones, automotive components, and e-commerce packages, by locating, identifying, inspecting, and measuring them.
Industrials · Industrial Machinery/Components · 2,745 employees
About Trimble
TRMB stock →Trimble Inc. offers technology solutions and platform that enable office professionals and field workers to connect workflows and industry lifecycles in North America, Europe, the Asia Pacific, and internationally.
Industrials · Industrial Machinery/Components · 11,500 employees
CGNX vs TRMB FAQ
Which is bigger, Cognex or Trimble?
Trimble (TRMB) is larger, with a market capitalization of $13.77B compared with $10.20B for Cognex (CGNX).
Which stock has performed better over the past year, CGNX or TRMB?
CGNX returned +33.21% over the past 12 months, compared with -24.26% for TRMB (price return, excluding dividends). Past performance does not predict future results.
Which pays a higher dividend, Cognex or Trimble?
Cognex pays a dividend yielding 0.55%, while Trimble does not currently pay a regular dividend.
Are Cognex and Trimble in the same industry?
Yes. Both are classified in the Industrial Machinery/Components industry within the Industrials sector.