Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceProbability & MeasureStochastic ModelsMarket MicrostructureGuide
Guide
Derivatives pricing0 / 17
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Options on dividend-paying stocks, indices, currencies and futures14Implied volatility and the volatility smile15Stochastic volatility and the Heston model16Static replication: Breeden–Litzenberger and Carr–Madan17Exotic options: barriers, Asians and digitals
Portfolio & risk0 / 12
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08The Fama–French factor models09Value at Risk and expected shortfall10Systemic risk and contagion11Portfolio constraints and the no-short-sales frontier12Estimating expected returns and covariances
Fixed income0 / 10
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Non-parallel curve moves and key-rate durations06Bond futures and the cheapest-to-deliver07Interest rate swaps08Callable bonds and negative convexity09Credit risk: default probabilities and credit spreads10Real rates, inflation and inflation-linked bonds
Corporate finance0 / 10
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04Project risk: sensitivity, scenarios and Monte Carlo NPV05The weighted average cost of capital06Capital structure and the Modigliani–Miller theorems07Dividends, payout policy and the dividend discount model08Discounted cash flow valuation09Relative valuation with multiples10Real options: the value of flexibility
Probability and measure0 / 13
01Measuring the size of sets02σ-algebras and Borel sets03Lebesgue measure and null sets04Measurable functions05The Lebesgue integral06Convergence theorems07Probability spaces and Kolmogorov's axioms08Random variables and their distributions09Expectation, variance and inequalities10Independence and product measures11Modes of convergence and the law of large numbers12Conditional probability and conditional expectation13Measure theory in option pricing
Stochastic models0 / 17
01Random walks and Brownian motion02The law of large numbers and the central limit theorem03Probability spaces, σ-algebras and random variables04Filtrations, adapted processes and stopping times05Conditional expectation and martingales06Properties of Brownian motion07The reflection principle and first passage times08The Brownian bridge09The Itô integral10Itô's lemma11Kolmogorov equations and the Feynman–Kac formula12Change of measure and Girsanov's theorem13Monte Carlo option pricing14Simulating SDEs: the Euler–Maruyama scheme15Correlated Brownian motions and multi-asset models16Mean reversion: Ornstein–Uhlenbeck and Vasicek17Jumps and the Merton jump-diffusion model
Market microstructure0 / 11
01Market makers and liquidity02The limit order book03Queue position and fill probability04Adverse selection and informed trading05The Glosten–Milgrom model06Measuring and decomposing the bid–ask spread07Informed trading and Kyle's lambda08Price impact and optimal execution09Inventory risk and quote skewing10Optimal quoting: the Avellaneda–Stoikov model11Market making profit and loss attribution
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guides/Fixed income/05

Non-parallel curve moves and key-rate durations

Lesson 5 of 10 · 1 min read

"Duration and convexity" measured the price risk of a bond with one number, and it did so by moving a single yield. "Spot rates, forward rates and the yield curve" showed that there is no single yield: every maturity has its own zero rate. This lesson asks what happens to a bond when the curve moves in a way that is not parallel, and how to measure the exposure to each part of the curve separately.

Throughout, rates are annually compounded zero rates read off one upward-sloping curve: 3.0% at 1 year, 3.4% at 2, 3.9% at 5, 4.3% at 10 and 4.6% at 30 years, with straight lines between these points. A bond is a set of cash flows CFtCF_tCFt​, and each is discounted at the zero rate of its own maturity.

Pricing off the curve

The price of a bond on a zero curve is the sum of its discounted cash flows, each at its own rate ztz_tzt​:

P=∑tCFt(1+zt)t.P = \sum_t \frac{CF_t}{(1+z_t)^t}.P=t∑​(1+zt​)tCFt​​.

Take a 5-year bond with a 4% annual coupon and face value 100. Its cash flows are 4, 4, 4, 4 and 104 at the ends of years 1 to 5, and discounting each at its zero rate gives P≈100.57P \approx 100.57P≈100.57. The yield to maturity is a single average of the five zero rates; the price itself needs all of them.

Shapes of a curve move

Curves rarely move in parallel. Three simple shapes cover most of what happens. A parallel shift moves every rate by the same amount. A steepener or flattener changes the slope: in a steepener the short rates fall relative to the long ones, in a flattener the short rates rise relative to the long ones. A butterfly changes the curvature: the middle of the curve moves against the two ends.

The figure uses exactly the shapes of the yield curve lab. A shock of +50+50+50 bp as a steepener lowers the 1-year rate by about 38 bp, the 5-year rate by about 16 bp and the 30-year rate by under 3 bp: the short end does the moving.

Key-rate durations

One duration cannot say where on the curve the risk sits. A key-rate duration can. Pick key maturities, here 2, 5, 10 and 30 years. For each key rate, move that rate by a small amount Δy\Delta yΔy, let the neighbouring zero rates follow it down linearly to zero at the adjacent key maturities, and record the relative price change:

KRDk=−1P ΔPΔyk.\text{KRD}_k = -\frac{1}{P}\,\frac{\Delta P}{\Delta y_k}.KRDk​=−P1​Δyk​ΔP​.

The weights are built so that, at every maturity, the shares of the key rates add up to one. Moving all key rates together is therefore the same as a parallel shift, and the key-rate durations add up to the ordinary duration against a parallel move of the zero curve:

∑kKRDk=D.\sum_k \text{KRD}_k = D.k∑​KRDk​=D.

For the 5-year bond this duration is 4.46 years. It splits into KRD2=0.22\text{KRD}_{2} = 0.22KRD2​=0.22, KRD5=4.23\text{KRD}_{5} = 4.23KRD5​=4.23 and zero for the 10- and 30-year keys: nearly all of the risk sits at the 5-year point, as it must, because the bond has no cash flow beyond year 5. A change in any other part of the curve leaves its price almost untouched.

Bullet against barbell

Two portfolios can have the same price and the same duration and still behave differently. Compare the 5-year bond, a bullet, with a barbell of two zero-coupon bonds, one maturing in 2 years and one in 30, weighted so that its price and its duration equal the bullet's. About 91% of the barbell's value sits in the short zero and 9% in the long one.

Both have a duration of 4.46 years, so "Duration and convexity" cannot tell them apart. Their key-rate durations can: the bullet is 4.23 at the 5-year key, while the barbell is 1.75 at the 2-year key and 2.70 at the 30-year key and nothing in between. Under a parallel move of +50+50+50 bp the bullet falls 2.20% and the barbell 2.13%; the small gap is the barbell's greater convexity, the point made in "Immunization and duration matching". Under a +50+50+50 bp steepener the bullet gains 0.74% and the barbell only 0.59%, and under a flattener the bullet loses 0.74% against the barbell's 0.58%. In the butterfly, which pushes the middle of the curve up, the bullet loses 0.59% and the barbell 0.32%. A single duration hides these differences; the key-rate durations explain them.

Figure: Non-parallel curve moves and key-rate durationsOpen in Yield Curve
+50 bp
-100100
Zero curveAfter shock
5-year bullet2/30-year barbell
Bullet price change
0.74%
Barbell price change
0.59%
Sum of key-rate durations
4.46

In the figure, choose a shape and a size. The upper chart shows the zero curve before and after the shock; the lower one shows the key-rate durations of the bullet and the barbell. The readouts give each portfolio's price change and the sum of the bullet's key-rate durations.

Using the numbers

Key-rate durations let a risk manager state a view precisely. An investor who expects the curve to steepen can choose which key rates the portfolio is exposed to. To hedge, they pick instruments whose key-rate durations cancel the portfolio's at each key point, rather than only matching the total duration. The cost is that the result depends on the chosen key points and on how the shock is spread between them, so key-rate durations describe a particular decomposition of the curve, not a law of nature.

Worked example

Price change of the 5-year bond in a +50 bp steepener

  1. Price the cash flows 4, 4, 4, 4, 104 off the curve.

    P=∑tCFt(1+zt)t\displaystyle P = \sum_t \frac{CF_t}{(1+z_t)^t}P=t∑​(1+zt​)tCFt​​=100.57
  2. The steepener lowers the 2-year zero rate by (in bp).

    Δz2\displaystyle \Delta z_2Δz2​=-29.12
  3. It lowers the 5-year zero rate by (in bp).

    Δz5\displaystyle \Delta z_5Δz5​=-15.84
  4. The bond's key-rate durations at the 2- and 5-year points.

    KRD2, KRD5=0.22, 4.23\displaystyle \text{KRD}_2,\ \text{KRD}_5 = 0.22,\ 4.23KRD2​, KRD5​=0.22, 4.23
  5. First-order price change in per cent: the key-rate durations times the rate falls.

    ΔPP≈−∑kKRDk Δzk\displaystyle \frac{\Delta P}{P} \approx -\sum_k \text{KRD}_k\,\Delta z_kPΔP​≈−k∑​KRDk​Δzk​=0.73%
  6. Repricing off the shocked curve gives 0.74%: the small difference is convexity.

    PshockedP−1\displaystyle \frac{P_{\text{shocked}}}{P} - 1PPshocked​​−1=0.74%

Summary

  • A bond is priced off the whole zero curve: P=∑tCFt/(1+zt)tP = \sum_t CF_t/(1+z_t)^tP=∑t​CFt​/(1+zt​)t.
  • Curve moves have shapes: parallel, steepener, flattener and butterfly.
  • Key-rate durations measure the price sensitivity to each key maturity; they add up to the duration against a parallel shift.
  • Equal price and duration do not mean equal risk: a bullet and a barbell differ in their key-rate durations and react differently to non-parallel moves.
  • Key-rate durations depend on the chosen key points and on how a shock is spread between them.

A later lesson, "Bond futures and the cheapest-to-deliver", prices a contract on a basket of bonds, where the curve level and slope decide which bond is delivered.

Try itOpen the Yield Curve lab to shock the curve yourself
2 questions on this lesson at the end of the series
Previous · 04Spot rates, forward rates and the yield curveNext · 06Bond futures and the cheapest-to-deliver
Connections

Non-parallel curve moves and key-rate durations

Open the full graph
Builds on
03.04Spot rates, forward rates and the yield curve03.02Duration and convexity03.03Immunization and duration matching
Leads to
03.06Bond futures and the cheapest-to-deliver
See it in the knowledge graph
Labs for this lesson
Yield CurveDuration & Convexity