b2KIT

Bond Price Calculator

Calculate clean and dirty bond prices from coupon rate, yield, and maturity with accrued interest and settlement date adjustment.

Tested tool guide Tested browser tools Checked August 15, 2026

What Bond Price Calculator does, with a checked example

Enter a bond's face value, coupon rate, coupon frequency, yield to maturity, maturity date, and settlement date, and the calculator discounts every remaining coupon plus the redemption value back to the settlement date to obtain the dirty price, then subtracts accrued interest for the stub period since the last coupon to obtain the clean price. What trips people up: the clean price it shows is not what you pay. The dirty price - clean price plus accrued interest - is the actual cash settlement amount, and the gap between the two can be several points on a bond settling mid-coupon.

Worked example

A concrete input and expected output from the current implementation.

Input

Face value $1,000; annual coupon rate 5% paid semiannually ($25 every 6 months); yield to maturity 6% annual (3% per semiannual period); 2 years to maturity (4 coupon periods remaining); settlement date falls exactly on a coupon payment date.

Expected output

Clean price: $981.41 (98.141% of par). Accrued interest: $0.00. Dirty price: $981.41.

The four remaining $25 coupons and the $1,000 redemption are each discounted at 3% per period; the annuity of coupons is worth $92.93 and the discounted redemption is worth $888.49, summing to $981.41. Because settlement coincides with a coupon date, no interest has accrued, so clean and dirty price are identical.

How the result is produced

1

Coupon and redemption discounting

The tool counts the coupon periods remaining between settlement and maturity, converts the annual yield to a periodic rate using the coupon frequency, and discounts each future coupon plus the final redemption of face value back to the settlement date. Summing those discounted cash flows gives the dirty price; subtracting accrued interest gives the clean price, quoted as a dollar amount or as a percentage of face value.

2

Accrued interest and settlement adjustment

Using the settlement date and the date of the last coupon, the tool computes the fraction of the current coupon period that has elapsed and multiplies it by the coupon amount to get accrued interest. Adding that to the clean price produces the dirty price, which is the amount actually exchanged at settlement.

Good uses

  • Working out what you'd actually pay to buy a bond that settles between coupon dates, not just its quoted clean price
  • Checking how much accrued interest is owed to the seller in a bond trade before wiring settlement funds
  • Testing how a bond's price moves as yield to maturity changes, holding coupon rate and maturity fixed

Limits and checks

  • Accrued interest depends on a day-count convention (30/360, actual/actual, actual/360); if the tool assumes one convention and your bond trades under another, the accrued figure and dirty price will be slightly off.
  • The calculation assumes a standard bullet bond with regular coupon periods - it will not correctly price bonds with irregular first/last coupons, embedded call or put options, or floating-rate coupons.
  • Yield to maturity is treated as the bond's own periodic-compounded discount rate; entering a rate computed on a different compounding basis (continuous, effective annual) will produce a price that looks wrong even though the math ran correctly.

Common questions

Why is the price my broker quotes different from the dirty price shown here?

Brokers and market data feeds almost always quote the clean price. The dirty price adds accrued interest since the last coupon, which is what you actually pay at settlement, so the two will differ by the accrued interest amount unless settlement lands exactly on a coupon date.

Does this handle a bond with an odd first or last coupon period?

Not reliably. The discounting assumes evenly spaced coupon periods between settlement and maturity, so a bond with a short or long stub coupon at issuance or call will need a manual adjustment; verify the period count and any stub interest separately before trusting the output.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools