
Stock Valuation Calculator: DCF Intrinsic Value & Margin of Safety
Estimate fair value with a DCF intrinsic-value model across optimistic, base, and pessimistic scenarios, then compare the result to the market price and your margin of safety.
Prosperics' Stock Valuation Calculator is a free discounted cash flow (DCF) model with optimistic, base and pessimistic scenarios, a weighted intrinsic value, a WACC-vs-growth sensitivity table and the margin of safety against the current market price.
Benjamin Graham's key principle: only buy when price is significantly below intrinsic value. A 25-40% margin protects against estimation errors.
Discounted Cash Flow (DCF) Analysis Explained · Margin of Safety: The Most Important Investing Concept · P/E Ratio: What It Tells You (And What It Doesn't) · Using Scenario Analysis for Stock Valuation
Read the full guide →Facts last reviewed:
Intrinsic value is an estimate of what a business is actually worth based on its fundamentals—future cash flows, assets, and earnings power—independent of its current stock price. Value investors like Warren Buffett seek stocks trading below their intrinsic value, providing a "margin of safety" against errors and market volatility. The stock market is a voting machine in the short term but a weighing machine in the long term—eventually, price tends to converge with intrinsic value.
The Price-to-Earnings (P/E) ratio shows how much investors pay per dollar of earnings. A P/E of 20 means the stock costs $20 for every $1 of annual earnings. Lower isn't always better—a P/E of 8 might indicate a declining business, while a P/E of 35 might be justified for a fast-growing company. Compare P/E to: the company's historical average, industry peers, and the growth rate (PEG ratio). The S&P 500's historical average P/E is around 15-16.
Discounted Cash Flow (DCF) analysis estimates a company's intrinsic value by projecting future free cash flows and discounting them to present value. The logic: a dollar received today is worth more than a dollar received in the future. Key inputs include: projected cash flows (typically 5-10 years), a terminal value for cash flows beyond your projection, and a discount rate (your required return, usually 8-12%). DCF is highly sensitive to assumptions—small changes in growth rates dramatically affect the result.
The discount rate represents your required return—the minimum return you'd accept given the investment's risk. A common approach: start with the risk-free rate (10-year Treasury, ~4-5%) and add a risk premium based on the company's volatility and uncertainty. For stable, large-cap companies, 8-10% is typical. For smaller, riskier companies, 12-15% may be appropriate. Higher discount rates result in lower valuations, providing a larger margin of safety.
Margin of safety is the difference between your estimate of intrinsic value and the price you pay. If you calculate a stock is worth $100 but only buy at $70, you have a 30% margin of safety. This protects against errors in your analysis, unexpected events, and general uncertainty. Benjamin Graham recommended never buying without a substantial margin—typically 25-50%. The more uncertain the valuation, the larger the margin of safety required.
Growth stocks derive most of their value from future growth, making terminal value a larger portion of DCF. They require projecting high growth rates that may not materialize, introducing more uncertainty—demanding a larger margin of safety. Value stocks trade at lower multiples and derive more value from current assets and earnings. They're often easier to value but may be cheap for good reasons (declining business). Both approaches can work—the key is understanding your assumptions and their limitations.
Key metrics include: Revenue Growth (top-line momentum), Gross Margin (pricing power and cost control), Operating Margin (operational efficiency), Free Cash Flow (actual cash generated), Return on Equity/Invested Capital (how efficiently capital is deployed), and Debt/EBITDA (leverage risk). For comparing valuation: P/E, P/FCF, EV/EBITDA, and PEG ratio. No single metric tells the whole story—analyze them together and compare to industry peers and historical averages.
The calculator automatically generates three scenarios from your base assumptions. Conservative uses 70% of your growth rate and 90% of your margins to show downside risk. Base uses your inputs directly. Optimistic uses 130% of growth and 110% of margins to show upside potential. You can also independently edit each scenario's assumptions (growth rate, margin, exit multiple) for full control. The weighted average (25% Conservative + 50% Base + 25% Optimistic) provides a risk-adjusted intrinsic value. Quick Assumption Presets reset any custom overrides back to auto-calculated defaults.
Start by setting your base case assumptions based on company fundamentals, historical performance, and analyst estimates. The calculator auto-generates Conservative and Optimistic scenarios using standard multipliers. You can now independently edit each scenario — tap any scenario tab and adjust its growth rate, operating margin, or exit multiple individually. Review whether the Conservative scenario is pessimistic enough and whether Optimistic is achievable. The wider the range between scenarios, the more uncertain your valuation—which suggests requiring a larger margin of safety. Use Quick Assumption Presets to reset to defaults.
The weighted average combines all three scenarios: 25% weight to Conservative, 50% to Base, and 25% to Optimistic. This formula assumes your base case is most likely to occur, but gives meaningful weight to both upside and downside possibilities. The result is a risk-adjusted intrinsic value that accounts for uncertainty in your assumptions. It's more realistic than a single-point estimate because it acknowledges you can't predict the future precisely.
The sensitivity table shows how intrinsic value changes based on two key inputs: WACC (discount rate) and terminal growth rate. Each cell displays the intrinsic value for that combination of inputs. Your current assumptions are highlighted with a border. Green cells indicate >30% upside (undervalued), blue cells 0-30% upside, gray cells 0-30% downside, and red cells >30% downside (overvalued). If most of the table is green, the stock appears undervalued across a range of assumptions—a strong signal. If only a few optimistic cells are green, the current price requires aggressive assumptions to justify.
Facts last reviewed:
What you can do with these results
Plus a 3-day Pro preview — no credit card required
Related calculators