A bond’s price is the sum of its coupons and principal, discounted at the yield the market requires. This calculator gives the price, the current yield and the duration, which measures how sensitive the price is to interest rate changes.
The formula
Price = Σ coupon / (1 + y)t + face value / (1 + y)n. When the required yield is above the coupon, the bond trades below par; when it is below, the bond trades above par.
Example
A $1,000 bond with a 4% coupon and 7 years to maturity, priced at a 5% yield, is worth $942.14. Its modified duration of 5.92 means a 1-point rise in yields would cut its price by about 5.92%.
Macaulay and modified duration
Macaulay duration is the average life of the cash flows, weighted by their present value. Modified duration follows from it and gives the percentage price change for a 1-point change in yield. Longer maturities and lower coupons make a bond more sensitive to rates.

