Build your retirement plan for free.Explore Plan Builder →

Discounted Cash Flow (DCF) Calculator

Enter your initial investment, periodic cash flows, discount rate, and number of periods to calculate net present value (NPV), return on investment, discounted payback period, and more.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter the Initial Investment ($)

    Enter the upfront cost as a positive amount.

  2. 2

    Enter Cash Flow Per Period ($), Number of Periods, and Discount Rate (%)

    Use one consistent time unit: for example, annual cash flows, a number of years, and an annual discount rate.

  3. 3

    Review the valuation and cash-flow schedule

    The results show present value, NPV, ROI, and discounted payback. The schedule shows each period's discounted cash flow and cumulative values.

Example Calculation

A project costs $10,000 upfront and is expected to generate $2,500 at the end of each year for five years. The discount rate is 8% per year.

Initial Investment ($)

10,000

Cash Flow Per Period ($)

2,500

Number of Periods (periods)

5

Discount Rate (%)

8

Results

Net Present Value

-$18.22

Total Present Value

$9,981.78

Return on Investment

-0.18%

PV / Investment Ratio

1.00

Discount Effect

$2,518.22

Discounted Payback

Not reached in 5 periods

Final Period DCF

$1,701.42

Total Undiscounted CF

$12,500.00

Tips

A 5% discount rate makes the project's NPV positive

Keep the investment and cash flows unchanged, then reduce Discount Rate (%) from 8 to 5 to test how much the valuation depends on the required return.

A higher annual cash flow improves NPV

Change Cash Flow Per Period ($) from $2,500 to $3,000 to test whether the added expected cash flow makes the project more attractive at the same rate.

More periods do not guarantee a better investment

Increase Number of Periods from 5 to 7 to include two more expected payments, then compare the additional present value with the assumptions and risks behind those payments.

What this calculator estimates

Discounted cash flow (DCF) values future cash flows in today's dollars by applying a discount rate to each period. This calculator assumes equal cash flows at the end of each period; it does not model taxes, financing, inflation separately, or changing cash flows.

How the DCF calculation works

Present value of cash flows = Σ [Cash flow per period / (1 + r)^t]
Net present value = Present value of cash flows − Initial investment
ROI = (Net present value / Initial investment) × 100%
PV / Investment ratio = Present value of cash flows / Initial investment

Here, r is the discount rate per period as a decimal, and t is the period number, starting at 1. Matching the cash-flow interval, number of periods, and rate is essential: annual cash flows require an annual rate and a period count in years.

For the example, the five annual cash flows are discounted separately:

Period Calculation Discounted cash flow
1 $2,500 / 1.08 $2,314.81
2 $2,500 / 1.08² $2,143.35
3 $2,500 / 1.08³ $1,984.58
4 $2,500 / 1.08⁴ $1,837.58
5 $2,500 / 1.08⁵ $1,701.42

Adding the discounted cash flows gives $9,981.78 in present value. Subtract the $10,000 investment to get an NPV of $9,981.78 − $10,000 = −$18.22. Dividing that NPV by the investment gives an ROI of approximately −0.18%.

How the discount rate changes the decision

The same cash flows can produce different NPVs when the discount rate changes. The table keeps the $10,000 investment and five $2,500 annual payments constant.

Annual discount rate Present value of cash flows NPV
5% $10,823.69 $823.69
8% $9,981.78 −$18.22
12% $9,011.94 −$988.06

The project crosses from positive to negative NPV as the rate rises through this range. That makes the discount-rate assumption decision-relevant: test rates that reflect your required return and the risk of receiving the forecast cash flows rather than treating one output as certain.

The undiscounted total is $12,500, but that sum ignores when the payments arrive. The discount effect is the difference between that undiscounted amount and its present value. Discounted payback asks whether cumulative discounted cash flows recover the initial investment within the modeled periods; if they do not, the investment is not paid back within that horizon.

Limits to check before acting

A constant cash flow is a simplifying assumption. If expected cash flows rise, fall, or vary by period, the equal-payment result can misstate value. Costs such as maintenance, taxes, and working capital also affect the project but are not included unless reflected in the cash flow you enter.

SEC investor education resources explain how to research investments and review company disclosures, which can help when the cash-flow estimates depend on a public company or security. Those disclosures do not replace a project-specific forecast.

When to use a different calculator

Frequently Asked Questions

What does net present value mean?

Net present value (NPV) is the present value of expected future cash flows minus the initial investment. A positive NPV means the discounted inflows exceed the upfront cost under the entered assumptions; a negative NPV means they do not.

How do I calculate discounted cash flow?

Discount each future cash flow to today's value, then subtract the initial investment. 1. Divide the discount rate by 100 to get a decimal. 2. Divide each period's cash flow by (1 + rate) raised to that period number. 3. Add the discounted cash flows and subtract the initial investment.

Does a positive NPV guarantee that an investment will make money?

No, a positive NPV is only a result under the cash-flow and discount-rate assumptions entered. Actual cash flows can differ, so test lower revenue, higher costs, and a higher discount rate before relying on the estimate.

How should I choose the discount rate?

Choose a rate that matches the investment's risk, the cash-flow timing, and the purpose of the analysis. FINRA's overview of investment risk and potential return can help frame the risk assumptions, but it does not prescribe a project-specific rate.

What does discounted payback leave out?

Discounted payback measures how long discounted cash flows take to recover the initial investment, but it ignores cash flows after that recovery point. Use NPV as well when later cash flows matter to the decision.

Does this calculator model changing cash flows each period?

No, it uses the same Cash Flow Per Period for each period. If a project has uneven cash flows, calculate each period separately or use a model that accepts a distinct cash flow for every period.