iLearnFintech Glossary Formulas Cases Sandboxes
Investing/Bonds

Duration and convexity

9 min readCoreUpdated December 2026
In short

Duration tells you how much a bond's price moves when yields change: a duration of 7 means a price change of about 7% for a 1 point move in yield. Convexity is the curve in the price-yield line: price gains from falling yields are a bit bigger than losses from rising yields.

What it is

Macaulay duration is the average time until you are paid, where each payment is weighted by its present value. A zero-coupon bond has a duration equal to its maturity; coupons pull it lower.

Modified duration turns that into a sensitivity: Macaulay duration divided by (1 + yield). It says how many percent the price changes for a 1 point change in yield. Banks also use DV01, the change in value in money for a 0.01 point move.

Three rules follow:

  • Longer maturity means higher duration.
  • A higher coupon means lower duration, because more of the money comes back early.
  • A lower yield means higher duration, because far-away payments then count for more.

Duration draws a straight line through a curved relationship. Convexity measures the curve. Adding it makes the estimate much better for big moves.

The intuition

Think of a seesaw. Payments far in the future sit at the end of the plank: a change in the discount rate moves their value a lot. Payments next year sit near the middle and hardly move. Duration is where the weight of the payments sits.

Convexity is good news for the owner. When yields fall, the price rises a little more than duration predicts; when yields rise, it falls a little less.

$800$900$1,000$1,100$1,2002%3%4%5%6%7%8%5% yield: $1,000Real priceDuration lineGap = convexityYield
A 10-year 5% bond. The real price (solid) curves above the straight duration line (dashed), so duration overstates losses and understates gains. The gap grows with the size of the move.

The math

\[D_{Mac} = \frac{1}{P}\sum_{t=1}^{T} t \cdot \frac{CF_t}{(1+y)^t}, \qquad D_{mod} = \frac{D_{Mac}}{1+y}\]
\[\frac{\Delta P}{P} \approx -D_{mod}\,\Delta y + \tfrac{1}{2}\,\text{Convexity}\,(\Delta y)^2\]

Where

\(CF_t\)
Payment at time t
\(D_{mod}\)
Modified duration: percent price change per 1 point in yield
\(\Delta y\)
Change in yield, as a decimal

In words: Duration gives the straight-line estimate; the convexity term adds a small correction that is always in the owner's favour.

An example

Fernway's bond (5% coupon, 6 years, yield 5.5%, price 97.50) has a Macaulay duration of 5.32 years, a modified duration of 5.04 and a convexity of 32.1.

Yield moveDuration onlyDuration + convexityActual
+1 point (to 6.5%)−5.04%−4.88%−4.89%
−1 point (to 4.5%)+5.04%+5.20%+5.21%

Compare bonds with the same 5% yield: a 5-year zero-coupon bond has a duration of 5.0, a 20-year bond with an 8% coupon 11.9, and a 20-year zero-coupon bond 20.0.

In Python

Compute duration and convexity from the cash flows, then test the estimate against the real price change.

import numpy as np

def stats(coupon, years, y, face=100):
    t = np.arange(1, years + 1)
    cf = np.full(years, coupon * face, dtype=float)
    cf[-1] += face
    pv = cf / (1 + y) ** t
    p = pv.sum()
    mac = (t * pv).sum() / p
    conv = (pv * t * (t + 1)).sum() / (p * (1 + y) ** 2)
    return p, mac, mac / (1 + y), conv

p, mac, mod, conv = stats(0.05, 6, 0.055)
print("price", round(p, 2), "| Macaulay", round(mac, 2), "| modified", round(mod, 2), "| convexity", round(conv, 1))
dy = 0.01
print("estimate for +1 point:", round((-mod * dy + 0.5 * conv * dy ** 2) * 100, 2), "%")
p_up = stats(0.05, 6, 0.065)[0]
print("actual for +1 point:  ", round((p_up / p - 1) * 100, 2), "%")

In the real world

UK pension funds and long bonds, 2022

After the UK government's mini-budget on 23 September 2022, the yield on 30-year government bonds rose by 1.3 percentage points in three trading days, from about 3.7% to above 5%. The Bank of England called it three times larger than any earlier move over a similar period. Long bonds have durations near 20, so their prices fell by around a fifth. Pension funds that had borrowed against these bonds faced cash calls and had to sell, which pushed yields even higher. On 28 September the Bank of England stepped in to buy long bonds, and the 30-year yield fell by over a point that day.

Think about it

A pension fund must pay pensions about 20 years from now. A board member wants to hold only 2-year bonds, "because they are less risky". What risk is the board member missing?

Show a model answer

Risk depends on what you need to pay. The pensions behave like a 20-year bond: when rates fall, their present value rises a lot. Two-year bonds barely rise in that case, so the fund's gap between assets and pensions would grow. They also have to be reinvested every two years at whatever rates are then on offer. Matching the duration of the assets to the pensions protects the fund. Short bonds are safe in price, but not safe for this goal.

Reading the result

Duration turns "interest rates might rise" into a number: with a duration of 7, a 1 point rise costs about 7%. Match the duration of what you own to when you need the money, and watch convexity for large moves.

Good signs

  • Matching the duration of assets to the timing of what you owe
  • Using duration to compare the rate risk of bonds and bond funds
  • Adding convexity when yields can move a lot

Watch out

  • Thinking a long government bond is low risk because default is unlikely
  • Using duration alone for very large yield moves
  • Forgetting that duration changes as yields and time change

Remember

  • Duration ≈ % price change for a 1 point yield change.
  • Longer maturity and lower coupon mean higher duration.
  • Convexity makes gains bigger than losses for the same move.

Check yourself

Question 1 of 2A bond has a modified duration of 6. Its yield rises by 0.5 points. Roughly how does its price change?

Question 2 of 2Which bond has the longest duration?

Read more

  • Bodie, Kane & Marcus, Investments: chapter on managing bond portfolios
  • John C. Hull, Options, Futures, and Other Derivatives: chapter on interest rates, section on duration and convexity

Spotted a mistake or have a wish?

Tell us in a line or two. The page name is sent along automatically.