Bond Yield to Maturity (YTM) Calculator
Enter your bond details to get the exact yield to maturity using Newton-Raphson iteration, plus the approximate YTM, current yield, Macaulay duration, modified duration, and a full coupon payment schedule. Supports annual, semi-annual, quarterly, and monthly coupon bonds as well as zero-coupon bonds. Results update instantly as you type.
What is yield to maturity?
Yield to maturity (YTM) is the single annualised rate of return you earn on a bond if you buy it at today's market price, collect every coupon payment on schedule, reinvest each coupon at that same rate, and hold the bond all the way to its maturity date when the issuer repays the face value. YTM captures both the ongoing income from coupons and any capital gain or loss that arises because you paid more or less than par. It is the bond equivalent of the internal rate of return (IRR), and it is the standard metric used to compare bonds across different prices, coupon rates, and maturities on a level playing field.
How this calculator works: exact vs approximate YTM
There is no closed-form algebraic solution for the exact YTM; the equation requires iterative solving. This calculator uses Newton-Raphson iteration, which starts from an initial estimate and refines it until the present value of all cash flows matches the current price to within a fraction of a cent. The approximate YTM displayed alongside it uses the Hawawini-Vora shortcut formula: (coupon per period + (face - price) / n) divided by the average of face and price, then annualised. The approximation is quick to compute by hand and is accurate to within a few basis points for most investment-grade bonds near par, but diverges for deep-discount or premium bonds and long maturities.
Macaulay duration and modified duration explained
Macaulay duration is the weighted average number of years until you receive the bond's cash flows, where each cash flow is weighted by its share of the bond's total present value. A pure 10-year zero-coupon bond has a Macaulay duration of exactly 10 years; a coupon-paying bond has a shorter duration because you receive cash earlier via coupons. Modified duration takes Macaulay duration one step further and tells you the approximate percentage change in the bond's price for a 1 percentage-point move in yield. For example, a modified duration of 7.2 years means the bond price falls roughly 7.2% when yields rise by 1%. This is the key number portfolio managers use to manage interest-rate risk.
Discount bonds, premium bonds, and the price-yield relationship
When a bond's market price is below its face value it is called a discount bond, and its YTM is higher than its stated coupon rate because you earn not only the coupons but also a capital gain when the issuer repays the full face value at maturity. When price exceeds face value the bond is a premium bond and YTM is lower than the coupon rate because the capital loss at maturity partially offsets the above-market coupon income. A bond trading exactly at par has a YTM equal to its coupon rate. The price-yield curve below the calculator shows this inverse relationship visually: as the required yield rises, the fair price of the bond falls, and vice versa. This convex shape means price falls less for a given yield rise than it rises for an equal yield drop, which is the property known as convexity.
Bond yield benchmarks
| Bond type | Typical YTM range | Risk level |
|---|---|---|
| Short-term T-Bill (< 1 yr) | 3% - 5% | Lowest |
| Investment-grade Treasury (2-10 yr) | 3.5% - 5.5% | Very low |
| Investment-grade corporate (AAA-BBB) | 4% - 7% | Low-moderate |
| High-yield / junk (BB and below) | 6% - 12%+ | High |
| Emerging market sovereign | 5% - 15%+ | Very high |
| Zero-coupon bond | Varies by maturity | Depends on issuer |
Approximate yield ranges by bond category (indicative only; actual yields vary with market conditions and credit cycle).
Frequently asked questions
What is the difference between YTM and the coupon rate?
The coupon rate is fixed when the bond is issued and determines the dollar coupon payments you receive each period. YTM is a market rate that changes every time the bond's price changes. If a bond with a 5% coupon is now trading at a discount, the YTM will be higher than 5%; if it trades at a premium, the YTM will be lower than 5%. The coupon rate tells you the income stream; YTM tells you the total annualised return if you buy at today's price and hold to maturity.
What is the difference between YTM and current yield?
Current yield is simply the annual coupon income divided by the current bond price. It ignores the capital gain or loss you will realise at maturity and does not account for the time value of money. YTM includes both the coupon income and the premium or discount to par, properly discounted over time, making it a more complete measure of return. Current yield is useful as a quick income-yield check; YTM is the right number for comparing total returns across bonds.
Why does this calculator use Newton-Raphson iteration?
The exact YTM is the interest rate that makes the present value of all future cash flows equal to the current price. That equation cannot be rearranged to give YTM directly, so a numerical method is needed. Newton-Raphson is one of the fastest converging root-finding algorithms: it starts with an initial estimate, computes the error and its derivative, and steps toward the solution. This calculator typically converges to 8 decimal places within 10 to 20 iterations, which is far more accurate than the closed-form approximation that most basic calculators use.
How do I interpret modified duration?
Modified duration is the approximate percentage price change of the bond for a 1 percentage-point (100 basis-point) parallel shift in yields. A bond with a modified duration of 6.0 years will lose roughly 6% of its price if market rates rise by 1%, or gain roughly 6% if rates fall by 1%. The approximation is slightly off for large yield moves because it ignores convexity, but it is very accurate for small changes. Longer-maturity bonds and lower-coupon bonds have higher duration and are therefore more sensitive to rate changes.
What does the price-yield chart show?
The chart plots the fair price of the bond across a range of hypothetical yields, holding coupon payments and maturity fixed. Your current inputs produce one specific point on this curve. The curve is always downward-sloping (higher yields = lower prices) and convex, meaning it bows outward. The convex shape is why a bond gains more in price when yields fall by X% than it loses when yields rise by X%.
Can I use this for zero-coupon bonds?
Yes. Enter 0 for the annual coupon rate. A zero-coupon bond pays no periodic interest; your entire return comes from buying at a discount and receiving the full face value at maturity. The YTM formula still applies: it finds the annualised rate at which the face value discounted back n years equals the purchase price, which is simply (face / price)^(1/years) - 1.
What are the limitations of YTM as a return measure?
YTM assumes you reinvest every coupon payment at the same rate as the YTM itself. If market rates fall, you will actually reinvest coupons at lower rates, and your realised return will be below the YTM at purchase. This reinvestment risk is largest for high-coupon, long-maturity bonds. YTM also assumes no default and that you hold the bond to maturity; selling early at a different price will produce a different return. Bonds with embedded call options can be called before maturity, making yield-to-call or yield-to-worst more relevant than YTM alone.