CognexvsUnion Pacific

CGNX and UNP stock compared: price, dividend, valuation and results, from SEC filings.

CGNX

Cognex Corporation

$49.13

Value $8.1B

+1.30%
CGNX's page

UNP

Union Pacific Corporation

$300.90

Value $179B

+1.30%
UNP's page

Cognex (CGNX) has a market value of $8.1B and Union Pacific (UNP) $179B. Over the last year, with dividends, CGNX moved +37.1% and UNP +39.0%. The P/E is 33.7 for CGNX and 23.4 for UNP. Dividend yield: CGNX 0.69%, UNP 1.85%.

At a glance

The main figures of both. A bar only shows which number is larger, not which is better.

  • Market value

    CGNX$8.1B

    UNP$179B

    UNP is 22 times CGNX

  • Revenue, 12 months

    CGNX$1.1B

    UNP$26.4B

    UNP is 23 times CGNX

  • Net income, 12 months

    CGNX$242M

    UNP$7.6B

    UNP is 31 times CGNX

  • Operating margin

    CGNX25.0%

    UNP40.1%

    15.1 points apart

  • ROIC

    CGNX14.6%

    UNP16.1%

    1.5 points apart

  • P/E

    CGNX33.7

    UNP23.4

    CGNX is 1.4 times UNP

  • Dividend yield

    CGNX0.7%

    UNP1.8%

    1.2 points apart

  • 5-year return

    CGNX-37.6%

    UNP+40.3%

    77.9 points apart

A fainter bar means a negative number. The 5-year return includes dividends.

The price over time

Both start at 100 at the beginning of the period, so the lines show how much each changed. With dividends means each dividend buys more shares.

CGNX-37.6%

UNP+40.3%

5010015020222023202420252026
Returns by period
PeriodCGNXWith dividendsUNPWith dividends
1 year since November 17, 2025+37.1%Price +36.5%+39.0%Price +36.2%
3 years since November 17, 2023+35.8%+10.7% a yearPrice +33.0%+46.6%+13.6% a yearPrice +37.3%
5 years since November 17, 2021-37.6%-9.0% a yearPrice -39.7%+40.3%+7.0% a yearPrice +25.5%
10 years since November 21, 2016+78.7%+6.0% a yearPrice +65.3%+271.6%+14.0% a yearPrice +198.7%

Each cell: the total return with dividends, its yearly rate, and the price change alone. Before taxes and costs. Past returns do not predict future ones.

Every figure

As on each company's page. A description, not a recommendation: no one figure says which is better.

CGNXCognexUNPUnion Pacific

Valuation

CGNXUNP
Valuation
Price$49.13$300.90
Market value$8.1B$179B
Enterprise value (EV)$7.4B$207B
P/E33.723.4
P/E, 5-year median52.920.6
P/B4.78.1
EV/EBIT26.519.6
Free cash flow yield3.5%3.8%

Results and growth

CGNXUNP
Results and growth
Revenue, 12 months$1.1B$26.4B
Net income, 12 months$242M$7.6B
Free cash flow, 12 months$286M$6.7B
Earnings per share, 12 months$1.44$12.83
Revenue growth, year on year8.7%1.1%
Revenue growth a year, past+4.2%over 5 years+4.6%over 5 years
EPS growth a year, past-7.4%over 5 years+8.7%over 5 years

Margins and returns on capital

CGNXUNP
Margins and returns on capital
Gross margin69.7%–
Operating margin25.0%40.1%
Net margin21.5%28.9%
ROIC14.6%16.1%
ROE15.5%38.9%

Balance sheet

CGNXUNP
Balance sheet
Cash$696M$2.2B
Total debt$70M$31.1B
Net debt / EBITDA-2.32.2
Interest cover–8.3×

Dividends and buybacks

CGNXUNP
Dividends and buybacks
Dividend yield0.7%1.8%
Dividend per share, 12 months$0.34$5.56
Dividend growth a year, past+7.3%over 4 years+7.0%over 5 years
Buyback yield1.9%1.5%
Shareholder yield2.6%3.4%

Last 12 months from the latest 10-Q and 10-K. Value, P/E and yields at today's price. A dash means the figure does not exist or did not pass our checks.

Questions: CGNX or UNP

Didn't find what you were looking for?

Ask us
Which is bigger, Cognex or Union Pacific?

By market value, Union Pacific ($179B) is about 21.9 times Cognex ($8.1B), at today's prices.

How did CGNX and UNP stock do over the last 10 years?

Since November 21, 2016, CGNX's price moved +65.3% and UNP's +198.7%. With dividends: CGNX +78.7% (+6.0% a year), UNP +271.6% (+14.0% a year). Past returns do not predict future ones.

Which pays the higher dividend, CGNX or UNP?

The dividend yield at today's price is 0.69% for Cognex and 1.85% for Union Pacific. Over the last twelve months they paid $0.34 and $5.56 per share.

What is the P/E of CGNX and UNP?

At today's price, the P/E is 33.7 for CGNX and 23.4 for UNP. The median of the last five years was 52.9 and 20.6, which shows where each stands against its own past.

Which has the higher profit margins, Cognex or Union Pacific?

Over the last twelve months, the net margin was 21.5% for Cognex and 28.9% for Union Pacific, and the operating margin 25.0% and 40.1%. Revenue was $1.1B and $26.4B.

Which is the better investment, Cognex or Union Pacific?

The page does not answer that and does not suggest buying or selling. It puts the two companies' numbers side by side, from their SEC filings, for you to read and form your own view. The decision depends on your goals and situation.

Other comparisons

With each of the two, and with the largest in its sector.

Related pages

The other pages on US stocks, free to read. On the company pages, the last three fiscal years are open to everyone, five with a free account, and every year with Ploutos Investor.

Descriptive data from SEC filings and market prices.