Bond Duration Calculator (Macaulay & Modified)
Compute Macaulay duration, modified duration, DV01, and PV half-life for any coupon bond. See duration as a balance-point of present-value cash flows, predict the price change for a custom yield shock, and walk through every formula step.
Duration is a balance point. Where do the cash flows balance on a time axis?
Picture each coupon as a weight on a number line. Stack them by present value at the time they arrive. The Macaulay duration is the fulcrum — the point where the beam balances. Modified duration converts that wait time into a price-sensitivity number you can trade against.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Bond Duration Calculator (Macaulay & Modified)
The Bond Duration Calculator computes both Macaulay duration and modified duration for any coupon bond, along with DV01 (dollar value of a basis point) and PV half-life. The unique balance-point visualization shows duration the way fixed-income traders intuit it — as the center of mass of the bond's present-value cash flows on a time axis. The tool then turns that wait time into a practical price-sensitivity number so you can predict the dollar and percentage price change for any yield shock from 1 basis point to 500 basis points.
What makes this duration calculator different
Balance-point visualization
Every cash flow is plotted as a bar at its actual time on the x-axis, with height equal to its present value. The Macaulay duration appears as a vertical line at the bar masses' center of gravity — the textbook physical analogy made literal.
DV01 by both methods
Traders use DV01 (dollar value of a basis point) over duration. We compute it two ways: (1) a centered numerical reprice at ±1 bp around the current yield, and (2) the linear approximation from modified duration. The two should agree to 3-4 decimals.
PV half-life
Where Macaulay duration is the PV-weighted mean wait time, PV half-life is the median — the time by which exactly half of the bond's present value has been received. For high-coupon bonds these two metrics diverge, and the gap is informative.
Symmetric ±shock comparison
Duration is a linear estimate, so its predicted price change is symmetric for a yield rise and fall. The exact-reprice values are not — and the asymmetry is the convexity gift. Both are shown side by side so the gap is unmistakable.
Full ±300 bp yield curve
The chart traces the actual price-yield curve from −300 bp to +300 bp alongside the linear duration tangent. You can see exactly where duration starts to break down and convexity matters.
Per-period duration share
The detailed table breaks each cash flow into its present value, its weight in the price, and its share of the Macaulay duration. You can see exactly which periods pull the duration later (long-dated) and which pull it earlier (high coupons).
How to use the Bond Duration Calculator
- Click a quick-start preset (2-yr Treasury, 10-yr Treasury, 30-yr corporate, or 5-yr zero-coupon) to populate every input at once, or type in your own bond.
- Enter face value (par), the annual coupon rate, the current yield to maturity, and the years to maturity.
- Pick the coupon frequency. Semi-annual is the default for US bonds; pick annual for European bonds or zeros, quarterly or monthly for structured notes.
- Drag the yield-shock slider to choose the basis-point yield change you want to stress-test against. 100 bp is the standard size; 300+ bp shows the duration vs. convexity gap clearly.
- Hit Calculate. Read the verdict card for the headline numbers, the balance-point chart for the intuition, the side-by-side ±shock comparison strip for the trading view, the yield-curve chart for the prediction-vs-actual gap, and the per-period table for the attribution.
The math under the hood
Every result starts from the standard present-value bond pricing equation. With \(m\) coupon periods per year, periodic coupon rate \(c = c_{annual}/m\), periodic yield \(y = y_{annual}/m\), and total periods \(n = T \cdot m\) for maturity \(T\):
\( P = \displaystyle\sum_{t=1}^{n} \dfrac{\text{CF}_t}{(1+y)^t} \)
Macaulay duration is the present-value-weighted average time of the cash flows, then divided by \(m\) so the answer is in years rather than periods:
\( D_{Mac} = \dfrac{1}{P \cdot m} \displaystyle\sum_{t=1}^{n} \dfrac{t \cdot \text{CF}_t}{(1+y)^t} \)
Modified duration adjusts Macaulay for the periodic yield, giving the percent price change per 1% change in yield:
\( D_{mod} = \dfrac{D_{Mac}}{1 + y/m} \)
DV01 — the dollar value of a basis point — is best computed numerically by repricing the bond at the yield up and down 1 bp and taking half the difference. Equivalently, the linear approximation is:
\( \text{DV01} \approx D_{mod} \cdot 0.0001 \cdot P \)
And the first-order price-change estimate for any yield shift \(\Delta y\) (in decimal) is:
\( \dfrac{\Delta P}{P} \approx -D_{mod} \cdot \Delta y \)
Macaulay vs. modified duration — which one do I use?
| Metric | Units | What it answers | Best for |
|---|---|---|---|
| Macaulay duration | Years | On average, when do I get my money back? (PV-weighted) | Time-based thinking — asset-liability matching, immunization, intuition |
| Modified duration | Years (numerically) — but read as % price per 1% yield | What percent does my price move per 1% yield change? | Risk & sensitivity analysis, portfolio hedging |
| DV01 / PV01 | Dollars per bp | How many dollars do I gain/lose per 1 bp yield move? | Trader's view — comparing positions of different sizes |
| PV half-life | Years | When have I received half my money (by present value)? | Liquidity profile, comparison against duration as a median |
Rules of thumb for interpreting your duration number
- Zero-coupon bonds: Macaulay duration = years to maturity exactly. All the cash flow sits at the end, so the "balance point" is the maturity itself.
- High-coupon bonds: Duration is materially shorter than maturity. Big early coupons pull the PV-weighted center of gravity forward.
- Higher yields shorten duration: The discounting factor \((1+y)^t\) in the denominator shrinks the weight of distant cash flows when yields rise.
- Duration scales roughly with maturity for low-coupon bonds: A 30-year zero has duration ≈ 30; a 5-year zero has duration ≈ 5. For coupon bonds the relationship is sub-linear at long maturities because of the early coupons.
- Modified duration ≈ Macaulay duration for small yields: The difference is the \(1 + y/m\) divisor — about 2.5% at 5% annual yield with semi-annual coupons.
Frequently Asked Questions
What is bond duration?
Bond duration measures the weighted average time, in years, until a bondholder receives the present-value-weighted cash flows from a bond. It is also the bond's price sensitivity to changes in yield. The two interpretations correspond to Macaulay duration (the time interpretation) and modified duration (the sensitivity interpretation).
What is the difference between Macaulay and modified duration?
Macaulay duration is the PV-weighted average time at which cash flows arrive, expressed in years. Modified duration adjusts Macaulay by dividing by \(1 + y/m\), where \(y\) is the periodic yield and \(m\) is the number of coupon periods per year. Modified duration directly answers the question: what percent does my bond price change for a 1% change in yield? The two are nearly identical when yields are small and diverge slightly as yields grow.
What is DV01?
DV01 (also called PV01 or BPV — Basis Point Value) is the dollar value of a basis point — the dollar change in a bond's price for a one-basis-point parallel shift in its yield. Traders prefer DV01 over duration because it directly answers a practical question: if yields move up 5 bp, how many dollars do I lose per bond? DV01 can be computed numerically by repricing the bond at the yield ±1 bp, or linearly as:
\( \text{DV01} \approx D_{mod} \cdot 0.0001 \cdot P \)
How is Macaulay duration calculated?
Macaulay duration is the present-value-weighted average time of the cash flows. Formally:
\( D_{Mac} = \dfrac{1}{P \cdot m} \displaystyle\sum_{t=1}^{n} \dfrac{t \cdot \text{CF}_t}{(1+y)^t} \)
where \(P\) is the price, \(m\) is the number of coupon periods per year, \(y\) is the periodic yield, \(n\) is the total number of periods, and \(\text{CF}_t\) is the cash flow at period \(t\). The division by \(m\) converts the result from periods into years.
How is modified duration used to predict price changes?
Modified duration gives a first-order linear estimate of the percent change in price for a given change in yield:
\( \dfrac{\Delta P}{P} \approx -D_{mod} \cdot \Delta y \)
A bond with modified duration of 8 years will see its price fall by approximately 8% for a 100-basis-point yield rise, and rise by approximately 8% for a 100-basis-point yield drop. The linear estimate is accurate for small yield changes and underestimates the gain (or overestimates the loss) for large yield changes — that gap is the convexity correction.
Which bonds have the highest duration?
Duration rises with maturity and falls with coupon size and yield level. Long-maturity bonds with low coupons have the highest duration because the bulk of cash flow sits far in the future. A zero-coupon bond has Macaulay duration exactly equal to its maturity, since all the cash flow is concentrated at the end. A high-coupon bond at the same maturity has a lower duration because early coupons pull the PV-weighted average time forward.
What is PV half-life?
PV half-life is the time by which 50% of the bond's present value has been received. It is a complementary metric to Macaulay duration: where duration is the PV-weighted mean wait time, half-life is the PV-weighted median. For low-coupon long-dated bonds the two metrics are close; for high-coupon short-dated bonds the half-life sits earlier than the duration because the final principal repayment pulls the mean later than the median.
Can duration be negative?
For plain vanilla bonds without embedded options, Macaulay duration is always positive — it is a time, after all. Modified duration is always positive as well, because the price-yield curve always slopes downward (higher yield = lower price). Bonds with embedded options or unusual cash-flow patterns (such as inverse floaters) can exhibit negative effective duration in some yield regions, but this calculator models the plain-vanilla case.
How do I use duration for portfolio hedging?
The portfolio duration is the weighted-average duration of its bond holdings, weighted by market value. A common hedging strategy is to short Treasury futures or another low-coupon bond in a quantity that matches the DV01 of the long position so the two cancel for small parallel yield shifts. Pension funds match the duration of their assets to the duration of their liabilities (asset-liability matching) to immunize against small yield changes — the convexity mismatch then determines how the hedge performs under larger yield moves.
Reference this content, page, or tool as:
"Bond Duration Calculator (Macaulay & Modified)" at https://MiniWebtool.com// from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: 2026-05-14