Investing & Retirement Bonds & Fixed Income Bond-equivalent yield (semiannual compounding convention)

Bond Yield to Maturity (YTM) Calculator

Yield to maturity is the single discount rate that makes a bond's remaining cash flows worth exactly what you paid for it — the internal rate of return on holding it to redemption. There is no closed-form solution, so this calculator solves for it numerically from the price, coupon, face value and remaining term you enter. It reports the yield on the market's own convention (the nominal bond-equivalent yield), converts it to an effective annual rate, and shows the current yield and the textbook approximation beside it so you can see how far each shortcut is off.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Market price (clean)The quoted price excluding accrued interest. For a bond quoted at 95, enter 950 against a $1,000 face value.950 $
Face (par) valueThe amount repaid at maturity — $1,000 for most US corporates and munis, $100 if you are working in points.1000 $
Annual coupon rateThe stated rate on the bond, as an annual percentage of face value. Enter 0 for a zero-coupon bond.5 %
Years to maturityTime from the last coupon date to redemption; the calculator converts it to whole remaining coupon periods.10 yr
Coupon frequencyUS Treasuries, corporates and munis pay semiannually, which is what makes the quoted yield a bond-equivalent yield.Semiannual (2 per year)

It returns

  • Yield to maturity (nominal, bond-equivalent) — Periodic IRR multiplied by the coupon frequency — the market's quoting convention.
  • Effective annual yield — The same return compounded, so it is comparable to an annually compounded rate.
  • Current yield — Annual coupon divided by price — income only, ignoring the pull to par.
  • Approximate YTM (textbook shortcut)
  • Capital gain (+) or loss (−) at maturity — Face value minus the price you pay, realised over the remaining life.

The formula

P=k=1NC/m(1+i)k+F(1+i)N,YTM=im
YTMC+FPnF+P2
EAY=(1+i)m1

In plain text: Solve for i: P = Σ(k=1..N) (C/m)/(1 + i)^k + F/(1 + i)^N, then YTM = i × m

  • PClean market price on a coupon date ($)
  • iPeriodic yield — the unknown solved for numerically (decimal)
  • CAnnual coupon in currency: face value × coupon rate ($)
  • mCoupon payments per year (per year)
  • NWhole coupon periods remaining: years × m (periods)
  • FFace value repaid at maturity ($)

The equation is a polynomial of degree N in (1 + i) and has no algebraic solution for N above 4, so the calculator brackets the root and bisects. Because all cash flows are positive and the price is positive, the root is unique.

Updated Category Bonds & Fixed Income Verified against published test cases Reading time 12 min

What yield to maturity measures

Yield to maturity is the internal rate of return on a bond bought today and held to redemption. It is the one discount rate at which the present value of every remaining coupon plus the face value equals the price you actually pay. Quote a bond's price and its YTM and you have said the same thing twice — the market moves fluidly between the two because they are algebraically linked.

The reason YTM dominates fixed-income conversation is that it is comparable. A 4% coupon bond at 88 and a 7% coupon bond at 106 are not obviously rankable, but their yields are on the same scale immediately. That comparability is why bond traders talk in yields and settle in prices.

YTM captures both sources of return: the coupon income you collect along the way, and the capital gain or loss you book when a bond bought away from par is redeemed at par. The current yield sees only the first of those, which is why it is a poor guide to a deeply discounted bond. If you already know the yield and want the price, run the calculation the other way with the bond price calculator.

Why there is no formula, only a solver

Rearranging the pricing equation to isolate i is impossible for any realistic bond. Substituting x = 1 + i turns it into a polynomial of degree N, and the Abel–Ruffini theorem says polynomials of degree five or higher have no general solution in radicals. A ten-year semiannual bond has N = 20. So every yield you have ever seen on a screen was found by iteration.

The good news is that the iteration is exceptionally well behaved. Price is a strictly decreasing function of yield whenever all the cash flows are positive, so there is exactly one root and no ambiguity of the kind that plagues internal rate of return on projects with sign changes. This calculator brackets the root between a periodic yield of −90% and +500% and bisects until it converges, widening the upper end of the bracket if a price low enough to imply a yield above 500% per period needs it — slower than Newton–Raphson, but it cannot diverge or land on the wrong root. If you are computing an IRR on an irregular cash-flow stream instead, where multiple roots are a genuine hazard, use the money-weighted return calculator.

Two yields, one bond. The solver returns a periodic yield — the return per coupon period. Multiplying it by the number of periods per year gives the nominal bond-equivalent yield, which is the market convention and the number quoted everywhere. Compounding it instead gives the effective annual yield. A 5% semiannual periodic yield is a 10.00% BEY and a 10.25% effective annual yield. Both appear as outputs above; use BEY to compare bonds with each other and the effective rate to compare a bond against an annually compounded instrument such as a certificate of deposit.

Worked example: an 8% bond bought at 87.538

You buy a $1,000 face bond with an 8% semiannual coupon, ten years to run, at a clean price of $875.38. Each half-year pays $40, and there are N = 20 periods left.

  1. Start with the shortcut. The approximation is [C + (FP)/n] ÷ [(F + P)/2] = [80 + (1000 − 875.38)/10] ÷ [(1000 + 875.38)/2] = 92.462 ÷ 937.69 = 9.86%. That is your opening bracket, not your answer.
  2. Try 9% (i = 4.5%). 1.04520 = 2.411714, so the discount factor is 0.414642. Coupons: 40 × (1 − 0.414642) ÷ 0.045 = 40 × 13.007956 = $520.32. Principal: $414.64. Price = $934.96 — too high, so the true yield is above 9%.
  3. Try 11% (i = 5.5%). 1.05520 = 2.917757, discount factor 0.342729. Coupons: 40 × 11.950382 = $478.015. Principal: $342.729. Price = $820.74 — too low, so the yield is below 11%.
  4. Interpolate. (934.96 − 875.38) ÷ (934.96 − 820.74) = 59.58 ÷ 114.22 = 0.5216, giving i ≈ 4.5% + 0.5216 × 1.0% = 5.02%, a BEY of about 10.04%. Linear interpolation across a convex curve overshoots slightly.
  5. Try 10% (i = 5%). 1.0520 = 2.653298, discount factor 0.376889. Coupons: 40 × 12.462210 = $498.49. Principal: $376.89. Price = $875.38 — an exact match, so the yield to maturity is 10.00%.
  6. Convert and cross-check. Effective annual yield = 1.05² − 1 = 10.25%. Current yield = $80 ÷ $875.38 = 9.14%. Capital gain at maturity = $1,000 − $875.38 = $124.62.

Notice the ordering: the 8% coupon rate is below the 9.14% current yield, which is below the 10.00% yield to maturity. That ladder is the signature of a discount bond, and it inverts exactly when the price crosses par.

How to read the yield you get

Compare the yield to the coupon rate first. Above the coupon rate means you bought at a discount and part of your return is the accretion to par; below it means you paid a premium that will be amortised away. The gap between the two also tells you roughly how far rates have moved since issue, since most bonds are priced near par when they are sold.

Next, compare the yield to a Treasury of the same maturity. The difference is the credit spread, and it is the only part of the yield that pays you for taking risk. A 9% yield on a single-B corporate when Treasuries yield 4% is a 500 basis point spread; the same 9% when Treasuries yield 8% is a much thinner cushion. On municipal bonds, do this comparison only after grossing the yield up with the tax-equivalent yield calculator, because a tax-exempt 3.5% is not a taxable 3.5%.

Then check whether the yield is achievable. YTM assumes you hold to maturity, that the issuer pays in full, and that every coupon is reinvested at the yield itself until redemption. That last assumption is the one that most often fails. If you receive $40 twice a year for ten years and can only reinvest at 4% while the bond's YTM is 10%, your realised compound return over the holding period will be below 10%. The assumption bites hardest on high-coupon, long-maturity bonds, where reinvested coupons are a large share of the terminal value, and not at all on a zero-coupon bond, which has no coupons to reinvest and therefore delivers its quoted yield with certainty if held to maturity.

Finally, if the bond is callable, treat the YTM as a ceiling rather than an expectation. Issuers call bonds when refinancing is cheap, which is precisely when you would rather they did not. Run the yield to call calculator for every call date and quote the lowest of those and the YTM — the yield to worst.

Yield, current yield and the shortcut across prices

A 5% coupon bond paying semiannually with ten years to maturity, at a range of clean prices per $100 of par.
Clean priceYield to maturityCurrent yieldApproximate YTM
117.173.00%4.27%3.02%
108.184.00%4.62%4.02%
100.005.00%5.00%5.00%
92.566.00%5.40%5.97%
85.797.00%5.83%6.91%
79.618.00%6.28%7.84%

Away from par, current yield always sits between the 5% coupon rate and the yield to maturity; at par all three collapse to the same number. In this table the shortcut overstates the yield on the premium prices and understates it on the discounts, and its error widens the further the price is from par — 3 basis points at 92.56, 9 at 85.79 and 16 at 79.61.

Bond-equivalent yield is a convention, not a compounding rule

A quoted 6% semiannual yield does not mean 6% a year compounded. It means 3% every six months, which compounds to 6.09%. The convention exists so that Treasuries, corporates and municipals — nearly all of which pay semiannually — can be compared without conversion. It becomes a trap the moment you compare a bond against something quoted differently: an annually compounded eurobond yield, a certificate of deposit's APY, or a money-market instrument on a discount basis. Convert everything to the effective annual yield before you compare across instrument types.

Assumptions and limits you should know about

  • Reinvestment at the yield. YTM is an internal rate of return, and every IRR implicitly assumes intermediate cash flows earn the IRR. Realised return differs whenever reinvestment rates differ from the yield.
  • No default and no restructuring. Every promised payment is treated as certain. On distressed credit, quoted yields describe the promise, not the expectation.
  • No call, put or sinking fund. This calculator prices to the stated maturity. Bonds with embedded options need yield to worst, and proper valuation needs an option model.
  • A coupon-date price. The calculation assumes a whole number of coupon periods remain. Between coupon dates the market solves the same equation with a fractional first period against the dirty price, which is a different equation and returns a slightly different yield. Price a bond on its coupon date and the two agree exactly; the gap widens with the fraction of the period elapsed.
  • Pre-tax. Coupon income and accreted discount are generally taxed differently, and US market discount rules can convert part of a discount bond's gain into ordinary income. After-tax yield can rank two bonds differently from pre-tax yield.
  • Nothing about interest-rate risk. Yield tells you what you earn if nothing changes. It says nothing about what happens to the price if rates move — for that you need the duration of the bond.

Where YTM sits among the other yield measures

Each yield measure answers a narrower or wider question, and they are worth keeping straight. Coupon rate answers only what the issuer pays relative to face value; it is fixed at issue and tells you nothing about your return. Current yield answers what income you collect per dollar invested this year, which matters if you are living off the coupons but ignores the pull to par entirely. Yield to maturity answers what you earn per year if you hold to redemption and reinvest at the same rate. Yield to worst answers the same question under the least favourable redemption the issuer can force on you. Realised compound yield answers what you actually earned, computed after the fact with the reinvestment rates that really occurred.

Professional analysis goes one step further and abandons a single yield altogether. A bond's arbitrage-free value discounts each cash flow at the spot rate for its own date, and the difference between the market price and that value is expressed as a zero-volatility spread — the parallel shift you must add to the whole spot curve to reproduce the price. For bonds with embedded options, the option-adjusted spread removes the value of the option before comparing. Both are refinements of the same idea this calculator implements: find the rate that makes the arithmetic balance, then interpret the rate.

For most decisions, YTM plus a duration figure is enough. YTM tells you what the bond pays if you are right about holding it; duration tells you what it costs if you are wrong.

Frequently asked questions

Why is my calculated YTM slightly different from the yield my broker shows?

Almost always because of settlement dating. Your broker solves for the yield against the dirty price with a fractional first coupon period measured from the actual settlement date, while this calculator assumes a whole number of periods remain from the last coupon date. Enter a price on a coupon date and the two agree; the further into the coupon period settlement falls, the further they drift apart. Larger gaps normally mean the broker is quoting yield to worst on a callable bond, or is using a different day-count convention.

Is a higher yield to maturity always better?

No — a higher yield is compensation for something. Extra yield comes from credit risk, from longer maturity, from illiquidity, or from an embedded call that works against you. A 12% yield on a stressed high-yield bond and a 4% yield on a Treasury can carry the same expected return once you account for the probability of default. Compare yields only across bonds of similar credit quality and maturity, and look at the spread over Treasuries rather than the absolute number.

What is the difference between yield to maturity and current yield?

Current yield is the annual coupon divided by the price, and it counts income only. Yield to maturity also counts the gain or loss from buying away from par and holding to redemption. For a bond bought at exactly par the two are equal. Below par, YTM is higher than current yield; above par, it is lower. On a zero-coupon bond, current yield is zero while YTM is the entire return.

How do I calculate YTM in a spreadsheet?

Use the YIELD function with actual settlement and maturity dates, which handles day counts and part-periods properly, or RATE if you only have period counts. RATE(20, 40, -875.38, 1000) returns the periodic yield of 5%; multiply by two for the 10% bond-equivalent yield. Both need the price entered as a negative number, or the coupon and redemption entered as negatives, because they solve a cash-flow equation rather than a valuation.

What is a normal yield to maturity right now?

There is no fixed answer, because yields track the Treasury curve. The useful benchmark is not the level but the spread: investment-grade corporates typically trade at a modest spread over the Treasury of the same maturity, high-yield issuers at a much wider one, and municipals below Treasuries on a pre-tax basis because their coupons are generally federally tax-exempt. Look up the current Treasury par yield curve for your maturity and read your bond's yield as that plus a spread.

Can yield to maturity be negative?

Yes, when the price exceeds the undiscounted sum of the remaining coupons and principal. This calculator solves for periodic yields down to −90% and will report a negative result with a warning. It is not a theoretical curiosity: several European and Japanese government bonds traded at negative yields through the 2010s, where buyers accepted a certain small loss in exchange for safety and liquidity.

Why does the approximation formula exist if it is not exact?

It was designed to be done on paper, and it is still the fastest way to get a starting bracket for the iteration. It averages the annual coupon with a straight-line amortisation of the discount or premium, then divides by the average of the price and face value. Near par it is accurate to a few basis points; far from par the error grows, as the reference table above shows. Use it as a sanity check on a solver result, never as the answer.

Does yield to maturity account for taxes or transaction costs?

No. The figure here is a pre-tax, pre-cost yield on the clean price you enter. To approximate an after-cost yield, add commissions and any dealer markup to your purchase price before entering it — a markup raises the price and therefore lowers the yield. Taxes are harder, because coupon income, accreted market discount and capital gains are treated differently, and the treatment depends on your jurisdiction and on whether the bond was originally issued at a discount.

What happens to my yield if I sell before maturity?

You realise a different return entirely, because the redemption at par is replaced by whatever the market pays you. If yields have fallen, you sell above your entry price and beat the YTM; if they have risen, you sell below and fall short. The shorter your holding period relative to the bond's duration, the more your outcome is driven by price movement rather than by the yield you locked in at purchase.

References