What is a yield to maturity calculator?
A yield to maturity calculator is a free online tool that finds the total annual return an investor earns by buying a bond today and holding it until it matures. That return — the yield to maturity, or YTM — bundles together everything the bond pays you: each coupon payment along the way and the difference between the price you pay now and the face value you receive at the end. Because it captures all of those cash flows in a single annualised rate, YTM is the standard way to compare bonds that have different prices, coupons, and maturities.
Why yield to maturity matters
A bond’s stated coupon rate only tells you the periodic interest payment relative to face value; it says nothing about what you actually earn if you buy the bond at a market price that differs from par. When a bond trades at a discount (below face value), part of your return comes from the price climbing back to par at maturity, so the YTM is higher than the coupon rate. When a bond trades at a premium (above face value), the opposite happens and the YTM is lower than the coupon rate. YTM folds both effects into one number, which is why it is the figure quoted when professionals talk about a bond’s return.
How does the yield to maturity calculator work?
You provide five pieces of information:
- The face (par) value of the bond — the amount repaid at maturity.
- The current market price of the bond.
- The annual coupon rate (or, if you prefer, the fixed annual coupon payment in currency).
- The number of years until the bond matures.
- The coupon frequency (annual, semi-annual, quarterly, or monthly).
The calculator then finds the single discount rate that makes the present value of all future coupons plus the final principal repayment equal to today’s price. There is no algebraic shortcut for this rate, so the tool solves the equation numerically by repeatedly narrowing in on the answer. It also reports a closed-form approximation, which is handy as a quick sanity check.
Formula
The price of a bond is the present value of every future cash flow discounted at the yield to maturity. With coupons paid m times per year, the per-period rate is the annual yield divided by m, and the number of periods is the years to maturity times m:
Where:
- is the current bond price.
- is the annual coupon payment (coupon rate times face value).
- is the face (par) value.
- is the annual yield to maturity (the value being solved for).
- is the number of coupon payments per year.
- is the total number of coupon periods, equal to the years to maturity times .
Because appears inside every denominator, the equation cannot be rearranged to isolate it; the calculator solves it by numerical iteration. A widely used closed-form approximation is:
Where is the years to maturity. This estimate is exact when the bond trades at par and drifts slightly for deep-discount or premium bonds.
Examples of use
-
A 10-year bond with annual coupons (omnicalculator’s Bond A):
- Face value = 1000
- Current price = 980
- Annual coupon rate = 5%, so the annual coupon = 50
- Years to maturity = 10, paid annually ( = 1)
Solving gives a yield to maturity of about 5.2623%. The approximation gives — very close.
-
A 5-year bond with semi-annual coupons:
- Face value = 1000
- Current price = 950
- Annual coupon rate = 6%, so the annual coupon = 60 (30 every six months)
- Years to maturity = 5, paid twice a year ( = 2, so = 10 periods)
Solving for the annual yield gives a YTM of about 7.2087%.
-
A bond that trades exactly at par:
- Face value = 1000, price = 1000, coupon rate = 5%, 10 years
When price equals face value, the yield to maturity equals the coupon rate exactly: 5%.
Notes
Yield to maturity assumes you hold the bond until it matures and that every coupon is reinvested at the same rate — assumptions that rarely hold perfectly in practice, so the realised return can differ. YTM also ignores taxes and transaction costs. For bonds that can be redeemed early by the issuer, the more conservative figure is the yield to call, which discounts cash flows only up to the call date. Despite these caveats, YTM remains the most useful single number for comparing fixed-income investments on an apples-to-apples basis.
FAQs
Why is YTM higher than the coupon rate for a discount bond?
When you buy a bond below its face value, you collect the coupons and also pocket the gain as the price rises to par at maturity. That extra capital gain lifts your total return above the coupon rate, so the YTM is higher.
Can the yield to maturity be solved with a formula?
Not exactly. The yield appears in the denominator of every discounted cash flow, so the pricing equation cannot be rearranged to isolate it. It is found by numerical iteration, although the closed-form approximation above gives a fast, reasonably accurate estimate.
How does coupon frequency affect the result?
Coupon frequency sets how many times a year interest is paid and discounted. The calculator converts the annual yield into a per-period rate and counts the periods accordingly, so a bond paying semi-annually is handled differently from one paying annually even with the same coupon rate.