CGNX vs. DHI
Compare and contrast key facts about Cognex Corporation (CGNX) and D.R. Horton, Inc. (DHI).
Performance
CGNX vs. DHI - Performance Comparison
Loading graphics...
CGNX vs. DHI - Yearly Performance Comparison
| 2026 (YTD) | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | |
|---|---|---|---|---|---|---|---|---|---|---|
CGNX Cognex Corporation | 37.34% | 1.24% | -13.45% | -10.84% | -39.11% | -2.85% | 47.69% | 45.54% | -36.53% | 92.91% |
DHI D.R. Horton, Inc. | -3.74% | 4.24% | -7.24% | 72.07% | -16.83% | 58.73% | 32.23% | 54.29% | -31.26% | 89.06% |
Fundamentals
CGNX:
$8.33B
DHI:
$40.55B
CGNX:
$0.68
DHI:
$11.27
CGNX:
72.83
DHI:
12.27
CGNX:
8.38
DHI:
1.22
CGNX:
5.59
DHI:
1.69
CGNX:
$994.36M
DHI:
$33.52B
CGNX:
$665.39M
DHI:
$7.80B
CGNX:
$191.13M
DHI:
$4.46B
Returns By Period
In the year-to-date period, CGNX achieves a 37.34% return, which is significantly higher than DHI's -3.74% return. Over the past 10 years, CGNX has underperformed DHI with an annualized return of 10.55%, while DHI has yielded a comparatively higher 17.66% annualized return.
CGNX
- 1D
- 0.71%
- 1M
- -8.34%
- YTD
- 37.34%
- 6M
- 8.06%
- 1Y
- 65.74%
- 3Y*
- 0.62%
- 5Y*
- -9.59%
- 10Y*
- 10.55%
DHI
- 1D
- 0.75%
- 1M
- -10.46%
- YTD
- -3.74%
- 6M
- -19.35%
- 1Y
- 9.79%
- 3Y*
- 13.38%
- 5Y*
- 9.81%
- 10Y*
- 17.66%
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. DHI — Risk / Return Rank
CGNX
DHI
CGNX vs. DHI - Risk-Adjusted Trends Comparison
This table presents a comparison of risk-adjusted performance metrics for Cognex Corporation (CGNX) and D.R. Horton, Inc. (DHI). 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.
| CGNX | DHI | Difference | |
|---|---|---|---|
Sharpe ratioReturn per unit of total volatility | 1.09 | 0.25 | +0.84 |
Sortino ratioReturn per unit of downside risk | 2.10 | 0.71 | +1.39 |
Omega ratioGain probability vs. loss probability | 1.29 | 1.08 | +0.21 |
Calmar ratioReturn relative to maximum drawdown | 2.40 | 0.36 | +2.03 |
Martin ratioReturn relative to average drawdown | 5.07 | 0.76 | +4.30 |
Data is calculated on a 1-year rolling basis and updated daily. The trend shows the change in the indicator over the past month. | |||
Loading graphics...
Sharpe Ratios by Period
| CGNX | DHI | Difference | |
|---|---|---|---|
Sharpe Ratio (1Y)Calculated over the trailing 1-year period | 1.09 | 0.25 | +0.84 |
Sharpe Ratio (5Y)Calculated over the trailing 5-year period | -0.22 | 0.28 | -0.50 |
Sharpe Ratio (10Y)Calculated over the trailing 10-year period | 0.25 | 0.50 | -0.25 |
Sharpe Ratio (All Time)Calculated using the full available price history | 0.26 | 0.30 | -0.04 |
Correlation
The correlation between CGNX and DHI is 0.30, which is considered to be low. This implies their price changes are not closely related. A low correlation is generally favorable for portfolio diversification, as it helps to reduce overall risk by spreading it across multiple assets with different performance patterns.
Dividends
CGNX vs. DHI - Dividend Comparison
CGNX's dividend yield for the trailing twelve months is around 0.67%, less than DHI's 1.23% yield.
| TTM | 2025 | 2024 | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
CGNX Cognex Corporation | 0.67% | 0.90% | 0.85% | 0.68% | 0.56% | 0.32% | 2.77% | 0.37% | 0.48% | 0.27% | 0.46% | 0.62% |
DHI D.R. Horton, Inc. | 1.23% | 1.15% | 0.93% | 0.69% | 1.04% | 0.76% | 1.05% | 1.18% | 1.51% | 0.83% | 1.24% | 0.84% |
Drawdowns
CGNX vs. DHI - Drawdown Comparison
The maximum CGNX drawdown since its inception was -83.71%, smaller than the maximum DHI drawdown of -88.84%. Use the drawdown chart below to compare losses from any high point for CGNX and DHI.
Loading graphics...
Drawdown Indicators
| CGNX | DHI | Difference | |
|---|---|---|---|
Max DrawdownLargest peak-to-trough decline | -83.71% | -88.84% | +5.13% |
Max Drawdown (1Y)Largest decline over 1 year | -27.86% | -27.56% | -0.30% |
Max Drawdown (5Y)Largest decline over 5 years | -74.07% | -44.45% | -29.62% |
Max Drawdown (10Y)Largest decline over 10 years | -74.63% | -53.62% | -21.01% |
Current DrawdownCurrent decline from peak | -45.78% | -28.64% | -17.14% |
Average DrawdownAverage peak-to-trough decline | -37.53% | -27.93% | -9.60% |
Ulcer IndexDepth and duration of drawdowns from previous peaks | 13.17% | 13.18% | -0.01% |
Volatility
CGNX vs. DHI - Volatility Comparison
Cognex Corporation (CGNX) has a higher volatility of 13.36% compared to D.R. Horton, Inc. (DHI) at 9.04%. This indicates that CGNX's price experiences larger fluctuations and is considered to be riskier than DHI based on this measure. The chart below showcases a comparison of their rolling one-month volatility.
Loading graphics...
Volatility by Period
| CGNX | DHI | Difference | |
|---|---|---|---|
Volatility (1M)Calculated over the trailing 1-month period | 13.36% | 9.04% | +4.32% |
Volatility (6M)Calculated over the trailing 6-month period | 45.30% | 25.02% | +20.28% |
Volatility (1Y)Calculated over the trailing 1-year period | 60.50% | 39.09% | +21.41% |
Volatility (5Y)Calculated over the trailing 5-year period, annualized | 43.02% | 35.30% | +7.72% |
Volatility (10Y)Calculated over the trailing 10-year period, annualized | 41.89% | 35.53% | +6.36% |
Financials
CGNX vs. DHI - Financials Comparison
This section allows you to compare key financial metrics between Cognex Corporation and D.R. Horton, Inc.. 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. DHI - Profitability Comparison
CGNX - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Apr 2026, Cognex Corporation reported a gross profit of 165.90M and revenue of 252.34M. Therefore, the gross margin over that period was 65.8%.
DHI - Gross Margin
Gross margin is calculated as gross profit divided by revenue. For the three months ending on Apr 2026, D.R. Horton, Inc. reported a gross profit of 1.59B and revenue of 6.89B. Therefore, the gross margin over that period was 23.2%.
CGNX - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Apr 2026, Cognex Corporation reported an operating income of 35.28M and revenue of 252.34M, resulting in an operating margin of 14.0%.
DHI - Operating Margin
Operating margin is calculated as operating income divided by revenue. For the three months ending on Apr 2026, D.R. Horton, Inc. reported an operating income of 729.60M and revenue of 6.89B, resulting in an operating margin of 10.6%.
CGNX - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Apr 2026, Cognex Corporation reported a net income of 32.66M and revenue of 252.34M, resulting in a net margin of 12.9%.
DHI - Net Margin
Net margin is calculated as net income divided by revenue. For the three months ending on Apr 2026, D.R. Horton, Inc. reported a net income of 594.80M and revenue of 6.89B, resulting in a net margin of 8.6%.