Sub topic 3
Pricing a Bond as a Present Value
This chapter assumes you can discount a single cash flow, PV = FV / (1 + r)^t, and that you know what par value, coupon rate, and maturity mean. Here we put those pieces together into one pricing formula and look at where the formula goes wrong in practice.
The Pricing Idea
A fixed-rate bond is a list of promised payments. A bond's price is the sum of the present values of those payments. Each payment is discounted at the same rate, the market discount rate, also called the required yield or yield to maturity (YTM). The next chapter treats the YTM in detail. Here it is simply the rate you plug in.
For a bond with N periods, a coupon C per period, and a par value F repaid at the end:
PV = C/(1+y) + C/(1+y)^2 + ... + C/(1+y)^N + F/(1+y)^NEquivalently, PV = C × [1 − (1+y)^−N] / y + F / (1+y)^N. The first term is the present value of an ordinary annuity (the coupons). The second is the present value of a single lump sum (the principal).
Working in Periods, Not Years
The formula works in periods. For a bond that pays m times a year:
N = years × mC = coupon rate × F / my = annual yield / m
A common error is to discount semiannual coupons at the annual yield, or to count years instead of periods. The quoted annual yield for semiannual bonds is a bond-equivalent yield, meaning the periodic rate times two. It is not an effective annual rate.
Worked Example in Code
The function below discounts each coupon and the par value, as in the formula.
def bond_price(face, coupon_rate, ytm, years, freq=1):
"""Full price on a coupon date: PV of coupons plus PV of par."""
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
# A 3-year 5% annual-pay bond priced at yields below, at, and above the coupon rate
for ytm in (0.04, 0.05, 0.06):
print(ytm, round(bond_price(100, 0.05, ytm, 3), 4))The three prices come out at about 102.78, 100.00, and 97.33. The pattern gives you a fast sanity check:
| Yield versus coupon rate | Price versus par | Name |
|---|---|---|
| Yield below coupon rate | Above par | Premium bond |
| Yield equal to coupon rate | Equal to par | Par bond |
| Yield above coupon rate | Below par | Discount bond |
The reason is that a 5% coupon is attractive when the market asks only 4%, so investors pay more than par. When the market asks 6%, the same coupon is unattractive, so the price falls below par.
A Semiannual Example
Take a 2-year, 6% bond paying semiannually, priced at a market yield of 8%. Then N = 4, C = 3, and y = 4%.
print(round(bond_price(100, 0.06, 0.08, 2, freq=2), 4))The result is about 96.37. By hand, the four discounted cash flows are roughly 2.885, 2.774, 2.667, and 88.045 (the final 103 discounted four periods). On a financial calculator you would enter N = 4, I/Y = 4, PMT = 3, FV = 100 and compute PV. The calculator returns a negative number, because it treats the price as a cash outflow.
Edge Cases and Common Errors
- Zero-coupon bond.
C = 0, so the price is justF / (1+y)^N. All of the value comes from the final payment. - Pricing between coupon dates. The function above assumes you are standing exactly on a coupon date, so a full coupon is one period away. Between dates, the formula gives the full price (including accrued interest), and the discount exponents become fractional. A later chapter covers this.
- Rounding the period count.
int(years * freq)truncates. For a bond with 2.5 years left and annual pay, it silently drops half a period. Check thatyears × freqis a whole number before you call it. - Yield above 100%, or zero yield. At
y = 0the annuity formula divides by zero. The loop-based function handles it, since the price is then just the sum of all cash flows. - Wrong sign on yield units. Pass 0.04, not 4. A yield of 4 means 400% and gives a price near zero.
What a Single Discount Rate Assumes
Pricing every cash flow at one yield is a simplification. It treats the 1-year coupon and the 10-year principal as if the market charged the same rate for waiting one year as for waiting ten. In reality, rates differ by maturity. Discounting each cash flow at its own spot rate is more precise, and it is the subject of a later chapter. The single-yield price is still the standard convention, because the YTM is the quoted number in bond markets.
The single-yield method also assumes the bond pays in full and on time, and that the discount rate stays fixed. A bond with embedded options, such as a callable bond, has uncertain cash flows, so this simple method does not apply directly.
Checking Your Work
Before trusting a price, run three checks:
- If yield equals coupon rate, is the price 100 per 100 of par?
- If yield is below the coupon rate, is the price above par, and the reverse?
- If you raise the yield slightly, does the price fall?
A price that fails any check usually means a periods-versus-years mistake.
Exercise
A 4-year, 8% annual-pay bond with par value 1,000 is priced at a market yield of 6%. Without running code, write the formula for its price, state whether it trades at a premium or a discount, and explain why. Then give the price to the nearest whole number.
Show answer
The price is 80/1.06 + 80/1.06^2 + 80/1.06^3 + 1,080/1.06^4. The yield (6%) is below the coupon rate (8%), so the bond trades at a premium. Investors pay more than par for a coupon above what the market requires. The terms are about 75.47, 71.20, 67.17, and 855.46, which sum to about 1,069.30, so the price is about 1,069.
Exercise
A 5-year, 4% bond pays coupons semiannually and the market yield is 5% (bond-equivalent). What are N, the coupon per 100 of par, and the periodic yield you should use?
Show answer
N = 5 × 2 = 10 periods. The coupon is 100 × 4% / 2 = 2 per period. The periodic yield is 5% / 2 = 2.5%.