Bond Price Calculator: Clean and Dirty Prices
See the clean and dirty prices behind the discounted payments.
Measure the present-value-weighted timing of a bond's future payments. The calculation uses regular coupons and does not model the effective duration of bonds with embedded options.
Macaulay duration expresses the weighted timing of a bond's future cash flows. Each payment receives a weight based on its present value, so early coupons can pull duration below the bond's remaining maturity.
Generate regular coupon payments and add redemption to the last payment. Settlement must fall within the current coupon interval, and maturity must fit the regular grid.
Convert the yield to the coupon-period basis and discount using the remaining fractional periods. Their sum is the dirty price used as the weighting denominator.
Multiply each payment's discounted weight by its time in coupon-period years. Summing those contributions gives Macaulay duration; modified duration is reported separately.
Sample inputs demonstrate the method. They are not a forecast or product offer.
The first example has no coupons and redeems five years after settlement. Although redemption is discounted at 5%, it is still the only cash flow, so its entire weight gives a Macaulay duration of five years.
Sample inputs demonstrate the method. They are not a forecast or product offer.
Duration is a timing measure, not the date the bond matures. A zero-coupon bond has only the redemption payment, so all weight falls at that final time.
Modified duration describes local price sensitivity under this model. Neither duration accounts for default, changing cash flows or the exercise of embedded options.
Measure the present-value-weighted timing of a regular fixed-rate bond’s future payments.
Regular coupons, no defaults or embedded-option adjustment.
Read our calculation and testing approach.