Mastech DigitalvsUnion Pacific

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

MHH

Mastech Digital, Inc

$6.17

Value $73M

+0.00%
MHH's page

UNP

Union Pacific Corporation

$290.63

Value $172B

-3.41%
UNP's page

Mastech Digital (MHH) has a market value of $73M and Union Pacific (UNP) $172B. Over the last year, with dividends, MHH moved -11.0% and UNP +34.4%. The P/E is 64.0 for MHH and 22.6 for UNP. Dividend yield: MHH none, UNP 1.91%.

At a glance

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

  • Market value

    MHH$73M

    UNP$172B

    UNP is 2,357 times MHH

  • Revenue, 12 months

    MHH$170M

    UNP$26.4B

    UNP is 155 times MHH

  • Net income, 12 months

    MHH$1.1M

    UNP$7.6B

    UNP is 6,665 times MHH

  • Operating margin

    MHH0.4%

    UNP40.1%

    39.7 points apart

  • ROIC

    MHH0.7%

    UNP16.1%

    15.4 points apart

  • P/E

    MHH64.0

    UNP22.6

    MHH is 2.8 times UNP

  • Dividend yield

    MHH0.0%

    UNP1.9%

    1.9 points apart

  • 5-year return

    MHH-67.5%

    UNP+35.3%

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

MHH-67.5%

UNP+35.3%

5010015020222023202420252026
Returns by period
PeriodMHHWith dividendsUNPWith dividends
1 year since November 18, 2025-11.0%Price -11.0%+34.4%Price +31.6%
3 years since November 17, 2023-25.7%-9.4% a yearPrice -25.7%+41.6%+12.3% a yearPrice +32.6%
5 years since November 18, 2021-67.5%-20.1% a yearPrice -67.5%+35.3%+6.2% a yearPrice +21.0%
10 years since November 21, 2016+83.1%+6.2% a yearPrice +83.1%+258.9%+13.6% a yearPrice +188.5%

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.

MHHMastech DigitalUNPUnion Pacific

Valuation

MHHUNP
Valuation
Price$6.17$290.63
Market value$73M$172B
Enterprise value (EV)$35M$201B
P/E64.022.6
P/E, 5-year median16.720.6
P/B0.87.8
EV/EBIT47.219.0
Free cash flow yield7.8%3.9%

Results and growth

MHHUNP
Results and growth
Revenue, 12 months$170M$26.4B
Net income, 12 months$1.1M$7.6B
Free cash flow, 12 months$5.7M$6.7B
Earnings per share, 12 months$0.09$12.83
Revenue growth, year on year-3.8%1.1%
Revenue growth a year, past-2.9%over 5 years+4.6%over 5 years
EPS growth a year, past-43.0%over 5 years+8.7%over 5 years

Margins and returns on capital

MHHUNP
Margins and returns on capital
Gross margin28.2%–
Operating margin0.4%40.1%
Net margin0.7%28.9%
ROIC0.7%16.1%
ROE1.3%38.9%

Balance sheet

MHHUNP
Balance sheet
Cash$38M$2.2B
Total debt$2.8M$31.1B
Net debt / EBITDA-9.32.2
Interest cover–8.3×

Dividends and buybacks

MHHUNP
Dividends and buybacks
Dividend yield–1.9%
Dividend per share, 12 months–$5.56
Dividend growth a year, past–+7.0%over 5 years
Buyback yield3.1%1.6%
Shareholder yield3.1%3.5%

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: MHH or UNP

Didn't find what you were looking for?

Ask us
Which is bigger, Mastech Digital or Union Pacific?

By market value, Union Pacific ($172B) is about 2,357.1 times Mastech Digital ($73M), at today's prices.

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

Since November 21, 2016, MHH's price moved +83.1% and UNP's +188.5%. With dividends: MHH +83.1% (+6.2% a year), UNP +258.9% (+13.6% a year). Past returns do not predict future ones.

Which pays the higher dividend, MHH or UNP?

The dividend yield at today's price is none for Mastech Digital and 1.91% for Union Pacific. Over the last twelve months they paid – and $5.56 per share.

What is the P/E of MHH and UNP?

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

Which has the higher profit margins, Mastech Digital or Union Pacific?

Over the last twelve months, the net margin was 0.7% for Mastech Digital and 28.9% for Union Pacific, and the operating margin 0.4% and 40.1%. Revenue was $170M and $26.4B.

Which is the better investment, Mastech Digital 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.