The XIRR calculator estimates your annualized investment return when deposits, withdrawals, and payouts occur on different dates. XIRR is a money-weighted return: it accounts for both how much you invest and how long each amount stays invested.
Use it to evaluate mutual fund contributions, irregular investment deposits, property cash flows, or other investments where a simple percentage gain does not capture the timing of your money.
How to use the XIRR calculator
- Enter each cash flow and its actual date. Use the date money was invested or received, rather than grouping transactions into approximate monthly or yearly totals.
- Use negative amounts for money you pay out. Initial investments and additional contributions are negative from your perspective as the investor.
- Use positive amounts for money you receive. Withdrawals, cash distributions, and sale proceeds are positive.
- Include an ending value if the investment is still open. Treat its value on the measurement date as a final positive cash flow. This is a valuation, not an actual withdrawal.
- Review the annualized return. Check your dates, signs, and ending value before interpreting the result.
Use one currency throughout, and include at least one negative and one positive cash flow. Opposite signs are necessary, but they do not guarantee that a valid XIRR solution exists.

Which transactions should you include?
Define what you are measuring before collecting the data. For a whole-account return, include money entering or leaving the account and its ending value. Purchases, sales, and dividend reinvestments that stay inside that account are generally internal movements, not additional external cash flows.
For an individual investment, include its purchase payments and distributions. Avoid counting sale proceeds twice as both a payout and an ending value. Fees already deducted from the account value should not also be entered as separate expenses; separately paid fees can be included when measuring an after-fee return.
What is the XIRR formula?
XIRR, or Extended Internal Rate of Return, finds the annual rate that makes the net present value of all dated cash flows equal to zero. The standard XIRR equation uses actual elapsed days and a 365-day year:
- Ci is each signed cash-flow amount.
- di − d0 is the number of days from the starting date to that cash flow.
- r is the annualized return expressed as a decimal: 0.10 means 10%.
The rate is normally found numerically by testing and refining possible solutions. It is not calculated by averaging transaction returns or dividing total profit by the number of years.
A standard IRR calculator assumes equally spaced periods, but the amounts can vary. XIRR uses dates instead, making it suitable for irregular cash flows. Standard IRR is a return per period; it is annual only when each period represents one year.
Worked example: contributions and payouts
Consider an investment with an initial payment, an additional contribution, and two payouts:

| Date | Cash flow | Description |
|---|---|---|
| January 1, 2021 | −$10,000 | Initial investment |
| January 1, 2022 | −$5,000 | Additional contribution |
| January 1, 2023 | +$3,000 | Partial payout |
| January 1, 2024 | +$20,000 | Final payout |
These dates are exactly 365 days apart, so the equation simplifies to:
0 = −10,000 − 5,000 / (1 + r) + 3,000 / (1 + r)2 + 20,000 / (1 + r)3
The resulting XIRR is approximately 18.29% per year. Total contributions are $15,000, total receipts are $23,000, and the dollar profit is $8,000.
This example deliberately uses regular annual dates, so annual IRR and XIRR agree. If the additional $5,000 were invested earlier, while all other amounts and dates stayed unchanged, it would be committed for longer and the XIRR would be lower. The $8,000 profit would not change. That distinction is why exact dates matter.
How to interpret your XIRR result
For a conventional investment, with contributions followed by receipts, a positive XIRR indicates an annualized gain and a negative XIRR indicates an annualized loss. A zero XIRR means total receipts equal total contributions without any return for the time your money was invested.
XIRR is not your total percentage gain. An 18.29% XIRR does not mean the investment earned 18.29% in total or delivered that return every calendar year. It is a single annualized rate that reconciles the dated cash flows.
- Check dollar profit alongside the rate. A small, short-lived investment can have a high XIRR but produce little money.
- Be cautious with short measurement periods. Annualizing a gain earned over a few weeks can produce a very large percentage. It is not a forecast that the gain will repeat.
- Use a comparable benchmark. Consider investment risk, duration, fees, and tax treatment. A published fund or index return may use a time-weighted method and is not automatically comparable to your personal XIRR.
- Do not infer risk from XIRR. The rate does not measure volatility, liquidity, or the likelihood of future losses.
Practical uses and important limitations
For mutual funds or systematic investment plans, use each contribution date and the current holding value to measure your personal return. For a rental property, use purchase and improvement payments, net cash distributions, and net sale proceeds—or an estimated ending value if it remains unsold.
For a proposed project, XIRR can summarize forecast investment payments and receipts. However, a forecast XIRR is only as reliable as its cash-flow and timing assumptions. Test delayed receipts, higher costs, and lower exit values before relying on the headline rate.
Keep these limitations in mind:
- Some cash flows have multiple or no solutions. Repeated changes between negative and positive cash flows can make a single XIRR misleading or ambiguous.
- Ending valuations affect the answer. For an unsold asset, the return partly depends on an estimate rather than realized proceeds.
- XIRR does not measure the investment’s scale. A higher percentage return does not necessarily create more dollar value than a larger project with a lower rate.
- Interim payouts do not guarantee future growth. XIRR does not establish what you will earn when reinvesting distributions elsewhere.
If the calculation fails, first check for missing dates, reversed signs, and an omitted final payout or holding value. A calculation failure can also reflect the cash-flow pattern rather than a data-entry mistake.
XIRR versus other investment metrics

- IRR: Use for equally spaced cash flows. Use XIRR when actual transaction dates matter.
- Compound Annual Growth Rate: Useful for a starting value and ending value with no intervening contributions or withdrawals. CAGR describes a constant compounded growth rate, not the actual year-by-year path.
- Future value: Estimates a future amount using an assumed return. XIRR works in the opposite direction, finding a return from cash-flow amounts and dates.
- Net present value: Measures value in currency at a discount rate you choose. It complements XIRR when comparing projects with different investment sizes.
How to calculate XIRR in Excel
Put signed cash flows in one column and their matching dates in another. For four transactions in cells A2:A5 and B2:B5, use =XIRR(A2:A5,B2:B5) and format the result as a percentage.
Excel also accepts an optional initial rate guess. For cash flows with multiple valid solutions, a different guess can lead to a different result. Check that the dates are recognized as dates and that each amount is paired with the correct transaction.
Build a cash-flow calculator for your website
Investment and property businesses can use Calcopolis to build a customized return calculator around their own contribution schedules, costs, and payout assumptions, helping visitors explore estimates before requesting a consultation.