Bonds
How To Calculate The Modified Duration
Modified duration turns a bond's Macaulay duration into an estimate of how much its price will move when yields change. It answers a practical risk question: for a small shift in yield, roughly what fraction of the price is at stake? The calculation below uses a five-year Macaulay duration, a 5 per cent yield and two compounding periods a year, and it is a teaching illustration rather than investment advice.
Last updated
Quick Answer
D_mod = D_mac / (1 + y/n)
- D_mod
- Modified duration, in years
- D_mac
- Macaulay duration, in years
- y
- Annual yield to maturity as a decimal
- n
- Compounding periods per year
Divide the quoted annual yield by the number of compounding periods to get the periodic yield, add one, and divide the Macaulay duration by that factor. With a Macaulay duration of 5 years, a 5 per cent yield and two periods a year, the periodic yield is 0.025 and modified duration is about 4.87805. Multiplying by 0.01 gives about 0.04878, meaning a one percentage point yield rise implies roughly a 4.88 per cent price fall.
What Is The Modified Duration?
Modified duration is a measure of how sensitive a bond's price is to a change in yield. It takes the Macaulay duration, which is a present-value-weighted average time to cash flows, and divides it by one plus the yield per period. The result is still expressed in years, but it is read as a first-order estimate of percentage price response rather than as a literal holding period. A larger modified duration means a larger expected price move for the same yield change. For the five-year example used here the answer is about 4.87805 years, against a Macaulay duration of 5.
The idea grows out of the duration concept introduced by Frederick Macaulay and from the observation that a small yield change shifts a bond price at a rate proportional to its weighted cash-flow timing. The extra division by one plus the periodic yield adjusts that weighted time into a sensitivity that works with discrete compounding. Without the division, the weighted time would overstate the price response whenever yields are positive. The adjusted figure is what risk systems usually mean when they say simply duration.
Start with the quoted annual yield of 5 per cent and convert it to the decimal 0.05. Two compounding periods a year make the periodic yield 0.05 divided by 2, which is 0.025, so the divisor is 1.025. Dividing the Macaulay duration of 5 years by 1.025 gives 4.87805. That number is the primary output of the calculator. Every other result on this page is derived from the same three inputs, which keeps the arithmetic easy to audit.
The practical use is to estimate a price change before trading. Multiply modified duration by the assumed yield change and by the current price, with a minus sign because price and yield move in opposite directions. For a one percentage point move, the change is 4.87805 times 0.01, or about 0.04878 of the price. In other words, a rise in yield implies roughly a 4.88 per cent fall in price, while a fall in yield implies a price rise of similar size. The estimate is symmetric only in this linear approximation.
The divisor makes modified duration fall as the yield rises. At a 10 per cent annual yield the periodic yield is 0.05, the divisor is 1.05 and the same five-year Macaulay duration becomes about 4.76190. At 5 per cent it was 4.87805, so doubling the yield reduced the sensitivity by roughly 0.116. More frequent compounding pushes the other way: with four periods a year the periodic yield is only 0.0125 and modified duration rises to about 4.938. The direction of each effect is easy to reverse in prose, so it is worth checking against the numbers every time.
The Macaulay duration matters just as much as the yield. A seven-year Macaulay duration at the same 5 per cent yield and two periods gives 7 divided by 1.025, about 6.829. A zero-coupon bond has a Macaulay duration equal to its maturity, so its modified duration is simply that maturity divided by the discount base. If the Macaulay duration were zero, the modified duration would also be zero, because there would be no weighted timing left to adjust. Scaling the Macaulay duration scales the answer in direct proportion.
Modified duration is a linear approximation, and that is its main limitation. It assumes the price-yield relationship is a straight line near the current yield, when in fact the relationship curves. For large moves the curvature, measured by convexity, becomes important: the linear estimate understates the price gain when yields fall and overstates the loss when they rise. Combining duration with a convexity correction gives a much better approximation. The estimate also assumes a parallel shift in a flat yield curve, which real market moves rarely deliver.
This page is a teaching calculation, not investment advice. It takes the Macaulay duration as given rather than deriving it from a bond's coupons and price, so it isolates the conversion step. Real bonds pay coupons on specific dates, trade between those dates and carry accrued interest, credit spreads and sometimes embedded options. Those features change both the weighted timing and the way price responds to yields. The simplified model is useful precisely because every number remains visible and can be checked by hand.
In practice, duration is the standard shorthand for interest-rate risk. A fund manager compares two holdings by duration to see which one will move more when rates change. A pension scheme tries to match the duration of its assets to the duration of its liabilities, so that a rate move does not damage the funding ratio. Risk reports often aggregate duration-weighted exposures across an entire portfolio. The same first-order idea also appears in the duration-plus-convexity approximation used by traders to price larger shifts.
Formula
D_mod = D_mac / (1 + y_p)
Formula page →Divide the Macaulay duration by one plus the yield for a single compounding period. The result is a first-order sensitivity measured in years.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| D_mod | Modified duration | years | The estimated percentage price response per unit change in yield, quoted in years. |
| D_mac | Macaulay duration | years | The present-value-weighted average time to the bond's cash flows. |
| y_p | Yield per compounding period | decimal | The annual decimal yield divided by the number of periods per year. |
y_p = y / n
Formula page →Convert the quoted annual yield into the yield for one compounding period. A 5 per cent annual yield with two periods gives 0.025 per period.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| y_p | Yield per period | decimal | The number that appears in the denominator of modified duration. |
| y | Annual yield as a decimal | decimal | A quoted 5 per cent is entered as 0.05, not as 5. |
| n | Compounding periods per year | count/year | Two for semiannual coupons, four for quarterly and twelve for monthly. |
dP / P ≈ −D_mod x dy
Formula page →Multiply modified duration by the yield change and reverse the sign. A one point rise with D_mod of 4.87805 gives about minus 0.04878 of the price.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| dP / P | Fractional price change | decimal | The estimated change in price divided by the current price. |
| D_mod | Modified duration | years | The sensitivity produced by the main formula. |
| dy | Change in yield | decimal | Expressed as a decimal, so one percentage point is 0.01. |
How To Calculate The Modified Duration
- 1
Convert the annual yield to a decimal
The calculator takes the yield as a percentage and divides it by 100 internally, so entering 5 becomes 0.05 in the arithmetic. Do not type 0.05 into the field, because that would be divided again and give 0.0005. Enter 5 and let the engine handle the conversion. Skipping or doubling this step changes the divisor and therefore the whole answer.
- 2
Find the yield per period
Divide the annual decimal yield by the number of compounding periods. With two periods a year, 0.05 divided by 2 is 0.025, which is the yield for one half-year. Using the annual 0.05 as the periodic yield would give 4.76190 instead of 4.87805, a noticeably smaller sensitivity. Match the period count to the coupon frequency of the bond.
- 3
Build the discount base
Add one to the periodic yield to get 1 plus 0.025, which is 1.025. This factor is the denominator of the modified duration formula. It is always slightly above one at positive yields, which is precisely why modified duration comes out a little smaller than the Macaulay duration you started with.
- 4
Divide the Macaulay duration
Take the Macaulay duration as given and divide it by the base: 5 divided by 1.025 is 4.87805. If the Macaulay duration were 7 years, the same division would give about 6.829. The result stays in years, but its meaning has changed from an average waiting time into a price sensitivity.
- 5
Turn the result into a price estimate
Multiply by the assumed yield change and reverse the sign. For a one percentage point move the calculation is 4.87805 times 0.01, about 0.04878, so a yield rise implies roughly a 4.88 per cent price fall. Treat this as a first-order approximation that ignores convexity, and remember that the page is general education rather than investment advice.
Examples
Example 1: Default case — 5 years, 5 per cent yield, two periods
- macaulayDuration
- 5 years
- yieldToMaturity
- 5%
- compoundingPeriods
- 2
| Step | Calculation | Result |
|---|---|---|
| Periodic yield | 0.05 / 2 | 0.025 |
| Discount base | 1 + 0.025 | 1.025 |
| Modified duration | 5 / 1.025 | 4.87805 |
| One-point price change | 4.87805 x 0.01 | 0.0487805 |
Result: Modified duration is 4.87805 years, so a one percentage point yield rise implies roughly a 4.88 per cent price fall, equal to 0.0487805 of the price per unit of yield change.
Example 2: Higher yield — 5 years at 10 per cent with two periods
- macaulayDuration
- 5 years
- yieldToMaturity
- 10%
- compoundingPeriods
- 2
| Step | Calculation | Result |
|---|---|---|
| Periodic yield | 0.10 / 2 | 0.05 |
| Discount base | 1 + 0.05 | 1.05 |
| Modified duration | 5 / 1.05 | 4.76190 |
Result: At a 10 per cent yield, modified duration is 4.76190 years, below the 4.87805 obtained at 5 per cent, because the larger divisor reduces the sensitivity.
Example 3: Longer duration — 7 years at 5 per cent with two periods
- macaulayDuration
- 7 years
- yieldToMaturity
- 5%
- compoundingPeriods
- 2
| Step | Calculation | Result |
|---|---|---|
| Periodic yield | 0.05 / 2 | 0.025 |
| Discount base | 1 + 0.025 | 1.025 |
| Modified duration | 7 / 1.025 | 6.82927 |
Result: A seven-year Macaulay duration gives modified duration of 6.82927 years, about 6.829, which is larger than the 4.87805 for the five-year case at the same yield.
Calculator
Modified duration (years)
4.878
- Macaulay duration (years)
- 5
- Price change for a one point yield move
- 0.0488
- Modified duration at a doubled yield
- 4.7619
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the The Modified Duration calculator page.
Common Mistakes
Using the annual yield as the periodic yield
The divisor is one plus the yield per period, not one plus the annual yield. With two compounding periods, the 5 per cent annual yield must become 0.025 first. Using 0.05 directly gives 4.76190 instead of 4.87805. Always divide the decimal yield by the period count before adding one.
Typing a decimal into a percent field
The yield field expects 5 for 5 per cent and divides by 100 internally. Entering 0.05 makes the engine use 0.0005, which produces a modified duration almost identical to the Macaulay duration and a badly wrong sensitivity. Check that the number you entered looks like a percentage.
Treating the estimate as exact for large moves
Modified duration assumes a straight-line price-yield relationship. A shift of two percentage points is large enough that convexity matters, so the linear estimate can be off by a meaningful amount. Use a duration-plus-convexity calculation whenever accuracy is needed rather than a rough sense of direction.
Forgetting the sign of the price change
Bond prices and yields move in opposite directions. A positive yield shock produces a negative price change, so the estimate carries a minus sign. Reporting a price rise after a yield rise is a common reversal, and it is a mistake that no amount of decimal precision will excuse.
Confusing the two duration measures
Macaulay duration here is 5 years, while modified duration is 4.87805 years. Quoting the Macaulay figure as the sensitivity overstates the expected price move. The two numbers coincide only when the periodic yield is zero, which almost never happens for a traded bond.
Ignoring compounding frequency
The number of periods per year is not cosmetic. At one period the divisor is 1.05 and the answer is 4.76190; at four periods it is 1.0125 and the answer is about 4.938. Confirm the coupon frequency of the bond before relying on any single sensitivity figure.
FAQ
What does modified duration actually measure?
It estimates the percentage price change of a bond for a small change in yield. It converts the Macaulay duration, a weighted average time to cash flows, into a sensitivity by dividing by one plus the periodic yield. A value of 4.87805 means that a one percentage point yield move implies roughly a 4.88 per cent price move in the opposite direction.
Why divide by one plus the periodic yield?
Macaulay duration measures timing, not price response. With discrete compounding, the factor that converts a weighted time into a sensitivity is one plus the yield for one period. Using the annual yield instead double-counts nothing but ignores the frequency, and understates modified duration, as the 4.76190 versus 4.87805 comparison shows.
How do I turn duration into a price change?
Multiply modified duration by the change in yield, expressed as a decimal, and reverse the sign. For a one percentage point change the multiplier is 0.01, so 4.87805 times 0.01 is about 0.04878, or 4.88 per cent. Multiply that fraction by the bond's price to get the expected money change.
What happens to modified duration when yields rise?
The bond price falls and the modified duration also falls slightly. At a 5 per cent yield the value here is 4.87805; at 10 per cent it is 4.76190. A higher discount rate weights near cash flows more heavily, which shortens the weighted time and reduces the price sensitivity.
Is modified duration the same as Macaulay duration?
No. Macaulay duration is the present-value-weighted average time to cash flows and is measured in years. Modified duration divides that by one plus the periodic yield and is the figure used to estimate price changes. The five-year Macaulay duration in this example becomes 4.87805 years of modified duration.
Can I use this figure for real trading decisions?
Not on its own. This is a teaching calculation that takes Macaulay duration as given, assumes a flat curve and ignores convexity, credit risk and embedded options. It is general education, not investment advice. Use a full pricing model and professional judgement before making decisions about a live bond.
References
- [1], Duration (finance) — https://en.wikipedia.org/wiki/Duration_(finance)
- [2], Bond duration — https://en.wikipedia.org/wiki/Bond_duration
- [3], Interest rate sensitivity — https://en.wikipedia.org/wiki/Interest_rate_sensitivity
