Calculation guide
For savers and bond investors comparing entered terms.
The entered rate is nominal unless the tool explicitly says effective yield. Compounding and deposit timing are shown separately. Recurring deposits use the monthly equivalent of the selected compounding convention. Paid-out interest is not reinvested. Actual bank terms, tax and penalties can differ. Coupon dates are anchored to maturity. Settlement must precede maturity. Choose ACT/ACT per coupon period, ACT/365 or European 30E/360 for the first partial period and accrued interest. Future coupons use periodic yield discounting. Clean price excludes accrued interest; dirty price includes it. Current yield, yield to maturity and coupon rate are different measures. These conventions may differ from a traded security's exact terms.
Inputs
Face value
Amount repaid by the issuer at maturity, before any final coupon.
Coupon rate
Annual coupon percentage of the bond face value, not its market yield.
Coupon frequency
Number of coupon payments each year. Annual coupon income is divided across these payments.
Settlement
Date the bond or bill purchase settles; future payments are valued from this date.
Maturity date
Date principal is repaid. Bond pricing requires maturity after settlement.
Day-count convention
Day-count rule used for bond accrued interest and the first partial coupon period.
Yield
Assumed annual bond yield used to discount the remaining coupons and principal.
Worked example
| Input | Value |
|---|---|
| Face value | 1,000 |
| Coupon rate | 6% |
| Coupon frequency | 2 |
| Settlement | 2026-01-01 |
| Maturity date | 2031-01-01 |
| Day-count convention | ACT/ACT per coupon period |
| Yield | 5% |
Formula:
D_Mac = Σ(t·PV(CF_t))/P_dirty; D_Mod=D_Mac/(1+y/m)
Modified duration = 4.30088545413908
Time years = 0.500000000000000; Cash flow = 30.0000000000000; Present value = 29.2682926829268
Time years = 5.00000000000000; Cash flow = 1030.00000000000; Present value = 804.634353777499
| Result | Value |
|---|---|
| Modified duration | 4.300885 years |
| Macaulay duration | 4.408408 years |
| Dirty price | 1,043.76032 |
Interpreting the result
Approximate bond-price sensitivity to a small yield change; derived from Macaulay duration.
Present-value-weighted average time until bond payments are received.
How each input affects this example
Each row starts from the worked example and changes one input.
| Input | Original input | New input | Affected result | Original result | New result |
|---|---|---|---|---|---|
| Face value | 1,000 | 1,100 | Dirty price | 1,043.76032 | 1,148.136352 |
| Coupon rate | 6% | 7% | Modified duration | 4.300885 years | 4.231787 years |
| Coupon frequency | 2 | 1 | Modified duration | 4.300885 years | 4.264525 years |
| Settlement | 2026-01-01 | 2026-01-02 | Modified duration | 4.300885 years | 4.29819 years |
| Maturity date | 2031-01-01 | 2031-01-02 | Modified duration | 4.300885 years | 4.183373 years |
| Day-count convention | ACT/ACT per coupon period | ACT/365 fixed | Modified duration | 4.300885 years | 4.296876 years |
| Yield | 5% | 6% | Modified duration | 4.300885 years | 4.265101 years |
