How it’s calculated
A bond pays a fixed coupon each period and returns its face value at maturity. Its price is the present value of those cash flows, discounted at the market yield. The yield to maturity (YTM) is the single discount rate that makes that present value equal to the price you pay, which is the return you earn if you hold to maturity and every payment is made on time.
There is no algebraic solution for j, so the calculator finds it numerically (bisection to machine precision). Example (OpenStax Principles of Finance §10.2): a 4% bond paying semiannual coupons, face value $1,000, 15 years to maturity and a 5% required yield has c = $20, n = 30 and j = 2.5%, so the price is 20 × (1 − 1.025^−30) ÷ 0.025 + 1,000 × 1.025^−30 = $895.35. Entering that price returns a 5% yield. Its current yield is 40 ÷ 895.35 = 4.47%, and the shortcut formula gives about 4.96%.
Prices move opposite to yields. A bond bought below face value (a discount) yields more than its coupon rate, and one bought above face value (a premium) yields less. The calculator excludes accrued interest, taxes, fees, call features and the risk of default.
Frequently asked questions
What is the difference between current yield and yield to maturity?
Current yield is only the annual coupon divided by the price. Yield to maturity also counts the gain or loss as the price moves to face value at maturity, and the reinvestment of coupons at the same rate.
Why do bond prices fall when yields rise?
A bond's coupons are fixed. When new bonds pay more, buyers will only pay less for your older, lower-paying bond, which pushes its price down until its yield matches the market.
Can I use this for Treasury bonds and notes?
Yes for the basic maths when you know the coupon, price and time to maturity. For exact settlement prices, day counts and accrued interest, use the issuer's or your broker's tools.
What if my bond has zero coupons?
Enter a coupon rate of 0. The yield per period is then (face ÷ price)^(1 ÷ number of periods) − 1, and the annual figure is that times the coupons per year.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Principles of Finance, §10.2 Bond Valuation — OpenStax
- Principles of Finance, §10.1 Characteristics of Bonds — OpenStax
- Bonds — U.S. Securities and Exchange Commission (Investor.gov)
- Marketable securities: Treasury notes and bonds — TreasuryDirect (U.S. Department of the Treasury)
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator