Magnify Equity

Analysis

IRR & NPV Calculator

Enter a stream of cash flows for its IRR, NPV, MIRR, payback and profitability index, year by year or on exact dates, as Excel’s XIRR does.

How this is calculated

NPVΣ CFt ÷ (1 + r)t for t = 0 to n; CF0 is today and isn’t discounted
IRRThe rate r at which the NPV is 0
MIRR(Inflows grown to year n at the reinvestment rate ÷ outflows discounted to today at the finance rate)1 ÷ n − 1
XNPVΣ CFi ÷ (1 + r)d ÷ 365, with d = days from the first date
XIRRThe rate r at which the XNPV is 0
Payback(t − 1) + the amount not yet recovered at the start of year t ÷ year t’s cash flow
Profitability indexPresent value of inflows ÷ present value of outflows
Equity multipleTotal inflows ÷ total outflows

The first cash flow is today (year 0). With one IRR, the results match Excel and the numpy-financial library; with several, the calculator lists them all.

The conventions

  • NPV: the first cash flow is today and is not discounted; flow t is divided by (1 + rate)t. In Excel the same figure is =CF0 + NPV(rate, CF1:CFn), because Excel’s NPV discounts its first value one period.
  • IRR: the rate at which the NPV is zero. A stream whose sign changes more than once can have several; the calculator lists them all and reports the one closest to zero. Use the NPV or the MIRR to judge a stream like that.
  • MIRR: the money you put in is discounted at the finance rate and the money you get back grows at the reinvestment rate, so there is only ever one.
  • XIRR and XNPV: with exact dates on, time counts in days divided by 365 from the first date, as Excel does.
  • Payback: the years until the money you put in is back, counting the last year in part. Discounted payback does the same in today’s dollars.
  • Profitability index: the value today of the money you get back divided by the value today of the money you put in.

Checked against the standard tools

The figures are tested against the numpy-financial library and Excel’s own worked examples, including the hard cases: no IRR, a total loss and several IRRs.

Frequently asked questions

How do I calculate NPV in Excel?

Excel’s NPV function treats its first value as one period away, so for cash flows that start today use =CF0 + NPV(rate, CF1:CFn), where CF0 is today’s cash flow. This calculator does the same: the first cash flow is today and isn’t discounted.

Why can a project have more than one IRR?

When the cash flows change sign more than once, for example a capital call after years of income, the NPV can cross zero more than once, and each crossing is an IRR. The calculator lists them all. For streams like that, judge the investment by its NPV or MIRR.

What is the difference between IRR and XIRR?

IRR treats the cash flows as equally spaced, here a year apart. XIRR uses the exact date of each one, counting time in days divided by 365, as Excel’s XIRR does. Turn on exact dates to use it.

What discount rate should I use for NPV?

The return you require: what you could earn on an investment of similar risk, or your cost of capital. At that rate, a positive NPV means the investment beats the alternative and a negative one means it falls short.

Talk to an advisor

Want a detailed analysis of your deal?

A Magnify advisor will underwrite it with you, with no obligation.