FMP

FMP

Enter

Dcf Modeling

DCF Model

Financial Model

Valuation

Investing

How to Build a Discounted Cash Flow (DCF) Model: A Step-by-Step Guide

- (Last modified: Sep 9, 2024 6:52 AM)

twitterlinkedinfacebook
blog post cover photo

Image credit: Anne Nygård

A Discounted Cash Flow (DCF) model is one of the most widely used valuation tools for investors, analysts, and financial professionals. Its primary purpose is to estimate the value of an investment or company by discounting future cash flows back to their present value. This method is rooted in the principle that money today is worth more than money in the future due to inflation, investment risk, and opportunity cost.

Steps for Building a Discounted Cash Flow (DCF) Model

While building a DCF model can be complex, understanding each step thoroughly can help you accurately assess a company's intrinsic value. In this guide, we'll take you through the essential steps to build a DCF model and provide actionable insights to improve the accuracy of your valuation.

Step 1: Gather Historical Financial Data

Before starting, you need to collect relevant historical financial data for the company you want to analyze. The key data points you need include:

  • Revenue: Sales generated by the company.
  • Operating expenses: Costs involved in running the company's day-to-day operations.
  • Capital Expenditures (CapEx): Funds used to acquire or upgrade physical assets like buildings or machinery.
  • Operating Cash Flow (OCF): Cash generated by normal business operations.
    Interest expenses and tax rates: To account for debt and taxes.
  • Where to get this data: Most companies publicly disclose their financial data in annual reports, filings (like the SEC's 10-K), and investor presentations. Alternatively, FMP offers Financial Statements APIs to help gather real-time and historical data efficiently.

Step 2: Forecast Future Cash Flows

Forecasting future cash flows is the most critical and challenging part of the DCF process. Here, you must estimate how the company will perform in the future based on:

  • Revenue Growth Rate: Determine how quickly the company's revenue will grow. This can be derived from past growth rates, industry trends, and market opportunities.
  • Operating Margins: Use historical data to estimate profit margins. Will the company's margins remain steady, or will operational efficiencies improve them?
  • CapEx and Working Capital: Capital expenditures and changes in working capital (accounts receivable, inventory, etc.) should be estimated based on historical patterns.

To forecast accurately, break your projections into short-term (typically 5 years) and long-term (terminal value) time frames. Many analysts use financial tools like Discounted Cash Flow Reports APIs to get projections and automate part of this process, making it more efficient.

Step 3: Choose the Discount Rate

The discount rate reflects the risk associated with the investment and is used to bring future cash flows to their present value. For most companies, the Weighted Average Cost of Capital (WACC) is used as the discount rate, which accounts for the cost of equity and the cost of debt.

  • Cost of Equity: Derived using the Capital Asset Pricing Model (CAPM), which accounts for risk-free rates, beta (risk relative to the market), and expected market returns.
  • Cost of Debt: The interest rate a company pays on its outstanding debt, adjusted for taxes.
    If you want to streamline this calculation, you can use tools like Stock Beta APIs to help determine a company's risk profile and cost of equity.

Step 4: Calculate the Present Value of Future Cash Flows

Now that you have your cash flow projections and discount rate, it's time to calculate the present value of each year's cash flow. The formula for this is:

Present Value (PV) = Future Cash Flow / (1 + Discount Rate) ^ n​

Where:
PV = Present Value
n = Number of periods into the future the cash flow is

Calculate the present value for each year's cash flow separately, then sum them up to get the total present value.

Step 5: Calculate the Terminal Value

At the end of your forecast period (typically 5 years), you need to account for the value of the company beyond that. The Terminal Value is often calculated using the Gordon Growth Model, which assumes that the company will grow at a constant rate indefinitely. The formula for terminal value is:

Terminal Value (TV) = Final Year Cash Flow * (1 + Growth Rate) / (Discount Rate - Growth Rate)​

The terminal value is then discounted back to the present value using the same discount rate.

Step 6: Calculate Net Present Value (NPV)

To determine the company's intrinsic value, sum the present value of all future cash flows (from step 4) and the discounted terminal value (from step 5). The result is the Net Present Value (NPV) of the company, which represents its total value.

If the NPV exceeds the company's current market value, the investment may be undervalued, indicating a potential buying opportunity.

Step 7: Sensitivity Analysis

Once your DCF model is built, it's crucial to test how sensitive your model is to changes in key assumptions like revenue growth, operating margins, and discount rates. This can help you understand the potential range of values for the company based on different scenarios.

Many financial analysts perform sensitivity analyses to account for uncertainty in their assumptions. This is where leveraging data through APIs, like the Earnings Estimates API, can help refine and automate this process by incorporating multiple forecasts and scenarios.

Example of a DCF Calculation

Let's assume you're analyzing a tech company with the following data:

  • Revenue: $10 million
  • Revenue growth: 10% per year
  • Operating Cash Flow: $3 million
  • CapEx: $500,000 per year
  • WACC: 8%
  • Terminal growth rate: 2%

By forecasting cash flows for the next 5 years, calculating the terminal value, and applying the discount rate, you can estimate the intrinsic value of the company.

Conclusion

Building a DCF model is a comprehensive and insightful way to assess the intrinsic value of a company. While it requires some degree of assumption and forecast, a well-constructed DCF model offers a deep understanding of an investment's potential. Always be sure to gather accurate data, use a reasonable discount rate, and test different scenarios to get a complete picture.

Incorporating tools such as FMP's Financial Statements API and Discounted Cash Flow Reports API can make the process more efficient, allowing you to focus on interpreting results rather than getting bogged down by manual data entry.

Other Blogs

May 14, 2024 11:41 AM - Sanzhi Kobzhan

The easiest way to calculate stock’s target price and why the target price is important.

A stock's target price, also known as its fair value, is an indication of what a share can cost based on the company’s forecasted financial statements. It is important to know a stock's fair value to find undervalued stocks with great growth potential. Let's consider how investment analysts calculat...

blog post title

May 24, 2024 9:30 AM - Rajnish Katharotiya

How to Access and Analyze Earnings Call Transcripts

Earnings call transcripts are invaluable resources for investors, analysts, and financial enthusiasts. They provide insights into a company's performance, strategy, and future outlook, making them essential for making informed investment decisions. With Financial Modeling Prep, Earnings Call Transcr...

blog post title

May 27, 2024 3:30 PM - Rajnish Katharotiya

The best 5 GPU stocks other than NVDA

In the ever-evolving world of technology, certain sectors have consistently demonstrated exceptional growth and innovation. The graphics processing units (GPUs) industry is one such sector, offering investors a golden opportunity for potentially high returns. In this blog, we'll delve into why inves...

blog post title
FMP

FMP

Financial Modeling Prep API provides real time stock price, company financial statements, major index prices, stock historical data, forex real time rate and cryptocurrencies. Financial Modeling Prep stock price API is in real time, the company reports can be found in quarter or annual format, and goes back 30 years in history.
twitterlinkedinfacebookinstagram
2017-2024 © Financial Modeling Prep