Cognex Corporation (CGNX) Stock Price & How to Invest

Last updated October 2026

Short answer

You can invest in Cognex (CGNX) by buying shares or fractional shares at any major US broker, through an ETF that holds it, or as one holding in a focused automation basket. Cognex makes machine vision systems: cameras, sensors and software that let automated equipment inspect parts, read codes and guide robots on production lines. As of October 16, 2026 the shares closed at about $54.86 (market cap near $9.2 billion), up roughly 49% in 2026 after a run of quarters that beat earnings estimates. Figures on this page are approximate; verify current numbers before deciding. Walnut is not an investment adviser.

CGNX stock price

As of 2026-11-04, Cognex Corporation (CGNX) last closed at $53.06, up 31.0% over the past year. Over the past 52 weeks it has traded between $34.80 and $72.42.

CGNX last close
$53.06
1 day
-8.69%
1 month
-17.57%
1 year
+31.01%
52-week range
$34.80 to $72.42
Last close
2026-11-04

Prices are daily closing prices from Yahoo Finance and may be delayed. For the live quote, check your broker or Cognex Corporation's investor relations page. Walnut is informational, not investment advice.

What does Cognex Corporation (CGNX) do?

Cognex makes machine vision systems: cameras, sensors and software that let automated equipment inspect parts, read codes and guide robots on production lines. Its customers are factories, logistics and distribution centres, consumer electronics makers, automakers and semiconductor fabs, and recent launches include an AI-based wafer ID reader for chipmakers.

Cognex is a high-margin components business whose results swing with automation capital cycles in a few concentrated end markets. After revenue fell from about $1.01 billion in 2022 to about $838 million in 2023, it has climbed back each year, to about $994 million in 2025 and about $1.09 billion over the trailing twelve months. The latest reported quarter, ended July 5, 2026, brought revenue of about $291 million, up roughly 17% year over year, and net income of about $73 million, with earnings per share of $0.45 against a $0.42 consensus. That was the fourth straight quarter above estimates.

The shares closed at $54.86 on October 16, 2026, up about 49% year to date and about 18% over one year, but down about 13% over the past three months from a 52-week high of $72.88 after an early-October selloff and a Truist price-target cut (to $74, Hold). Cognex reports third-quarter results on November 4, 2026, where analysts expect revenue of about $314 million and EPS of $0.52.

What's driving Cognex Corporation (CGNX)?

Vision is the enabling layer for automation

A robot without vision repeats a fixed motion; with vision it can locate parts, verify quality and adapt. As factories automate more variable tasks, vision content per machine rises, which is the structural case for Cognex. The 2026 numbers fit that case: trailing revenue is back above $1 billion and operating margin is around 29%.

Logistics and warehouse automation

Barcode and package reading in distribution centres became a large market as e-commerce fulfilment scaled, and it is a different demand cycle from factory capital spending.

Software and algorithms as the differentiator

The hardware is increasingly commoditised; the value sits in the inspection algorithms and the ease of deploying them without specialist programming. Cognex's newer products lean on AI-based inspection and reading, including a wafer ID system aimed at semiconductor fabs, which is its attempt to stay ahead of the commoditisation threat.

Earnings recovery and operating leverage

Net income rose from about $18 million in the September 2025 quarter to about $73 million in the June 2026 quarter as revenue grew and costs stayed in check. Analysts expect full-year 2026 EPS of about $1.69 and 2027 EPS of about $2.02, compared with trailing EPS of $1.04. The balance sheet supports the plan, with about $404 million of cash against about $72 million of debt, and Cognex pays a small dividend of $0.34 a year.

What are the risks to Cognex Corporation (CGNX)?

Revenue is closely tied to customer capital spending on automation, which is cyclical and can pause abruptly. Cognex has meaningful exposure to a small number of large end markets, including consumer electronics manufacturing, where a single customer's investment cycle moves results. Competition from lower-cost vision suppliers is increasing, and general-purpose AI vision models could erode the value of specialised algorithms. Valuation is now a risk too: at about 53 times trailing and 27 times forward earnings, and about 8.5 times sales, the shares price in continued growth, and the stock dropped sharply in early October 2026 when sentiment on the group turned.

What is the Cognex Corporation (CGNX) forecast?

19 analysts publish price targets on CGNX, averaging $79.37 against a $57.37 price as of November 2026, or +38.3%. The published targets run from $60.00 to $92.00, a moderate spread, and the ratings split 14 buy, 6 hold, 0 sell. Over the last six months there have been 7 raises and 3 cuts among the published actions. A price target is what an analyst published on a date, not a prediction, and sell-side ratings skew positive across the whole market.

Read the full CGNX forecast and price target for the target table, the recent rating actions by firm, and how the consensus has shifted.

Is CGNX a buy or a sell?

We give no verdict on Cognex Corporation. Both cases are real, which is why the question is contested at all, so here is the strongest version of each.

The case for buying. Vision is the enabling layer for automation. A robot without vision repeats a fixed motion; with vision it can locate parts, verify quality and adapt. The most optimistic published target, $92.00, assumes this works close to its best case.

The case against. Revenue is closely tied to customer capital spending on automation, which is cyclical and can pause abruptly. The most pessimistic target, $60.00, is roughly what CGNX is worth if this bites instead.

Read the full bull and bear case on CGNX, including what would have to change to break either one. Walnut is not an investment adviser.

Has Cognex Corporation (CGNX) split its stock?

Yes. Cognex Corporation (CGNX) has had one share split in the last 10 years:

  • 2:1 on December 4, 2017, so every share held became 2 shares.

A split changes the share count and the price per share and leaves the value of a holding unchanged. Someone holding $1,000 of CGNX the day before the 2:1 split held $1,000 the day after, in more shares at a proportionally lower price. Historical prices from before the date are normally shown split-adjusted, which is why a long-run chart shows no cliff.

Splits matter mainly because they make older price figures confusing to compare by hand, and because a board choosing to split is usually signalling that the price has run up far enough to feel awkward for smaller buyers. Neither is a reason to buy or sell.

How is Cognex Corporation (CGNX) valued? (approximate, October 2026)

A simple financial snapshot. These are approximations and refresh quarterly; for current figures see Cognex Corporation's investor relations page or your broker.

  • Revenue (TTM): ~$1.09 billion; latest quarter ~$291 million, up ~17% YoY
  • Margins: Gross ~69%; operating ~29%; net ~16%
  • Net income (TTM): ~$175 million; trailing EPS ~$1.04
  • Latest quarter EPS (to Jul 5, 2026): $0.45 vs $0.42 expected
  • P/E: ~53x trailing; ~27x forward
  • Dividend yield: ~0.6% ($0.34 a year)
  • Market cap: ~$9.2 billion at $54.86 (Oct 16, 2026)

Cognex trades at a premium multiple because earnings are recovering fast from a depressed base: trailing P/E is high, but the forward multiple of about 27 assumes EPS roughly doubles. The stock has given back part of its 2026 gain since a $72.88 high, and the November 4, 2026 report (consensus EPS $0.52 on ~$314 million revenue) is the next checkpoint for whether the automation upcycle holds.

Which ETFs hold Cognex Corporation (CGNX)?

If you want CGNX exposure as part of a larger bundle rather than directly, these ETFs hold it meaningfully. Weights are approximate and refresh quarterly.

ETFName% in CGNXExpense ratio
BOTZGlobal X Robotics & Artificial Intelligence ETF2.58%0.68%

What themes does Cognex Corporation (CGNX) fit?

These are the investment theses CGNX naturally fits into. Each links to a full theme guide listing every other stock that belongs and the ETFs commonly used as a passive proxy.

Who competes with Cognex Corporation (CGNX)?

Machine vision

Keyence is the dominant competitor globally with a direct-sales model and very high margins. Basler, Omron and Zebra Technologies compete across vision and code-reading applications.

General-purpose AI vision

An emerging competitive threat rather than a company: as general vision models improve, some inspection tasks may be solved with commodity cameras and software rather than specialised systems.

What stocks are similar to Cognex Corporation (CGNX)?

Other names that sit close to CGNX: same theme, named as a direct competitor, or held beside it in the same funds. Each entry says which. Worth a look if you are thinking about diversification within a thesis rather than concentration on one ticker.

How to invest in Cognex Corporation (CGNX)

There are three common ways to get CGNX exposure. Buy shares (or fractional shares) directly at any major broker. Hold an ETF that includes it (BOTZ), which spreads the position across many companies. Or build it into a focused thematic portfolio, so CGNX sits alongside other stocks that express the same thesis.

Walnut takes the portfolio route. Describe a thesis where CGNX fits (for example “AI infrastructure” or “dividend-growth large-caps”) and the AI proposes 5 to 6 constituents with target weights. You review the plan and fund it through your own broker when you're ready.

New to this? Start with how to invest in stocks, see how to analyze a stock with AI, or compare the best AI stock analyzers.

The bottom line on Cognex Corporation (CGNX)

Cognex (CGNX) is best understood through the automation theme it belongs to. Cognex is a high-margin components business (gross margin near 69%) whose results swing with automation capital cycles in a few concentrated end markets. 2026 has been a recovery year: revenue is growing in the mid-teens, earnings have beaten estimates four quarters running, and the stock is up about 49% year to date, though at roughly 27 times forward earnings much of that recovery is already in the price. The next test is the November 4, 2026 report.

More on Cognex Corporation (CGNX)

Whether CGNX is worth buying today depends more on your time horizon and what you already hold than on any single call. We walk through valuation, what would have to go right, and the risks in is CGNX a buy or a sell?, and where the stock could go from here in the CGNX stock forecast.

For income investors, whether CGNX pays a dividend and how the payout looks is covered in does CGNX pay a dividend? And to weigh CGNX against a peer, read the full side-by-side comparisons: CGNX vs ROK and CGNX vs EMR.

Wondering how CGNX fits the portfolio you already own? Walnut is an AI investing app that connects your brokerage read-only and answers questions like that about your actual holdings: overlap, concentration, and how each position tracks the S&P 500. Compare the best AI portfolio analyzers or see the best AI investing apps in 2026.

Investing in Cognex Corporation with AI

Connect the broker you already use and ask Walnut's AI how CGNX fits what you actually hold: whether you own it already through a fund, what it would do to your concentration, and how it has tracked the S&P 500. Read-only by default, and you approve anything before it reaches your broker.

FAQ

What does Cognex do?

+

Cognex makes machine vision systems: cameras, sensors and software that let automated equipment inspect parts, read codes and guide robots on production lines.

Is CGNX a good stock to buy?

+

That depends on your thesis, time horizon and what you already hold, not on any single call. The case and the risks are both set out on this page. Walnut is informational and not a registered investment adviser, so treat this as research rather than a recommendation.

Who competes with Cognex?

+

Machine vision: Keyence is the dominant competitor globally with a direct-sales model and very high margins. Basler, Omron and Zebra Technologies compete across vision and code-reading applications. General-purpose AI vision: An emerging competitive threat rather than a company: as general vision models improve, some inspection tasks may be solved with commodity cameras and software rather than specialised systems.

What are the main risks of CGNX?

+

Revenue is closely tied to customer capital spending on automation, which is cyclical and can pause abruptly. Cognex has meaningful exposure to a small number of large end markets, including consumer electronics manufacturing, where a single customer's investment cycle moves results. Competition from lower-cost vision suppliers is increasing, and general-purpose AI vision models could erode the value of specialised algorithms.

Does CGNX pay a dividend?

+

Yes, a small one. As of October 2026 Cognex pays about $0.34 per share a year, a yield of roughly 0.6% at the October 16 price, with a payout ratio near 32% of earnings. Check the CGNX dividend page for the current yield, payout schedule and whether the company pays one at all. Figures are pulled from market data and are approximate; verify with your broker.

How do I buy CGNX shares?

+

Open an account at any major US broker, search for CGNX, and place a buy order. Most brokers support fractional shares, so you can invest a fixed dollar amount rather than buying whole shares. Walnut connects to the broker you already use rather than holding your money itself.

What theme does CGNX belong to?

+

Cognex sits in the automation theme, which groups the companies exposed to the same underlying thesis so you can see them together and compare how the group has performed against the S&P 500.

Is CGNX a large company?

+

Cognex is a mid-cap. At $54.86 a share on October 16, 2026 its market capitalisation was about $9.2 billion, on trailing revenue of about $1.09 billion and roughly 2,750 employees. Check the valuation snapshot on this page for the current market cap and price, which are pulled from market data and refresh periodically. Company size affects liquidity and volatility, so it is worth knowing before sizing a position.

How did Cognex do in its latest quarter?

+

In the quarter ended July 5, 2026, Cognex reported revenue of about $291 million, up roughly 17% year over year, and net income of about $73 million. EPS of $0.45 beat the $0.42 consensus, the fourth consecutive beat. Third-quarter results are scheduled for November 4, 2026, with analysts expecting about $314 million of revenue and EPS of $0.52.

How has CGNX stock performed in 2026?

+

CGNX closed at $54.86 on October 16, 2026, up about 49% year to date and about 18% over one year. The ride has been uneven: the shares hit a 52-week high of $72.88 and are down about 13% over the last three months, including a sharp drop in early October. Analysts' average price target is about $79 across 19 analysts.

Guides that feature CGNX

CGNX is one of the names covered in these guides. Each one puts the stock next to its peers so you can see where it fits rather than judging it alone.

Walnut is informational, not investment advice. Financial figures on this page are approximations; always verify current numbers with Cognex Corporation's investor relations page or your broker before making investment decisions.