Home › Calculators › XIRR Calculator

XIRR Calculator

Calculate the annualized return (XIRR) of investments made on different dates: SIP instalments, top-ups, dividends, partial sales and the current value. Paste or type your cash flows, one per line, and get the XIRR with the working and a discounted cash flow table.

Last updated:

Money you invest is negative (−), money you receive or the current value is positive (+). Dates as YYYY-MM-DD, or DD/MM/YYYY / MM/DD/YYYY (choose below). Commas, tabs or spaces separate the columns.

Enter your values to see the result.
Advertisement
Advertisement

How to use the XIRR Calculator

  1. Enter one cash flow per line: the date, then the amount.
  2. Make investments negative and money received (sales, dividends, current value) positive, or switch the sign convention.
  3. Pick the date format if you use slashes.
  4. Press Calculate XIRR to get the annualized return.
  5. Check the table: the present values at the XIRR add up to zero.

What XIRR solves

XIRR (extended internal rate of return) is the single annual rate r that makes the present value of all your dated cash flows add up to zero:

Σ Ck ÷ (1 + r)(dk − d0) ÷ 365 = 0

  • Ck = each cash flow (investments negative, withdrawals, dividends and the current value positive)
  • dk − d0 = days between that cash flow and the first one
  • 365 days count as one year, the same convention as the XIRR function in Excel and Google Sheets

There is no algebraic solution, so the calculator uses Newton-Raphson iteration (rnew = r − NPV(r) ÷ NPV′(r)) and falls back to bisection if Newton's method does not converge.

Example (the default inputs): five quarterly investments of 10,000 from January 2024 to January 2025, worth 57,500 on 31 December 2025. The net gain is 7,500 (15% absolute), but because most of the money was invested for much less than two years the XIRR is about 9.99% a year. A simple CAGR that assumes all 50,000 was invested on day one gives only 7.38%.

XIRR vs other return measures

MeasureUses dates?Handles many cash flows?Best for
Absolute returnNoTotals onlyQuick gain or loss in %
CAGRStart and end onlyNo (one investment)A single lump sum held for a period
IRREqual periodsYesRegular yearly or monthly cash flows
XIRRExact datesYesSIPs, irregular top-ups, dividends, partial sales

Tips for accurate XIRR

  • Include the current value of your holding as a positive cash flow on today's date if you have not sold.
  • Enter every purchase, sale and cash dividend with its own date; reinvested dividends do not need separate lines.
  • Very short periods (a few weeks) can produce huge annualized numbers, because a small gain is compounded over a full year.
  • Cash flows that change sign many times can in rare cases have more than one valid rate; the calculator reports the one closest to the 10% starting guess.

Frequently asked questions

What is XIRR?

XIRR is the annualized internal rate of return for cash flows that happen on irregular dates. It finds the yearly rate at which the present value of all investments and returns adds up to zero, using the exact number of days between cash flows.

How is XIRR different from CAGR?

CAGR measures the growth of a single investment from a start to an end value. XIRR handles many investments and withdrawals on different dates, so it is the correct measure for SIPs, top-ups and partial redemptions.

How do I calculate XIRR for a SIP?

Enter each SIP instalment as a negative amount on its date, then add the current value of your units as a positive amount on today's date. The result is your annualized SIP return.

Is this the same as Excel's XIRR function?

Yes. It uses the same equation with a 365-day year, so for the same cash flows it should match Excel or Google Sheets XIRR to within rounding.

Why is my XIRR higher than my absolute return?

When money is added over time, much of it was invested for less than the full period. XIRR accounts for that shorter time, so a modest absolute gain can be a higher annual rate.

Why do I get an error?

XIRR needs at least one negative and one positive cash flow on different dates. Check that every line has a valid date and amount, and that the signs match the chosen convention.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

IRR CalculatorFind the internal rate of return of cash flows, with an NPV profile chart and optional MIRR.CAGR CalculatorCompound annual growth rate, or solve for a target end value.ROI CalculatorWork out ROI and annualized ROI, and compare up to three investments side by side.SWP CalculatorSystematic withdrawal plan: yearly balance, total withdrawn and when the corpus runs out.EMI CalculatorMonthly EMI, total interest and month-by-month schedule, reducing or flat rate.SIP CalculatorMaturity value, invested amount and returns of a monthly SIP, with optional annual step-up.Compound Interest CalculatorSee how savings and investments grow over time.401(k) CalculatorProject your 401(k) balance with employer match and growth.Retirement CalculatorProject retirement savings and see your shortfall or surplus.Savings Goal CalculatorMonthly deposit needed to reach a savings goal by a deadline.Inflation CalculatorValue of a dollar between any two years using US CPI data.FIRE CalculatorFind your FIRE number, years to financial independence and Coast FIRE target.Simple Interest CalculatorCalculate simple interest and final amount, or solve for principal, rate or time.APY CalculatorTurn an interest rate into APY and project savings growth with monthly deposits.CD CalculatorFind a CD's maturity value, interest earned, APY vs APR and early-withdrawal penalty.Investment Return CalculatorProject investment growth with monthly contributions, nominal vs real after inflation.Dividend CalculatorProject dividend income with yield, dividend growth and DRIP reinvestment over time.Net Worth CalculatorList assets and debts by category to get your net worth, debt ratio, donut charts and history.Credit Card Interest CalculatorSee how long minimum payments take, the total interest and how much a fixed payment saves.EOQ CalculatorEconomic order quantity, orders per year, reorder point, safety stock and a total cost curve.Rental Yield CalculatorCalculate gross and net rental yield for a buy-to-let or rental property.Roth IRA CalculatorProject your Roth IRA balance at retirement with contribution limits, catch-up and growth.Present Value CalculatorFind what a future sum or a series of payments is worth today at a discount rate.Future Value CalculatorCalculate the future value of savings with compounding, regular payments and payment timing.NPV CalculatorCalculate net present value, PV table, profitability index and payback from cash flows.Rule of 72 CalculatorEstimate how long money takes to double with the rule of 72, 70 and 69.3 vs. the exact answer.Annuity CalculatorCalculate annuity payouts from a lump sum, or how an annuity grows with regular contributions.Savings CalculatorSee how savings grow with an initial deposit, monthly deposits and compound interest.Interest Rate CalculatorSolve a loan's interest rate (APR) from the amount, payment and term using Newton's method.Yield to Maturity CalculatorFind a bond's yield to maturity, current yield and yield to call from its price and coupon.Bond Price CalculatorPrice a bond from its coupon, yield and term, with premium or discount and a cash flow table.Stock Average CalculatorAverage cost of several stock buys, plus how many shares to buy to reach a target average.Position Size CalculatorHow many shares or units to trade so a stop-loss risks only a set share of your account.EPS CalculatorBasic and diluted earnings per share from net income, preferred dividends and share count.CAPM CalculatorExpected return from the risk-free rate, beta and market return using the CAPM formula.Effective Annual Rate CalculatorConvert a nominal rate to the effective annual rate (EAR / APY) for any compounding, or back.Dividend Reinvestment CalculatorProject a DRIP: portfolio value, shares and income with and without reinvesting dividends.College Savings CalculatorProject future college costs and see how much you need to save each month to pay for them.Long-Term Care Cost CalculatorFuture cost of home care, assisted living or a nursing home with inflation, and savings needed.Lump Sum vs Dollar Cost Averaging CalculatorInvest it all now or spread it over months? Simulated odds, expected values and bad-case risk.Military Retirement Pay CalculatorEstimate High-3, BRS, REDUX or reserve military retired pay, plus the BRS TSP match.Monte Carlo Retirement SimulatorSimulate thousands of market paths to see the odds your retirement savings last.Perpetuity CalculatorPresent value of a level or growing perpetuity, its payment or discount rate, with steps.Portfolio Return CalculatorWeighted return of your holdings, plus time-weighted vs money-weighted return with cash flows.Retained Earnings CalculatorEnding retained earnings from beginning balance, net income and dividends and retention ratio.Saver's Credit CalculatorRetirement savings credit: your 50/20/10% rate and credit from AGI and filing status.Savings Bond CalculatorValue of EE and I savings bonds by issue date and denomination, with interest and penalty.Terminal Value CalculatorDCF terminal value by perpetuity growth or exit multiple, with present value and sensitivity.Trading Compound Interest CalculatorCompound daily, weekly or monthly trading gains with deposits and withdrawals into a balance table.TSP CalculatorProject your Thrift Savings Plan balance with agency 1% + matching and G/F/C/S/I fund mix.Yield to Call CalculatorYield to call of a callable bond, compared with yield to maturity and yield to worst.Zero Coupon Bond CalculatorPrice, yield, face value or term of a zero coupon bond with any compounding.Is It Worth Automating? CalculatorTime saved by automating a task over years vs time to build it: payback and net hours.House Hacking CalculatorNet housing cost when tenants in a duplex to fourplex pay rent, and savings vs renting.Home Renovation ROI CalculatorRemodel cost vs value added at resale: recoup %, ROI and typical returns by project type.Required Rate of Return CalculatorAnnual return needed to reach a savings goal from current savings, contributions and years.72(t) SEPP CalculatorPenalty-free early IRA payments under 72(t): RMD, amortization and annuitization methods.Retirement Withdrawal CalculatorSee how many years your retirement savings last with withdrawals, returns and inflation.Daily Interest CalculatorInterest per day and total interest for any number of days, simple or compounded daily.Reorder Point CalculatorReorder point from daily demand, lead time and safety stock, with days until the next order.Zakat CalculatorCalculate 2.5% zakat on cash, gold, silver and investments against the gold or silver nisab.Cash on Cash Return CalculatorCash-on-cash return on a rental: yearly pre-tax cash flow divided by the cash you invested.Coast FIRE CalculatorCoast FIRE number today, whether you have reached it and how long until you can coast.Continuous Compound Interest CalculatorFuture value with A = Pe^rt and a comparison with annual, monthly and daily compounding.Email Marketing ROI CalculatorOpens, clicks, orders, revenue, ROI and revenue per email from your list and rates.401k Employer Match CalculatorWork out your 401k employer match, total contribution, vesting and match left on the table.Expense Ratio CalculatorSee how much fund fees cost over time and compare up to 3 expense ratios.Fibonacci Retracement CalculatorFibonacci retracement and extension price levels from a swing high and low.
See all 127 Investing & Retirement Calculators →