Bond Price and Yield Calculator

A bond’s yield to maturity (YTM) from its price, or the bond price from a yield, with every step shown.

Inputs

These are example values. Change any of them to calculate your own.

Try:
Find

Repaid at maturity, like 1,000.

$

0 for a zero-coupon bond.

%

Most US bonds pay twice a year.

Time to maturity

Whole periods, like 7 yr 6 mo.

A quote of 96.5 means 96.5% of face value.

= $965

Results

Yield to maturity (YTM)

4.811%

a year, quoted bond-equivalent (2.4057% per 6 months × 2), buying at $965.00 (96.5% of face value) with 7 years 6 months to maturity

Note: Discount bond

The (4.811%) is above the coupon rate (4.25%) because you pay $35.00 less than face value and get the full $1,000 back at maturity. The current yield (4.404%) sits between them: it counts the coupons but not that gain.
Effective annual yield
4.869%Counts compounding twice a year; compare it with an APY
Current yield
4.404%$42.50 of coupons a year ÷ $965.00
Coupon rate
4.25%$21.25 every 6 months
Discount to face value
$35.00You get $1,000 at maturity, $35.00 more than you pay
Macaulay duration
6.48 yearsModified duration 6.33: about 6.33% per 1-point change in yield
If yields rise 1 point
-6.10%Price $906.16 (-$58.84); duration estimate -6.33%

How this was calculated

  1. Coupon per period: C = $1,000 × 0.0425 ÷ 2 = $21.25
  2. Coupon periods left: n = 7.5 years × 2 a year = 15
  3. Price: $965.00 = 96.5% of the $1,000 face value
  4. Solve $965.00 = $21.25 × (1 − (1 + j)−15) ÷ j + $1,000 × (1 + j)−15 for the yield per period j
  5. Brent's method, searching j from −99.9999999% per period upward and stopping within 0.0000000001 percentage points, then one Newton step to full precision: j = 0.02405726, or 2.405726% per 6 months
  6. Check: $264.94 for the coupons + $700.06 for the face value = $965.00
  7. Yield to maturity (bond-equivalent): 2.405726% × 2 = 4.811% a year
  8. Effective annual yield: 1.024057262 − 1 = 4.869%
  9. Current yield: $42.50 ÷ $965.00 = 4.404%
  10. Shortcut estimate (no solver): ($42.50 + ($1,000 − $965.00) ÷ 7.5) ÷ (($1,000 + $965.00) ÷ 2) = 4.801%, 0.011 points below the exact yield
  11. Macaulay duration: Σ (period × present value) ÷ price = 12.9566 periods ÷ 2 = 6.48 years; modified duration: 6.4783 ÷ (1 + 0.02405726) = 6.33
  12. In a spreadsheet: =RATE(15, 21.25, -965, 1000) * 2 returns 4.811%
Cash flows and their present values (first 12 of 15 rows)
PeriodCouponPrincipalDiscount factorPresent value% of price
1$21.25—0.976508$20.752.15
2$21.25—0.953568$20.262.10
3$21.25—0.931166$19.792.05
4$21.25—0.909291$19.322.00
5$21.25—0.887930$18.871.96
6$21.25—0.867071$18.431.91
7$21.25—0.846701$17.991.86
8$21.25—0.826811$17.571.82
9$21.25—0.807387$17.161.78
10$21.25—0.788420$16.751.74
11$21.25—0.769898$16.361.70
12$21.25—0.751812$15.981.66
Total$318.75$1,000.00$965.00100.00
Price if yields change
Yield changeNew yield (%)PriceChange (%)Duration estimate (%)
-2 points2.811%$1,096.67+13.64%+12.65%
-1 point3.811%$1,028.37+6.57%+6.33%
-0.5 points4.311%$996.10+3.22%+3.16%
0 (your yield)4.811%$965.000.00%0.00%
+0.5 points5.311%$935.04-3.11%-3.16%
+1 point5.811%$906.16-6.10%-6.33%
+2 points6.811%$851.50-11.76%-12.65%
Price at other yields
Price at other yieldsThe price falls as the yield rises, along a curve that bends upward: $1,096.67 at 2.811% and $851.50 at 6.811%. Your bond is at 4.811% and $965.00. At the 4.25% coupon rate the price equals the $1,000 face value.$800$900$1,000$1,1003%4%5%6%Your bondPar
Chart data: Price at other yields
Price at other yields
PointYield to maturity (%)Price ($)
Your bond4.81%$965
Par4.25%$1,000
Yield to maturity at other prices
Price (% of face)Yield to maturityChange in yieldCurrent yield
91.5%5.656%+0.845 points4.645%
94.5%5.143%+0.332 points4.497%
95.5%4.976%+0.165 points4.450%
96.5% (your input)4.811%0.000 points4.404%
97.5%4.649%-0.163 points4.359%
98.5%4.488%-0.324 points4.315%
101.5%4.016%-0.795 points4.187%

The bond stays as you entered it: $1,000 face value, a 4.25% coupon paid twice a year, 7 years 6 months to maturity.

Assumptions

  • Priced on a coupon date: the next $21.25 coupon is a full 6 months away and no interest has accrued. Between coupon dates, a quoted price leaves out accrued interest and the yield needs a day count, which this calculator doesn't model.
  • All 15 payments arrive in full and on time: no default, and no call or sale before maturity.
  • The yield to maturity is quoted bond-equivalent: the yield per coupon period × 2. The counts that compounding. Both assume you hold to maturity, and as a return they assume each coupon is reinvested at the same yield.
  • No taxes, commissions, markups or other fees.
  • Duration and the "Price if yields change" table move the yield for every payment by the same amount and keep the payments fixed, as for a bond that cannot be called.
  • Amounts are rounded to the cent and yields to 3 decimals for display; the calculation keeps full precision.
  • An educational estimate, not a quote, an offer or investment advice.

Calculated in your browser. This site doesn't send the numbers you enter anywhere. “Continue in” links pass them to the next calculator within this browser tab only.

Continue in the APY Calculator

Updated Report a problem with this calculator

What this calculator answers

What return a bond gives if you buy it at a given price and hold it to maturity, or what the bond is worth if the market wants a given yield. Enter the face value, coupon rate, how often coupons are paid and the time left, then either the price or the yield. You get the yield to maturity in two conventions, the current yield, whether the bond trades at a premium or a discount, its duration, and a table of every payment with its value today.

How to use it

  • Find: Yield from price when you know what the bond costs, Price from yield when you know the yield you want. Switching carries the answer across, so both directions describe the same bond.
  • Face value: the amount repaid at maturity, also called par value, for example $1,000.
  • Annual coupon rate: the interest rate printed on the bond, per year, in percent. Type 4.25 for 4.25%. Enter 0 for a zero-coupon bond.
  • Coupons paid: how many coupons a year. Twice a year (semiannual) is the most common for corporate and government bonds, and US Treasury notes and bonds pay every six months.
  • Time to maturity: years and months until the bond repays its face value, counted from a coupon date. It must be a whole number of coupon periods: with coupons twice a year, 7 years 6 months works but 7 years 3 months doesn’t.
  • Price (when finding the yield): the price for one bond on a coupon date, without accrued interest. Keep the toggle on % of the face value to type a quote such as 96.5, or switch to $ amount to type dollars.
  • Yield to maturity (when finding the price): the yearly yield as bonds are quoted, for example 5.5. It can be negative.

The Try buttons load the other cases worked through below. To compare two bonds, press Save for comparison, change the inputs and save again: each saved bond shows how its price, yields and duration differ from the first.

How to calculate yield to maturity

The yield to maturity is the rate that makes the present value of the bond’s remaining payments equal its price. Each coupon and the final face value are discounted back to today at the yield per period jj:

P=C×1−(1+j)−nj+F×(1+j)−nYTM=j×fP = C \times \frac{1 - (1 + j)^{-n}}{j} + F \times (1 + j)^{-n} \qquad \text{YTM} = j \times f
  • PP is the price in dollars.
  • FF is the face value, repaid at maturity.
  • ff is the number of coupons a year, and C=F×coupon rate÷fC = F \times \text{coupon rate} \div f is each coupon.
  • nn is the number of coupon periods left: years to maturity × ff.
  • jj is the yield per coupon period.

jj can’t be isolated on one side of this equation, so the calculator solves it numerically with Brent’s method, starting from a range of yields that is sure to contain the answer and narrowing it to within 0.0000000001 percentage points per period. One Newton step then refines it, so the present values in the cash-flow table add up to the price to the cent even for a very large bond. A price always has exactly one yield: the price falls steadily as the yield rises.

The yearly figure is quoted bond-equivalent: the yield per period times the number of coupons a year. This is how US Treasury notes and bonds are priced (a yield based on semiannual payments). The effective annual yield, (1+j)f−1(1 + j)^f - 1, counts the compounding within the year, so it is the one to line up against an APY on a savings account or CD.

Current yield vs. yield to maturity

Current yield is the coupon income for a year divided by the price. It ignores the gain or loss you make when the bond repays its face value, so it differs from the yield to maturity whenever the price isn’t equal to face value. It tells you the income a bond pays for each dollar invested today; the yield to maturity tells you the whole return if you hold it to the end.

A quick check by hand

A rough estimate of the yield to maturity divides the average yearly income by the average amount invested: (annual coupon + (face value − price) ÷ years) ÷ ((face value + price) ÷ 2). The calculator shows it in the steps next to the exact answer. It comes within 0.011 points of the exact yield in the worked example below but misses the zero-coupon example by 0.090 points, so treat it as a sanity check only.

Worked example: a 4.25% bond quoted at 96.50

A $1,000 bond pays a 4.25% coupon twice a year and matures in 7 years 6 months. It is quoted at 96.50, which means 96.5% of face value.

  1. Price in dollars: 96.5% × $1,000 = $965.00.
  2. Coupon per period: C = $1,000 × 0.0425 ÷ 2 = $21.25, or $42.50 a year.
  3. Periods left: n = 7.5 years × 2 = 15.
  4. Solve $965.00 = $21.25 × (1 − (1 + j)^−15) ÷ j + $1,000 × (1 + j)^−15. The answer is j = 0.02405726, or 2.405726% per 6 months.
  5. Check: the 15 coupons are worth $264.94 today and the $1,000 at maturity $700.06, which add up to $965.00.
  6. Yield to maturity: 2.405726% × 2 = 4.811% a year.
  7. Effective annual yield: 1.02405726² − 1 = 4.869%.
  8. Current yield: $42.50 ÷ $965.00 = 4.404%.
  9. The shortcut gives ($42.50 + $35.00 ÷ 7.5) ÷ ($1,965 ÷ 2) = 4.801%, 0.011 points below the exact answer.

In a spreadsheet, =RATE(15, 21.25, -965, 1000) * 2 gives the same 4.811%.

How to calculate a bond’s price from its yield

Discount each payment at the yield per period and add them up. For the same bond at a 5.5% yield to maturity:

  1. Yield per period: j = 0.055 ÷ 2 = 0.0275.
  2. The coupons are worth $21.25 × (1 − 1.0275^−15) ÷ 0.0275 = $258.33.
  3. The face value is worth $1,000 × 1.0275^−15 = $665.69.
  4. Price: $258.33 + $665.69 = $924.02, or 92.402% of face value.

In a spreadsheet, =PV(0.055/2, 15, -21.25, -1000) returns $924.02. At that price the current yield is 4.599% and the effective annual yield 5.576%.

Premium, discount and par bonds

A bond’s price sits above or below face value depending on whether its coupon rate is above or below the yield the market asks for. For a bond that pays coupons, the three yields then always line up in the same order:

Price vs. face valueNameYieldsExample
BelowDiscount bondcoupon rate < current yield < YTM4.25% coupon at 96.50: 4.25% < 4.404% < 4.811%
EqualPar bondcoupon rate = current yield = YTM4.25% coupon at 100: all three 4.25%
AbovePremium bondYTM < current yield < coupon rate6.5% coupon, 12 years, at 108.25: 5.549% < 6.005% < 6.5%

A discount bond’s yield to maturity is higher than its coupon rate because you also gain the difference between the price and face value by maturity. A premium bond’s is lower because you lose the premium. The result shows which case applies to your bond and why.

Why bond prices fall when yields rise

A bond’s payments are fixed when it is issued. If new bonds start paying more, nobody will pay full price for yours, so its price drops until its yield matches what the market now wants. When market yields fall, the same fixed payments become more valuable and the price rises. The calculator’s Price if yields change table reprices your bond at yields 0.5, 1 and 2 points either side of yours.

Duration: how much the price moves when yields change

Duration puts a number on that sensitivity. Macaulay duration is the average time until you receive the bond’s payments, each weighted by its share of the price. Modified duration is Macaulay duration divided by (1 + j), and it is roughly the percentage the price changes for a 1-point change in yield.

The example bond has a Macaulay duration of 6.48 years and a modified duration of 6.33. So if yields rose 1 point, to 5.811%, duration predicts a fall of about 6.33%. Repricing the bond exactly gives $906.16, a fall of $58.84 or 6.10%. If yields fell 1 point, the price would rise 6.57% to $1,028.37. Duration draws a straight line, while the real price follows a curve that bends upward (convexity), so the estimate overstates falls and understates rises, more so for bigger moves. The chart under the table shows that curve with your bond marked on it.

Longer maturities and lower coupons mean higher durations, and a zero-coupon bond’s Macaulay duration equals its time to maturity.

Zero-coupon bonds

A zero-coupon bond pays nothing until maturity, so its price is just the face value discounted: P=F÷(1+j)nP = F \div (1 + j)^n. A $1,000 zero maturing in 10 years at a 4% yield, compounded twice a year like coupon bonds, costs $1,000 ÷ 1.02^20 = $672.97. Its Macaulay duration is exactly 10 years, and a 1-point rise in yield would cut its price 9.32%, to $610.27. If you want a yield compounded once a year instead, set coupons to annual: at 4% the price is $1,000 ÷ 1.04^10 = $675.56.

Can yield to maturity be negative?

Yes, when the price is more than everything the bond will still pay. A $1,000 bond with a 0.5% coupon paid twice a year and 2 years left pays four $2.50 coupons and the face value, $1,010.00 in total. At a price of 102 ($1,020.00) the buyer loses money by holding to maturity, and the yield to maturity is −0.494%. The calculator accepts negative yields and says so instead of showing an error.

Reading the result

  • The headline is what you chose to find: the yield to maturity (bond-equivalent) or the price, with the other one in the line under it.
  • The note under it says whether the bond is at a discount, a premium or par (or has a negative yield) and why its yields differ.
  • The tiles give the effective annual yield, current yield, coupon, the discount or premium, duration, and what a 1-point rise in yields would do to the price.
  • How this was calculated repeats the formulas with your numbers, including the shortcut estimate and the spreadsheet formula.
  • Cash flows and their present values lists every payment, its discount factor and its value today. The present values add up to the price, and each payment’s share of the price is the weight Macaulay duration uses. The table downloads as a CSV file.
  • Price if yields change compares the exact new price with the duration estimate.
  • Yield to maturity at other prices (when finding the yield) solves the yield again at prices 1, 2 and 5 points either side of yours, useful before placing an order at a limit price.
  • Continue in the APY Calculator carries the yield and the coupon frequency across, so you can see the same yield as an APY next to a savings account or CD.

What this calculator doesn’t cover

  • Accrued interest and settlement between coupon dates. A buyer between coupon dates also pays the seller the interest earned since the last coupon, on top of the quoted price (the price without it is often called the clean price, and the total the dirty price). That needs the settlement date and a day-count convention, which this calculator doesn’t model. Its prices are for a coupon date, when no interest has accrued, so a broker’s yield for a trade between coupon dates can differ from this one.
  • Calls. A callable bond may be repaid early; its yield to call uses the call date and call price instead of the maturity date and face value.
  • Default and credit risk. The yield assumes every payment arrives in full and on time. A high yield often reflects doubt that it will.
  • Taxes, commissions and markups, which lower the return you keep.
  • Floating-rate and inflation-linked bonds, whose payments change over time.
  • US savings bonds (EE and I bonds). They can’t be sold or transferred to anyone else, so they have no market price and aren’t valued this way. TreasuryDirect shows what they are worth.

The result is an educational estimate, not a quote, an offer or investment advice.

Common mistakes

  • Typing a quote as dollars. A quote of 96.5 means 96.5% of face value, $965.00 for a $1,000 bond, not $96.50. The calculator points this out if a dollar price looks like a quote.
  • Treating current yield as the return. On a discount or premium bond, current yield leaves out the gain or loss at maturity.
  • Comparing a bond-equivalent yield with an APY. A 4.811% bond-equivalent yield compounded twice a year is 4.869% effective; compare that figure with a CD’s APY.
  • Using a price with accrued interest in it. The “dirty” price someone pays between coupon dates includes interest the seller earned, which raises the price and lowers the yield you calculate.
  • A time to maturity that doesn’t match the coupon dates. With coupons twice a year, 7.3 years is 14.6 periods; the calculator asks for a whole number and suggests the nearest, 15 periods (7 years 6 months).
  • Reading duration as exact. It is a straight-line estimate. For moves of 1 or 2 points on long bonds, look at the exact prices in the table.

Questions

Is “bond yield” the same as yield to maturity?

Not always. Yield is a general word for the return on a bond, and it can mean the coupon rate, the current yield or the yield to maturity. When you compare quotes, check which one is meant. This calculator shows all three for the same bond, so you can match the number you were given.

If I hold the bond until it matures, do rising rates matter?

Not to the payments you receive. If the issuer pays as promised, you still get every coupon and the face value, and the yield you locked in when you bought stays the same. Rising rates lower the price only if you sell before maturity, and they mean new bonds pay more than yours.

Sources

  1. Principles of Finance, 10.2 Bond Valuation OpenStax (Rice University) The price as the present value of the coupons plus the face value; coupon per period = face value × annual coupon rate ÷ payments a year; periods = years × payments a year; yield to maturity found with a calculator or spreadsheet because the rate is hard to isolate; semiannual coupons are the most common for corporate and government bonds; a coupon rate above the yield means a premium, below it a discount, equal to it par.
  2. Principles of Finance, 10.5 Using Spreadsheets to Solve Bond Problems OpenStax (Rice University) The PV function prices a bond and the RATE function finds its yield per period, with semiannual coupons entered as half the annual coupon over twice the years.
  3. Appendix B to Part 356: Formulas and Tables Electronic Code of Federal Regulations (31 CFR Part 356) Treasury prices notes and bonds per 100 of face value, with the yield to maturity as a nominal annual rate based on semiannual payments, discounting by 1 ÷ (1 + i/2) per half-year; a semiannual interest payment is half a year’s interest.
  4. Principles of Finance, 8.4 Stated versus Effective Rates OpenStax (Rice University) The effective annual rate is (1 + periodic rate) raised to the number of periods in a year, minus 1, and is higher than the stated rate when compounding happens more than once a year.
  5. Understanding Bond Yield and Return FINRA Price and yield move in opposite directions; current yield is the coupon divided by the market price; a price of 103 means 103% of face value; yield to maturity is the discount rate that makes the future payments equal the price, assumes payments on time and reinvested, and ignores taxes and brokerage costs; yield to call uses the call date and call price.
  6. Brush Up on Bonds: Interest Rate Changes and Duration FINRA For each 1 percentage-point change in rates a bond’s price moves the other way by about its duration in percent; a higher coupon means a lower duration and a longer maturity a higher one; rate changes matter little to a holder who keeps the bond to maturity.
  7. Comptroller’s Handbook: Interest Rate Risk (glossary) Office of the Comptroller of the Currency Macaulay duration is the weighted average time until the cash flows are received; modified duration is the approximate percentage price change for a 100-basis-point change in yield when the cash flows don’t change; convexity is how fast duration changes as rates change.
  8. Principles of Finance, 10.4 Risks of Interest Rates and Default OpenStax (Rice University) Investors who doubt an issuer will meet its payments demand a higher yield; bond values fall when interest rates rise; callable bonds may be redeemed before maturity.
  9. About Treasury Marketable Securities U.S. Department of the Treasury, TreasuryDirect U.S. savings bonds are non-marketable; they can’t be sold or transferred to someone else.