Bond Yield to Maturity Calculator
Calculate bond YTM, current yield, Macaulay duration, modified duration, and convexity using Newton-Raphson iteration. Supports all coupon frequencies.
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.
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:
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:
Macaulay Duration measures the weighted average time to receive cash flows:
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 Type | Typical Coupon | Frequency | Day Count | YTM Range (2024) | Duration Range |
|---|---|---|---|---|---|
| US Treasury 2-Year | 4.25% | Semi-Annual | ACT/ACT | 4.0 - 5.0% | 1.8 - 2.0yr |
| US Treasury 10-Year | 4.00% | Semi-Annual | ACT/ACT | 3.8 - 4.8% | 7.5 - 8.5yr |
| US Treasury 30-Year | 4.25% | Semi-Annual | ACT/ACT | 4.0 - 5.0% | 15 - 18yr |
| German Bund 10-Year | 2.50% | Annual | ACT/ACT | 2.2 - 3.0% | 8.0 - 9.0yr |
| UK Gilt 10-Year | 3.75% | Semi-Annual | ACT/365 | 3.5 - 4.5% | 7.8 - 8.8yr |
| Japanese JGB 10-Year | 0.80% | Semi-Annual | ACT/365 | 0.5 - 1.2% | 9.0 - 9.8yr |
| Investment Grade Corporate | 5.00% | Semi-Annual | 30/360 | 4.5 - 6.5% | 5 - 12yr |
| High Yield Corporate | 7.00% | Semi-Annual | 30/360 | 6.0 - 10.0% | 3 - 7yr |
| Municipal Bond (US) | 3.50% | Semi-Annual | 30/360 | 3.0 - 4.5% | 5 - 15yr |
| Zero-Coupon Treasury | 0.00% | N/A | ACT/ACT | 4.0 - 5.0% | Equals maturity |
| Emerging Market Sovereign | 6.50% | Semi-Annual | 30/360 | 5.5 - 9.0% | 5 - 10yr |
| Australian Gov Bond 10-Year | 3.25% | Semi-Annual | ACT/ACT | 3.5 - 4.8% | 7.5 - 8.8yr |
| Canadian Gov Bond 10-Year | 3.00% | Semi-Annual | ACT/365 | 3.0 - 4.2% | 7.8 - 9.0yr |
| Swiss Confederation Bond | 1.50% | Annual | ACT/ACT | 0.5 - 1.5% | 8.5 - 9.5yr |
| Inflation-Linked (TIPS) | 1.50% (real) | Semi-Annual | ACT/ACT | 1.5 - 2.5% (real) | 7 - 9yr |