
Cognex’s 18.9% return over the past six months has outpaced the S&P 500 by 5.6%, and its stock price has climbed to $36.61 per share. This was partly due to its solid quarterly results, and the performance may have investors wondering how to approach the situation.
Is there a buying opportunity in Cognex, or does it present a risk to your portfolio? See what our analysts have to say in our full research report, it’s free for active Edge members.
Why Do We Think Cognex Will Underperform?
Despite the momentum, we're swiping left on Cognex for now. Here are three reasons why CGNX doesn't excite us and a stock we'd rather own.
1. Shrinking Adjusted Operating Margin
Adjusted operating margin is one of the best measures of profitability because it tells us how much money a company takes home after subtracting all core expenses, like marketing and R&D. It also removes various one-time costs to paint a better picture of normalized profits.
Looking at the trend in its profitability, Cognex’s adjusted operating margin decreased by 12.9 percentage points over the last five years. This raises questions about the company’s expense base because its revenue growth should have given it leverage on its fixed costs, resulting in better economies of scale and profitability. Its adjusted operating margin for the trailing 12 months was 18.4%.

2. Free Cash Flow Margin Dropping
Free cash flow isn't a prominently featured metric in company financials and earnings releases, but we think it's telling because it accounts for all operating and capital expenses, making it tough to manipulate. Cash is king.
As you can see below, Cognex’s margin dropped by 10.2 percentage points over the last five years. It may have ticked higher more recently, but shareholders are likely hoping for its margin to at least revert to its historical level. If the longer-term trend returns, it could signal it is in the middle of an investment cycle. Cognex’s free cash flow margin for the trailing 12 months was 22%.

3. New Investments Fail to Bear Fruit as ROIC Declines
ROIC, or return on invested capital, is a metric showing how much operating profit a company generates relative to the money it has raised (debt and equity).
We like to invest in businesses with high returns, but the trend in a company’s ROIC is what often surprises the market and moves the stock price. Unfortunately, Cognex’s ROIC has decreased significantly over the last few years. We like what management has done in the past, but its declining returns are perhaps a symptom of fewer profitable growth opportunities.

Final Judgment
Cognex falls short of our quality standards. With its shares outperforming the market lately, the stock trades at 34.3× forward P/E (or $36.61 per share). At this valuation, there’s a lot of good news priced in - we think there are better stocks to buy right now. We’d recommend looking at a dominant Aerospace business that has perfected its M&A strategy.
Stocks We Would Buy Instead of Cognex
If your portfolio success hinges on just 4 stocks, your wealth is built on fragile ground. You have a small window to secure high-quality assets before the market widens and these prices disappear.
Don’t wait for the next volatility shock. Check out our Top 6 Stocks for this week. This is a curated list of our High Quality stocks that have generated a market-beating return of 244% over the last five years (as of June 30, 2025).
Stocks that have made our list include now familiar names such as Nvidia (+1,326% between June 2020 and June 2025) as well as under-the-radar businesses like the once-small-cap company Exlservice (+354% five-year return). Find your next big winner with StockStory today.