PortfoliosLab logoPortfoliosLab logo
CGNX vs. BRK-B
Performance
Return for Risk
Dividends
Drawdowns
Volatility
Financials

Performance

CGNX vs. BRK-B - Performance Comparison

The chart below illustrates the hypothetical performance of a $10,000 investment in Cognex Corporation (CGNX) and Berkshire Hathaway Inc. (BRK-B). The values are adjusted to include any dividend payments, if applicable.

Loading graphics...

CGNX vs. BRK-B - 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%
BRK-B
Berkshire Hathaway Inc.
-4.80%10.89%27.09%15.46%3.31%28.95%2.37%10.93%3.01%21.62%

Fundamentals

Market Cap

CGNX:

$8.33B

BRK-B:

$1.03T

EPS

CGNX:

$0.68

BRK-B:

$31.03

PE Ratio

CGNX:

72.83

BRK-B:

15.42

PS Ratio

CGNX:

8.38

BRK-B:

2.78

PB Ratio

CGNX:

5.59

BRK-B:

1.44

Total Revenue (TTM)

CGNX:

$994.36M

BRK-B:

$371.37B

Gross Profit (TTM)

CGNX:

$665.39M

BRK-B:

$116.89B

EBITDA (TTM)

CGNX:

$191.13M

BRK-B:

$87.30B

Returns By Period

In the year-to-date period, CGNX achieves a 37.34% return, which is significantly higher than BRK-B's -4.80% return. Over the past 10 years, CGNX has underperformed BRK-B with an annualized return of 10.55%, while BRK-B has yielded a comparatively higher 12.78% 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%

BRK-B

1D
-0.15%
1M
-0.35%
YTD
-4.80%
6M
-3.95%
1Y
-10.22%
3Y*
15.72%
5Y*
13.13%
10Y*
12.78%
*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. BRK-B — 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

BRK-B
BRK-B Risk / Return Rank: 1717
Overall Rank
BRK-B Sharpe Ratio Rank: 1616
Sharpe Ratio Rank
BRK-B Sortino Ratio Rank: 1616
Sortino Ratio Rank
BRK-B Omega Ratio Rank: 1616
Omega Ratio Rank
BRK-B Calmar Ratio Rank: 1717
Calmar Ratio Rank
BRK-B Martin Ratio Rank: 1919
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. BRK-B - Risk-Adjusted Trends Comparison

This table presents a comparison of risk-adjusted performance metrics for Cognex Corporation (CGNX) and Berkshire Hathaway Inc. (BRK-B). 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.


CGNXBRK-BDifference

Sharpe ratio

Return per unit of total volatility

1.09

-0.56

+1.65

Sortino ratio

Return per unit of downside risk

2.10

-0.65

+2.75

Omega ratio

Gain probability vs. loss probability

1.29

0.91

+0.38

Calmar ratio

Return relative to maximum drawdown

2.40

-0.68

+3.07

Martin ratio

Return relative to average drawdown

5.07

-1.16

+6.23

CGNX vs. BRK-B - Sharpe Ratio Comparison

The current CGNX Sharpe Ratio is 1.09, which is higher than the BRK-B Sharpe Ratio of -0.56. The chart below compares the historical Sharpe Ratios of CGNX and BRK-B, 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


CGNXBRK-BDifference

Sharpe Ratio (1Y)

Calculated over the trailing 1-year period

1.09

-0.56

+1.65

Sharpe Ratio (5Y)

Calculated over the trailing 5-year period

-0.22

0.77

-0.99

Sharpe Ratio (10Y)

Calculated over the trailing 10-year period

0.25

0.66

-0.41

Sharpe Ratio (All Time)

Calculated using the full available price history

0.26

0.48

-0.22

Correlation

The correlation between CGNX and BRK-B 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. BRK-B - Dividend Comparison

CGNX's dividend yield for the trailing twelve months is around 0.67%, while BRK-B has not paid dividends to shareholders.


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%
BRK-B
Berkshire Hathaway Inc.
0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%0.00%

Drawdowns

CGNX vs. BRK-B - Drawdown Comparison

The maximum CGNX drawdown since its inception was -83.71%, which is greater than BRK-B's maximum drawdown of -53.86%. Use the drawdown chart below to compare losses from any high point for CGNX and BRK-B.


Loading graphics...

Drawdown Indicators


CGNXBRK-BDifference

Max Drawdown

Largest peak-to-trough decline

-83.71%

-53.86%

-29.85%

Max Drawdown (1Y)

Largest decline over 1 year

-27.86%

-14.95%

-12.91%

Max Drawdown (5Y)

Largest decline over 5 years

-74.07%

-26.58%

-47.49%

Max Drawdown (10Y)

Largest decline over 10 years

-74.63%

-29.57%

-45.06%

Current Drawdown

Current decline from peak

-45.78%

-11.36%

-34.42%

Average Drawdown

Average peak-to-trough decline

-37.53%

-11.07%

-26.46%

Ulcer Index

Depth and duration of drawdowns from previous peaks

13.17%

8.72%

+4.45%

Volatility

CGNX vs. BRK-B - Volatility Comparison

Cognex Corporation (CGNX) has a higher volatility of 13.36% compared to Berkshire Hathaway Inc. (BRK-B) at 4.33%. This indicates that CGNX's price experiences larger fluctuations and is considered to be riskier than BRK-B based on this measure. The chart below showcases a comparison of their rolling one-month volatility.


Loading graphics...

Volatility by Period


CGNXBRK-BDifference

Volatility (1M)

Calculated over the trailing 1-month period

13.36%

4.33%

+9.03%

Volatility (6M)

Calculated over the trailing 6-month period

45.30%

11.14%

+34.16%

Volatility (1Y)

Calculated over the trailing 1-year period

60.50%

18.30%

+42.20%

Volatility (5Y)

Calculated over the trailing 5-year period, annualized

43.02%

17.20%

+25.82%

Volatility (10Y)

Calculated over the trailing 10-year period, annualized

41.89%

19.45%

+22.44%

Financials

CGNX vs. BRK-B - Financials Comparison

This section allows you to compare key financial metrics between Cognex Corporation and Berkshire Hathaway 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.0020.00B40.00B60.00B80.00B100.00B120.00B140.00B20212022202320242025
252.34M
94.23B
(CGNX) Total Revenue
(BRK-B) Total Revenue
Values in USD except per share items

CGNX vs. BRK-B - Profitability Comparison

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

Gross Margin
Operating Margin
Net Margin
Quarterly
Annual

10.0%20.0%30.0%40.0%50.0%60.0%70.0%80.0%20212022202320242025
65.8%
23.0%
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%.

BRK-B - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Apr 2026, Berkshire Hathaway Inc. reported a gross profit of 21.68B and revenue of 94.23B. Therefore, the gross margin over that period was 23.0%.

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%.

BRK-B - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Apr 2026, Berkshire Hathaway Inc. reported an operating income of 13.65B and revenue of 94.23B, resulting in an operating margin of 14.5%.

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%.

BRK-B - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Apr 2026, Berkshire Hathaway Inc. reported a net income of 19.20B and revenue of 94.23B, resulting in a net margin of 20.4%.