Formualizer Docs

MIRR

Calculates modified internal rate of return with separate finance and reinvest rates.

Negative cash flows are discounted at finance_rate and positive cash flows are compounded at reinvest_rate, then combined into a single periodic return.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=MIRR(values, finance_rate, reinvest_rate)

Arguments

ArgumentTypeRequiredDefault
valuesanyRequired—
finance_ratenumberRequired—
reinvest_ratenumberRequired—

Remarks

  • finance_rate and reinvest_rate are both rates per cash-flow period.
  • Cash-flow sign convention: at least one negative and one positive cash flow are required.
  • Non-numeric cells in arrays/ranges are ignored; direct scalar errors are propagated.

Error cases

  • A callable value input returns #CALC!.
  • Returns #NUM! for insufficient cash flows, and #DIV/0! when computed positive/negative legs are invalid.

Examples

Use separate borrowing and reinvestment rates for an investment.

Formula =MIRR({-100,40,50,30},0.05,0.07)

Expected result 0.0894192119565331

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Raise the reinvestment rate without changing the financing rate.

Formula =MIRR({-100,40,50,30},0.05,0.15)

Expected result 0.119753347045174

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Equal cash flows over one interval give a zero modified return at zero rates.

Formula =MIRR({-100,100},0,0)

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The calculation needs an outflow as well as an inflow.

Formula =MIRR({100,40,50,30},0.05,0.07)

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Calculate a modified return with 10% financing and 12% reinvestment.

Formula =MIRR({-10000,3000,4200,6800}, 0.1, 0.12)

Expected result 0.151471336646763

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Calculate the modified return on a 120,000 outlay and five receipts.

Formula =MIRR({-120000,39000,30000,21000,37000,46000}, 0.1, 0.12)

Expected result 0.126094130365905

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Why does MIRR return #DIV/0! for some cash-flow sets?

MIRR needs both a negative leg and a positive leg; if discounted negatives or compounded positives are invalid, it returns #DIV/0!.

Implementation

Engine source

On this page