Bond Duration Calculator (Macaulay + Modified)
Bond Duration Calculator
Computes a bond's Macaulay duration (the weighted-average time to receive its cash flows, in years) and modified duration (the approximate % price change for a one-percentage-point move in yield) from its coupon, maturity, and yield to maturity, and reprices the bond exactly at a yield one point higher so you can see how far the estimate is off. Duration is a first-order measure of a bond's interest-rate risk.
What this assumes: fixed cash flows, one yield for every payment, and every yield moving together. A callable bond can change its cash flows when yields move, so it needs effective duration, not this figure. This calculator also does not model a Singapore Savings Bond, which MAS says you can always redeem for the amount invested.
How far the estimate drifts
Each row changes the yield once, instantly, and shows the change in the full price. Duration’s miss is the gap to the exact reprice, in percentage points of price. A move that would take the yield below zero is left out.
| Yield change | New yield | Duration alone | Duration + convexity | Exact reprice | Duration’s miss |
|---|
How to Use the Bond Duration Calculator
Enter the bond's terms
Face value, the annual coupon rate, and years to maturity. These define the cash flows the bond will pay. A term that is not a whole number of coupon periods (say 10.3 years) is priced with the part-period to the next coupon and its accrued interest, not rounded. Amounts like 1,000,000 can be typed with commas.
Enter the yield to maturity
YTM is the market discount rate: the return if the bond is held to maturity and every coupon is reinvested at that same yield. It drives both price and duration. Use the current market yield, not the coupon.
Set coupon frequency
Singapore and Malaysian government bonds and US Treasury notes and bonds pay semi-annually; other bonds can pay annually or quarterly. Frequency affects the period count and the per-period discounting.
Read duration as risk
Modified duration tells you the approximate % the price moves for a one-point yield change. A duration of 8 means a one-point yield rise costs roughly 8% of price. The exact reprice beside it shows how much that straight-line estimate overstates the loss.
Understanding Bond Duration
Macaulay vs Modified Duration
Macaulay duration, introduced by Frederick Macaulay in 1938, is the weighted-average time (in years) until a bondholder receives the bond's cash flows, weighting each payment by its present value. Modified duration states the same fact as price sensitivity: on a coupon date, divide Macaulay duration by (1 + yield/frequency) and you get the approximate percentage change in price for a one-percentage-point change in yield. Between coupon dates this page takes modified duration directly from the slope of the price, so the division comes close without being exact. A modified duration of 8 means roughly an 8% price drop if yields rise one percentage point, and roughly an 8% gain if they fall one.
Why Duration Matters
Duration puts bonds with very different coupons and maturities on one scale of interest-rate exposure. A lower coupon and a lower yield both push duration up. A longer maturity usually does too, but not without limit: for a bond priced below par, as Macaulay showed, duration reaches a maximum and then falls back towards the perpetuity value, (1 + y/f) ÷ y. A 2% semi-annual coupon priced at a 10% yield has a Macaulay duration of 12.99 years at 20 years to maturity, 13.48 at 30 and 10.52 at 100.
A zero-coupon bond's Macaulay duration equals its maturity exactly — there is only one cash flow. Every coupon paid before maturity pulls duration below maturity.
The Limits of Duration
Duration is a first-order (linear) approximation. For small yield moves it's accurate; for large moves it overstates losses and understates gains, because the price-yield relationship is curved, not straight. On the default bond (10-year, 5% coupon, 6% yield, semi-annual) duration predicts −7.67% for a one-point rise; repricing at 7% gives −7.32%. That curvature is convexity — the second-order correction. For big rate scenarios, pair this calculator with our Bond Convexity Calculator to refine the estimate.
This page prices a part-period at simple interest, the US Treasury convention in 31 CFR 356. MAS's rules for Singapore Government Securities compound that part-period when more than six months remain, so a Singapore bond between coupon dates can differ slightly. On a coupon date the two agree.
A zero-coupon bond's Macaulay duration is exactly its maturity
Macaulay duration was defined by Frederick Macaulay in a 1938 National Bureau of Economic Research study of US interest rates and bond yields since 1856.
Lower coupon → higher duration → more interest-rate risk.
Longer maturity usually means higher duration, but on a bond priced below par it reaches a maximum and then falls back towards the perpetuity value.
Higher yield → lower duration (near-term cash flows weigh more).
DV01 ("dollar value of 1 basis point") is duration expressed in dollars per 0.01 of a percentage point of yield.
Immunization, as F. M. Redington set it out in 1952, arranges assets and liabilities so a general rate change has no first-order effect. He assumed one rate for every term, and only exact cash-flow matching is immune to every change.
Frequently Asked Questions
- Macaulay duration is the weighted-average time (in years) to receive a bond's cash flows. Modified duration restates it as price sensitivity: on a coupon date, Macaulay ÷ (1 + yield/frequency). Modified duration tells you the approximate percentage price change for a one-percentage-point change in yield.
- Use the current market yield for a bond of similar credit quality and maturity — not the coupon rate. YTM is the discount rate that makes the present value of the cash flows equal the market price. If you only know the price, the Bond Yield Calculator solves for the yield; here, enter the prevailing market yield.
- Duration weights each cash flow by its present value and timing. A low-coupon bond pays less along the way, so more of its value comes from the distant face-value payment — pushing the weighted-average time (and rate sensitivity) up. A zero-coupon bond is the extreme: its Macaulay duration equals its full maturity.
- DV01 — "dollar value of 1 basis point" — is the dollar change in a bond's price for a change in yield of one basis point, or 0.01 of a percentage point. It's duration expressed in money rather than percent. This tool reports it for the face value you enter, as modified duration × full price × 0.0001 — $0.7095 on the default $1,000 bond.
- Close for small yield moves and increasingly off for large ones: duration alone overstates losses and understates gains because the true price-yield curve bends. The tool prints the exact reprice one point higher beside the estimate so you can see the gap — on the default bond, −7.67% estimated against −7.32% exact — and the table under the results repeats that at eight yield changes, with convexity added. Our companion calculator models any move you choose.
- Yes. Frequency sets how many periods exist and how the yield is compounded per period. Singapore Government Securities, Malaysian Government Securities and US Treasury notes and bonds all pay semi-annually, the default here. Switching to annual or quarterly shifts both price and duration slightly because the timing of cash flows changes.
- A bond trades at a premium when its price is above par (face) — which happens when its coupon exceeds the market yield. It trades at a discount when the price is below par (coupon below market yield), and at par when coupon equals yield. The tool labels the case from the coupon and the yield. Between coupon dates the Treasury formula discounts the part-period at simple interest, so a bond whose coupon equals its yield can show a clean price a small amount under par; it is still a par bond.
- No. This calculator models a single bond. A fund holds many bonds that change over time, and a fund may publish a different measure from the one here, so read how its fact sheet defines the figure it quotes.
- No, except where a single payment is left: a zero-coupon bond, or any bond on its final coupon, has a Macaulay duration equal to the time to that payment. With more payments to come, duration is less than maturity because some value is returned along the way via coupons. The bigger the coupon, the more duration falls below maturity.
- It measures and compares exposure: it shows roughly how far a holding's price moves for a given change in yield. Immunization, which F. M. Redington set out in 1952 for life offices, arranges assets and liabilities so that a general rate change has no first-order effect on the gap between them. That offsets a parallel move only and assumes one rate for every term, and the match needs rebalancing as time passes and yields move. Only matching the cash flows exactly is immune to every change.
- Not as calculated here. This page assumes the cash flows are fixed, and a callable bond's can change when yields move, so it needs effective duration. A Singapore Savings Bond is not modelled either: MAS says you can always redeem it for the amount invested, which is a different arrangement from a bond sold at a market price.
Method & sources
How it computes
Price by the 31 CFR 356 Appendix B yield-to-price formula (a part-period to the next coupon priced with its accrued interest, never rounded). Macaulay duration = the present-value-weighted average time of the cash flows in years, on any term. Modified duration = −(1/P)·dP/dy of that price. DV01 = modified × full price × 0.0001. Duration estimates are shown beside exact reprices at eight yield changes.
What this tool implements
- Macaulay duration is reported in YEARS, not coupon periods, and on a coupon date modified duration divides it by (1 + y/f), the periodic yield — dividing by (1 + y) understates the sensitivity of any bond paying more than once a year.
- Modified duration is the exact first derivative of the same price function the bond yield and convexity calculators use, so the three pages agree on the same inputs. Macaulay duration is computed directly as Macaulay defined it, each cash flow timed from settlement and weighted by its present value; between coupon dates the division by (1 + y/f) is therefore close, not exact.
- Checked by the zero-coupon identity on any term (a zero with 10.3 years left returns 10.300 years) and against an independent Python sum: the default bond (USD 1,000, 5% coupon, 10 years, 6% yield, semi-annual) prices at 925.61 with Macaulay 7.895 years, modified 7.665 and DV01 0.7095; a one-point rise is −7.67% by duration against −7.32% repriced exactly.
- Premium, discount or par is read from the coupon against the yield, because between coupon dates Appendix B's simple-interest stub leaves a par-coupon bond a small amount under par.
- The part-period uses the US Treasury convention in 31 CFR 356, simple interest. MAS's rules for Singapore Government Securities compound it when more than six months remain, so a Singapore bond between coupon dates can differ slightly. The two agree on a coupon date.
- Option-free bond on a flat yield curve. For a callable, putable or mortgage-backed bond, effective duration is the right measure and this is not it. Singapore Savings Bonds are not modelled.
- Corrected 2026-11-03: Macaulay was modified × (1 + y/f), so off a coupon date a zero with 10.3 years left showed 10.304; YTM was described as the return from holding to maturity without the condition that coupons are reinvested at that yield; immunization was said to neutralize rate risk; a sentence told the reader to shorten or extend duration on a rate view; the claim about what bond funds publish had no source; DV01 rounded to cents, so a face of 100 showed one significant figure.
Show 1 more
- Corrected 2026-10-17: the term was rounded to whole coupon periods (10.3 years at 2 a year became 10.5); a blank box read as 0; error messages were never visible (shown with display '' on a box the stylesheet hides); "par" required the float price to equal face exactly; the pull-quote was set as an unattributed quotation; "the formula hasn't changed since" 1938 and "longer maturity → higher duration" were stated without their limits.
Sources
- Macaulay FR. Some Theoretical Problems Suggested by the Movements of Interest Rates, Bond Yields and Stock Prices in the United States since 1856. National Bureau of Economic Research; 1938. https://www.nber.org/books/maca38-1
- 31 CFR Part 356, Appendix B — Formulas for Determining Prices, Yields and Accrued Interest on Treasury Notes and Bonds (the price function differentiated here; its worked examples P = 99.057893 and 99.730918 are reproduced in the automated tests). https://www.govinfo.gov/content/pkg/CFR-2024-title31-vol2/pdf/CFR…
- Redington FM. Review of the Principles of Life-Office Valuations. Journal of the Institute of Actuaries. 1952.
- Monetary Authority of Singapore, Rules and Market Practices of the Singapore Government Securities Market, edition dated March 2011 (the text opened).
- Monetary Authority of Singapore, Calculating SGS Returns, last updated 10 Sep 2021 — what yield to maturity measures, including reinvested coupons.
- Monetary Authority of Singapore, SGS Bonds: Information for Institutions, last updated 19 Mar 2026 — fixed, semi-annual coupon.
- Monetary Authority of Singapore, Singapore Savings Bonds FAQs, last updated 16 Mar 2026 — redemption for the amount invested.
- Bank Negara Malaysia, Financial Market Information Portal. Types of securities (MGS interest payment is semi-annual). https://financialmarkets.bnm.gov.my/types-of-securities
What can make this go out of date
- None at runtime — the output depends entirely on the bond terms and yield the user enters, so it is only as current as that yield.