KnowledgePilot
Public Library
Create free account
KnowledgePilot
Public LibraryFree ToolsWidget CreatorTerms & ConditionsPrivacy PolicyContact
  1. Home
  2. Public Library
  3. Business & Entrepreneurship
  4. How to Value a Stock Using P/E, DCF and Margin of Safety

Youtube · Source-backed public analysis

How to Value a Stock Using P/E, DCF and Margin of Safety

Every insight links to its original source.

Three practical ways to value a stock, using Coca-Cola as a case study: relative PE analysis, discounted cash flow, and a third tool that sits between them. Learn how Buffett's margin-of-safety framework and discount rate choices swing a company's implied value by hundreds of billions.

Jun 27, 2025The Swedish InvestorYouTube
Add to Knowledge HubGo to YouTube

The Problem of Knowing What's High and Low

Stock valuation starts with a simple distinction that price alone cannot answer: a low-priced stock is not necessarily cheap, and an expensive-looking share is not necessarily overvalued. Comparing companies requires a way to estimate the value of the underlying business relative to the price investors are being asked to pay.

Measures such as the P/E ratio, discounted cash flow and a margin of safety provide different ways to approach that problem and test whether a stock's market price is justified.

The Swedish investor's own aha moment came not on Wall Street but in the streets of Stormwind in World of Warcraft. Using the in-game auction house, he bought rare items when they sold at a 50% margin of safety below the average price across all servers. That strategy, born from geeking out on a video game, became a cornerstone of his investing approach for 12 years.

In the stock market, the same logic applies: buy stocks when they're cheaper than their historical averages or cheap compared to peers. This is relative valuation, and it starts with understanding valuation multiples. As Warren Buffett puts it, "Price is what you pay, value is what you get."

Reading the Valuation Multiples

  • PE Is a Payback ClockA trailing PE of 28.8 means it would take 28.8 years to recoup a Coca-Cola investment at current earnings, a useful gut check before buying.
  • Forward PE Looks AheadThe forward PE of 24.3 uses analyst expectations for next year's earnings, partially fixing the problem of driving while looking in the rear-view mirror.
  • History Sets the BenchmarkCoca-Cola's 10-year average forward PE is 23; buying at 24 times means paying above the historical norm.
  • Peers Reveal the SpreadThe peer group averages 21.3 forward PE, implying roughly 12% downside for Coca-Cola if it reverts to the group average.

The PE Ratio and Relative Valuation

Coca-Cola trades at about $72 and earns $2.5 per share. If the company keeps up that performance, it would take 72 divided by 2.5, or 28.8 years, to recoup the investment, that's the trailing PE ratio. The forward PE, which divides price by analysts' expectations for next year's earnings, comes in at 24.3, lower because analysts expect higher earnings ahead.

Relative valuation requires context. Over the last 10 years, investors have been willing to pay 23 times forward earnings for Coca-Cola, so buying at 24 times means paying above the norm. The peer group (PepsiCo, Dr. Pepper, Monster, and lesser-known Scottish company AG Barr) averages 21.3 forward PE. If Coca-Cola were valued like this group, the stock would stand to fall about 12%.

Peer comparisons can also surface better opportunities. AG Barr has an 18% upside if valued like its own history and 33% if valued like the group. But multiples have limits: in 2000, a software stock at PE 100 looked cheap against peers at PE 2000, and three years later investors were "eating their shirts." As Joel Greenblatt warns, the last thing you want is a stock that's cheap for a good reason, because it stinks.

The Oracle's Yardstick“Price is what you pay, value is what you get.”— Warren Buffett

A stock's dollar price says nothing about whether it's a bargain; only the relationship between price and the value delivered matters.

The Margin of Safety

Benjamin Graham's margin of safety may be "the three most important words in investing." Seth Klarman, one of Graham's value-investing protégés, explains why: a margin of safety is necessary because valuation is an imprecise art, the future is unpredictable, and investors are human and make mistakes.

Asked how large a margin of safety he demands, Buffett said he doesn't need a huge one for stable businesses like See's Candy or Coca-Cola, because he doesn't expect to be materially wrong about his assumptions. He'd love to find them at 40 cents on the dollar, but he'll pay close to a dollar for businesses he understands deeply.

DCF: Buffett's Three Questions

Buffett defines intrinsic value as the number you'd get if you could predict all the cash a business will deliver between now and judgment day, discounted at the proper rate. That reduces investing to three questions: How much cash will you get? When will you get it? And how certain are you? This is the basis for discounted cash flow analysis.

DCF uses free cash flow (cash from operations minus capital expenditures) not earnings. Coca-Cola's 2024 results include a $6 billion non-recurring tax item that distorts the record. Assuming $10 billion in normal-year free cash flow and 4% growth going forward, Coca-Cola would generate about $14.8 billion per year in 10 years.

Since forecasting to infinity is impractical, analysts add a terminal value for years 11 onward. Using an exit multiple of 33 (the 10-year median price-to-free-cash-flow) the business could sell for $488.4 billion in year 10. Summing all cash flows yields $613 billion, suggesting nearly 100% upside versus today's value. But that ignores the second question: when will you get it?

The Discount Rate Question

Money today is worth more than money next year. The DCF formula discounts each cash flow by (1+R) to the power of T, where R is the discount rate. At 10%, Coca-Cola is worth just $260 billion, a loss at today's prices. At 5%, it's $394 billion, a decent purchase with a little over 20% margin of safety.

The Rate Swings Everything$260B to $394B

Coca-Cola's implied value ranges from a loss to a 20% margin of safety depending on whether the discount rate is 10% or 5%.

Buffett says he doesn't formally use discount rates, but he wants significantly more than government bonds. In May 2007, with long-term bonds at 4.9%, he wanted at least 200 basis points more. In 1994, with 7% bonds, he wanted at least 10%. The practical takeaway: use the 10-year Treasury yield plus 3 percentage points.

At 7.5% (a 4.5% Treasury yield plus 3 points) Coca-Cola is worth $320 billion. The alternative perpetuity growth method, assuming 3% perpetual growth, yields $248 billion. Neither method suggests a screaming buy, and the choice of terminal value calculation doesn't change that conclusion.

Applying the Margin of Safety

  • Stable Businesses Need LessBuffett accepts a smaller margin of safety for predictable businesses like Coca-Cola because he doesn't expect to be materially wrong about assumptions.
  • Treasury Plus ThreeUse the 10-year Treasury yield plus 3 percentage points as a practical discount rate, following Buffett's guidance across two decades.
  • Certainty Is a GateBuffett treats certainty as a go/no-go factor rather than something to compensate for with a larger margin of safety or higher discount rate.
  • Triangulate Every PickNo single method suffices; combine relative valuation, DCF, and a third tool, and prefer companies that look good through every lens.

How Certain Are You?

Buffett's third question is about certainty. Coca-Cola passes: its financial performance is stable and growing on virtually every metric, and it still sells a product very similar to one sold 110-plus years ago. The same cannot be said for IBM, General Electric, or Ford Motor.

Buffett views change as a threat to the investment process, not an opportunity. He'd likely avoid Nvidia, Eli Lilly, and Netflix despite their terrific records. And as Charlie Munger noted, Buffett rarely does formal DCF calculations, the opportunity should "scream at you" with a huge margin of safety, not require pencil and paper.

Triangulating with Multiple Methods

The third method uses Ticker's valuation tool, which plugs in sales, operating margins, interest, tax rates, buybacks, dividends, and an exit multiple. For Coca-Cola, the model suggests $91 per share by December 2029, about 6.2% annual return. AG Barr yields 9.3%, implying a 22% margin of safety against the 7.5% discount rate.

Munger's Caution“There is no one easy method that could be simply mechanically applied by a computer and make anybody who could punch the buttons rich.”— Charlie Munger

Valuation is a game played with multiple techniques, multiple models, and a lot of experience.

Munger warns there's no single easy method that can be mechanically applied by a computer to make anyone rich. The game requires multiple techniques, multiple models, and a lot of experience. The practical advice: triangulate, and prefer companies that look like phenomenal investments through every lens.

Charts & Visual Insights

Coca-Cola's Implied Value at Different Discount Rates

Discounted cash flow valuation of Coca-Cola swings from $260 billion at a 10% discount rate to $394 billion at 5%, with $320 billion at the practical 7.5% rate.

AI-extracted, unverified
Discount RateImplied Value ($B)Source
10%$260B
7.5%$320B
5%$394B
Reading the chart
  • 5% has the highest Implied Value ($B) at $394B.
  • 10% has the lowest Implied Value ($B) at $260B.
  • 3 source-backed data points are charted.

Values in billions of dollars, from the source's DCF calculations.

▶YoutubePublic
SpeakerThe Swedish Investor
ChannelThe Swedish Investor
PublishedJun 27, 2025
Duration36m 4s
Analysed by KnowledgePilot

Full 36m 4s source analysed with timestamp references throughout this article.

Watch original on YouTube ↗

TLDR

  • Relative valuation compares a stock's multiple to its history and peers, but can mislead when entire industries are overpriced.
  • DCF values a business by forecasting free cash flow and discounting it back to today's dollars.
  • Buffett's practical discount rate is the 10-year Treasury yield plus 3 percentage points.
  • At 7.5%, Coca-Cola is worth $320 billion; at 10%, just $260 billion.
  • Buffett treats certainty as a go/no-go factor, avoiding businesses susceptible to change.
  • Munger says no single mechanical method works; investors should triangulate multiple techniques.

In this article

  • The Problem of Knowing What's High and Low
  • The PE Ratio and Relative Valuation
  • The Margin of Safety
  • DCF: Buffett's Three Questions
  • The Discount Rate Question
  • How Certain Are You?
  • Triangulating with Multiple Methods
i

About this analysis

This article analyses and summarises information, arguments, and opinions presented in the primary source above. Statements, predictions, and viewpoints attributed to the source remain the source’s own.

KnowledgePilot provides the organisation, synthesis and timestamped source references. Readers can use the citations throughout this article to return to the original video for full context.

Free article widgets→

Related Articles

Selected from shared tags, topics, entities, and search keywords.

KP
Related: intrinsic value · value investing · Berkshire Hathaway

Warren Buffett's Investment Philosophy: Character, Competence and Patience

Discover Warren Buffett's core investment principles: the power of character, staying within your circle of competence, and the importance of long-term...

Read analysis →
KPQ&A
Related: financial statement analysis · Benjamin Graham · value investing

Value vs Growth Investing and the Risk of the Value Trap

Explore a faculty research talk on conservative accounting, book-to-price ratios and expensed investment, explaining the speaker's argument about value traps.

Read analysis →
KP
Related: value investing · Apple · Berkshire Hathaway

Dividend Investing: Why Growth Can Matter More Than Yield

Joseph Carlson’s June 2023 discussion of dividend-growth investing, high-yield traps and the concentrated portfolio he prefers.

Read analysis →
KP
Related: value investing · Berkshire Hathaway · Business & Entrepreneurship

Warren Buffett on Luck, Integrity and the Inner Scorecard

Warren Buffett reflects on luck, an inner scorecard, trusted relationships and staying within his circle of competence.

Read analysis →