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: Macaulay duration。
What is it
Bond Duration — PV-weighted average time to recover a bond's cash flows. 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: Macaulay duration. 10y, 5% coupon, 6% YTM → ~7.8 yrs.
Formula
| Variable | Inputs | Unit |
|---|---|---|
years | Term | yrs |
couponRate | Coupon rate | % |
ytm | YTM | % |
face | Face value | $ |
duration | Macaulay 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;})()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;})()
Answer:
- Macaulay duration = 8.02 yrs
Example 1 (default inputs):Suppose Term = 10 yrs, Coupon rate = 5 %, YTM = 6 %, Face value = 1,000 $; then giving Macaulay duration = 8.02 yrs.
Example 2 (one input changed):If you change Term to 15,giving Macaulay duration = 10.66 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.