Advertisement
Value Investing 101

Margin of Safety Investing: 4 Ways to Calculate It (With Real Stock Examples)

By Poor Man's Stocks11 min read
Ad Space — article-top

Every value investor talks about margin of safety. It's the most quoted concept from Benjamin Graham's The Intelligent Investor. The idea is simple: don't just buy stocks at fair value — buy them well below fair value, so even if you're wrong about the numbers, you still come out okay.

But here's what nobody tells beginners: there are multiple ways to calculate margin of safety, and each method gives you a different answer. Some are conservative. Some are aggressive. The best investors use several methods simultaneously and only buy when most of them agree.

If you've already read our introduction to margin of safety, you know the concept. Now let's get into the math.


Why Margin of Safety Matters (A Quick Refresher)

Imagine you're buying a used car. The Blue Book value says it's worth $20,000. Would you pay $20,000? Probably not — there could be hidden problems, the market could shift, or you might just be wrong about the condition.

You'd want to pay $14,000 or $15,000, giving yourself a $5,000-$6,000 cushion. That cushion is your margin of safety.

Stocks work the same way. You calculate what a business is worth (intrinsic value), then you only buy if the price is significantly lower. The gap between value and price is your margin of safety.

"The margin of safety is always dependent on the price paid. For any security, it will be large at one price, small at some higher price, nonexistent at some still higher price." — Benjamin Graham


Method 1: The Graham Number

Best for: Quick screening of large numbers of stocks Difficulty: Easy Conservative rating: ⭐⭐⭐ (Moderate)

Benjamin Graham's most famous formula calculates the maximum price a defensive investor should pay for a stock:

Graham Number = √(22.5 × EPS × BVPS)

Where:

  • EPS = Earnings per share (trailing 12 months)
  • BVPS = Book value per share
  • 22.5 = Graham's ceiling (P/E of 15 × P/B of 1.5)

Example: Johnson & Johnson (JNJ)

Let's say JNJ has:

  • EPS: $9.50
  • Book value per share: $28.00

Graham Number = √(22.5 × $9.50 × $28.00) Graham Number = √($5,985) Graham Number = $77.37

If JNJ trades at $155, there's no margin of safety — the stock is priced at 2x Graham's maximum price. But if JNJ were trading at $65 (hypothetically), you'd have a margin of safety of about 16%.

Your margin of safety = (Graham Number − Market Price) ÷ Graham Number

So: ($77.37 − $65) ÷ $77.37 = 16% margin of safety

Graham wanted at least a 33% margin of safety using this method.

Try it yourself: Plug your numbers into our Graham Number Calculator and see how any stock measures up.

Pros:

  • Simple and fast — you only need two numbers
  • Works well for stable, established companies
  • Forces discipline (most stocks fail the screen)

Cons:

  • Doesn't work well for growth companies (low book value inflates the number)
  • Ignores cash flow completely
  • Static — doesn't account for future earnings growth

Method 2: Net Current Asset Value (NCAV)

Best for: Finding deep bargains in unloved stocks Difficulty: Easy Conservative rating: ⭐⭐⭐⭐⭐ (Very Conservative)

This was Graham's favorite bargain-hunting technique. It asks a radical question: What if this company shut down tomorrow and sold off only its short-term assets? Would shareholders still get their money back?

NCAV per share = (Current Assets − Total Liabilities) ÷ Shares Outstanding

Notice that you subtract total liabilities (not just current liabilities) from current assets only. This means you're completely ignoring the value of factories, equipment, real estate, patents, and brand value.

If a stock trades below its NCAV, you're essentially getting all the long-term assets for free.

Example: Hypothetical Manufacturing Co.

  • Current assets: $800M (cash, receivables, inventory)
  • Total liabilities: $500M (all debt, current and long-term)
  • Shares outstanding: 50M

NCAV per share = ($800M − $500M) ÷ 50M = $6.00

If the stock trades at $4.50, your margin of safety is:

($6.00 − $4.50) ÷ $6.00 = 25% margin of safety

Plus you're getting the company's buildings, equipment, and intellectual property valued at zero.

Graham typically required buying at 2/3 of NCAV or less — meaning a 33%+ margin of safety on an already ultraconservative metric.

Pros:

  • Extremely conservative — one of the safest ways to invest
  • Historical returns on NCAV portfolios are exceptional (15%+ annually in studies)
  • Simple calculation

Cons:

  • Very few stocks pass this screen in bull markets (sometimes fewer than 20 in the entire U.S. market)
  • Many NCAV stocks are genuinely distressed companies
  • Requires a diversified basket (20+ stocks) because individual picks have high failure rates

Method 3: Discounted Cash Flow (DCF)

Best for: Valuing companies with predictable cash flows Difficulty: Hard Conservative rating: ⭐⭐ (Depends entirely on your assumptions)

DCF is the gold standard of Wall Street valuation. It estimates the present value of all future cash flows a business will generate.

Intrinsic Value = Σ (Future Cash Flow ÷ (1 + Discount Rate)^n) + Terminal Value

Let's simplify this with a practical example.

Example: Steady Eddie Corp

  • Current free cash flow: $500M per year
  • Expected growth rate: 5% per year for 10 years
  • Discount rate: 10% (your required return)
  • Terminal growth rate: 3% (perpetual growth after year 10)
  • Shares outstanding: 100M

Step 1: Project future cash flows

YearFree Cash Flow
1$525M
2$551M
3$579M
4$608M
5$638M
6$670M
7$704M
8$739M
9$776M
10$815M

Step 2: Discount each cash flow back to present

Each year's cash flow is divided by (1.10)^n to account for the time value of money.

YearFCFPresent Value
1$525M$477M
2$551M$455M
3$579M$435M
4$608M$415M
5$638M$396M
6$670M$378M
7$704M$361M
8$739M$345M
9$776M$329M
10$815M$314M
Total$3,905M

Step 3: Calculate terminal value

Terminal Value = Year 10 FCF × (1 + terminal growth) ÷ (discount rate − terminal growth) = $815M × 1.03 ÷ (0.10 − 0.03) = $839M ÷ 0.07 = $11,993M

Present value of terminal value = $11,993M ÷ (1.10)^10 = $4,625M

Step 4: Calculate intrinsic value per share

Total value = $3,905M + $4,625M = $8,530M Per share = $8,530M ÷ 100M = $85.30

If the stock trades at $60, your margin of safety is: ($85.30 − $60) ÷ $85.30 = 30% margin of safety

The big warning with DCF: Your result is only as good as your assumptions. Change the growth rate from 5% to 7%, and intrinsic value jumps dramatically. Change the discount rate from 10% to 8%, and it jumps again. This is why you need a large margin of safety when using DCF — your assumptions WILL be wrong.

Pros:

  • Most thorough and flexible valuation method
  • Works for any type of company
  • Accounts for growth, risk, and time value of money

Cons:

  • Garbage in, garbage out — small changes in assumptions cause huge swings in valuation
  • Complex and time-consuming
  • Terminal value often accounts for 50-70% of total value (a guess about the distant future)

Method 4: Earnings Yield vs. Bond Yield

Best for: Quick reality check on whether a stock is cheap relative to alternatives Difficulty: Easy Conservative rating: ⭐⭐⭐ (Moderate)

This is a method Graham used extensively in The Intelligent Investor. The idea: if a stock's earnings yield (the inverse of P/E ratio) isn't significantly higher than what you can earn from safe bonds, why take the risk of owning stocks?

Earnings Yield = EPS ÷ Stock Price (or equivalently, 1 ÷ P/E ratio)

Example: Is the S&P 500 cheap right now?

  • S&P 500 earnings yield: roughly 4.0% (based on ~25x P/E)
  • 10-year Treasury yield: roughly 4.3%

The S&P 500's earnings yield is lower than risk-free bonds. Graham would say the broad market offers zero margin of safety — you're not being compensated for equity risk.

Now compare a value stock:

  • Value Stock trading at 10x earnings → earnings yield of 10%
  • 10-year Treasury yield: 4.3%
  • Spread: 5.7 percentage points → substantial margin of safety

Graham's rule of thumb: stocks should yield at least 1.5-2x the bond yield to offer adequate margin of safety. At 4.3% Treasuries, that means you want stocks with earnings yields of 6.5-8.6% — equivalent to P/E ratios of 12-15x.

Pros:

  • Dead simple — compare two numbers
  • Provides market-level context (is it a good time to buy stocks in general?)
  • Adjusts automatically for interest rate environments

Cons:

  • Doesn't account for growth (a fast-growing company may deserve a lower earnings yield)
  • Earnings can be manipulated more easily than cash flows
  • Ignores balance sheet quality entirely

How to Combine These Methods

The best investors don't rely on a single method. Here's a practical workflow:

Step 1: Quick Screen with Graham Number

Run every stock you're interested in through our Graham Number Calculator. If a stock is wildly above its Graham Number, don't waste time on deeper analysis.

Step 2: Check Earnings Yield

Is the stock's earnings yield at least 1.5x the 10-year Treasury yield? If not, the margin of safety is thin.

Step 3: Look for NCAV Bargains

Scan for stocks trading below NCAV. These are rare, but when you find them, they deserve serious attention.

Step 4: Run a Conservative DCF

For stocks that pass the first three screens, do a full DCF analysis. Use conservative assumptions:

  • Growth rate lower than analysts expect
  • Discount rate of 10% or higher
  • Terminal growth rate no higher than 3%

Step 5: Require Agreement

Only buy if at least 2-3 methods show a margin of safety of 25% or more. If only one method says it's cheap, the "cheapness" might just be an artifact of your assumptions.


Common Mistakes to Avoid

1. Using margin of safety to justify bad businesses A stock trading at 50% of book value isn't cheap if the company is losing money and burning cash. Margin of safety only works for profitable, solvent businesses.

2. Using only one method Every valuation method has blind spots. DCF ignores the balance sheet. Graham Number ignores cash flow. NCAV ignores earnings growth. Use multiple methods.

3. Setting your margin of safety too thin Graham wanted 33%. Buffett wants even more for riskier businesses. Don't convince yourself that a 10% margin of safety is "close enough."

4. Forgetting that intrinsic value changes A company worth $50 today might be worth $30 next year if earnings decline. Recalculate periodically.


The Margin of Safety Mindset

Margin of safety isn't just a calculation — it's a philosophy. It means:

  • Acknowledging that you will be wrong about some of your analysis
  • Building a buffer so that being wrong doesn't destroy your capital
  • Having the patience to wait for the right price instead of buying at any price
  • Prioritizing not losing money over maximizing returns

As Graham wrote: "The purpose of the margin of safety is to render unnecessary an accurate estimate of the future."

You don't need to predict earnings perfectly. You don't need to time the market. You just need to buy cheap enough that the future almost doesn't matter.


Take Action

Ready to calculate margin of safety on your favorite stocks? Start with our Graham Number Calculator — it's free, requires no account, and gives you an instant Graham Number for any stock you enter.

Want to go deeper? Subscribe to our newsletter and get weekly stock analyses with full margin of safety calculations on real stocks.


The information on this site is for educational purposes only. Poor Man's Stocks does not provide financial advice, and nothing here should be interpreted as a recommendation to buy or sell any security. Always do your own research and consult a licensed financial advisor before making investment decisions.

Ad Space — article-bottom
📬

Get Picks Like This Every Tuesday

Join 10,000+ value investors getting our best undervalued stock picks, Graham Number breakdowns, and dividend analysis — free.

Subscribe Free →

Get Our Best Stock Picks — Free

Join 10,000+ value investors. Get our top undervalued stock picks, Graham-style analysis, and dividend recommendations delivered to your inbox every week.

No spam, ever. Unsubscribe anytime.