Bond Calculator: Price From Yield or Yield to Maturity
Enter a bond’s face value, coupon rate and years to maturity. Add the market yield to get its price, or add the price to get the yield to maturity.
| Period | Years from now | Cash flow | Present value | Running total |
|---|
Textbook pricing on a coupon date, before tax and trading costs, assuming every payment is made in full. The starting numbers are examples, not market data. General information, not financial advice.
Estimates for planning only, not financial advice. The calculator runs in your browser and nothing you enter is uploaded or saved.
A bond in plain words
A bond is a loan that can be bought and sold. A government or a company borrows money and promises two things in return: a regular interest payment, called the coupon, and repayment of a fixed sum, the face value (also called par), on a set date called maturity.
Those promises never change, but the price people will pay for them does. This bond calculator answers the two standard questions: what is a bond worth if buyers want a certain yield, and what yield does a buyer earn at a certain price?
Entering a bond
- Pick I know the yield to find the price, or I know the price to find the yield to maturity.
- Type the Face value, the Coupon rate per year and the Years to maturity.
- Choose whether Coupons are paid twice a year or once a year.
- Type the Market yield or the Price, whichever your chosen direction asks for.
All opening values are examples for learning. The headline gives the answer, the tiles say whether the bond trades at a premium, at a discount or at par and give the current yield and the total of all coupons. The table lists every payment and what it is worth in today’s money. Dollars are only a placeholder currency.
Worked example: a 5% bond when buyers want 6%
The tool opens with a $1,000 bond paying a 5% coupon for 10 years, twice a year. Each coupon is $1,000 × 5% ÷ 2 = $25.00, and there are 20 of them, $500.00 in total. With the final repayment the holder receives $1,500.00 over the bond’s life.
If similar bonds now offer 6%, nobody will pay full price for one that pays 5%. Discounting each payment at 3% per half year gives a price of $925.61. The bond trades at a discount of $74.39. Its current yield, the yearly coupons divided by the price, is 5.4018%.
Turn it around. Click I know the price and leave the price at $950. The yield to maturity comes out at 5.6617%: higher than the 5% coupon, because the buyer also gains $50 when the bond repays $1,000 at the end.
How the price is built
A payment that arrives later is worth less than the same payment now, because money in hand could be earning a return in the meantime. The price of a bond is every future payment shrunk back to the present at the market yield, then added up:
price = C / (1 + i)^1 + C / (1 + i)^2 + ... + (C + F) / (1 + i)^N
Here C is one coupon, F the face value, N the number of coupon periods and i the yield per period (the yearly yield divided by the number of coupons a year). The same discounting idea, for a single payment, is explained on the present value calculator.
Yield to maturity (YTM) runs the formula backward. There is no neat algebra for it, so the tool tries rates until the sum matches the price you typed. In other words, YTM is the internal rate of return of buying the bond and holding it to the end, the same quantity an IRR calculator finds for any list of cash flows.
Three more figures appear in the rows. Effective annual yield restates a twice-a-year yield as one yearly compounded rate. Macaulay duration is the average wait, in years, for the bond’s money, weighted by present value. Modified duration estimates the percentage price change for a one-point change in yield.
Why price and yield move in opposite directions
This is the idea students find strangest, and the table makes it concrete. The coupon is fixed. So the only way a 5% bond can deliver more than 5% to a new buyer is for that buyer to pay less for it, and the only way it can deliver less is for the buyer to pay more.
| Market yield | Price of the 5%, 10-year bond | Trades at |
|---|---|---|
| 4% | $1,081.76 | Premium |
| 5% | $1,000.00 | Par |
| 6% | $925.61 | Discount |
| 7% | $857.88 | Discount |
When the yield equals the coupon rate, the price equals the face value. Time to maturity sets how strongly. At a 6% yield the same coupon on a 2-year bond prices at $981.41, on a 10-year bond at $925.61 and on a 30-year bond at $861.62. Longer bonds have more payments far in the future, so a change in yield hits them harder. That sensitivity is what duration measures.
What this model does not cover
- Dates between coupons. The price is for a bond bought exactly on a coupon date. Real trades between dates add accrued interest and follow day-count rules.
- The risk of not being paid. Every payment is assumed to arrive in full. A borrower in trouble may pay late or not at all, which is one reason some bonds offer higher yields than others.
- Selling early. Yield to maturity assumes you hold to the end. Sell sooner and your return depends on the price that day, which can be lower than what you paid.
- Special features. Bonds that can be repaid early, that adjust for inflation or that have floating coupons need other models.
- Tax and costs. Dealer charges and tax on interest are left out.
This is a teaching model built on example numbers. It does not use market data and is not financial advice.
Classroom and study ideas
Have students change only the market yield and record the price each time, then plot the points. The curve slopes down and bends, which opens a discussion of why a one-point fall in yield raises the price more than a one-point rise lowers it.
It also helps to compare a bond with products students already know. A fixed deposit held to term, as in the CD calculator, has no market price to worry about. A share’s payout measured against its price, as in the dividend yield calculator, is the stock-market cousin of current yield. To see how coupons could grow if each one were saved at a steady rate, try the compound interest calculator, and to turn a twice-yearly rate into a yearly one by hand, the APY calculator uses the same formula as the effective annual yield row.
There are more pages like this under finance calculators, part of a wider set of free online tools for school and everyday math.
Frequently asked questions
How do you calculate the price of a bond?
Discount every coupon and the final face value back to today at the market yield per period, then add them up. A 1,000 dollar bond with a 5 percent coupon paid twice a year for 10 years is worth 925.61 dollars at a 6 percent market yield.
What is yield to maturity?
It is the yearly return a buyer earns by paying the current price and holding the bond until it is repaid, counting both the coupons and any gain or loss against face value. The example bond bought at 950 dollars has a yield to maturity of 5.6617 percent.
Why do bond prices fall when interest rates rise?
The coupon is fixed, so when new bonds pay more, an older bond is only attractive at a lower price. The example 5 percent bond is worth 1,000 dollars at a 5 percent yield but 925.61 dollars at 6 percent and 857.88 dollars at 7 percent.
What is the difference between coupon rate, current yield and yield to maturity?
The coupon rate is the yearly interest as a share of face value. Current yield is the yearly interest divided by the price. Yield to maturity also includes the gain or loss when the bond repays its face value.
What does it mean when a bond trades at a premium or a discount?
A premium means the price is above face value, which happens when the coupon rate is higher than the market yield. A discount means the price is below face value. At par the two rates are equal and the price equals the face value.
What is bond duration?
Macaulay duration is the average time, in years, until the bond’s payments arrive, weighted by their present value. Modified duration estimates the percent change in price for a one point change in yield; for the example bond it is about 7.665.
