Payback period calculator

Find how long an investment takes to earn back its cost, from even or year-by-year cash flows, and how much longer it takes once future cash is discounted.

Cash flows
Payback period
—
Payback period
—
Discounted payback
—
Total inflows entered
—
Net cash after all inflows
—

Cash flows are treated as arriving through each year, so payback can include part of a year. Discounting treats each year's cash as arriving at its end.

How the payback period calculator works

The payback period is how long an investment takes to earn back what it cost from the cash it brings in. Choose even cash flows when the investment returns about the same amount each month or year, or uneven cash flows to enter a different amount for each year. Add a discount rate to see the discounted payback period, which counts future cash at what it is worth today.

Even cash flows: payback = initial investment ÷ cash inflow per period
Uneven cash flows: payback = full years before recovery + amount still unrecovered ÷ the next year's inflow
Discounted cash flow in year t = cash flow ÷ (1 + discount rate)^t

The fraction of the final year assumes that year's cash comes in evenly. Discounting treats each year's cash as arriving at the end of the year, then uses the same year-by-year method on the discounted amounts. With monthly inflows, the annual discount rate is converted to the equivalent monthly rate.

Choosing a discount rate

The discount rate is your own number: the return you require, or what the money costs you to borrow or raise. With a 0% rate, discounted payback equals simple payback. The higher the rate, the longer discounted payback takes, and if the discounted inflows never add up to the investment, it never pays back.

Worked examples

Example 1: even cash flows

A $100,000 machine saves $25,000 a year. Simple payback is 100,000 ÷ 25,000 = 4 years. At a 10% discount rate, the first five years of savings are worth $22,727.27, $20,661.16, $18,782.87, $17,075.34 and $15,523.03 today, $94,769.67 in total, so $5,230.33 is still unrecovered after year 5. Year 6 is worth $14,111.85, so discounted payback is 5 + 5,230.33 ÷ 14,111.85 = 5.37 years.

Example 2: uneven cash flows

A $100,000 software project returns $20,000, $30,000, $40,000 and $50,000 in its first four years. After three years $90,000 has come back, leaving $10,000. Year 4 brings $50,000, so payback is 3 + 10,000 ÷ 50,000 = 3.2 years. At a 10% discount rate the same cash flows pay back in 3.79 years.

What payback leaves out

  • Cash after payback. A project that pays back in 2 years and then stops looks better than one that pays back in 3 years and earns for 10. Use the ROI calculator to compare total returns.
  • The time value of money, unless discounted. Simple payback treats $1 in year 5 like $1 today. Add a discount rate to correct for it.
  • Uncertainty. Later cash flows are estimates, and the further out they are, the less reliable they get.
  • Ongoing costs. Enter net inflows: savings or profit after the running costs of the investment.

Payback period vs CAC payback

CAC payback, from the CAC calculator, applies the same idea to a single customer: the months of gross profit it takes to recover what it cost to win that customer. This page handles one investment with its own cash flows, such as equipment, software or a project.

Forecasting the cash flows is the hard part. FP&A software builds those forecasts into a budget, and our guide to building a business case for custom software covers estimating savings before you build. If the investment is automation, start with the business process automations worth the engineering cost.

Frequently asked questions

How do you calculate the payback period?

With even cash flows, divide the initial investment by the cash inflow per period: $100,000 ÷ $25,000 a year = 4 years. With uneven cash flows, add up the inflows year by year until they reach the investment, then add the fraction of the final year needed.

What is the discounted payback period?

It is the payback period after converting each future cash flow to today's value with a discount rate: cash flow ÷ (1 + rate)^year. At 10%, the $100,000 investment that pays back in 4 years on $25,000 a year takes 5.37 years.

Can I use monthly cash flows?

Yes. Choose a monthly inflow with even cash flows: $60,000 recovered at $2,500 a month takes 24 months. A discount rate is converted to the equivalent monthly rate.

What if the investment never pays back?

If the inflows never add up to the investment, the calculator says so and shows how much is recovered. Discounted payback can fail even when simple payback works, because discounting shrinks later inflows.

Is a shorter payback period always better?

Not always. Payback ignores everything after the investment is recovered, so compare total returns with ROI as well, especially for long-lived investments.

From the blog

Further reading.

Finance & Accounting

Best FP&A Software in 2026: 6 Picks for Small Finance Teams

Compare the best FP&A software for small and mid-size finance teams: Datarails, Cube, Vena, Planful, Pigment and Abacum, with plans, pricing and limits.

Learn more
Product

Build a Business Case for Custom Software

How to build a custom software business case: put the problem in dollars, set measurable goals, get a realistic cost range, model ROI, and scope an MVP.

Learn more
Engineering

7 Business Process Automations Worth the Engineering Cost

Business process automation use cases worth the engineering cost: high-frequency work with clear triggers and measurable failure costs, plus a 3-question test.

Learn more
More free tools

Other calculators.

Salary to Hourly CalculatorOvertime CalculatorPTO Accrual CalculatorBreak Even CalculatorWebsite Cost CalculatorLTV CalculatorCAC CalculatorEmployer Payroll Tax CalculatorEmployee Cost Calculator1099 vs W2 CalculatorROI CalculatorMarkup CalculatorRaise CalculatorCommission CalculatorAll tools