Bond Yield to Maturity (YTM) Calculator

Calculate a bond's yield to maturity, current yield and duration from its price, coupon and maturity.

Updated · Free · Runs in your browser

US$
US$
%
years
Yield to maturity —
Current yield —
Effective annual yield —
Approximate YTM (shortcut formula) —
Annual coupon income —
Macaulay duration —
Modified duration —
Total coupons to maturity —
Gain/loss at maturity —
    Was this calculator helpful?

    The formula

    Price = Σ C ÷ (1 + y)ᵗ + F ÷ (1 + y)ⁿ, for t = 1 to n
    C = face × coupon rate ÷ f, n = years × f, y = periodic yield
    Solve for y numerically; YTM (annual) = y × f
    
    Current yield = annual coupon ÷ price
    Approximate YTM = (annual coupon + (F − P) ÷ years) ÷ ((F + P) ÷ 2)
    Macaulay duration = Σ t·PV(cash flowₜ) ÷ price (in years);  modified = Macaulay ÷ (1 + y)

    Worked example

    1. A $1,000 bond priced at $950 pays a 5% coupon semi-annually ($25 every six months) for 10 years (20 payments).
    2. Solving 950 = Σ 25 ÷ (1 + y)ᵗ + 1,000 ÷ (1 + y)²⁰ gives y = 2.831% per half-year.
    3. YTM = 2.831% × 2 = 5.662%. The effective annual yield is 1.02831² − 1 = 5.742%.
    4. Current yield = 50 ÷ 950 = 5.263%. The shortcut formula gives (50 + 50 ÷ 10) ÷ 975 = 5.641%.
    5. Macaulay duration is 7.93 years and modified duration 7.71, so a 1-point rise in yields cuts the price by about 7.7%.

    What yield to maturity means

    Yield to maturity (YTM) is the total annual return you'd earn by buying a bond at today's price and holding it until it matures, assuming every coupon is paid on time and reinvested at the same yield. It combines the coupon income with any gain or loss as the price moves to face value at maturity. That makes it the standard way to compare bonds with different coupons, prices and maturities. It's the internal rate of return of the bond's cash flows.

    Price and yield move in opposite directions

    When market interest rates rise, existing bonds with lower coupons become less attractive, so their prices fall until their yield matches the market. When rates fall, prices rise. A bond priced below face value, at a discount, has a YTM above its coupon rate, as in the example; a bond above face value, at a premium, has a YTM below the coupon. At par, YTM equals the coupon rate.

    Current yield vs YTM

    Current yield is simply the annual coupon divided by the price. It ignores the gain or loss at maturity, so it understates the return on discount bonds and overstates it on premium bonds. YTM accounts for both. The approximate YTM formula is a quick shortcut you can do by hand, accurate to within a few hundredths of a percent for bonds near par, but less accurate for long or deeply discounted bonds.

    Duration: interest-rate risk

    Macaulay duration is the weighted average time until you receive the bond's cash flows, in years. Modified duration converts that into price sensitivity: a modified duration of 7.71 means a 1-percentage-point rise in yields lowers the price by about 7.7%. Longer maturities and lower coupons mean higher duration and more rate risk. Zero-coupon bonds have duration equal to their maturity. Investors who expect rates to rise often prefer shorter durations.

    Coupon frequency and quoting conventions

    US Treasuries and most corporate bonds pay semi-annually, and their YTM is quoted as a bond-equivalent yield: the semi-annual rate times two. The calculator also shows the effective annual yield, which compounds the periodic rate and is higher. UK gilts also pay semi-annually, while many European bonds pay annually. For bonds bought between coupon dates, the market price excludes accrued interest. Enter the clean price for the most accurate YTM.

    Other risks YTM doesn't show

    YTM assumes the issuer pays in full. Corporate bonds carry credit risk, so higher-yielding bonds usually reflect a higher chance of default. Callable bonds can be redeemed early, so look at the yield to call too. Inflation erodes the real value of fixed coupons. Inflation-linked bonds such as US TIPS and UK index-linked gilts address that. And the reinvestment assumption rarely holds exactly, because rates change.

    Comparing with other investments

    Use the YTM to compare a bond with a CD or savings account, after considering tax: US Treasury interest is exempt from state tax, and municipal bonds are often federally tax-free. For valuing companies rather than bonds, the DCF calculator applies the same discounting idea to future cash flows. Remember that a bond fund has no maturity date, so its quoted yield changes as it buys and sells bonds.

    Frequently asked questions

    How do I calculate yield to maturity?
    YTM is the discount rate that makes the present value of all coupon payments plus the face value equal to the bond's price. It must be solved numerically; this calculator does it automatically.
    What is the difference between coupon rate and YTM?
    The coupon rate is fixed when the bond is issued and is based on face value. YTM reflects the price you pay today, so it changes with the market.
    Why does a bond's price fall when interest rates rise?
    Its fixed coupons become less attractive than new bonds paying higher rates, so the price falls until its yield matches the market.
    What is a good yield to maturity?
    It depends on the bond's credit quality, maturity and current interest rates. Higher yields usually mean more risk. Compare similar bonds rather than using a fixed target.
    What does duration tell me about a bond?
    How sensitive its price is to interest rate changes. A modified duration of 7.7 means about a 7.7% price change for each 1-point change in yields.

    ↑↓ to navigate · Enter to open