CGNX vs. IBM
CGNX (Cognex Corporation) and IBM (International Business Machines Corporation) are both stocks. Both are in the Technology sector — CGNX in Scientific & Technical Instruments, IBM in Information Technology Services. Over the past 10 years, CGNX returned 12.63%/yr vs 11.09%/yr for IBM. At a 0.30 correlation, their price movements are largely independent.
Performance
CGNX vs. IBM - Performance Comparison
Loading charts...
Returns By Period
In the year-to-date period, CGNX achieves a 77.29% return, which is significantly higher than IBM's -6.89% return. Over the past 10 years, CGNX has outperformed IBM with an annualized return of 12.63%, while IBM has yielded a comparatively lower 11.09% annualized return.
CGNX
- 1D
- 2.42%
- 1M
- 0.09%
- YTD
- 77.29%
- 6M
- 78.93%
- 1Y
- 109.31%
- 3Y*
- 4.67%
- 5Y*
- -3.85%
- 10Y*
- 12.63%
IBM
- 1D
- -0.95%
- 1M
- 26.84%
- YTD
- -6.89%
- 6M
- -10.81%
- 1Y
- -0.65%
- 3Y*
- 29.65%
- 5Y*
- 18.01%
- 10Y*
- 11.09%
CGNX vs. IBM - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
CGNX Cognex Corporation | 77.29% | 1.24% | -13.45% | -10.84% | -39.11% | -2.85% | 47.69% | 45.54% | -36.53% | 92.91% |
IBM International Business Machines Corporation | -6.89% | 38.23% | 39.27% | 21.85% | 10.64% | 16.65% | -1.16% | 23.58% | -22.56% | -3.99% |
Correlation
The correlation between CGNX and IBM is 0.13, which is low. Their price movements are largely independent, making them effective diversification partners.
| Correlation | |
|---|---|
Correlation (1Y) Calculated over the trailing 1-year period | 0.13 |
Correlation (3Y) Calculated over the trailing 3-year period | 0.22 |
Correlation (5Y) Calculated over the trailing 5-year period | 0.25 |
Correlation (10Y) Calculated over the trailing 10-year period | 0.32 |
Correlation (All Time) Calculated using the full available price history since Oct 9, 1989 | 0.30 |
The correlation between CGNX and IBM shifts across timeframes, from 0.13 (1 year) to 0.32 (10 years), reflecting how their relationship changes across market environments.
Fundamentals
CGNX:
$10.71B
IBM:
$259.20B
CGNX:
$0.84
IBM:
$11.32
CGNX:
75.32
IBM:
24.05
CGNX:
10.26
IBM:
3.75
CGNX:
7.24
IBM:
7.86
CGNX:
$1.05B
IBM:
$68.91B
CGNX:
$712.01M
IBM:
$40.64B
CGNX:
$224.08M
IBM:
$15.71B
Compare stocks, funds, or ETFs
Search for stocks, ETFs, and funds for a quick comparison or use the comparison tool for more options.
Return for Risk
CGNX vs. IBM — Risk / Return Rank
CGNX
IBM
CGNX vs. IBM - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for Cognex Corporation (CGNX) and International Business Machines Corporation (IBM). Risk-adjusted metrics are performance indicators that assess an investment's returns in relation to its risk, enabling a more accurate comparison of different investment options.
Values are calculated on a 1-year rolling basis and updated daily. Risk-adjusted metrics are more stable over longer periods — use the period switch above to explore them.
| CGNX | IBM | Difference | |
|---|---|---|---|
| Sharpe ratioReturn per unit of total volatility | +1.90 | ||
| Sortino ratioReturn per unit of downside risk | +2.89 | ||
| Omega ratioGain probability vs. loss probability | 1.42 | 1.04 | +0.38 |
| Calmar ratioReturn relative to maximum drawdown | 3.95 | -0.02 | +3.97 |
| Martin ratioReturn relative to average drawdown | 8.88 | -0.05 | +8.92 |
Loading charts...
Drawdowns
CGNX vs. IBM - Drawdown Comparison
The maximum CGNX drawdown since its inception was -83.71%, which is greater than IBM's maximum drawdown of -69.40%. Use the drawdown chart below to compare losses from any high point for CGNX and IBM.
Loading charts...
Drawdown Indicators
| CGNX | IBM | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -83.71% | -69.40% | -14.31% |
Max Drawdown (1Y)Largest decline over 1 year | -27.86% | -30.96% | +3.10% |
Max Drawdown (3Y)Largest decline over 3 years | -59.98% | -30.96% | -29.02% |
Max Drawdown (5Y)Largest decline over 5 years | -74.07% | -30.96% | -43.11% |
Max Drawdown (10Y)Largest decline over 10 years | -74.63% | -40.59% | -34.04% |
Current DrawdownCurrent decline from peak | -30.01% | -17.31% | -12.70% |
Average DrawdownAverage peak-to-trough decline | -37.51% | -20.12% | -17.39% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 12.36% | 14.38% | -2.02% |
Volatility
CGNX vs. IBM - Volatility Comparison
The current volatility for Cognex Corporation (CGNX) is 14.66%, while International Business Machines Corporation (IBM) has a volatility of 21.43%. This indicates that CGNX experiences smaller price fluctuations and is considered to be less risky than IBM based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading charts...
Volatility by Period
| CGNX | IBM | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 14.66% | 21.43% | -6.77% |
Volatility (6M)Calculated over the trailing 6-month period | 42.71% | 34.62% | +8.09% |
Volatility (1Y)Calculated over the trailing 1-year period | 58.31% | 39.45% | +18.86% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 43.64% | 27.16% | +16.48% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 41.91% | 26.59% | +15.32% |
Dividends
CGNX vs. IBM - Dividend Comparison
CGNX's dividend yield for the trailing twelve months is around 0.53%, less than IBM's 2.47% yield.
| Position | TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
CGNX Cognex Corporation | 0.53% | 0.90% | 0.85% | 0.68% | 0.56% | 0.32% | 2.77% | 0.37% | 0.48% | 0.27% | 0.46% | 0.62% |
IBM International Business Machines Corporation | 2.47% | 2.27% | 3.03% | 4.05% | 4.68% | 4.74% | 5.17% | 4.80% | 5.46% | 3.85% | 3.31% | 3.63% |
Financials
CGNX vs. IBM - Financials Comparison
This section allows you to compare key financial metrics between Cognex Corporation and International Business Machines Corporation. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.
Total Revenue: Total amount of money received from sales and other business activities
CGNX vs. IBM - Profitability Comparison
CGNX - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Cognex Corporation reported a gross profit of 190.94M and revenue of 268.44M. Therefore, the gross margin over that period was 71.1%.
IBM - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, International Business Machines Corporation reported a gross profit of 8.95B and revenue of 15.92B. Therefore, the gross margin over that period was 56.2%.
CGNX - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Cognex Corporation reported an operating income of 59.87M and revenue of 268.44M, resulting in an operating margin of 22.3%.
IBM - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, International Business Machines Corporation reported an operating income of 1.22B and revenue of 15.92B, resulting in an operating margin of 7.6%.
CGNX - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Cognex Corporation reported a net income of 51.70M and revenue of 268.44M, resulting in a net margin of 19.3%.
IBM - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, International Business Machines Corporation reported a net income of 1.22B and revenue of 15.92B, resulting in a net margin of 7.6%.
Frequently Asked Questions
CGNX and IBM have a correlation of 0.13, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.
IBM has higher volatility (21.43%) compared to CGNX (14.66%). In terms of maximum drawdown, CGNX dropped -83.71% vs IBM's -69.40%.
CGNX currently has the higher Sharpe Ratio (1.89 vs -0.02), meaning it's delivered slightly more return per unit of risk over the trailing 12 months. However, this ranking shifts over time - use the Risk/Return Score above for a more comprehensive view that combines Sharpe, Sortino, and other measures used by quantitative funds.
Find the right allocation for CGNX and IBM
Add both to a portfolio and optimize allocations for your target — whether that's maximizing returns, minimizing drawdowns, or balancing risk across holdings.
Open Portfolio Optimizer