Investing & Retirement
IRR & NPV Calculator (with XIRR and MIRR)
Calculate the internal rate of return, net present value, modified IRR and payback period for any cash flows. Add dates for XIRR on irregular timing, like Excel.
For information and education only — not financial advice. Results are estimates based on the numbers you enter; check important decisions with a qualified professional.
How to use
- 1Type one cash flow per line, starting with the initial investment as a negative number, e.g. −10000, then each period's return.
- 2For irregular timing, put a date before each amount: 2026-01-15, -10000.
- 3Enter the discount rate for NPV (and the finance and reinvestment rates for MIRR), then read the results.
How it's calculated
NPV = Σ CFₜ ÷ (1 + r)ᵗ with the first cash flow at time 0. IRR is the rate where NPV = 0. XIRR discounts each flow by (1 + r)^(days ÷ 365). MIRR = (future value of positive flows at the reinvestment rate ÷ present value of negative flows at the finance rate)^(1/n) − 1.
Frequently asked questions
Is my NPV the same as Excel's NPV function?
Not quite: Excel's NPV treats the first value as one period away. This calculator treats the first cash flow as today (time 0), like financial calculators and most textbooks. In Excel that's =A1 + NPV(rate, A2:A10).
Why does IRR say there's no answer?
IRR needs at least one negative and one positive cash flow. Unusual patterns (money out, in, then out again) can have two IRRs or none; MIRR always has one answer, so use it for those.
When should I use XIRR?
Whenever the cash flows aren't evenly spaced: investments topped up on different dates, or a property bought, improved and sold. XIRR gives an annual rate based on the actual days between flows.
What's a good IRR?
One above your cost of capital or the return you could get elsewhere at similar risk. A positive NPV at that rate says the same thing.
Sources
Example: a small project
You invest 100 and get back 39, 59, 55 and 20 over the next four years. The IRR is 28.09%: discounting those returns at 28.09% a year makes them worth exactly the 100 you put in. At a 10% cost of capital the NPV is +39.20, so the project creates value, and the money comes back after 2.04 years (payback period).
Example: irregular dates (XIRR)
Microsoft's XIRR example: −10,000 on 1 January 2008, then 2,750, 4,250, 3,250 and 2,750 on 1 March 2008, 30 October 2008, 15 February 2009 and 1 April 2009. Typing those dates and amounts gives an XIRR of 37.34% a year, the same as Excel. Ignoring the dates (treating them as yearly) would give a misleading answer, because the money came back in 15 months, not four years.
When IRR misleads, and MIRR helps
IRR assumes every return is reinvested at the IRR itself, which flatters high-IRR projects. MIRR lets you set a realistic reinvestment rate. Microsoft's MIRR example (−120,000 then 39,000, 30,000, 21,000, 37,000 and 46,000, financed at 10% and reinvested at 12%) gives 12.61%, lower than its IRR of about 13%.
Related tools
- Pension vs Lump Sum Calculator
Compare a monthly pension with a one-time lump sum: the pension's present value and the return you'd need on the lump sum to match it.
- CAGR Calculator
Calculate the compound annual growth rate (CAGR) between a starting and ending value — or project a future value from a growth rate.
- Real Return Calculator (After Inflation)
Convert a nominal investment return into a real, inflation-adjusted return — and see what your money is really worth after a number of years.
- Average Return Calculator (Arithmetic vs Geometric)
Turn a list of yearly (or monthly) returns into the arithmetic average, the geometric average (annualized return), the total return, volatility and what $10,000 became.
- Present Value Calculator (Lump Sum & Annuity)
Find what a future amount, or a stream of regular payments, is worth today at a given interest or discount rate, with any compounding.
- SaaS Pricing & Unit Economics Calculator
Model SaaS revenue and unit economics — MRR and ARR from customers and price, churn, customer lifetime value (LTV), customer acquisition cost (CAC), LTV:CAC ratio, and CAC payback months.