Sub topic 4
Yield to Maturity as the Internal Rate of Return
This chapter assumes you can price a bond as a present value (the previous chapter) and are comfortable with compound interest and basic algebra. It also assumes you know what par value, coupon rate, and maturity mean.
What YTM Is
Pricing a bond starts from a yield and produces a price. Yield to maturity (YTM) runs that calculation backwards. You observe the market price and the promised cash flows, then solve for the single discount rate that makes the two agree.
That rate is the internal rate of return (IRR) of the bond. Treat the purchase as a negative cash flow today and the coupons and par value as positive cash flows later. The YTM is the rate at which the net present value of all those flows is zero.
For a bond with price P, periodic coupon C, par value F, and N periods, the YTM per period y satisfies:
P = C/(1+y) + C/(1+y)^2 + ... + (C+F)/(1+y)^N
There is no algebraic solution for y once N is larger than about four. Calculators and software find it by trial and error, and so do the exam's financial calculator keys (N, PV, PMT, FV, then CPT I/Y).
A Worked Example
A 3-year bond pays a 5% annual coupon on a par value of 100 and trades at 97.327. The cash flows are -97.327 now, then 5, 5, and 105.
Try 5%. The bond would be worth exactly 100, which is too high. Price falls as yield rises, so the rate must be higher. At 6% the price is:
- 5 / 1.06 = 4.7170
- 5 / 1.06^2 = 4.4500
- 105 / 1.06^3 = 88.1600
- Total = 97.327
The YTM is 6%. The bond sells at a discount because its yield is above its coupon rate.
Solving for YTM in Code
Because price falls steadily as yield rises, bisection always converges. The function keeps a range of yields and halves it each step.
def bond_price(face, coupon_rate, ytm, years, freq=1):
n = int(years * freq)
c = face * coupon_rate / freq
y = ytm / freq
pv_coupons = sum(c / (1 + y) ** t for t in range(1, n + 1))
pv_face = face / (1 + y) ** n
return pv_coupons + pv_face
def solve_ytm(price, face, coupon_rate, years, freq=1,
lo=-0.5, hi=1.0, tol=1e-12):
"""Annualized YTM (periodic yield times freq) by bisection."""
while hi - lo > tol:
mid = (lo + hi) / 2
if bond_price(face, coupon_rate, mid, years, freq) > price:
lo = mid # model price too high, so the yield must be higher
else:
hi = mid
return (lo + hi) / 2
# Annual-pay example from the text
print(round(solve_ytm(97.327, 100, 0.05, 3), 4))
# 2-year 4% semiannual bond priced at 98
y = solve_ytm(98, 100, 0.04, 2, freq=2)
print(round(100 * y, 2))The first call prints 0.06. The second prints about 5.06, the bond-equivalent yield in percent.
Annualizing the Yield
The solver finds a yield per period. The convention for stating it as an annual figure matters on the exam.
- Bond-equivalent yield (BEY) is the periodic yield multiplied by the number of periods per year. It is the market quoting convention for semiannual bonds.
- Effective annual yield (EAY) compounds the periodic yield: (1 + y)^freq - 1.
For a semiannual bond with a 3% yield per period, the BEY is 6.00% and the EAY is 1.03^2 - 1 = 6.09%. Both describe the same bond. If a question gives a yield "on a semiannual bond basis," divide by 2 before discounting.
| Quantity | Formula | Semiannual example (3% per period) |
|---|---|---|
| Periodic yield | solved from price | 3.00% |
| Bond-equivalent yield | periodic yield x freq | 6.00% |
| Effective annual yield | (1 + periodic)^freq - 1 | 6.09% |
What YTM Assumes
YTM is a promised return, not a forecast. It is realized only if three conditions hold:
- The investor holds the bond to maturity.
- The issuer pays every coupon and the par value in full and on time (no default).
- Every coupon is reinvested at the YTM itself.
The third assumption is the one most often broken. If rates fall after purchase, coupons are reinvested at lower rates and the realized return falls short. The function below computes the realized annual return for an annual-pay bond, given a reinvestment rate.
def realized_yield(price, face, coupon_rate, years, reinvest_rate):
"""Annual-pay bond held to maturity, coupons reinvested at reinvest_rate."""
c = face * coupon_rate
fv = sum(c * (1 + reinvest_rate) ** (years - t)
for t in range(1, years + 1)) + face
return (fv / price) ** (1 / years) - 1
print(round(realized_yield(97.327, 100, 0.05, 3, 0.06), 4))
print(round(realized_yield(97.327, 100, 0.05, 3, 0.04), 4))Reinvesting at 6% returns 0.06, which matches the YTM. Reinvesting at 4% returns about 0.059. The gap is small here because the bond is short and the coupons are small. It grows with longer maturity and higher coupons, since more of the total return comes from reinvested coupons.
Common Errors
- Discounting at the annual yield on a semiannual bond. Divide the yield by 2 and double the number of periods.
- Comparing a BEY with an EAY. Convert both to the same basis first.
- Reading YTM as the coupon rate. The coupon is fixed on the bond. The YTM changes with the price.
- Using YTM on a bond that may default or be called. The promised-cash-flow assumption fails. Later chapters cover yield to call and yield to worst.
- Forgetting the sign convention on a calculator. Enter the price as a negative PV and the coupon and par value as positive PMT and FV, or the calculator returns an error.
Exercise
A semiannual-pay bond has a yield of 2.8% per period. State the bond-equivalent yield and the effective annual yield.
Show answer
The bond-equivalent yield is 2 x 2.8% = 5.60%. The effective annual yield is 1.028^2 - 1 = 1.056784 - 1, which is about 5.68%.
Exercise
A 3-year, 5% annual-pay bond is bought at 97.327 (YTM 6%) and held to maturity. The issuer pays in full, but coupons can only be reinvested at 4%. Is the investor's realized annual return above, below, or equal to 6%? Why?
Show answer
Below 6%, at about 5.9%. The 6% YTM assumes each coupon is reinvested at 6%. At 4%, the future value at year 3 is 5(1.04)^2 + 5(1.04) + 105 = 115.608, and (115.608 / 97.327)^(1/3) - 1 is about 5.9%.
Exercise
A bond trades at par. What is its YTM relative to its coupon rate, and what does bisection need to show about the price at that yield?
Show answer
The YTM equals the coupon rate. At that yield the discounted coupons and par value sum to exactly the par value, so the model price matches the market price of 100.