Internal Rate of Return (IRR) (irrn)

Calculate the Internal Rate of Return (IRR) for a series of cashflows. Get periodic and annual interest rates.

Internal Rate of Return (IRR)

Purpose

The Internal Rate of Return (IRR) function calculates the interest rate at which the net present value of cash inflows equals the net present value of cash outflows.

Use Cases

  • Calculating the rate of return on an investment.
  • Evaluating the profitability of a project.

How to Use

  1. Enter the cash flows for each period.
  2. Select the time interval for the cash flows.
  3. Click on the calculate button to get the internal rate of return.

Input Values

  1. Cashflow: Amount of cash flow for each period.
  2. Description: Enter the cash flow values for each period. (e.g., -40000, 5000, 8000, 12000, 30000)
  3. Cashflow Interval: Time interval for the cash flows.
  4. Default unit is year.

Output Values

  1. Periodic Interest Rate: The calculated internal rate of return in percentage per interval.
  2. Annual Interest Rate: The calculated internal rate of return in percentage per year.

Any other Instruction

Make sure to enter the correct cash flow values and select the appropriate time interval for accurate results.

Code Analysis

  1. The function takes cash flow values and cash flow interval as input.
  2. It calculates the internal rate of return using the numpy financial library.
  3. The result is returned as both periodic and annual interest rates.

Technical Parameters

  • cashflow_interval, cashflows

Return Values

  • Periodic Interest Rate, Annual Interest Rate

Example Expressions

You can use the following expressions to directly evaluate in a non-interactive manner using eval():

irrn('yr', pd.DataFrame({'Cashflow': [-40000, 5000, 8000, 12000, 30000]})
irrn('mo', pd.DataFrame({'Cashflow': [-1000, 200, 300, 400, 500]})

Click on Help icon to open the help page on a separate window.


Cashflow
-40000
5000
8000
12000
30000




Calculator: irrn, Created by: super, V#0: , Variant owner: , Link