Methodology

The conventions and formulas behind every price, yield and accrued interest figure on BondCalculator.net.

Conventions at a glance

Bonds coveredU.S. municipal and corporate bonds with fixed semi-annual coupons
Day count30/360
CompoundingSemi-annual
Price, yield and accrued interestMSRB Rule G-33 formulas
Quoting basisClean price per 100 of par; yield to worst
Default settlementT+1 business day, skipping weekends and SIFMA holidays
Input limitsClean price above 0 and up to 250; yield from −2.000% to 30.000%

Coupon schedule

Coupon dates are generated every six months, counting back from the redemption date (the maturity date, or the call date when pricing to a call). If the redemption date falls on the last day of a month, every coupon date stays on the last day of its month. The coupon date on or before settlement starts the current accrual period; the next one after settlement ends it.

30/360 day count

Days between two dates D1/M1/Y1 (the earlier) and D2/M2/Y2 are counted as if every month had 30 days, after these adjustments:

  1. If D1 and D2 are both the last day of February, D2 becomes 30.
  2. If D1 is the last day of February, D1 becomes 30.
  3. If D2 is 31 and D1 is 30 or 31, D2 becomes 30.
  4. If D1 is 31, D1 becomes 30.
Days = 360 × (Y2 − Y1) + 30 × (M2 − M1) + (D2 − D1)

Each coupon period is E = 180 days. A is the number of days from the start of the period to settlement, and DSC = E − A is the number of days from settlement to the next coupon.

Accrued interest

With R the annual coupon rate as a decimal, accrued interest per 100 of par is:

AI = 100 × (R / 2) × (A / E)

The dirty price (what the buyer pays) is the clean price plus AI. A worked example is in accrued interest explained.

Price from yield

With Y the annual yield as a decimal, N the number of coupons remaining to the redemption date, and RV the redemption value (100 at maturity, or the call price):

More than one coupon period to redemption (compound discounting):

Dirty = Σ[k=1..N] (100 × R/2) / (1 + Y/2)^(k − 1 + DSC/E) + RV / (1 + Y/2)^(N − 1 + DSC/E)

One coupon period or less to redemption (simple-interest discounting):

Dirty = (RV + 100 × R/2) / (1 + (DSC/E) × Y/2) Clean = Dirty − AI

Yield from price

There is no closed-form solution for yield, so the calculator solves the price formula above for Y with Newton–Raphson iteration, starting from an approximate yield and stopping when the computed clean price matches the entered price to within 0.0000000001.

Yield to call and yield to worst

When a call date between settlement and maturity is entered, the same formulas are applied with the call date as the redemption date and the call price as RV, giving the yield to call. Yield to worst is the lower of yield to maturity and yield to call, and the display shows which date it is measured to.

When you enter a yield and ask for a price, a callable bond is priced to both dates and the lower price is used, which is the price at which the entered yield is the yield to worst. Yield to maturity is then re-solved at that price. Only one call date is evaluated; for bonds with several call dates, enter the one you want to test. Read more in yield to worst explained.

Current yield and duration

Current yield = (100 × R) / Clean price

Macaulay duration is the present-value-weighted average time to each cash flow, in years, measured to the yield-to-worst date. Modified duration divides Macaulay duration by (1 + Y/2), or by (1 + (DSC/E) × Y/2) in the final coupon period. It approximates the percentage price change for a one percentage point change in yield.

Settlement dates

Regular-way settlement for U.S. corporate and municipal bonds has been T+1 since May 28, 2024. The Cash (T), T+1 (Reg) and T+2 buttons count business days from today, skipping weekends and the SIFMA recommended bond-market holidays (calendar loaded through 2040). You can also type any settlement date.

What is not modeled

  • U.S. Treasury securities, which use an actual/actual day count
  • Odd (short or long) first coupon periods
  • Multiple call dates, make-whole calls, puts and sinking funds
  • Floating-rate and variable-rate securities
  • Taxes, including the de minimis rule and original issue discount

Results are for information and education only and are not investment advice. Confirm prices and yields with your broker or dealer before trading.