Home › Articles › How to value a stock

How to value a stock: EPS, P/E, DCF and margin of safety

8 min read · Updated 2026-11-17

The price is what you pay. The value is what you get. Valuing a stock means estimating what the business is worth, so you can tell whether the price is reasonable.

1. Start with the earnings

Earnings per share (EPS) is net income divided by the number of shares. A company earning $500 million with 250 million shares has an EPS of $2.

2. Compare with a multiple

Multiply EPS by a P/E you consider fair. With EPS of $4 and a fair P/E of 18, a rough value is $72. Choose the multiple by looking at similar companies and the company's growth.

3. Look at the whole business with EV

Enterprise value (EV) = market cap + debt − cash. It's what you'd pay for the whole company, including its debt. EV/EBITDA compares that with operating earnings and is useful when companies have very different amounts of debt.

4. Discount the future cash flows (DCF)

A DCF says a business is worth all its future cash, discounted back to today. $100 received in one year is worth $90.91 today if you require 10% a year. For a company with a steady, growing cash flow there is a shortcut:

Value = next year's cash flow ÷ (required return − growth)

$50 next year, growing 2% a year, with a 10% required return: 50 ÷ 0.08 = $625. Small changes in the inputs change the answer a lot, so treat a DCF as a range, not a precise number.

Add a margin of safety

Because every valuation can be wrong, careful investors only buy below their estimate. If you think a share is worth $100 and want a 30% margin of safety, you'd pay at most $70.

Check the quality

Numbers like ROE, profit margin, debt-to-equity and free cash flow tell you how good and how safe the business is. A cheap price on a weak business is often not a bargain.

Key takeaways
  • Use more than one method and compare the results.
  • DCF results are very sensitive to the inputs.
  • Always leave a margin of safety.
Now try it yourselfPractice this in the "Discounted cash flow (DCF)" lesson. It takes about 3 minutes.
Start the lesson

Keep reading