Finance · 139 calculators
Macaulay Duration Calculator
Macaulay duration answers a single question about a bond: on a present-value-weighted basis, how far into the future do you actually receive your cash? It turns a stream of coupon and principal payments into one number measured in years, and it underpins the sensitivity measure called modified duration. The calculation below uses a deliberately small two-period teaching model, not investment advice, so every step of the arithmetic stays visible.
Last updated
Macaulay duration (years)
1.9532
- Modified duration (years)
- 1.8964
- Bond price
- 103.8269
- Two-year zero-coupon modified duration
- 1.9417
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
D = (sum of t x PV(CF_t)) / Price
- D
- Macaulay duration, in years
- t
- Time until a cash flow arrives, in years
- PV(CF_t)
- Present value of the cash flow paid at time t
- Price
- Bond price, the sum of all present values
- y
- Yield per period as a decimal
How to check the result by hand
- 1
Express the yield as a decimal
The calculator takes the yield as a percentage and divides it by 100 internally, so entering 3 becomes 0.03 in the arithmetic. Adding 1 gives the discount base 1.03. Writing 3 directly into a discount factor would inflate the denominator about a hundredfold and destroy the result.
- 2
Discount each cash flow
With a coupon of 5 and a face value of 100, the year-one cash flow is 5 and the year-two cash flow is 105. Divide the first by 1.03 to get 4.8544 and the second by 1.03^2 to get 98.9726. Remember that the principal comes back in the final year alongside the last coupon.
- 3
Add the present values to find the price
The two discounted amounts sum to 103.8269, which is the model's bond price. This price is also the total weight: dividing each present value by it gives weights of about 4.7% and 95.3%. Those weights must add to one, which is a quick check that the discounting was done consistently.
- 4
Weight each present value by its time
Multiply the year-one present value by 1 and the year-two present value by 2, then add them. Here that is 1 x 4.8544 + 2 x 98.9726 = 202.7995. Because the final payment includes the face value, almost all of this weighted sum comes from year two.
- 5
Divide by price and interpret
The weighted sum divided by the price gives 1.9532 years. Dividing once more by 1.03 gives modified duration of about 1.8964, the number used to estimate price changes. Read the main result as a weighted average timing, not as a guaranteed holding period, and remember that this two-period model is for teaching rather than investment advice.
Common Questions
How does the Macaulay Duration Calculator work?
Discount each cash flow by (1 + y)^t, multiply its present value by the time t, add the weighted values and divide by the bond price. For a two-year annual bond paying a coupon of 5 with a face value of 100 at a 3% yield, the duration is about 1.9532 years on a price of about 103.83. Dividing by (1 + y) gives a modified duration of about 1.8964.
What do I need to enter in the Macaulay Duration Calculator?
It takes 3 inputs: Annual yield to maturity (percent), Annual coupon payment, Face value. Fields that expect a unit say so next to the label.
Where does Macaulay duration (years) come from?
It comes from D = (sum over t of t x PV(CF_t)) / P — discount each cash flow, multiply by when it arrives, sum the weighted values and divide by the bond price. The weights are the present values, so they automatically add up to the price.
What is the most common mistake with the Macaulay Duration Calculator?
Entering the yield as 3 instead of 0.03. A quoted yield of 3% must enter the discount factors as 0.03. The field here is a percentage that the engine converts for you, but if you reproduce the formula by hand, remember to divide by 100 first. Using 3 as the yield makes 1 + y equal 4 and produces a meaningless duration.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate The Macaulay Duration page.
