ROI & Payback Period Calculator

Find how long an investment takes to pay back, and the return on investment (ROI) as a percentage of the amount invested.

What do you want to calculate?
The amount you pay at the start (for example, the cost of equipment or development). Enter an amount with up to 2 decimal places. No currency is assumed. Results are shown with 2 decimal places.
How much cash the investment adds in one period (cash coming in minus cash going out). It is not always the same as accounting profit. A negative number is allowed (cash decreases every period).
Payback period —
Details
The investment is fully recovered in (rounded up)—
In years and months (from the rounded-up months)—

Assumption: the same net cash flow is assumed every period (every month or year). Amounts that change from period to period are not handled. The calculation does not discount future money and does not count profit after the investment is recovered.

The amounts are calculated from the numbers you enter. This is for education and estimates; it does not predict or guarantee future income or results.

Formulas

Amounts are handled as whole numbers of the smallest currency unit (for example, cents), with no floating-point numbers. The payback period and the ROI are each rounded once, at the end, to 2 decimal places (a value exactly halfway rounds away from zero). For a loss, the size is rounded first and the minus sign is added back. The "fully recovered in" period is rounded up from the exact ratio. The amounts shown (profit, return, investment) are the numbers you entered or their exact sums.

Unit of the amounts: the payback period and the ROI are ratios. If every amount uses the same unit (for example, cents instead of whole units, or thousands instead of units), the payback period and the ROI do not change. Mixing units would give a wrong result.

The results were checked against an independent calculation using whole-number arithmetic (about 4,000 cases, including amounts of 0.01 and the largest allowed amounts). All results matched exactly.

What each number means

Name Meaning Used for
Investment The amount you pay at the start (equipment, development and so on) Both
Amount recovered (net cash flow) How much cash the investment adds per period (month or year). Not always the same as accounting profit Payback period
Profit The total profit from the investment (accounting profit) ROI
Return The total income or amount recovered, before the investment is subtracted ROI (entered instead of profit)

Profit and cash flow are different

How to read the payback period

How to read ROI

Examples

Edge cases

What this calculator does not do

Calculations that use a discount rate (net present value, internal rate of return, discounted payback), yields and forecasts of financial products, automatic tax or depreciation calculations, and multi-year cash flows that change every year are not covered.

Notes

Frequently asked questions

What is the difference between the payback period and ROI?

The payback period is how long it takes to get the investment back. ROI is the profit as a percentage of the investment. The payback period uses net cash flow, and ROI uses profit.

Are the recovery amount and the profit the same?

Not always. Depreciation, for example, is a cost in the accounts but does not use cash, so the net cash flow can be larger than the profit.

What is the difference between return and profit?

The return is the total income or amount recovered, before the investment is subtracted. The profit is what is left after the investment (and other costs) are subtracted. ROI = (return − investment) ÷ investment.

What if the amount recovered changes every year?

This calculator only handles the same amount every period. If the amounts change, check the cumulative total year by year by hand or in a spreadsheet.