Stock Fair Value Calculator
Calculate the intrinsic fair value of a stock using fundamental analysis metrics. Input the financial data below to determine if a stock is undervalued or overvalued.
Comprehensive Guide to Stock Fair Value Calculation in Excel
Determining the fair value of a stock is a cornerstone of fundamental analysis. Unlike market price—which reflects current supply and demand—the fair value represents what a stock is actually worth based on its financial performance, growth prospects, and risk profile. This guide provides a step-by-step methodology for calculating stock fair value using Excel, along with practical examples, key formulas, and advanced techniques.
Why Calculate Fair Value?
Fair value calculation helps investors:
- Identify undervalued stocks trading below their intrinsic worth.
- Avoid overpaying for overhyped stocks.
- Make data-driven decisions rather than relying on market sentiment.
- Build long-term wealth by investing in fundamentally strong companies.
Key Methods for Fair Value Calculation
There are three primary approaches to valuing stocks, each with its own strengths and use cases:
-
Discounted Cash Flow (DCF) Model
The gold standard for intrinsic valuation. DCF projects future cash flows and discounts them to present value using a required rate of return (discount rate).
Excel Formula:
=NPV(discount_rate, cash_flow_range) + terminal_value / (1 + discount_rate)^n -
Comparable Company Analysis (CCA)
Values a stock by comparing it to similar publicly traded companies using metrics like P/E, EV/EBITDA, or P/B ratios.
Excel Formula:
=AVERAGE(comparable_P/E_range) * target_company_EPS -
Dividend Discount Model (DDM)
Ideal for dividend-paying stocks. It calculates fair value based on the present value of expected future dividends.
Excel Formula (Gordon Growth Model):
=dividend * (1 + growth_rate) / (discount_rate - growth_rate)
Step-by-Step DCF Valuation in Excel
Follow these steps to build a DCF model in Excel:
-
Gather Financial Data
Collect the following from the company’s 10-K filing or financial statements:
- Free Cash Flow (FCF) for the past 5-10 years
- Revenue and net income growth rates
- Weighted Average Cost of Capital (WACC)
- Terminal growth rate (typically 2-3%)
-
Project Free Cash Flows
Forecast FCF for the next 5-10 years using a growth rate. In Excel:
=previous_year_FCF * (1 + growth_rate)
-
Calculate Terminal Value
Use the perpetuity growth method:
=final_year_FCF * (1 + terminal_growth_rate) / (discount_rate - terminal_growth_rate)
-
Discount Cash Flows to Present Value
Apply the NPV function:
=NPV(discount_rate, FCF_range) + terminal_value / (1 + discount_rate)^n
-
Adjust for Debt and Cash
Subtract net debt (total debt – cash) from the enterprise value to get equity value:
=enterprise_value - net_debt
-
Divide by Shares Outstanding
Final fair value per share:
=equity_value / shares_outstanding
Excel Functions for Stock Valuation
| Function | Purpose | Example |
|---|---|---|
NPV |
Calculates net present value of cash flows | =NPV(10%, A2:A6) |
XNPV |
Net present value with specific dates | =XNPV(10%, B2:B6, A2:A6) |
IRR |
Calculates internal rate of return | =IRR(A2:A6, -1000) |
XIRR |
Internal rate of return with dates | =XIRR(B2:B6, A2:A6, -1000) |
FV |
Future value of an investment | =FV(7%, 10, -200, -1000) |
Common Pitfalls to Avoid
- Overly optimistic growth rates: Use historical averages or analyst consensus. The Federal Reserve suggests long-term GDP growth (~2-3%) as a reasonable terminal rate.
- Ignoring the discount rate: The WACC should reflect the company’s risk. For small caps, add a 3-5% risk premium to the 10-year Treasury yield.
- Neglecting sensitivity analysis: Always test how changes in inputs (e.g., ±1% growth) affect the fair value.
- Overlooking qualitative factors: Management quality, competitive advantages, and industry trends can significantly impact fair value.
Advanced Techniques
For more accurate valuations, consider these advanced methods:
-
Monte Carlo Simulation
Run thousands of iterations with random input variables to generate a probability distribution of fair values. Use Excel’s
Data Tableor theAnalysis ToolPakadd-in. -
Reverse DCF
Start with the current stock price and solve for the implied growth rate. This reveals market expectations.
Excel Formula:
=RATE(nper, 0, -current_price, terminal_value) -
Scenario Analysis
Create best-case, base-case, and worst-case scenarios with different growth/discount rates. Use Excel’s
CHOOSERorIFfunctions to toggle between scenarios.
Comparing Valuation Methods: Which One to Use?
| Method | Best For | Pros | Cons | Accuracy Range |
|---|---|---|---|---|
| DCF | Growth stocks, private companies | Fundamentally sound, flexible | Sensitive to inputs, complex | ±15-25% |
| Comparable Analysis | Public companies with peers | Simple, market-based | Relies on “correct” peers | ±10-20% |
| DDM | Dividend-paying stocks (e.g., utilities) | Easy to implement, transparent | Ignores non-dividend value | ±10-15% |
| Residual Income Model | Financial institutions | Accounts for book value | Requires clean accounting data | ±12-20% |
Practical Example: Valuing a Tech Stock
Let’s value a hypothetical tech company, TechGrow Inc., using the DCF method in Excel.
Step 1: Input Assumptions
| Current FCF | $500 million |
| Growth Rate (Years 1-5) | 15% |
| Growth Rate (Years 6-10) | 10% |
| Terminal Growth Rate | 3% |
| Discount Rate (WACC) | 12% |
| Shares Outstanding | 200 million |
| Net Debt | $200 million |
Step 2: Project Free Cash Flows (Excel Snippet)
Year | Growth Rate | FCF ($mm)
--------------------------------
2023 | 15% |=B2*(1+C2)
2024 | 15% |=B3*(1+C3)
...
2032 | 3% |=B11*(1+C11)
Step 3: Calculate Terminal Value
=B11*(1+$C$12)/($C$5-$C$12) → $12,820mm
Step 4: Discount Cash Flows
=NPV($C$5, B3:B11) + B12/(1+$C$5)^10 → $7,245mm
Step 5: Derive Fair Value per Share
=($B$13-$C$7)/$C$6 → $35.23
Result: If TechGrow trades at $30/share, it’s undervalued by 17%.
Automating Valuation with Excel Macros
To streamline repetitive calculations, use VBA macros. Here’s a simple macro to pull financial data from Yahoo Finance:
Sub GetStockData()
Dim ticker As String
Dim url As String
ticker = Range("A1").Value
url = "https://finance.yahoo.com/quote/" & ticker & "?p=" & ticker
' Use Excel's Web Query to import data
With ActiveSheet.QueryTables.Add(Connection:="URL;" & url, Destination:=Range("B1"))
.WebSelectionType = xlAllTables
.Refresh
End With
End Sub
Note: Yahoo Finance’s HTML structure changes frequently. For reliable data, consider using the SEC EDGAR database or paid APIs like Bloomberg.
Tools to Enhance Your Excel Valuation
-
Excel Add-ins:
- Capital IQ: Direct access to financial data.
- Bloomberg Excel Add-in: Real-time market data.
- Macabacus: Pre-built valuation templates.
-
Data Sources:
- SEC EDGAR (Free 10-K/10-Q filings)
- Bureau of Labor Statistics (Inflation/data)
- YCharts or TIKR (Paid financial data)
Final Tips for Accurate Valuations
- Triangulate Methods: Use DCF, comparables, and DDM to cross-validate results.
- Update Regularly: Re-run valuations quarterly with new financial data.
- Focus on Moats: Companies with strong competitive advantages (e.g., patents, brand loyalty) justify higher valuations.
- Beware of Value Traps: A “cheap” stock (low P/E) may be cheap for a reason (e.g., declining industry).
- Use Probability-Weighted Scenarios: Assign probabilities to different outcomes (e.g., 30% chance of high growth, 50% base case, 20% decline).
Conclusion
Calculating stock fair value in Excel is both an art and a science. While the DCF model provides a robust framework, its accuracy depends on the quality of your inputs and assumptions. By mastering the techniques outlined in this guide—from basic DCF to advanced Monte Carlo simulations—you’ll be equipped to make informed investment decisions and identify mispriced stocks.
Remember:
- Start with conservative assumptions.
- Cross-validate with multiple methods.
- Stay updated with SEC filings and macroeconomic trends.
- Use Excel’s built-in tools (e.g.,
Goal Seek,Data Tables) to test sensitivity.
For further learning, explore courses on Coursera or edX from universities like Wharton or NYU Stern.