Bond Yield Calculator
Calculate bond yield to maturity, current yield, and yield to call using Newton-Raphson iteration, with price sensitivity and coupon income analysis.
Bond Details
Yield to Maturity
—
annualized yield
—
Current Yield
—
Annual Income
—
Price vs Face
—
Mod. Duration
Calculation Details
Bond Price vs Yield Curve
Price Sensitivity at Different Yields
| Yield Change | New Yield | Bond Price | Price Change |
|---|
Embed This Calculator
Copy the code and paste it into any webpage to embed this calculator.
WordPress users: add a Custom HTML block (not the Embed block) and paste the code there.
Free to use. A small "Powered by Blucalculator" credit is appreciated but not required.
How to use this calculator
Switch between three tabs depending on which yield measure you need. All tabs share the same Bond Price, Face Value, and Coupon Rate inputs.
Bond Price (Market Price). The current price you would pay to buy the bond in the market, not the face value. If a bond with $1,000 face value is trading at $950, enter 950. This is the market price that the yield calculation must be consistent with.
Face Value. The principal amount repaid at maturity. Enter 1000 for a standard bond.
Coupon Rate (%). The annual interest rate printed on the bond. A 5% coupon on a $1,000 bond pays $50/year in coupons.
Years to Maturity. How many years until the bond repays face value. Required for YTM but not needed for Current Yield.
Payment Frequency. How often coupons are paid. Semi-annual is standard in the US. Affects both the coupon cash flows and the compounding.
Yield to Call inputs. For the YTC tab only: enter the years until the earliest call date and the call price (the amount the issuer would pay to redeem the bond early, often par plus a call premium).
Example: Bond with $1,000 face, $950 market price, 5% coupon, 10 years, semi-annual
Annual coupon = $1,000 × 5% = $50. Periodic coupon = $25.
Newton-Raphson finds the rate r per period where:
$950 = $25 × [1 - (1+r)^(-20)] / r + $1,000 / (1+r)^20
Solving: r ≈ 0.02732 per period. YTM = 0.02732 × 2 = 5.464%
Current Yield = $50 / $950 = 5.263%
The YTM is higher than the current yield because there is a capital gain (bond bought at $950, redeemed at $1,000).
YTM is the most complete measure of a bond’s return. Current yield only measures income and ignores the pull-to-par effect. For a discount bond, YTM always exceeds current yield. For a premium bond, YTM is always below current yield.
What yield to maturity actually measures
Yield to maturity is the answer to the question: if I buy this bond today at the current market price and hold it until it matures, reinvesting all coupons at the same rate, what annual return will I earn?
YTM accounts for three sources of return:
- Coupon income, the periodic interest payments
- Capital gain or loss, the difference between purchase price and face value at maturity
- Reinvestment income, the interest earned by reinvesting coupons (this is the part YTM assumes but which is uncertain in practice)
The reinvestment assumption is the main limitation of YTM. It assumes every coupon can be reinvested at the same YTM. If rates fall after you buy, actual reinvestment rates will be lower and your realized return will fall short of the stated YTM.
YTM is best understood not as a prediction of what you will earn, but as a market-clearing number: the yield that equates the present value of all future cash flows to today's price. Two bonds with the same YTM offer the same return per unit of time, which makes YTM the correct basis for comparing bonds of different maturities and coupons.
How Newton-Raphson solves for YTM
There is no algebraic formula that directly solves for YTM. The equation is a polynomial with degree equal to the number of coupon periods. You cannot isolate r analytically when n is greater than 2.
Newton-Raphson is an iterative numerical method that starts with an initial guess and repeatedly improves it by moving in the direction of the root.
The algorithm:
- Start with an initial guess r0 (typically the coupon rate / frequency)
- Calculate the bond price at r0
- Calculate the derivative of price with respect to r
- Update: r1 = r0 - (price(r0) - target) / price’(r0)
- Repeat until |price(r) - target| < 0.0001
For a standard bond, this converges in fewer than 10 iterations. The derivative term ensures that each step moves the estimate closer to the true yield. The method is reliable as long as the price is positive and the yield is bounded away from -100%.
| Iteration | Yield Guess | Computed Price | Error |
|---|---|---|---|
| 1 | 5.000% | $1,000.00 | +$50.00 |
| 2 | 5.385% | $951.83 | +$1.83 |
| 3 | 5.461% | $950.04 | +$0.04 |
| 4 | 5.464% | $950.00 | +$0.00 |
Convergence is fast because the price-yield function is smooth and monotonically decreasing.
YTM vs current yield vs yield to call
These three measures answer different questions. Choosing the right one depends on what you want to know about the bond.
Current yield = Annual coupon / Market price. Fast to calculate, ignores everything except today’s income. Useful for comparing cash income across bonds at a glance but misleading for total return analysis. A discount bond’s current yield understates its total return; a premium bond’s current yield overstates it.
Yield to maturity = the IRR of all cash flows assuming hold-to-maturity. The most complete measure. Appropriate when you plan to hold the bond until it matures.
Yield to call = the IRR of cash flows to the earliest call date and price. Appropriate for callable bonds when there is a realistic chance the issuer will call the bond early. Issuers call bonds when market rates drop below the coupon rate, allowing them to refinance at lower cost. If a bond is trading at a premium and is callable, the YTC is often more relevant than YTM because calling is likely.
A conservative rule: for callable bonds, compute both YTM and YTC, then use the lower of the two (yield to worst) as your conservative return estimate.
Duration and price sensitivity
Modified duration is the key number for understanding how much a bond’s price will change when yields move.
Modified Duration = Macaulay Duration / (1 + YTM/frequency)
Approximate price change % = -Modified Duration × Yield Change
For example, a bond with modified duration of 7 will fall approximately 7% in price if yields rise 1%. It will gain approximately 7% if yields fall 1%.
The price sensitivity table in this calculator shows actual prices at YTM ± 50, 100, and 200 basis points (1 basis point = 0.01%). The actual changes are slightly asymmetric: the price gain from a yield drop is always larger than the price loss from an equal yield rise. This is convexity, and it is always favorable to the bondholder.
Practical implications of duration:
- Short-term bonds (1-3 years) have low duration and minimal price risk
- Intermediate bonds (5-10 years) are the core of most bond portfolios
- Long-term bonds (20-30 years) have high duration and significant price volatility
- Zero-coupon bonds have the highest duration of any bond for a given maturity
Credit risk and yield spreads
YTM reflects not just time-value of money but also the credit risk premium investors demand for the possibility of default. The difference between a corporate bond’s YTM and a comparable maturity Treasury yield is the credit spread.
| Rating | Typical Spread Above Treasury | Default Risk |
|---|---|---|
| AAA/AA | 0.3% to 0.8% | Very low |
| A | 0.8% to 1.5% | Low |
| BBB | 1.5% to 2.5% | Moderate |
| BB (High Yield) | 2.5% to 4.5% | Elevated |
| B | 4.5% to 7.0% | High |
| CCC and below | 7.0%+ | Very high |
Investment-grade bonds (BBB and above) are held by most institutional investors. High-yield bonds (BB and below) offer higher YTMs but carry meaningful default risk. Credit spreads widen during economic stress and narrow during strong growth periods.
When using this calculator, interpret the YTM as total yield, which includes both the risk-free rate and the credit spread. Two bonds with similar YTMs but different credit ratings are not equivalent: the lower-rated bond compensates for higher default risk.
Common yield calculation mistakes
Confusing nominal and effective yield. A 6% bond paying semi-annually has a nominal YTM of 6%, but the effective annual yield is (1 + 0.03)^2 - 1 = 6.09%. When comparing a semi-annual bond to an annual bond, use effective yields for an apples-to-apples comparison.
Using par value instead of market price. YTM must be calculated from the current market price, not face value. Entering face value as the price will always return the coupon rate as the yield, which is not a useful calculation.
Ignoring accrued interest. Bond prices are quoted as clean prices (excluding accrued interest). The actual payment to buy a bond is the dirty price = clean price + accrued interest since the last coupon date. Accrued interest does not affect YTM calculated from clean price, but it affects the actual cash flow on settlement.
Treating YTM as a guaranteed return. YTM assumes reinvestment of all coupons at the same rate and holding to maturity. Neither assumption may hold in practice. For shorter-horizon analysis, consider total return scenarios at different reinvestment rates.
Duration: how to measure interest rate sensitivity
Modified duration tells you how much a bond’s price will change for a 1% change in yield. A bond with modified duration of 7 will lose approximately 7% of its price if yields rise by 1 percentage point.
Duration depends on three things: time to maturity, coupon rate, and current yield. Longer maturity means higher duration (more cash flows far in the future that get heavily discounted). Lower coupon rate means higher duration (less cash returned early, more weight on the distant face value payment). Higher current yield means lower duration (future cash flows are worth less at high discount rates, pulling weight toward nearer payments).
Duration approximation for a 10-year bond
Face value: $1,000. Coupon: 5%. Market yield: 5% (par price = $1,000). Modified duration ≈ 7.7.
If yields rise 1%: price change ≈ -7.7%. New price ≈ $923.
If yields fall 1%: price change ≈ +7.7%. New price ≈ $1,077.
This is an approximation. Actual price change is slightly larger on the downside (convexity), the price-yield relationship curves, not lines.
Professional bond portfolio managers measure duration to match the duration of their assets with the duration of their liabilities. A pension fund with obligations 12 years away should hold bonds with average duration near 12 to minimize the impact of rate changes on their funded status. This is called duration matching or immunization, and it’s the foundation of most fixed income portfolio management.
For most individual bond investors, YTM is the most useful metric. It answers the one question that matters: if you buy this bond at today’s price and hold it to maturity, collecting all coupons along the way, what annual return will you earn? Current yield tells you your income as a percentage of cost but ignores capital gain or loss at maturity. YTM captures both.
Yield to call matters whenever a bond is callable. Issuers call bonds when rates fall, letting them refinance at lower rates. If you buy a 20-year bond at a premium and it gets called in year 5, your actual return is the yield to call, not the YTM. Always calculate both when buying callable bonds, and use the lower of the two as your conservative return estimate.
Frequently Asked Questions
What is yield to maturity (YTM)?
Yield to maturity is the total annualized return an investor earns if a bond is purchased at the current market price and held until it matures, assuming all coupon payments are reinvested at the same yield. It is the most complete single measure of a bond's return.
How is YTM calculated?
YTM is the discount rate that makes the present value of all future bond cash flows (coupons plus face value at maturity) equal to the current market price. Because no closed-form solution exists, it is solved iteratively using numerical methods such as Newton-Raphson, which converges in a few iterations.
What is the difference between YTM and current yield?
Current yield = Annual Coupon / Market Price. It only measures the income return and ignores the capital gain or loss from buying at a discount or premium. YTM accounts for both the coupon income and the pull-to-par effect over the remaining life of the bond. For bonds trading at par, both are equal.
Why do bonds trade at a discount or premium?
When a bond is issued, its coupon rate is set to the prevailing market rate. If market rates rise after issuance, the bond's fixed coupon looks less attractive, so the price drops below face value (discount) to compensate. If market rates fall, the bond's coupon looks attractive, so the price rises above face value (premium).
What is yield to call (YTC)?
Yield to call is the annualized return if the bond is called (redeemed early by the issuer) on a specified call date at a specified call price, rather than held to maturity. Issuers typically call bonds when rates fall so they can refinance at lower cost. YTC is relevant for callable bonds when the call price exceeds the current price.
What is bond duration?
Duration measures a bond's sensitivity to interest rate changes. Modified duration approximates the percentage change in bond price for a 1% change in yield. A bond with a modified duration of 5 will fall about 5% in price if yields rise 1%. Longer-duration bonds are more sensitive to rate changes.
What is modified duration and how does it relate to price sensitivity?
Modified Duration = Macaulay Duration / (1 + YTM/frequency). The approximate price change for a small yield change is: Price Change % = -Modified Duration × Yield Change. For example, if modified duration is 6 and yield rises 0.5%, price falls approximately 3%. This is an approximation; convexity improves accuracy for large yield moves.
How does credit risk affect bond yield?
Investors demand higher yields for bonds with greater credit risk. The difference between a corporate bond's yield and a comparable government bond's yield is called the credit spread. A AAA-rated bond might trade at 50 basis points above treasuries, while a high-yield bond might trade at 300-500 basis points above. Higher spread means higher yield but also higher default risk.
What is the yield curve?
The yield curve plots bond yields against time to maturity for bonds of similar credit quality. A normal (upward-sloping) yield curve means long-term bonds yield more than short-term bonds, reflecting the added risk of longer holding periods. An inverted yield curve (short rates above long rates) has historically preceded recessions.
What is the relationship between bond price and yield?
Bond price and yield move in opposite directions: when yields rise, prices fall, and vice versa. The relationship is convex rather than linear, meaning prices fall less in response to rising yields than they rise in response to falling yields by the same amount. This convexity is beneficial to bondholders.
Related Calculators
Bond Price Calculator
Calculate the fair market price of a bond from face value, coupon rate, yield to maturity, and years to maturity.
Yield to Maturity (YTM) Calculator
Calculate the yield to maturity and current yield of any bond from face value, coupon rate, current price, and years remaining.
Basis Point Calculator
Convert basis points to percentages, calculate rate changes in basis points, and understand the financial impact of basis point movements on loans and bonds.
Present Value Calculator
Calculate the present value of future cash flows using any discount rate, with annuity support, inflation adjustment, and investment valuation modes.
IRR Calculator
Calculate Internal Rate of Return (IRR) from a series of cash flows. Includes NPV profile chart and MIRR calculation.
CAGR Calculator
Calculate Compound Annual Growth Rate from initial value, final value, and duration. Solve for any variable with multiple modes.