Skip to content
All insights

Tool Guides

XIRR: the return number your portfolio deserves

Why a money-weighted return beats a simple average when you invest at different times, how XIRR works, and how to read it without overconfidence.

5 min read

Your portfolio is not a single investment. It is a series of decisions made on different dates, with different amounts, and sometimes with dividends arriving in between. Averaging the returns of the holdings will not tell you what your money actually earned.

XIRR does. It finds the annual rate that makes the present value of all your dated cash flows equal to zero. In plain terms, it accounts for when you put money in and when you took it out.

A worked example

Invest Rs 100,000 in January. Invest another Rs 100,000 in July. The portfolio is worth Rs 230,000 at the end of December. The simple profit is Rs 30,000 on Rs 200,000, or 15%. But the second Rs 100,000 was only invested for half the year, so the annualised return is higher, around 20%.

XIRR finds that 20% by solving for the rate that discounts each cash flow by its actual date. The first contribution is discounted for a full year, the second for half a year, and the final value is the inflow. The result is money-weighted, not time-weighted.

XIRR versus CAGR

CAGR assumes one amount at the start and one at the end. XIRR handles many amounts at many dates. If you invested once and never added, the two should be close. If you contribute monthly, CAGR on the starting and ending values will overstate or understate your return depending on the market path.

XIRR is the better measure for a real portfolio. It is also the one that fund managers dislike, because it reflects the timing of investor money rather than the manager’s stock picks. Both numbers are useful, but they answer different questions.

What counts as a cash flow

  • Money you put into the portfolio is negative.
  • Money you take out, including dividends and sale proceeds, is positive.
  • The ending portfolio value is a positive cash flow on the valuation date.
  • Fees and taxes reduce the cash flow that reaches you, so include them where you can.

Be consistent. If you record a dividend as a cash flow and also leave it in the ending value, you have counted it twice. Decide whether you are measuring the portfolio with or without withdrawals, and stick to it.

The limits

XIRR assumes a single constant rate that reconciles the cash flows. Real returns are not constant. A positive XIRR does not mean every year was positive. A negative XIRR does not mean the strategy is broken, especially over a short period.

It also needs at least one negative and one positive cash flow. If you have only contributed and never valued the portfolio, there is nothing to solve. Add a valuation date and a current value.

Use it once a year

Calculate XIRR annually, not daily. Daily calculation turns noise into anxiety. Annual calculation gives you a number you can compare with a benchmark, a fixed deposit or your own plan.

Then ask the useful question: did the timing of my contributions help or hurt? If you added the most money just before a fall, XIRR will show it. That is not a reason to feel bad. It is a reason to automate contributions and stop timing them.

Run your own numbers

XIRR Calculator

Annualised return on irregular buys, sells and dividends using exact dates.

Open the calculator

Free with a Google account. No card, no trial.

Investing Sparkle

We teach Pakistani investors to understand PSX and manage their own money. We do not hold client funds, execute trades, or recommend specific stocks.

About us →

One honest email a week

One PSX explainer, one market update. No hype, no tips, no forwarding your address to anyone.

Keep reading

Related articles.