Bond Calculator
Price a bond from its yield, or find the yield to maturity from its price. Handles settlement between coupon dates with accrued interest, and shows duration, convexity and the price–yield curve.
How to Use
- Choose what to solve for: the price from a yield, or the yield to maturity (YTM) from a price.
- Enter the face value, the annual coupon rate and how often coupons are paid (semi-annual for most US bonds).
- Give the time to maturity in years, or switch Timing to dates and enter the settlement and maturity dates with a day count (30/360 or actual/actual).
- Enter the yield (or the clean price you would pay). The answer appears in its own field and in the readouts.
- Read the price–yield curve and the table below it for accrued interest, the dirty price, duration and convexity, or press a preset.
Worked Example
Price from yield. A $1,000 bond pays a 5% coupon semi-annually ($25 every six months) and matures in 10 years (20 coupons). The market yield is 6%, so each period is discounted at i = 6% ÷ 2 = 3%.
P = 25 × [1 − 1.03−20] ÷ 0.03 + 1,000 ÷ 1.0320 = 371.94 + 553.68 = $925.61. The bond trades at a discount because 6% is above its 5% coupon.
Yield from price. The same bond offered at $950 solves 25 × [1 − (1 + i)−20] ÷ i + 1,000 ÷ (1 + i)20 = 950 for i = 2.8308%, so YTM = 2 × 2.8308% = 5.6617%.
The common mistake: quoting the current yield as the return. $50 ÷ $950 = 5.2632% ignores the $50 you gain when the $950 bond repays $1,000. The yield to maturity, 5.6617%, includes it.
Show Work
Formulas
Duration, Convexity and Why Prices Move
A bond’s cash flows are fixed, so its price can only change by discounting them at a different yield. When yields rise, every future payment is worth less and the price falls; when yields fall, the price rises. Long bonds and low coupons have more of their value far in the future, so they move the most.
Frederick Macaulay defined duration in 1938 in his study of US interest rates and bond yields for the National Bureau of Economic Research: the average time to the bond’s payments, each weighted by its present value. For a zero-coupon bond it equals the time to maturity — the 20-year zero above has a Macaulay duration of exactly 20 years. Modified duration turns that into a price sensitivity.
Duration draws the price–yield curve as a straight line. The real curve bends upward (convexity), so prices fall a little less than duration predicts when yields rise and rise a little more when yields fall. The dashed line on the chart is the duration estimate; the gap between it and the curve is the convexity.
About This Calculator
This calculator prices a fixed-coupon bond from a yield, or solves the yield to maturity from a price. With dates it finds the previous and next coupon dates from the maturity date, counts the accrued interest by 30/360 or actual/actual, and prices with a fractional first period, the same street convention as spreadsheet PRICE and YIELD functions. Duration and convexity come from the same cash flows.
All calculations run in your browser; nothing you enter is sent to a server. It assumes the bond is held to maturity, every payment is made in full, and there is no call or put feature.
Estimates for planning and education — not financial, tax or legal advice.
Related calculators: IRR Calculator, NPV Calculator, and Dividend Calculator.
Frequently Asked Questions
What is the difference between yield to maturity and current yield?
Current yield is only the annual coupon divided by the price. YTM also counts the gain or loss as the price moves to face value at maturity. A 10-year 5% bond bought at $950 has a current yield of 5.2632% but a YTM of 5.6617%, because you also gain $50 at maturity.
What are clean and dirty prices?
Bonds are quoted at the clean price. Between coupon dates the buyer also pays the seller the interest earned since the last coupon (accrued interest). Clean price + accrued interest = dirty (invoice) price, the cash that actually changes hands.
Should I use 30/360 or actual/actual?
It depends on the bond. US corporate and municipal bonds use 30/360, which treats every month as 30 days. US Treasuries use actual/actual, which counts the real days in the coupon period. The two give slightly different accrued interest for the same dates.
What does modified duration tell me?
It is the percentage price change for a 1-point change in yield. The 10-year 5% bond at a 6% yield has a modified duration of 7.665, so a rise to 7% should cut its price by about 7.7%. The exact drop is $67.74 (to $857.88); duration alone predicts a bit more, and convexity closes the gap.
Why does a bond trade below or above its face value?
The coupon is fixed when the bond is issued but market yields move. If yields rise above the coupon, the price falls below face value (a discount) until the bond yields the market rate. If yields fall below the coupon, it trades at a premium. At a 4% yield the same 5% bond is worth $1,081.76.
How do I use the Bond Calculator?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Does it cost anything or need an account?
No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.
Is anything I type uploaded?
No. The tool works entirely on your device, so the values you enter never leave your browser.
Common Use Cases
Checking a quote
A broker offers a 4% 10-year bond at $1,050. Its YTM is 3.4058%, not the 4% coupon or the 3.8095% current yield.
Buying between coupons
Settling a 4.25% bond two months after a coupon means paying about two months of accrued interest on top of the quoted price.
Rate-risk check
A 20-year zero-coupon bond at 4.5% has a modified duration of 19.56, so a 1-point rise in yields cuts its price by roughly a fifth.
Zero-coupon pricing
A $1,000 zero due in 20 years at a 4.5% semi-annual yield costs $410.65 today.
Bond ladder income
Current yield and coupons per period give the cash each rung pays; YTM gives the return if you hold each one to maturity.
Last updated: