AllFreeCalculator

Bond Calculator

Price a bond from its coupon and required yield, or solve yield to maturity from a current market price. Includes duration and a full cash flow schedule.

$
%
%

Bond price

$0.00

Premium / discount

Macaulay duration

Modified duration

Total coupons

Cash flow schedule

Period-by-period cash flow

Period Coupon Principal Total CF PV of CF

For general information only, not financial advice. Results are estimates — your actual loan, mortgage or return will depend on the lender, your credit, fees and other terms. Talk to a qualified professional before making decisions.

What this bond calculator does

This tool handles the two most common bond questions. In Bond Price mode, you supply the bond indenture (face value, coupon, maturity, frequency) plus a required market yield, and the calculator returns the fair price as the present value of all future coupon payments plus the present value of the face amount paid at maturity. In Yield to Maturity mode, you supply the current market price along with the indenture, and the calculator iterates to find the discount rate that makes the present value of cash flows equal to that price. Both modes also produce Macaulay and modified duration, period-by-period cash flows, and a chart that visualizes either the cash flow schedule or the price-yield relationship.

How to Calculate Bond Price

The price of a bond is the present value of every future cash flow, discounted at the required yield. Each period the bond pays a coupon equal to (coupon_rate / frequency) × face_value, and at the final period it also pays back the face amount. The discount factor for period t uses the per-period yield y/m, where m is the number of coupon periods per year.

The summation formula in code form:

Price = Sum from t=1 to n of [ C / (1 + y/m)^t ] + F / (1 + y/m)^n

where C is the coupon per period, F is face value, y is the annual required yield, m is the compounding frequency per year, and n = years × m.

In MathML:

P= t=1n C(1+ym)t + F(1+ym)n

How to Calculate Yield to Maturity

Yield to maturity is the y that solves the equation above for a given market price P. There is no closed-form solution, so the calculator uses a numeric bisection method: it brackets the answer between a very low rate and a very high rate, computes the price at the midpoint, and narrows the bracket based on whether that price is too high or too low. Within a couple of dozen iterations it converges to many decimal places of precision.

In MathML the equation being solved:

P= t=1n C(1+YTMm)t + F(1+YTMm)n

The result is annualized by multiplying the per-period solution by m.

Premium versus discount bonds

Bond prices and yields move in opposite directions. When you discount a fixed coupon stream at a lower rate, every term in the summation grows larger, so the price exceeds face value — the bond trades at a premium. When the required yield rises above the coupon rate, every term shrinks and the price falls below face — a discount. At maturity the bond still pays face, so premium bonds amortize down to par and discount bonds accrete up. The pull-to-par dynamic is mathematically guaranteed if the issuer does not default.

Duration and interest rate risk

Macaulay duration is the weighted average time to receive a bond's cash flows, with weights equal to each cash flow's present value share of the total price. Modified duration converts this into a price sensitivity: %price_change ≈ -modified_duration × change_in_yield. A bond with modified duration of 8 will lose roughly 8% of its price if yields jump 1 percentage point. Higher coupons reduce duration because more cash arrives early; longer maturities and lower coupons extend it. Zero-coupon bonds have duration equal to maturity — they're the most rate-sensitive instruments per unit of face.

Key Concepts and Definitions

  • Face value (par): the amount returned at maturity, almost always $1,000 for retail US bonds.
  • Coupon rate: the fixed annual interest rate applied to face value.
  • Coupon payment: coupon rate divided by frequency, multiplied by face value — the dollar amount paid each period.
  • Maturity: the date the issuer repays the face value.
  • Yield to maturity: the IRR of holding to maturity at the current price.
  • Yield to call: the IRR if the bond is called on the first call date.
  • Yield to worst: the minimum of YTM and any yield to call dates — the conservative measure.
  • Current yield: annual coupon divided by current price; ignores capital gain or loss to maturity.
  • Accrued interest: the coupon interest earned but not yet paid since the last coupon date; added to the quoted price when settling.
  • Clean price vs dirty price: the clean (quoted) price excludes accrued interest; the dirty price is what you actually pay.

Types of bonds — comparison

TypeIssuerTypical maturityTax notesRisk
Treasury billsUS Treasury4 to 52 weeksFederal taxable, state exemptEssentially zero default risk
Treasury notesUS Treasury2 to 10 yearsFederal taxable, state exemptRate risk only
Treasury bondsUS Treasury20 to 30 yearsFederal taxable, state exemptHigh rate risk, no default risk
Municipal bondsState and local governments1 to 30 yearsGenerally federal tax exemptIssuer default possible
Corporate bondsCorporations1 to 30 yearsFully taxableCredit risk varies by issuer
Agency bondsFannie Mae, Freddie Mac, FHLBWide rangeFederal taxable; some state exemptImplicit federal backing for most
Savings bondsUS Treasury (retail)Up to 30 yearsFederal taxable, state exemptNone; non-marketable
Zero-coupon bondsVariousWide rangePhantom income taxed annuallyHighest duration per unit

Credit ratings and investment grade

Investment grade spans AAA down to BBB- on the S&P / Fitch scale (Aaa to Baa3 at Moodys). Below that — BB+ and lower — is speculative or high yield. Investment grade issuers default rarely; high yield issuers default in clusters tied to the business cycle. Pension funds, insurance companies and many bond funds have charters that forbid holding below investment grade. A downgrade across that boundary is a "fallen angel" event and can move prices sharply as forced sellers exit.

Current yield vs YTM vs yield to call

Current yield (see interest rate basics) divides annual coupon by current price — useful as a quick income measure but it ignores the pull-to-par capital gain or loss. YTM captures all cash flows assuming hold to maturity and is the standard quoted yield. Yield to call assumes the issuer exercises an early redemption right at the first call date; for callable bonds trading above call price this is often lower than YTM and is the rate a prudent investor uses. Always check whether a quoted "yield" is YTM, YTC, current or yield to worst.

Edge cases and advanced scenarios

  1. Callable bonds. If a bond is callable on a known schedule, run the calculator twice — once with maturity equal to the call date (price = call price) and once with full maturity — and compare. The lower yield is the realistic expectation if rates have fallen.
  2. Zero-coupon bonds. Set the coupon rate to 0%. Price simplifies to F / (1 + y/m)^n and Macaulay duration equals maturity. These are pure interest rate plays.
  3. Bonds trading at par. If required yield equals coupon rate, price equals face value exactly and YTM equals the coupon. The summation telescopes to F.
  4. Very short maturities. Treasury bills are typically quoted on a discount basis, not yield. The price formula here still applies, but published "bank discount yields" are not the same number as YTM — you can convert with present value tools.
  5. Floating-rate notes. The model here assumes a fixed coupon. For FRNs you would re-price every reset date, so duration is effectively the time to next reset, not maturity.

What To Do With Your Result

  • Compare price to face value. Above 100 of face is a premium, below is a discount, and that has tax and cash-flow implications.
  • Use modified duration to size positions. If your tolerance is a 5% drawdown and modified duration is 10, a 0.5% rate shock is your limit.
  • Stack the result against alternatives. Compare YTM against current high-yield savings, brokered CDs, and long-run equity returns.
  • Build a ladder. Use the calculator on each rung to verify expected income and reinvestment risk across maturities.
  • Plan reinvestment. If duration matches your time horizon, you are immunized against parallel rate moves; if not, run sensitivity scenarios.

Federal versus state taxation

One of the most overlooked features of US bonds is the differing tax treatment by issuer. Treasury bonds pay interest that is exempt from state and local income tax — a meaningful advantage in high-tax states. Municipal bonds flip this: the interest is generally exempt from federal income tax and, if you live in the issuing state, often exempt from state tax too. Corporate bonds get no break at any level. Compare bonds on a taxable-equivalent yield basis: divide a muni yield by (1 - your marginal rate) to see what taxable yield it matches.

Bond laddering in practice

A laddered portfolio holds bonds with staggered maturities, often one rung per year. As each matures, the proceeds buy a new rung at the longest end. The ladder smooths out reinvestment risk because no single year's prevailing rate dictates the whole portfolio's return. Ladders pair naturally with goals that have predictable annual cash needs — retirement spending, school tuition, scheduled CapEx — and complement broader allocation tools like the retirement calculator, loan calculator and mortgage calculator when planning long-term cash flow.

Limitations of this calculator

The model assumes a flat yield curve (one discount rate for all maturities), no defaults, no embedded options beyond simple call analysis you run yourself, and constant coupons. It does not handle inflation-linked bonds (TIPS) where principal adjusts, convertible bonds with equity options, or step-up coupons. For those instruments use specialist tools or consult issuer documentation. As a baseline tool for vanilla fixed-coupon bonds, however, the price and YTM computations match standard textbook and Bloomberg-style formulas.

Frequently asked questions

What is the difference between coupon rate and yield to maturity?

The coupon rate is the fixed percentage of face value the issuer pays each year as interest, set when the bond is issued and never changing. Yield to maturity (YTM) is the total annualized return an investor earns if the bond is bought today at its current market price and held to maturity, accounting for coupons plus any gain or loss versus face value. If the bond trades at par, coupon and YTM are equal. Above par the YTM is below the coupon; below par the YTM is above the coupon.

Why do bonds trade at a premium or discount?

Bond prices move inversely to market interest rates. If a bond was issued with a 5% coupon and prevailing rates fall to 3%, that 5% coupon stream is more valuable than newly issued bonds and the price rises above face value — a premium. If rates rise to 7%, the 5% coupon is now below market and the price drops below face — a discount. Credit deterioration of the issuer also pushes prices down. At maturity the bond pays face value regardless of where it traded in between.

What is duration and why does it matter?

Duration is the weighted average time to receive a bonds cash flows, measured in years. Macaulay duration is that weighted average; modified duration converts it into an interest rate sensitivity, telling you roughly how much the price will move for a 1 percentage point change in yield. A modified duration of 7 means the price falls about 7% if yields rise 1%. Longer maturities, lower coupons and lower yields all increase duration and therefore interest rate risk.

What are callable bonds?

Callable bonds give the issuer the right to redeem the bond before maturity, typically when rates have fallen and they can refinance more cheaply. For the holder this caps the upside: when prices would otherwise rise far above call price, the issuer calls and you receive only that capped amount. Investors compute yield to call alongside yield to maturity and use the lower of the two — yield to worst — as a conservative measure. Callable bonds compensate with higher coupons.

How do bond credit ratings work?

Three major agencies — Moodys, S&P and Fitch — assess issuer creditworthiness. Investment grade runs from AAA (or Aaa) down to BBB- (or Baa3). Below that is high yield or junk, where default risk is materially higher. Ratings drive borrowing costs and which institutional buyers can hold the paper. They are opinions, not guarantees: ratings have famously missed default events, and a downgrade after issuance can crater prices even when no payment has been missed.

How are bonds taxed?

Coupon interest on US Treasury bonds is taxable federally but exempt from state and local tax. Corporate bond interest is taxable at all levels. Municipal bond interest is generally exempt from federal tax and often from the state where issued — this is why munis can offer lower headline yields and still beat taxable bonds on an after-tax basis. Capital gains or losses on bonds sold before maturity are taxed separately. Treasury Inflation-Protected Securities and zero-coupon bonds also accrue phantom income that is taxed annually.

Should I buy individual bonds or bond funds?

Individual bonds give you a known maturity value and a fixed schedule of payments, which is helpful for matching future obligations or building ladders. Bond funds offer instant diversification across many issuers and easy liquidity, but they never mature — net asset value rises and falls with rates indefinitely. Funds are typically the right choice for small accounts or anyone who does not want to research individual issuers; ladders of individual Treasuries can make sense for larger cash buckets.

What is a bond ladder?

A ladder is a portfolio of bonds with staggered maturities — for example one rung maturing every year for ten years. As each rung matures the proceeds get reinvested at the long end of the ladder. This averages your reinvestment rate across many interest rate environments and produces a steady stream of cash without locking everything into a single rate. Ladders shine in volatile rate periods because no single year dominates your reinvestment risk.

Worked examples

Scenario A — pricing a premium bond

A $1,000 face value bond with a 6% annual coupon, 10 years to maturity, paying semi-annually. Required market yield 4%.

  • Coupon per period: 6% / 2 × 1,000 = $30
  • Periods: 10 × 2 = 20
  • Per-period discount rate: 4% / 2 = 2%
  • PV of coupons: 30 × [1 - 1.02-20] / 0.02 ≈ $490.54
  • PV of face: 1,000 / 1.0220$672.97
  • Price: ~$1,163.51 — a premium of about $163.51 over face because the 6% coupon beats the 4% market yield.

Scenario B — solving YTM on a discount bond

A $1,000 face value bond with a 5% annual coupon, 8 years to maturity, semi-annual, currently quoted at $930.

  • Coupon per period: 5% / 2 × 1,000 = $25
  • Periods: 16; price = 930
  • Bisection converges to per-period yield of about 3.06%
  • Annualized YTM: 2 × 3.06% ≈ 6.12%
  • Current yield: 50 / 930 ≈ 5.38%
  • The YTM exceeds the current yield because the bond is priced below par — the investor also captures a pull-to-par capital gain.

Related calculators