ThisCalculator

Everyday

Yield to Maturity Formula Calculator

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

This calculator works out the yield to maturity (YTM) of a bond: you enter the bond’s current price, face value, coupon rate, years to maturity, and payment frequency, and it returns the annual yield as a percentage. It uses the standard bond pricing equation solved iteratively, since YTM has no closed-form solution. The result tells you the total return you’d earn if you held the bond to maturity, assuming all coupon payments are reinvested at the same rate.

Formula

The yield to maturity is the discount rate r that makes the present value of all future cash flows equal to the bond’s current price. The formula is:

P = C × [1 − (1 + r/n)^(−n×t)] / (r/n) + F / (1 + r/n)^(n×t)

  • P = current bond price (dollars)
  • C = coupon payment per period = (annual coupon rate × face value) / payments per year
  • F = face value (par value) paid at maturity (dollars)
  • r = annual yield to maturity (decimal, e.g., 0.05 for 5%)
  • n = number of coupon payments per year
  • t = years to maturity

Worked Example

Using the default values from the calculator:

  • Current price (P) = $950
  • Face value (F) = $1,000
  • Annual coupon rate = 5% → coupon per year = 0.05 × 1000 = $50
  • Payments per year (n) = 2 → coupon per period (C) = $25
  • Years to maturity (t) = 10 → total periods = 20

We need to find r such that:

950 = 25 × [1 − (1 + r/2)^(−20)] / (r/2) + 1000 / (1 + r/2)^(20)

Solving iteratively (trial and error) gives r ≈ 0.0553, or 5.53% annually. That’s the yield to maturity.

How Yield to Maturity Works

YTM is often called the internal rate of return of a bond. It accounts for three sources of return: the coupon payments you receive, the capital gain or loss when the bond matures (if you bought it below or above face value), and the compounding effect of reinvesting coupons. Unlike current yield (which is just annual coupon divided by price), YTM gives a complete picture of the bond’s expected return.

Because the formula is complex, investors use financial calculators, spreadsheets, or online tools. The calculator above solves the equation numerically using a standard root-finding method. The result is expressed as an annual percentage rate, compounded at the payment frequency.

When to Use YTM vs. Other Measures

Use YTM when you want to compare bonds with different prices, coupon rates, and maturities on an equal footing. It’s the most common metric for bond valuation. However, it has limitations:

  • Reinvestment assumption: YTM assumes you can reinvest every coupon at the same YTM rate, which may not hold in practice.
  • Holding to maturity: If you sell before maturity, your actual return may differ.
  • Callable bonds: For callable bonds, yield to call may be more relevant.

For short-term comparisons, current yield is simpler, but it ignores capital gains/losses. For zero-coupon bonds, YTM simplifies to the annualized return from price to face value.

Common Mistakes and Misconceptions

  • Using the annual coupon rate instead of per-period coupon: If payments are semiannual, divide the annual coupon by 2. In the example, the $50 annual coupon becomes $25 per period.
  • Mixing up periods and years: The number of periods is n×t, not just t. For a 10-year bond with semiannual payments, that’s 20 periods.
  • Forgetting that YTM is annualized: The rate you solve for is per period; multiply by n to get the annual YTM. The calculator does this automatically.
  • Thinking YTM equals the coupon rate: Only when the bond trades at par (price = face value). If price is below par, YTM > coupon rate; if above, YTM < coupon rate.

Limitations of the Formula

The standard YTM formula assumes fixed coupon payments, a fixed maturity date, and no default risk. In reality:

  • Floating-rate bonds have variable coupons, so YTM is not well-defined.
  • Callable or putable bonds require more complex models.
  • Taxes and transaction costs are ignored.
  • The reinvestment rate assumption is often unrealistic, especially in changing interest rate environments.

Despite these limitations, YTM remains the industry standard for bond return comparison. For bonds with embedded options, investors often look at yield to worst or option-adjusted spread.

How to Use the Calculator Effectively

  1. Enter the current market price of the bond (what you’d pay today).
  2. Enter the face value (usually $1,000 for corporate bonds).
  3. Enter the annual coupon rate as a percentage (e.g., 5 for 5%).
  4. Enter the years remaining until maturity.
  5. Select the payment frequency (1 for annual, 2 for semiannual, 4 for quarterly).
  6. Read the YTM as an annual percentage.

If you’re comparing bonds, make sure the payment frequencies match, or at least be aware that YTM is annualized regardless of frequency.

Frequently Asked Questions

What is the difference between YTM and current yield?

Current yield is simply the annual coupon divided by the bond’s current price. It ignores the capital gain or loss at maturity and the time value of money. YTM includes all cash flows and their timing, giving a more accurate measure of total return.

Can YTM be negative?

Yes. If a bond’s price is high enough relative to its coupon and face value, the yield can be negative. This has happened in some European and Japanese government bonds. The calculator will show a negative percentage in such cases.

Why does the calculator show a different YTM than my broker?

Brokers may use different conventions, such as day-count methods (30/360 vs. actual/actual) or include accrued interest. The calculator assumes clean pricing and exact periods. Small differences are normal.

How do I calculate YTM for a zero-coupon bond?

For a zero-coupon bond, the coupon rate is 0. The formula simplifies to P = F / (1 + r/n)^(n×t). Solve for r: r = n × [(F/P)^(1/(n×t)) − 1]. You can use the calculator with coupon rate 0.

What is the difference between YTM and yield to call?

Yield to call assumes the bond is called at the earliest call date and call price, rather than held to maturity. For callable bonds, YTC may be lower than YTM if interest rates have fallen. Investors often compare both to assess downside risk.

Does YTM include the reinvestment of coupons?

Yes, implicitly. The formula assumes each coupon is reinvested at the same YTM rate until maturity. If actual reinvestment rates differ, your realized return will differ from YTM.

Related

Formula used
in price | Current price | $ | 950 | 0
in face | Face value | $ | 1000 | 0
in coupon | Coupon rate (annual) | % | 5 | 0
in years | Years to maturity | years | 10 | 0
in freq | Payments per year | - | 2 | 0
out ytm | Yield to maturity | % | (solve) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.