FIREDeskFIREDesk Full guide · 8 min read

How to value a stock yourself: earnings, fair price and margin of safety

The method I use on my own stock list, step by step, with a worked example and a calculator you can try with your own numbers. It will not tell you what to buy. It will teach you to ask the right question: what do I think this business is worth, and how wrong could I be?

Read this firstThis guide is educational, not financial advice. It uses a made-up company so nothing here is a view on a real stock. FIREDesk does not tell you what to buy or sell and does not know your situation. A valuation is an opinion built from assumptions, and any assumption can be wrong. Investing involves risk, including the loss of the money you invest.
In this guide
  1. Price is not value
  2. Step 1: earnings per share
  3. Step 2: choose a fair P/E
  4. Step 3: fair value and upside
  5. Step 4: margin of safety
  6. Cross-checks: PEG, debt, dividends, trend
  7. A worked example
  8. Try it: the calculator
  9. Mistakes, and how to keep a record

1Price is not value

The price is what the market pays today. The value is what you think the business is worth, given what it earns and how fast it may grow. They are often different, sometimes for years, and the gap between them is the only place a stock investor can find an edge.

I kept a spreadsheet for each stock I follow for years: what it earns, what I expect, what P/E is fair, and what price that implies. The method below is that spreadsheet, cleaned up. I update the figures as companies report real results, and I mark which numbers are real and which are my estimates.

2Step 1: earnings per share

Earnings per share (EPS) is the profit of the company divided by the number of shares. To estimate it, start from three numbers you can find in a company's investor relations material:

EPS = revenue x net margin / diluted shares. Keep the real numbers (reported) apart from the estimates (your forecast), so you can see later how good your forecasts were.

3Step 2: choose a fair P/E

The P/E is the price divided by the EPS. A "fair P/E" is the multiple you believe the market should pay for this business over time. It is the most important and the most subjective number in the whole method, and the one beginners get wrong.

Things that push a fair P/E up or down:

Write the reason downFor every fair P/E you choose, write one line explaining why (for example, "mature business, growing 5%, history of 12 to 16"). Months later you will know whether you changed your mind or just forgot.

4Step 3: fair value and upside

Treat the later years with more suspicion: errors compound. A forecast for year 5 is a range, not a number.

5Step 4: margin of safety

Because you can be wrong, many value investors only act when the price is below their own fair value by a cushion. In my own work I look for the price to be about 10% to 20% below my fair value. I treat a 10% discount as "undervalued" and 20% or more as "deeply undervalued", and a price 10% or more above fair value as "overvalued". Those thresholds are mine; you can choose different ones, but choose them before you look at the result.

How much to put in a stock is a different question that no formula answers for everyone: it depends on your total assets, on how diversified you want to be and on the cash you may need.

6Cross-checks: PEG, debt, dividends, trend

7A worked example (a made-up company)

Example Corp is invented for this guide. All figures are illustrative.

InputValue
Revenue this year$10,000 million
Net margin (kept constant)10%
Net income$1,000 million
Diluted shares (kept constant)500 million
EPS this year$2.00
Expected revenue growth8% a year
Fair P/E (mature business, history of 12 to 18)15
Share price today$27
ResultValue
Fair value today: $2.00 x 15$30.00
Price vs fair value today10% below
EPS in 5 years (revenue x 1.08^5, same margin and shares)$2.94
Fair value in 5 years: $2.94 x 15$44.08
Upside to year 5+63%
Per yearabout 10%
PEG: 15 / 81.9
What the example teachesThe price is 10% below fair value, which passes the margin-of-safety test. But the PEG is 1.9, higher than the usual comfort zone, which says the fair P/E of 15 may be generous for 8% growth. The answer is not "buy" or "do not buy": it is to go back to step 2 and defend the 15, or lower it. The method does not remove the judgment, it shows you where it sits.

8Try it: the calculator

Enter your own assumptions. The result is only as good as the numbers you put in.

A model result against your own assumptions, not a recommendation to buy or sell. Nothing is stored or sent.

9Mistakes, and how to keep a record

A one-page checklist for every stock

Next step

You have seen the method. With Stock Eval you see where each stock's price stands against the model, what the price implies and what happens if you change the assumptions. It is in beta: request access.

Get the free weekly email

A plain-English market view every Sunday and new guides when we publish them. Free, written for beginners, never advice.

You are in. Check your inbox in a minute (and the Promotions or Spam folder if you do not see it).

A short welcome, a few emails in your first two weeks, then the weekly market view and new guides. Unsubscribe with one click. Privacy

Legal. FIREDesk content is for educational purposes only and is not financial advice or an investment recommendation. FIREDesk does not give personal recommendations and does not know your situation. The company in the example is invented and its figures are illustrative. Valuations depend on assumptions that can be wrong, and past performance does not guarantee future results. Investing involves significant risk, including the loss of the money invested. The author may hold positions in securities he studies; nothing here refers to any specific security. Tax treatment depends on your country. You are responsible for your own decisions. Disclaimer · Privacy

Request beta access

Leave your email and we will write to you when access opens. Nothing else.

We use your email only for this notice. Privacy   Close