Skip to content

ROI calculator

Calculate the return on investment, how long it takes to pay back and the net present value of a project, from even or uneven yearly or monthly cash flows.

Everything you pay up front: equipment, set-up, fees.

Cash the project brings in each period.

Cash the project costs each period (not the initial investment).

More options

What you can sell the asset for at the end; 0 if nothing.

The return you require, e.g. what the money would earn elsewhere.

Result

—

    Formulas

    • ROI = (total cash inflow − investment) ÷ investment, where the total includes the residual value.
    • NPV = −investment + Σ cash flowₜ ÷ (1 + r)ᵗ; with monthly flows r is the monthly rate equivalent to the annual discount rate.
    • Payback period: when the cumulative cash flow reaches zero, interpolated within the period. The discounted payback does the same with discounted flows.

    Example

    An investment of 100 returning 25 a year for 4 years pays back after 4 years and its ROI is 0%. Discounted at 10%, its NPV is -20.75: the project does not earn the required return.

    A project returning 40 − 10 a year for 5 years on the same investment: ROI 50%, payback 3.33 years, NPV at 8% 19.78.

    What is not included

    Taxes, depreciation and the timing of cash flows within a period (flows are assumed at the end of each period).

    Frequently asked questions

    What is the difference between ROI and NPV?

    ROI compares the total cash returned with the investment, regardless of when it arrives. NPV discounts every future cash flow at your required rate, so money received later counts for less. A project can have a positive ROI and a negative NPV.

    Is ROI the same as IRR?

    No. IRR is the discount rate at which NPV equals zero; it takes timing into account. ROI here is a simple ratio over the whole horizon.

    What discount rate should I use?

    The return you require from the project — for example what the same money would earn in a comparable investment, or your cost of borrowing.

    Checked November 22, 2026 · Method 1.0.0

    Found an error? Tell us

    Please do not include personal or financial details.

    Embed this calculator on your site

    Free to use: paste the code into your page. The calculator runs on your site in a frame; keep the link to the source under it.

    Preview the widget