Bond Duration Calculator screenshot

Bond Duration Calculator

Compute a bond's Macaulay and modified duration from its face value, coupon, yield, maturity and payment frequency.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No upload
Deterministic
Formula stated

What this page does

Duration is the present-value-weighted average time until a bond's cash flows arrive, and modified duration converts it into the bond's first-order price sensitivity to yield.

How to use it

Enter this sample with the defaults shown:

1000

Press Run. The page gives:

Face:        1000.00
Coupon:      5 % per year, paid 2× a year
Yield:       6 % per year (nominal, 2 compounding periods)
Maturity:    10 years (20 periods)
Price:       925.61 per 1000.00 face
Macaulay:    7.8950 years
Modified:    7.6650 years (a 1 % yield move ≈ 7.6650 % price move)
Basis:       coupons reinvested at the same yield; no accrued interest; exact schedule

The formula and its basis

Macaulay duration = Σ (time in years × present value of each cash flow) ÷ price; modified duration = Macaulay ÷ (1 + yield ÷ payments per year).

The yield is a nominal annual rate compounded at the payment frequency; coupons are constant and paid exactly on schedule, with no accrued interest.

What it is not

It is arithmetic on the numbers you enter, not financial advice: no product, rate or course of action is recommended. Nothing is uploaded, stored or logged.

Duration is the present-value-weighted average time until a bond's cash flows arrive, and modified duration converts it into the bond's first-order price sensitivity to yield.

The rule this page applies: Macaulay duration = Σ (time in years × present value of each cash flow) ÷ price; modified duration = Macaulay ÷ (1 + yield ÷ payments per year).

Basis: The yield is a nominal annual rate compounded at the payment frequency; coupons are constant and paid exactly on schedule, with no accrued interest.

Worked example: the sample values below, with the defaults, give exactly the output recorded in What to Expect.

How to use the Bond Duration Calculator

Enter face value in the box, set the options beside it, then press Run. The answer appears beside the form and re-runs on the same input.

Every number in the answer follows from your inputs and the assumptions stated below; the page does not choose a rate for you.

The worked example uses "1000" with the defaults shown, and its exact output is printed in What to Expect.

The formula, its basis and its refusals

Macaulay duration = Σ (time in years × present value of each cash flow) ÷ price; modified duration = Macaulay ÷ (1 + yield ÷ payments per year).

The yield is a nominal annual rate compounded at the payment frequency; coupons are constant and paid exactly on schedule, with no accrued interest. Money prints to two decimals, percentages to four, and intermediate values are never rounded.

It refuses a face value of zero or less, a maturity outside 1–100 whole years, a frequency outside 1–12, and any yield at or below −100 %.

What this page is not

It is arithmetic on the numbers you enter, with each assumption stated. It does not recommend a product, a rate or a course of action.

Where the tool is the wrong choice: Large yield moves, where convexity matters; Bonds with embedded options or variable coupons.

What to Expect

Best for

  • Estimating a bond's price move for a small yield change
  • Comparing interest-rate risk across bonds

Not ideal for

  • Large yield moves, where convexity matters
  • Bonds with embedded options or variable coupons

What this tool keeps

  • The numbers exactly as you entered them
  • The same answer on every run
  • Nothing sent, stored or logged

What may need cleanup

  • Rates entered as fractions rather than percentages: enter 5 for 5 %
  • A currency symbol pasted beside a number, which the page refuses by name

Common errors

  • It refuses a face value of zero or less, a maturity outside 1–100 whole years, a frequency outside 1–12, and any yield at or below −100 %.
  • A non-numeric value, which the page names rather than silently treating as zero

Example use cases

  • Checking a bond fund's stated duration
  • Matching asset duration to a liability

Sample input

1000

Sample output

Face: 1000.00 Coupon: 5 % per year, paid 2× a year Yield: 6 % per year (nominal, 2 compounding periods) Maturity: 10 years (20 periods) Price: 925.61 per 1000.00 face Macaulay: 7.8950 years Modified: 7.6650 years (a 1 % yield move ≈ 7.6650 % price move) Basis: coupons reinvested at the same yield; no accrued interest; exact schedule

Who this is for

  • investors
  • analysts

Frequently asked questions

What formula does this page use?

Macaulay duration = Σ (time in years × present value of each cash flow) ÷ price; modified duration = Macaulay ÷ (1 + yield ÷ payments per year).

What does it refuse?

It refuses a face value of zero or less, a maturity outside 1–100 whole years, a frequency outside 1–12, and any yield at or below −100 %.

Is this financial advice?

It is arithmetic on the numbers you enter, with each assumption stated. It does not recommend a product, a rate or a course of action.

What rate basis and rounding does it use?

The yield is a nominal annual rate compounded at the payment frequency; coupons are constant and paid exactly on schedule, with no accrued interest. Money prints to two decimals, percentages to four, and intermediate values are never rounded.

What does modified duration mean in money?

It is the approximate percentage price change for a one percentage-point move in yield, in the opposite direction. A modified duration of 7.5 means roughly a 7.5 % fall for a one-point rise, before convexity.

Why is Macaulay duration printed too?

It is the weighted average time in years and does not depend on the yield convention, so it is the figure to compare with a stated investment horizon. Modified duration is the risk measure derived from it.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.