User Rating 0.0 β˜…β˜…β˜…β˜…β˜…
Total Usage 0 times
Par / nominal value
0 for zero-coupon bonds
Current trading price (clean)
Remaining years (decimals OK)
Payment periods per year
Used for annualization reference
Is this tool helpful?

Your feedback helps us improve.

β˜… β˜… β˜… β˜… β˜…

About

Yield to maturity (YTM) is the internal rate of return earned by an investor who buys a bond at the current market price P and holds it until maturity, assuming all coupon payments are reinvested at the same rate. The bond pricing equation is transcendental in r and has no closed-form solution. This calculator applies Newton-Raphson iteration with a convergence tolerance of 1Γ—10βˆ’10 to solve for the exact yield. An incorrect yield estimate can misrepresent a bond’s risk-adjusted return by dozens of basis points, leading to mispriced portfolios and failed duration matching strategies. The tool also computes Macaulay duration, modified duration, and convexity - the three quantities required for immunization and hedging under parallel yield curve shifts.

This calculator assumes a flat yield curve and deterministic cash flows. It does not account for embedded options (callable/putable bonds), credit spread changes, or accrued interest between coupon dates. For zero-coupon bonds, set the coupon rate to 0. Results use the selected day count convention for annualization. Pro tip: compare the computed YTM against the current yield (CY) to gauge the premium/discount amortization effect over the remaining life.

bond yield YTM calculator yield to maturity bond valuation fixed income duration convexity coupon bond

Formulas

The price of a coupon-bearing bond with n total coupon periods remaining is the present value of all future cash flows discounted at the periodic yield r:

P = nβˆ‘t=1 C(1 + r)t + F(1 + r)n

Where P = market price, C = periodic coupon payment (F Γ— coupon rate Γ· frequency), F = face (par) value, r = periodic yield, n = total number of coupon periods, t = period index. The annualized YTM equals r Γ— k, where k is the coupon frequency per year.

The Newton-Raphson iteration solves f(r) = 0 where f(r) = Pcalc βˆ’ Pmarket. The update rule is:

ri+1 = ri βˆ’ f(ri)fβ€²(ri)

Macaulay Duration measures the weighted average time to receive cash flows:

Dmac = nβˆ‘t=1 t β‹… CFt(1 + r)tP

Modified Duration: Dmod = Dmac(1 + r). Convexity: Cx = 1P β‹… (1 + r)2 nβˆ‘t=1 t(t + 1) β‹… CFt(1 + r)t.

Current Yield: CY = Annual CouponP. The approximate YTM used as the Newton-Raphson seed: YTMapprox Cannual + F βˆ’ PnF + P2.

Reference Data

Bond TypeTypical CouponFrequencyDay CountYTM Range (2024)Duration Range
US Treasury 2-Year4.25%Semi-AnnualACT/ACT4.0 - 5.0%1.8 - 2.0yr
US Treasury 10-Year4.00%Semi-AnnualACT/ACT3.8 - 4.8%7.5 - 8.5yr
US Treasury 30-Year4.25%Semi-AnnualACT/ACT4.0 - 5.0%15 - 18yr
German Bund 10-Year2.50%AnnualACT/ACT2.2 - 3.0%8.0 - 9.0yr
UK Gilt 10-Year3.75%Semi-AnnualACT/3653.5 - 4.5%7.8 - 8.8yr
Japanese JGB 10-Year0.80%Semi-AnnualACT/3650.5 - 1.2%9.0 - 9.8yr
Investment Grade Corporate5.00%Semi-Annual30/3604.5 - 6.5%5 - 12yr
High Yield Corporate7.00%Semi-Annual30/3606.0 - 10.0%3 - 7yr
Municipal Bond (US)3.50%Semi-Annual30/3603.0 - 4.5%5 - 15yr
Zero-Coupon Treasury0.00%N/AACT/ACT4.0 - 5.0%Equals maturity
Emerging Market Sovereign6.50%Semi-Annual30/3605.5 - 9.0%5 - 10yr
Australian Gov Bond 10-Year3.25%Semi-AnnualACT/ACT3.5 - 4.8%7.5 - 8.8yr
Canadian Gov Bond 10-Year3.00%Semi-AnnualACT/3653.0 - 4.2%7.8 - 9.0yr
Swiss Confederation Bond1.50%AnnualACT/ACT0.5 - 1.5%8.5 - 9.5yr
Inflation-Linked (TIPS)1.50% (real)Semi-AnnualACT/ACT1.5 - 2.5% (real)7 - 9yr

Frequently Asked Questions

The coupon rate is fixed at issuance and applies to the face value. YTM accounts for the difference between the market price and face value, amortized over the remaining life. When a bond trades at a discount (P < F), YTM exceeds the coupon rate because the investor captures both coupon income and capital appreciation. At a premium (P > F), YTM falls below the coupon rate due to the capital loss at maturity.
Higher compounding frequency increases the effective annual yield. A bond with a 6% nominal yield compounded semi-annually has an effective annual yield of (1 + 0.03)Β² βˆ’ 1 = 6.09%. This calculator reports the nominal (bond-equivalent) yield by convention. To compare bonds with different frequencies, convert to effective annual yield using the formula: EAY = (1 + r/k)^k βˆ’ 1.
Non-convergence occurs in rare edge cases: when the initial guess is far from the solution, when the price implies a negative yield, or when the bond is deeply distressed. The calculator uses the traditional approximation formula as the initial seed to ensure a good starting point and limits iterations to 1000. If convergence is not achieved within tolerance, a warning is displayed with the best estimate found.
Macaulay Duration (in years) represents the weighted-average time until cash flows arrive. It is used primarily for immunization - matching asset and liability durations. Modified Duration measures price sensitivity: a modified duration of 7.5 means a 1% (100 bps) yield increase causes approximately a 7.5% price decline. For hedging interest rate risk, modified duration is the primary metric. Convexity provides the second-order correction for large yield changes.
Yes. Set the coupon rate to 0%. For a zero-coupon bond, YTM simplifies to (F/P)^(1/n) βˆ’ 1 annualized, and Macaulay Duration equals the time to maturity exactly. The Newton-Raphson iteration still converges correctly, but the closed-form is also verified internally as a consistency check.
Duration provides a linear approximation of price change for small yield shifts. For larger moves (>50 bps), the actual price-yield relationship is curved. Convexity captures this curvature. The corrected price change estimate is: Ξ”P/P β‰ˆ βˆ’D_mod Γ— Ξ”y + 0.5 Γ— Convexity Γ— (Ξ”y)Β². Bonds with higher convexity outperform in both rallies and sell-offs, making convexity a valuable attribute in portfolio construction.