Free bond yield calculator
Yield to maturity is the total return earned by holding a bond to maturity. This calculator finds YTM precisely, then reports current yield, annual coupon, premium or discount to.
How to use
- Enter the bond’s face value (typically $1,000).
- Enter the annual coupon rate as printed on the bond.
- Select the coupon payment frequency — annual, semi-annual, or quarterly.
- Enter the current market price you would pay today.
- Enter the number of years until maturity.
- Click Calculate bond yield to see YTM, current yield, duration, and price status.
The formula
Current yield:
CY = (faceValue × couponRate%) / currentPrice
Yield to maturity — solved numerically by finding r such that:
currentPrice = Σ [coupon / (1 + r)^t] + faceValue / (1 + r)^n
Where coupon is the per-period coupon payment, r is the periodic yield, and n is total periods.
Macaulay duration:
D = Σ [t × PV(CFt)] / currentPrice
Where t is expressed in years and PV(CFt) is the present value of each cash flow at the YTM.
Worked example
Face value: $1,000. Coupon rate: 5% (semi-annual). Current price: $950. Years to maturity: 10.
- Annual coupon: $50 (paid $25 every 6 months)
- Current yield: $50 / $950 = 5.26%
- YTM ≈ 5.65% (higher than coupon because buying at discount)
- Macaulay duration ≈ 7.99 years
Notes
- YTM assumes all coupon payments are reinvested at the YTM rate — in practice, reinvestment rates vary.
- This calculator models bullet bonds (single maturity date). Callable bonds, floating rate bonds, and inflation-linked bonds require additional inputs.
- The binary search used for YTM converges to 4 decimal places of precision.
Frequently asked
What is yield to maturity?
How does price relate to yield?
What is Macaulay duration?
What is current yield vs YTM?
Related calculators
- Compound interest calculator
See how any investment grows with compounding over time.
- Investment return calculator
Calculate total return, CAGR, and ending value for any investment.
- APY calculator
Convert any nominal rate to the true annual yield accounting for compounding frequency.
- Simple interest calculator
Compute interest and ending value under simple (non-compounding) interest.