How to use this calculator
- Enter Term (yrs)。
- Enter Coupon rate (%)。
- Enter YTM (%)。
- Enter Face value ($)。
Leave any field blank and the calculator solves for it from the remaining values — every quantity is reversible.
The calculator then returns: Modified duration。
What is it
Modified Duration — Approximate % price change for a 1% rate move. Equity and valuation calculators convert company fundamentals — earnings, book value, dividends, cash flow — into comparable multiples and intrinsic values. The core question it answers is: Modified duration. Macaulay 7.8, YTM 6% → ~7.36.
Formula
| Variable | Inputs | Unit |
|---|---|---|
years | Term | yrs |
couponRate | Coupon rate | % |
ytm | YTM | % |
face | Face value | $ |
modDuration | Modified duration | yrs |
(function(){var i=ytm/100,c=couponRate/100*face,s=0,w=0;for(var t=1;t<=years;t++){var cf=c+(t===years?face:0);var pv=cf/Math.pow(1+i,t);s+=pv;w+=t*pv;}return (w/s)/(1+i);})()The relationship is solved in every direction, so any one unknown field can be derived.
Worked example
Using the default inputs:
- Term = 10 yrs
- Coupon rate = 5 %
- YTM = 6 %
- Face value = 1000 $
Formula used: (function(){var i=ytm/100,c=couponRate/100*face,s=0,w=0;for(var t=1;t<=years;t++){var cf=c+(t===years?face:0);var pv=cf/Math.pow(1+i,t);s+=pv;w+=t*pv;}return (w/s)/(1+i);})()
Answer:
- Modified duration = 7.57 yrs
Example 1 (default inputs):Suppose Term = 10 yrs, Coupon rate = 5 %, YTM = 6 %, Face value = 1,000 $; then giving Modified duration = 7.57 yrs.
Example 2 (one input changed):If you change Term to 15,giving Modified duration = 10.05 yrs.
Additional information
Assumptions and limitations
- Multiples are relative pricing tools: sector, accounting policy and cycle position systematically shift what counts as "normal". No single metric constitutes investment advice.
- Good for: getting a directionally correct order of magnitude quickly, or comparing two scenarios.
- Not good for: using it as the sole basis for a decision, or for official filings, contract pricing and legal documents — those need a full model with your actual clauses and local rules.