XIRR Calculator

Calculate an annualised return for irregular, dated investments and receipts.

Adjust your plan

Enter an exact value or use a slider. Your result updates instantly.

Formula, example and assumptions
Annualised XIRR10.2745%

One per line: YYYY-MM-DD, amount. Investments are negative; receipts are positive.

Your result

Local calculation
Annualised XIRR10.2745%

XIRR is an annualised return using the actual dates of money invested and received. Enter investments as negative amounts and receipts, including the closing investment value, as positive amounts.

Cash flows
2021-01-01, -100000 2022-06-15, -25000 2025-01-01, 180000
See how this is calculated

Result breakdown

Total negative cash flows
₹1,25,000.00 About ₹1.25 lakh
Total positive cash flows
₹1,80,000.00 About ₹1.8 lakh
Net cash flow
₹55,000.00
Check the inputs and method

These are your current inputs, not the worked example further down the page.

Cash flows
2021-01-01, -100000 2022-06-15, -25000 2025-01-01, 180000

Method

Solve for r in Σ[Cₖ/(1+r)^((dₖ−d₀)/365)] = 0, where Cₖ is each signed cash flow and dₖ−d₀ is its elapsed actual days from the first date. XIRR = 100r%. Total invested is the absolute sum of negative flows; total received is the sum of positive flows; net cash flow is their signed sum.

Read the worked example and assumptions

How this calculation works

Estimate an annualised money-weighted return when investments and receipts occur on irregular dates. Enter payments into the investment as negative cash flows and amounts received as positive. For an unsold holding, a positive ending market value on the valuation date closes the calculation without pretending that it was actually sold.

Solve for r in Σ[Cₖ/(1+r)^((dₖ−d₀)/365)] = 0, where Cₖ is each signed cash flow and dₖ−d₀ is its elapsed actual days from the first date. XIRR = 100r%. Total invested is the absolute sum of negative flows; total received is the sum of positive flows; net cash flow is their signed sum.

Worked example

This example uses illustrative inputs. Your current result is shown above.

Enter two lines: 2023-01-01,-100000 and 2024-01-01,110000. The dates are 365 days apart. Solving −₹1,00,000 + ₹1,10,000/(1+r) = 0 gives a 10% XIRR; invested is ₹1,00,000, received ₹1,10,000 and net cash flow ₹10,000.

Assumptions and limits

  • Each line contains an ISO date and a signed amount separated by a comma.
  • The exponent uses actual elapsed days divided by 365, including across leap years.
  • At least one negative and one positive cash flow are needed; some cash-flow patterns have no usable root or more than one mathematical root.

Questions people ask

Where does the current value of an unsold investment go?

Enter it as a positive final cash flow on the valuation date. It closes the valuation mathematically; do not also enter it as an actual withdrawal unless that withdrawal really occurred.

Why can XIRR differ from CAGR?

XIRR accounts for the dates and sizes of multiple contributions and receipts. CAGR only connects a starting and ending value without external cash flows.

Why might a complicated cash-flow sequence fail?

Alternating investments and receipts can create multiple roots or a root outside the solver’s search range. A failed solve is not evidence that the return is zero.

Related calculators