Investing

XIRR Calculator

Estimate an annualised return from irregular dated investments and receipts, with the date rule shown.

By Nitin Raturi · Last reviewed

Your dated cash flows

How to use this XIRR Calculator

Paste dated investments and receipts to estimate their annualised money-weighted return.

  1. Enter one cash flow on each line in YYYY-MM-DD, amount format.
  2. Use negative amounts for money invested and positive amounts for money received.
  3. Check that at least one flow of each sign is present and dates cover a period.
  4. Read the result as a historical calculation using actual days and a 365-day year.

Good to know

  • Tap the ⓘ next to Cash-flow rows for formatting and sign guidance.

Paste one date and signed amount per line. Negative amounts are money invested; positive amounts are money received.

Cash-flow rows

Each row pairs a date with an amount. Money invested is negative; money received is positive.

How to fill it in

  • Enter YYYY-MM-DD, then a comma and the amount. Use one cash flow per line.
  • Enter at least one negative and one positive amount on different dates.
  • Use 2 to 100 rows. Dates are sorted automatically; the elapsed time uses actual days divided by 365.

Example

The sample flows from ₹1,00,000 invested to ₹1,50,000 received produce an annualised result of 10.66%.

Tip: Include every contribution and withdrawal in the period you want to measure.

Keep in mind: A different date or omitted cash flow can materially change the result.

Format: YYYY-MM-DD, amount. Use ISO dates and enter one flow per line. The dates and amounts are stored only in this page’s URL fragment, not sent with a web request.

Annualised money-weighted return

10.66%

Solved from 2 dated flows across 1461 actual days using a 365-day year.

Total invested
₹1,00,000
Total received
₹1,50,000

This is a historical cash-flow calculation, not a forecast or a measure of future returns. Taxes, fees and inflation are not included.

How this calculator works

XIRR finds the annual rate that balances a list of dated investments and receipts using their actual timing.

  1. Step 1Read the dates1461 actual daysElapsed time includes leap days.
  2. Step 2Discount each flowActual days ÷ 365Each amount is valued at its own date.
  3. Step 3Solve for the rate10.66%The sample result is an annualised rate.

Negative amounts represent money invested. Positive amounts represent money received. The calculator sorts dates before solving, so the order of pasted rows does not change the calculation.

Formula

The rate that makes the net present value zero
Dated net present value
Σ amount ÷ (1 + rate)^((date − first date) / 365) = 0
Elapsed time
actual calendar days; leap days included
  1. Total invested in the sample₹1,00,000
  2. Total received in the sample₹1,50,000
  3. Annualised XIRR10.66%

The solver samples rates from -99% to 1,000% per year, then uses bisection where sampled NPV values change sign. It reports ambiguity if it detects multiple roots. Closely spaced or tangent roots may be missed.

What this result leaves out

  • Taxes and feesThese are not deducted from the cash flows.
  • Future performanceThe result describes only the flows entered.
  • Risk or benchmarkNo investment is evaluated or recommended.

Reading your result

The example ₹1,00,000 invested and ₹1,50,000 received produces an annualised XIRR of 10.66% over 1461 actual days.

XIRR is sensitive to both amounts and dates. Check that the list includes every contribution and receipt in the period.

XIRR, IRR or CAGR?

  • XIRRCash flows on any dates, such as SIP instalments.
  • IRRCash flows at equal intervals, such as yearly.
  • CAGROne amount in and one out, nothing between.

For evenly spaced flows, the IRR calculator gives the same answer with less typing. For a single investment held to a sale, the CAGR calculator is enough. To plan future monthly investing, use the SIP calculator.

Common mistakes

  • Mistake: Entering investments as positive numbers.

    Instead: Use negative amounts for money invested and positive amounts for money received.

  • Mistake: Using a month or year label instead of an exact date.

    Instead: Use the actual transaction date in YYYY-MM-DD format.

  • Mistake: Treating this historical result as a future projection.

    Instead: Use it only to describe the cash flows you entered.

The result does not include taxes, fees or inflation and is not investment advice. Past cash flows do not predict future performance.

Checking the method

A separate script re-solves every test case by bisection and by Newton's method, and reproduces Microsoft's published XIRR example.

Microsoft publishes 37.34% for its example; this calculator gives 37.34%. Read how we test our calculators, or browse more money calculators.

Frequently asked questions

What does XIRR calculate?

It finds the annualised rate that makes the dated investments and receipts balance to a zero net present value.

How should I enter cash flows?

Enter one ISO date and amount per line. Use negative amounts for investments and positive amounts for money received.

How are dates handled?

The calculator sorts dates and uses actual elapsed calendar days divided by 365, including leap days.

Why can XIRR differ from CAGR?

XIRR uses the size and timing of every cash flow. CAGR uses only a starting and ending value over a period.

Why might no rate be shown?

A valid result needs positive and negative flows and a root between -99% and 1,000% per year. Some flow patterns have no root in that range.

What if several rates fit the cash flows?

The calculator reports ambiguity when it detects multiple sign-changing roots, rather than choosing one arbitrarily.

Does XIRR predict future returns?

No. It describes the dated flows entered. It does not predict future performance or recommend an investment.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 22 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : Registered at the owner's request; demand metrics remain unverified. Uses an actual-day XIRR solver. The sample flows produce 10.66% for the period.