XIRR vs YTM: Why Your Bond Return Doesn't Match the Quoted Yield

For information only. This article explains the mathematical difference between Yield to Maturity (YTM) and XIRR. It is not investment advice and does not recommend any specific bond or return calculation approach for your situation.

You bought a bond quoted at an 8.2% YTM. Six months later you ran XIRR on your actual cash flows in a spreadsheet and got 8.6%. Neither number is wrong — they answer slightly different questions, using different compounding conventions. Here's exactly where the gap comes from.

What YTM actually measures

Yield to Maturity is the single discount rate that, when applied to a bond's remaining coupon and principal cash flows, makes their present value equal the bond's current price. By long-standing market convention, YTM is quoted as a nominal annual rate on a bond basis — for a semi-annual coupon bond, the market halves the annual rate and compounds twice a year, regardless of the actual number of days between coupon dates.

See What is YTM, Really? for the full discount-rate mechanics this builds on.

What XIRR actually measures

XIRR (as implemented in Excel/Google Sheets and used for the calculators on this site) solves for the single annualized rate that makes the net present value of a series of dated cash flows equal zero. It uses actual calendar dates for every cash flow and compounds on an actual/365 day-count basis — no bond-basis convention, no assumption of exactly equal coupon periods.

The core difference: compounding convention

Factor YTM XIRR
Compounding basisBond basis — fixed periods (semi-annual, quarterly)Actual/365 — real calendar days between flows
Cash flow datesAssumed evenly spaced from settlementExact dates you enter, however irregular
Reinvestment assumptionCoupons reinvested at the same YTM (a modelling assumption, not a guarantee)No reinvestment assumption — measures return on the cash flows as they actually occurred
Typical useComparing bonds on a screener at the point of purchaseMeasuring your own realized/expected return on an actual holding

Worked example

Say you buy a 5-year, 8% annual-coupon bond with ₹100 face value, 47 days into the current coupon period, at a clean price of ₹98.50. The bond's quoted YTM on a bond-basis calculation might come out to 8.32%.

Now run XIRR on your actual cash flows: the purchase outflow on today's exact date (including the accrued-interest dirty price you actually paid), then each future coupon and the final redemption on their exact calendar dates. Because the first coupon period is shorter than a full year from your purchase date, and XIRR uses actual/365 day counts rather than the bond-basis assumption, the XIRR figure typically comes out slightly different from the quoted YTM — the direction and size of the gap depend on where in the coupon cycle you bought and the exact day-count difference for that period.

Neither figure is "more correct" in isolation — YTM is the standardized, comparable number the market quotes; XIRR is the return arithmetic on your specific, dated cash flows.

When to use which

Quick reference

QuestionMetric to use
Which bond has the better quoted return?YTM
What return will I actually earn on my specific purchase?XIRR
Comparing across a screener listYTM
Tracking your own portfolio's performanceXIRR

Key takeaways

Reminder: This article is for educational purposes only and does not constitute investment advice. RetailBonds.in is not a SEBI-registered intermediary, investment adviser, or research analyst. Verify all calculations independently before making investment decisions.

Related reading: What is YTM, really? · Accrued interest and dirty price · Compare bond yields on the screener →

← Back to Learn