Finance calculator

Free xirr calculator

See your true annualized return on a SIP, lump sum, or any portfolio with irregular cash flows. Enter each investment as a negative amount and money received as a positive amount, with the days between them — the calculator returns your XIRR (money-weighted annual return), total invested, total returned, and net gain — updated live, as you type.

InputsLive
Cash flows
Cash flow 1 — amount (first, day 0)
$
Cash flow 1 — days from start
Cash flow 2 — amount
$
Cash flow 2 — days from start
days
Cash flow 3 — amount
$
Cash flow 3 — days from start
days
Cash flow 4 — amount
$
Cash flow 4 — days from start
days
Cash flow 5 — amount
$
Cash flow 5 — days from start
days
Cash flow 6 — amount
$
Cash flow 6 — days from start
days
Result
XIRR (annualized)
14.51%
Your money-weighted annual return across every dated cash flow.
Total invested$50,000
Total returned$56,000
Net gain$6,000

Estimates only, based on the values you enter. Not investment advice.

Results are estimates. Consult a professional.

Definition

What is XIRR?

XIRR — the Extended Internal Rate of Return — is the single annualized rate of return that ties together a series of investments and withdrawals made on different dates. It answers the question every investor actually cares about: across all my buying, selling, and the time my money was at work, what percentage did I really earn each year? Because XIRR accounts for both the size and the exact timing of every cash flow, it is the truest measure of your personal rate of return — the rate that, applied to each instalment, reproduces the value you ended up with. This XIRR calculator returns that figure the moment you enter your cash flows and the days between them.

Σ CF_i / (1 + XIRR)^((d_i d_0) / 365) = 0
CF_i = each cash flow (invested is negative, received is positive)
d_i d_0 = days between that cash flow and the first one

The name says it all: XIRR extends the internal rate of return (IRR) to handle cash flows that are not evenly spaced. IRR assumes one neat period between each flow; XIRR uses the real calendar gap in days. That makes it the standard yardstick for mutual-fund SIPs, lump sums, and any portfolio where you add or withdraw money at irregular times.

Why it matters

Why XIRR is the right metric for SIPs and irregular investments

A Systematic Investment Plan (SIP) puts money in every month, so each instalment is invested for a different length of time. The instalment you paid three years ago has compounded far longer than the one you paid last month. A single point-to-point return cannot capture that — it treats your whole holding as one lump sum dropped in on day one, which it never was.

XIRR solves this by weighting every contribution and withdrawal by the exact time it stayed invested. It handles SIPs, lump-sum top-ups, partial redemptions, SWP withdrawals, dividends, and switches all in one number. As the fund houses put it, XIRR is your personal rate of return — your actual return on investment, not the fund's headline figure.

  • SIP investments — monthly, fortnightly, or quarterly instalments, each invested for a different span of time.
  • Lump sums plus top-ups — an initial investment followed by irregular additions whenever you had spare cash.
  • Partial withdrawals and SWPs — money taken out on dates that do not line up with when it went in.
  • Mixed portfolios — combining all of the above into one consolidated, money-weighted return.
Method

How to calculate XIRR

There is no closed-form equation for XIRR — you cannot rearrange the formula to isolate the rate. Instead the rate is found by iteration: a computer tries a rate, checks whether the discounted cash flows sum to zero, and adjusts until they do. The calculator above does this instantly, but the four logical steps are worth knowing.

  1. List every cash flow with its date. Each investment is a negative amount (money leaving your pocket); each redemption or the final value is positive (money coming back).
  2. Measure the days from the first cash flow. The first date is day 0; every later flow is counted as the number of days after it, divided by 365 to express the gap in years.
  3. Discount each flow at a trial rate. Divide each cash flow by (1 + r) raised to its year fraction, then add them up.
  4. Solve for the rate that zeroes the sum. Adjust r — using Newton-Raphson, then bisection as a fallback — until the discounted flows net to zero. That rate is the XIRR.
The sign convention is the part people get wrong: money you invest must be entered as a negative number and money you receive (including the current portfolio value) as a positive number. If every amount carries the same sign, there is no rate that balances the equation and XIRR cannot be solved.
Worked example

A worked example using the XIRR calculator

Example: a five-month SIP that grew to $56,000

Priya invests $10,000 into a mutual fund at the start of each of five consecutive months, then checks the value of her holding one year after her first instalment. It is worth $56,000. She has put in $50,000 in total, but each instalment was invested for a different length of time — so what is her real annualized return? Here is exactly what the calculator does.

Step 1 — Enter the cash flows with their days

Each $10,000 investment is a negative cash flow; the final $56,000 value is a single positive cash flow on day 365. The days are measured from the very first instalment, which sits at day 0.

Date (days from start)Cash flowWhat it represents
Day 0−$10,000First SIP instalment
Day 30−$10,000Second instalment
Day 60−$10,000Third instalment
Day 90−$10,000Fourth instalment
Day 120−$10,000Fifth instalment
Day 365+$56,000Value of the holding after one year

Five investments totalling $50,000, then the year-end value of $56,000.

Step 2 — Let the calculator solve for the rate

A simple gain of $6,000 on $50,000 looks like 12%. But that ignores timing: most of Priya's money was invested for far less than a full year, so the rate it earned to reach $56,000 must be higher than 12%. The calculator iterates until the discounted cash flows net to zero.

14.51% XIRR
Because the later instalments were invested for only part of the year, the annualized money-weighted return that turns $50,000 of staggered contributions into $56,000 is about 14.5% — meaningfully higher than the 12% a naive total-gain figure would suggest. The calculator shows this instantly, along with the total invested, total returned, and net gain.
Comparison

XIRR vs CAGR vs IRR — which return should you use?

XIRR, CAGR, and IRR all express returns as an annual percentage, but they answer different questions and are not interchangeable. Using the wrong one is the most common way investors misread their own performance.

CAGRIRRXIRR
Best forA single lump sum, point to pointEvenly spaced cash flowsIrregular, multiple cash flows
Considers timing of each flowNoPartly (assumes equal periods)Yes — to the exact day
Handles SIPs / top-ups / withdrawalsNoAwkwardlyYes
What it measuresPoint-to-point growthPeriod rate that zeroes NPVMoney-weighted personal return

CAGR works for one lump sum; IRR assumes equal periods; XIRR handles real-world dated cash flows.

CAGR — the compound annual growth rate — is perfect when you invest once and check the value later; it is calculated as (ending ÷ beginning)^(1 ÷ years) − 1. But CAGR assumes a single investment at the start, so it distorts the return on any SIP. IRR extends this to multiple cash flows but assumes they are evenly spaced, which real investing rarely is. XIRR removes that assumption by using the actual dates — which is why it is the metric fund platforms report for portfolios with staggered transactions.

In short: use the CAGR calculator for a lump sum held from one date to another, the IRR calculator for equally spaced project cash flows, and this XIRR calculator whenever your investments and withdrawals land on irregular dates.

The annualized money-weighted return on a series of cash flows that occur on irregular dates — your personal rate of return.
Compound annual growth rate — the smoothed point-to-point return on a single lump sum, assuming no further additions or withdrawals.
Internal rate of return — the rate that zeroes the net present value of cash flows that are assumed to be evenly spaced in time.
A return that reflects how much was invested at each point in time, not just the start and end values — exactly what XIRR computes.
How to

How to calculate XIRR in Excel and Google Sheets

Both Excel and Google Sheets have a built-in XIRR function, and the syntax is identical:

=XIRR(values, dates, [guess])
values = the range of cash flows (at least one negative and one positive)
dates = the matching range of dates for each cash flow
guess = optional starting estimate; defaults to 0.1 (10%)
  1. Put each cash flow in one column. Enter investments as negative numbers and redemptions (or the current value) as positive numbers.
  2. Put the matching dates in the next column, as real dates — one date per cash flow, in any order.
  3. In an empty cell, type =XIRR(values, dates) and select the two ranges.
  4. Format the result as a percentage. That figure is your annualized XIRR.
If Excel returns a #NUM! error, the usual cause is a missing sign change — every amount is positive or every amount is negative — or a starting guess that is too far off. Make sure at least one cash flow is an outflow and one is an inflow, exactly as this calculator requires.
Interpretation

What is a good XIRR?

There is no single fixed benchmark for a good XIRR — it depends on the asset class, the fund, and the market conditions over your holding period. A good XIRR is one that beats the relevant benchmark or the average return of similar investments, and that comfortably outpaces inflation so your money grows in real terms.

As rough context only, long-run equity mutual funds have historically delivered XIRRs in the low-to-mid teens over full market cycles, while debt funds sit lower, in line with prevailing interest rates. The honest comparison is always against the right yardstick: an equity fund's XIRR should be measured against an equity index, not against a savings account. And a high XIRR over a few months means little — money-weighted returns on short, lucky windows can look spectacular and vanish just as fast.

Treat XIRR as a comparison tool, not a target. Its real power is letting you line up two funds, or your portfolio against its benchmark, on a like-for-like, timing-aware basis.
Caveats

Limitations of XIRR

XIRR is the most accurate everyday measure of personal returns, but it is not infallible. Knowing where it strains keeps you from over-trusting a single percentage.

  • It needs a sign change. With no outflow-and-inflow pair, there is no rate that balances the equation and XIRR is undefined.
  • It can be unstable over very short windows. A few weeks of data can produce wildly high or low annualized figures that are not meaningful.
  • It assumes reinvestment at the same rate. Like all IRR-family measures, it implicitly assumes interim cash flows are reinvested at the XIRR itself, which may not hold.
  • Unusual cash-flow patterns can yield multiple solutions. Streams that switch sign several times can technically have more than one mathematically valid rate.

For most investors none of this is a problem: a normal SIP or lump-sum-plus-redemptions pattern has exactly one sensible answer, and that is what the calculator returns. Use XIRR for the full life of an investment rather than tiny slices, and it will tell you, faithfully, what you actually earned per year.

Methodology

Methodology and sources

This calculator solves the standard XIRR equation — Σ CF_i / (1 + r)^((d_i − d_0) / 365) = 0 — for the annual rate r, using Newton-Raphson iteration with a bisection fallback for hard cases. It is the same calculation as the XIRR function in Excel and Google Sheets, and the money-weighted return that mutual-fund platforms report for portfolios with irregular cash flows. Investments are entered as negative cash flows and redemptions (or the current value) as positive cash flows, each paired with the number of days from the first transaction. Figures are estimates based on the inputs you enter and are not investment advice.

Microsoft Support — XIRR function (definition and syntax).
Questions

Frequently asked questions about the free xirr calculator

A XIRR calculator is a free online tool that helps you calculate the Extended Internal Rate of Return (XIRR) — the annualized, money-weighted return on a series of investments and withdrawals made on irregular dates, ideal for mutual-fund SIPs. XIRR is the single annual rate that sets the time-weighted net present value of all dated cash flows to zero. It weights every investment and withdrawal by the exact days it stayed invested. It runs entirely in your browser with instant results and no sign-up.
XIRR (Extended Internal Rate of Return) is the single annualized rate of return on an investment that has multiple cash flows occurring on irregular dates — the rate that, applied to every instalment, reproduces your ending value. It is your personal, money-weighted rate of return: your actual return on investment, accounting for both how much you invested and exactly when. For SIPs, lump sums, and partial withdrawals all mixed together, XIRR gives one consolidated return.
XIRR is the rate r that makes the time-weighted net present value of all your dated cash flows equal to zero: Σ CF ÷ (1 + r)^(days ÷ 365) = 0, where investments are negative and money received is positive, and days are counted from the first cash flow. There is no closed-form solution, so it is solved by iteration. In Excel or Google Sheets, use =XIRR(values, dates, [guess]).
There is no fixed benchmark — a good XIRR depends on the asset class, the fund, and market conditions. A good XIRR beats its relevant benchmark and the average of similar funds, and comfortably outpaces inflation so your wealth grows in real terms. As rough context, long-run equity funds have historically delivered XIRRs in the low-to-mid teens over full market cycles, but always compare like with like.
CAGR (compound annual growth rate) measures the point-to-point return on a single lump sum, assuming no further additions or withdrawals. XIRR handles multiple cash flows on irregular dates and weights each by the exact time it stayed invested. For a one-time investment, CAGR is fine; for a SIP or any portfolio with staggered contributions and withdrawals, XIRR is the accurate measure.
Absolute return shows only the total percentage gain or loss, ignoring how long the money was invested — it is point-to-point and not annualized. XIRR annualizes the return and factors in the timing of every cash flow. That is why your XIRR often looks higher than a naive total-gain figure on a SIP: most instalments were invested for less than the full period.
Yes. A negative XIRR means your dated cash flows produced an annualized loss — you received back less than you invested, after accounting for timing. XIRR can only be solved when there is at least one investment (a negative cash flow) and one amount received (a positive cash flow); with no such sign change, XIRR is undefined.
About

About this XIRR calculator

This XIRR calculator runs entirely in your browser. Every figure you enter stays on your device — nothing is sent to a server, logged, or shared. It solves the standard XIRR equation for the annual rate that sets the time-weighted net present value of your dated cash flows to zero — using Newton-Raphson with a bisection fallback — and reports your total invested, total returned, and net gain, updating instantly as you type.

Calculators Cloud offers 400+ free tools with no sign-up. The whole Finance calculators shelf includes CAGR, IRR, and Net present value tools alongside this one. Or browse the full calculator directory.

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.