PortfoliosLab logoPortfoliosLab logo
CGNX vs. DHI
Performance
Return for Risk
Dividends
Drawdowns
Volatility
Financials

Performance

CGNX vs. DHI - Performance Comparison

The chart below illustrates the hypothetical performance of a $10,000 investment in Cognex Corporation (CGNX) and D.R. Horton, Inc. (DHI). The values are adjusted to include any dividend payments, if applicable.

Loading graphics...

CGNX vs. DHI - Yearly Performance Comparison


2026 (YTD)202520242023202220212020201920182017
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

Market Cap

CGNX:

$8.33B

DHI:

$40.55B

EPS

CGNX:

$0.68

DHI:

$11.27

PE Ratio

CGNX:

72.83

DHI:

12.27

PS Ratio

CGNX:

8.38

DHI:

1.22

PB Ratio

CGNX:

5.59

DHI:

1.69

Total Revenue (TTM)

CGNX:

$994.36M

DHI:

$33.52B

Gross Profit (TTM)

CGNX:

$665.39M

DHI:

$7.80B

EBITDA (TTM)

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%
*Multi-year figures are annualized to reflect compound growth (CAGR)

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

Compare risk-adjusted metric ranks to identify better-performing investments over the past 12 months.

CGNX
CGNX Risk / Return Rank: 7878
Overall Rank
CGNX Sharpe Ratio Rank: 7575
Sharpe Ratio Rank
CGNX Sortino Ratio Rank: 7979
Sortino Ratio Rank
CGNX Omega Ratio Rank: 8080
Omega Ratio Rank
CGNX Calmar Ratio Rank: 8080
Calmar Ratio Rank
CGNX Martin Ratio Rank: 7676
Martin Ratio Rank

DHI
DHI Risk / Return Rank: 4848
Overall Rank
DHI Sharpe Ratio Rank: 4949
Sharpe Ratio Rank
DHI Sortino Ratio Rank: 4747
Sortino Ratio Rank
DHI Omega Ratio Rank: 4444
Omega Ratio Rank
DHI Calmar Ratio Rank: 4949
Calmar Ratio Rank
DHI Martin Ratio Rank: 4949
Martin Ratio Rank
The rank (0–100) shows how this investment's returns compare to the risk taken. Higher = better. Based on the past 12 months of data, combining Sharpe, Sortino, and other metrics used by quantitative funds and institutional investors.

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.


CGNXDHIDifference

Sharpe ratio

Return per unit of total volatility

1.09

0.25

+0.84

Sortino ratio

Return per unit of downside risk

2.10

0.71

+1.39

Omega ratio

Gain probability vs. loss probability

1.29

1.08

+0.21

Calmar ratio

Return relative to maximum drawdown

2.40

0.36

+2.03

Martin ratio

Return relative to average drawdown

5.07

0.76

+4.30

CGNX vs. DHI - Sharpe Ratio Comparison

The current CGNX Sharpe Ratio is 1.09, which is higher than the DHI Sharpe Ratio of 0.25. The chart below compares the historical Sharpe Ratios of CGNX and DHI, offering insights into how both investments have performed under varying market conditions. These values are calculated using daily returns over the previous 12 months.


Loading graphics...

Sharpe Ratios by Period


CGNXDHIDifference

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.


TTM20252024202320222021202020192018201720162015
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


CGNXDHIDifference

Max Drawdown

Largest 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 Drawdown

Current decline from peak

-45.78%

-28.64%

-17.14%

Average Drawdown

Average peak-to-trough decline

-37.53%

-27.93%

-9.60%

Ulcer Index

Depth 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


CGNXDHIDifference

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.


Quarterly
Annual

Total Revenue: Total amount of money received from sales and other business activities


0.002.00B4.00B6.00B8.00B10.00B20212022202320242025
252.34M
6.89B
(CGNX) Total Revenue
(DHI) Total Revenue
Values in USD except per share items

CGNX vs. DHI - Profitability Comparison

The chart below illustrates the profitability comparison between Cognex Corporation and D.R. Horton, Inc. over time, highlighting three key metrics: Gross Profit Margin, Operating Margin, and Net Profit Margin.

Gross Margin
Operating Margin
Net Margin
Quarterly
Annual

20.0%30.0%40.0%50.0%60.0%70.0%80.0%20212022202320242025
65.8%
23.2%
Portfolio components
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%.