Bond Yield to Maturity Calculator Formula
Understand the math behind the bond yield to maturity calculator. Each variable explained with a worked example.
Formulas Used
Approximate YTM
approx_ytm = current_price > 0 ? ((coupon_payment + (face_value - current_price) / years_to_maturity) / ((face_value + current_price) / 2)) * 100 : 0Annual Coupon Payment
annual_coupon = coupon_paymentCurrent Yield
current_yield = current_price > 0 ? coupon_payment / current_price * 100 : 0Total Coupon Income
total_income = coupon_payment * years_to_maturityVariables
| Variable | Description | Default |
|---|---|---|
face_value | Face (Par) Value(USD) | 1000 |
current_price | Current Market Price(USD) | 950 |
coupon_rate | Annual Coupon Rate(%) | 5 |
years_to_maturity | Years to Maturity(years) | 10 |
coupon_payment | Derived value= face_value * coupon_rate / 100 | calculated |
How It Works
Bond Yield to Maturity
YTM is the total return expected on a bond held to maturity, accounting for coupon payments and any price discount or premium.
Approximate YTM Formula
YTM = [C + (F - P) / n] / [(F + P) / 2]
Where:
Premium vs Discount
Worked Example
$1,000 face value bond, $950 current price, 5% coupon, 10 years to maturity.
- 01Annual coupon = $1,000 x 5% = $50
- 02Price gain = ($1,000 - $950) / 10 = $5/year
- 03Average price = ($1,000 + $950) / 2 = $975
- 04Approx YTM = ($50 + $5) / $975 = 5.64%
Frequently Asked Questions
What is yield to maturity?
YTM is the total annualized return you would earn if you buy the bond at its current price and hold it until maturity, reinvesting all coupon payments at the same rate. It is the most comprehensive bond yield measure.
Why is approximate YTM used?
The exact YTM requires solving a complex polynomial equation iteratively. The approximation formula gives results within 0.1-0.3% of the exact value and is much simpler to calculate.
How does YTM differ from current yield?
Current yield = annual coupon / current price. It ignores the gain or loss at maturity. YTM includes both the coupon income AND the price change, giving a more complete picture.
Ready to run the numbers?
Open Bond Yield to Maturity Calculator