Mathematical Foundations of Fixed-Income Valuation
Discounted Cash Flow Pricing, Yield to Maturity (YTM), and Bisection Solvers
A bond is a debt instrument where an issuer promises periodic coupon payments and terminal repayment of par value (face value). The theoretical fair price of a option-free bond equals the sum of its discounted future coupon cash flows plus the discounted redemption value at maturity.
The Fundamental Bond Pricing Formula
For a bond with face value (F), annual coupon rate (c), payment frequency (m times per year), periodic coupon (C = (F × c) / m), annual Yield to Maturity (y), and total payment periods (n = Years × m):
When market yield y = c, the bond trades exactly at par (P = F). When market yields rise above the coupon rate (y > c), the bond trades at a discount (P < F). When yields fall (y < c), the bond trades at a premium (P > F).
Macaulay & Modified Duration
Macaulay duration measures the weighted-average maturity of bond cash flows. Modified duration (D_mod = D_mac / (1 + y/m)) estimates the percentage price volatility for a 100 basis point (1%) shift in yield: ΔP / P ≈ -D_mod × Δy.
Clean vs. Dirty (Invoice) Price
Bonds trade on quotes reflecting clean price (excluding accrued interest). However, the buyer must settle at the dirty price: Dirty Price = Clean Price + Accrued Interest, compensating the seller for days held since the last coupon date.
Fixed-Income Asset Class Comparison Matrix
Credit Quality, Yield Spreads, Tax Exemptions, and Duration Profiles
Evaluating bond portfolios requires examining issuer credit risk, liquidity, and tax consequences across debt sectors:
| Instrument Sector | Credit Rating / Risk | Typical Yield Spread | Tax Treatment | Liquidity | Primary Risk Factor |
|---|---|---|---|---|---|
| US Treasury Notes & Bonds | AAA / Sovereign (Risk-free) | Benchmark (0 bps) | Federal taxable; State/Local exempt | Maximum Tier 1 | Interest rate duration risk |
| Investment-Grade Corporate | AAA to BBB- | +80 to +180 bps | Fully taxable (Fed & State) | High | Credit spread widening & default |
| High-Yield Corporate (“Junk”) | BB+ to CCC / Speculative | +300 to +650 bps | Fully taxable | Moderate | High default & restructuring risk |
| Municipal Bonds (Muni) | AAA to A (State/Local) | -50 to +50 bps | 100% Federal Tax-Exempt | Moderate | Legislative tax reform & call risk |
| Zero-Coupon STRIPS | AAA (US Treasury) | Treasury yield curve | Annual phantom income (OID) | High | Extreme duration volatility |
Frequently Asked Questions
Expert Insights on Bond Pricing, Yield Curves, and Duration Analytics
What yield range does the bisection solver search?
The solver brackets yields between 0% and 200% and narrows the range over up to 100 iterations. If a bond's inputs don't have a valid root in that range, the returned yield will sit near one edge of the bracket rather than converging precisely — always sanity-check an unusually high or low result.
What is the difference between Macaulay and modified duration?
Macaulay duration is the weighted-average time to cash flows measured in years, while modified duration divides it by (1 + y/m) to estimate percentage price change for a small yield shift.
Can the calculator process zero-coupon or perpetuity instruments?
Zero-coupon bonds work by setting the coupon rate to 0; perpetuities are not supported because bisection requires a defined terminal principal to bracket a finite yield.
Which day-count convention is used for accrued interest?
The default 30/360 convention assumes 30-day months and a 360-day year, which is standard for US corporate bonds; switch inputs if you need actual/actual pricing.
What is the difference between clean price and dirty price?
The clean price is the quoted market price of the bond excluding accrued interest. The dirty price (or invoice price) is the actual cash amount paid by the buyer, which includes interest accrued since the last coupon payment.