Yield to Maturity Calculator
A Yield to Maturity Calculator works out the total return on a bond bought at today’s market price. The coupon rate alone doesn’t tell you what you’ll earn — if you pay less than face value, the gain at maturity adds to your return; if you pay more, it takes away from it.
Enter the bond’s face value, coupon rate, current price, years to maturity and how often coupons are paid below to work out the yield to maturity (YTM), the current yield and the capital-gains yield — the three numbers that together describe a bond’s return.
Yield to maturity (YTM): 5.67%
Current yield: 5.26%
Capital-gains yield: 0.41%
Annual coupon payment: $50
Total coupon income: $500
Capital gain/loss at maturity: $50
Effective annual rate: 5.67%

Formula
Price = coupon × (1 − (1+r)^−n) ÷ r + face ÷ (1+r)^n — solve for r (the YTM)
- Per period: coupon per period = (coupon rate × face) ÷ payments per year; n = years × payments per year; r is the per-period yield. Annual YTM is r × payments per year (bond-equivalent yield).
- Current yield = annual coupon ÷ current price. It ignores the pull to par, so it understates the return on a discount bond and overstates it on a premium bond.
- Capital-gains yield = YTM − current yield. It is the annualised gain (or loss) from the price moving to face value at maturity.
- YTM has no closed-form solution — the widget solves it by iteration (see solver note below). A quick hand estimate is YTM ≈ [coupon + (face − price) ÷ years] ÷ [(face + price) ÷ 2] — here 5.64%, about 3 basis points below the exact 5.67%.
- YTM assumes you hold to maturity, the issuer pays in full, and every coupon is reinvested at the same yield. It is a promised yield, not a guaranteed one.
Solver note: the widget finds r with Newton–Raphson iteration, starting from the approximation-formula estimate divided by the payments per year and stopping when the step is smaller than 1e-12 (at most 100 iterations), with a bisection fallback on the per-period bracket [0.000001, 1.0] if Newton leaves the bracket or fails to converge.
Worked Example
$1,000 face value, 5% annual coupon, current price $950, 10 years to maturity, annual payments.
- Annual coupon: 5% × $1,000 = $50/yr; total coupons over 10 years $500; capital gain at maturity $1,000 − $950 = $50.
- Solve $950 = $50 × (1 − (1+r)^−10)/r + $1,000/(1+r)^10 → r = 5.67% YTM.
- Current yield: $50 ÷ $950 = 5.26%.
- Capital-gains yield: 5.67% − 5.26% = 0.41%/yr.
Answer: 5.67% yield to maturity — 5.26% current yield plus 0.41% a year of capital gain.
With semiannual coupons the same bond pays $25 every 6 months (20 periods): the YTM is 5.66% (bond-equivalent yield; 2.8308% per half-year), the effective annual rate is 5.74%, and the current yield is still 5.26%. A premium bond cross-check — $1,000 face, 6% coupon, price $1,050, 5 years, annual — gives a YTM of 4.85%, a current yield of 5.71% and a capital-gains yield of −0.86%.
YTM by Price
The table uses a $1,000 face value, 5% coupon and 10 years to maturity with annual payments. As the price falls below par, the yield rises above the coupon rate — and the reverse above par.
| Price | YTM | Current yield | Capital-gains yield |
|---|---|---|---|
| $900 | 6.38% | 5.56% | 0.83% |
| $950 | 5.67% | 5.26% | 0.41% |
| $1,000 (par) | 5.00% | 5.00% | 0.00% |
| $1,050 | 4.37% | 4.76% | −0.39% |
| $1,100 | 3.78% | 4.55% | −0.76% |
Frequently Asked Questions
The total annual return you earn if you buy a bond at today's price, collect every coupon on schedule, and hold it until the face value is repaid — assuming coupons are reinvested at the same yield. It is the bond's internal rate of return.
Because you also pocket the difference between the price you paid and the face value you receive at maturity. A $1,000 bond bought for $950 with a 5% coupon yields 5.67% — the extra 0.67 points are the $50 gain spread over 10 years.
Current yield is just annual coupon ÷ price (5.26% here) — it ignores the gain or loss at maturity. YTM counts everything: coupons, the repayment of face value, and timing. On a premium bond, current yield overstates the true return.
Slightly. The same bond paying $25 twice a year instead of $50 once a year has a YTM of 5.66% (bond-equivalent yield) versus 5.67% annual — because coupons arrive sooner and can be reinvested sooner. US Treasuries and most corporate bonds pay semiannually.
More Calculators
- UK Income Tax Calculator
- UK Stamp Duty Calculator
- UK Pension Calculator
- UK Capital Gains Tax Calculator
- Canada Income Tax Calculator
- Social Security Calculator
- FIRE Calculator
- RESP Calculator
- Annuity Payout Calculator
- Compound Interest Calculator
- Dividend Calculator
- HSA Calculator
- APR Calculator