Bond Calculator
Price a bond from its yield to maturity, or work out the yield from a quoted price, including accrued interest between coupons.
How to use the Bond Calculator
- Pick what you want to work out using the tabs: Price from yield or Yield from price.
- Enter Face (par) value.
- Enter Annual coupon rate.
- Enter Years to maturity (Fractions such as 9.75 give accrued interest since the last coupon).
- Choose Coupon frequency.
- Enter Yield to maturity.
- Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
- Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.
How a bond is priced
A bond pays a fixed coupon every period and returns its face value at maturity. Its price is the present value of all those payments, discounted at the market’s required return, the yield to maturity (YTM):
price = Σ C ÷ (1 + y/f)t + F ÷ (1 + y/f)N
C is the coupon per period (face × coupon rate ÷ f), f the number of coupons a year, F the face value and N the number of coupons left. When the yield is above the coupon rate, the bond trades at a discount to par. When it is below, the bond trades at a premium.
Worked example
A $1,000 bond with a 5% coupon paid semiannually and 10 years left pays $25 every six months for 20 periods. At a 6% yield each period is discounted at 3%, giving a price of $925.61, or 92.561% of par. Enter $925.61 in the yield tab and the calculator returns a yield of 6.0000%. Finding the yield has no algebraic shortcut, so the calculator searches for the rate that reproduces the price.
Clean price, dirty price and accrued interest
Between coupon dates the seller has earned part of the next coupon. The buyer pays this accrued interest on top of the quoted price:
- Dirty (full) price: what the buyer actually pays, the present value of the remaining cash flows on the settlement date.
- Accrued interest = coupon × fraction of the period since the last coupon.
- Clean price = dirty price − accrued interest. Markets quote this price.
Enter a fractional term such as 9.75 years to see this. With 19.5 semiannual periods left, half a period has passed, so accrued interest is $12.50, the dirty price is $939.39 and the clean price is $926.89. The calculator measures the fraction in coupon periods, close to the 30/360 convention used for many corporate bonds.
Current yield and price risk
Current yield is the annual coupon divided by the clean price, 5.40% in the example. It ignores the gain from buying below par, so YTM is the better measure of total return if you hold to maturity. The price-yield chart shows the inverse relationship: as yields rise, prices fall, and longer bonds fall further.
The calculator ignores default risk, call features and taxes. Results are estimates for learning and are not investment advice.
Frequently asked questions
Why do bond prices fall when interest rates rise?
A bond’s coupons are fixed. When new bonds offer higher yields, older bonds must sell for less so their total return matches the market. That is why price and yield move in opposite directions.
What is yield to maturity?
YTM is the single discount rate that makes the present value of all remaining coupons and the face value equal the bond’s price. It is the annual return you earn if you buy at that price, hold to maturity and reinvest coupons at the same rate.
What is the difference between clean and dirty price?
The clean price is the quoted price without accrued interest. The dirty price adds the interest earned since the last coupon and is the amount the buyer actually pays.