This chapter defines how the library describes a fixed-rate bond, how it computes accrued interest, how it converts between price and yield to maturity, how it values a bond trade on a discount curve, and which yield-based risk measures it reports. Bullet, zero-coupon and amortising bonds are all covered, and so are fixed-rate Sukuk, valued as the bond they wrap (Section 19.12).
A bond is a debt instrument: the holder lends the principal to the issuer
and receives coupons and the principal back. In the library, bonds live in the
Debt area, next to the derivatives. They reuse the fixed
leg of Chapter 6 for their coupons and the calendars, day counts and schedules
of chapters 2 to 4. The yield formulas are written from public market
conventions (International Capital Market Association, 2024; United States Government, 2024), not from any existing implementation.
19.1 Notation and the holder's side
| Symbol | Meaning |
|---|---|
| \(u_0 < u_1 < \dots < u_n\) | The unadjusted coupon dates: \(u_0\) is the interest accrual date (dated or issue date), \(u_n\) the maturity |
| \(D_i\) | The payment date of coupon period \(i\) (from \(u_{i-1}\) to \(u_i\)), \(i = 1, \dots, n\) |
| \(X_i\) | The ex-coupon date of period \(i\): the first settlement date on which a buyer no longer receives coupon \(i\) |
| \(X_i^r\) | The redemption cut-off of period \(i\): the first settlement date on which a buyer no longer receives redemption \(r_i\); \(X_i\) by default, \(u_i\) when the ex-coupon period applies to coupons only |
| \(E_i(s)\) | The payment \(i\) a buyer settling on \(s\) receives, per unit of original face: \(C_i\) when \(s < X_i\), plus \(r_i\) when \(s < X_i^r\) |
| \(c\) | The annual coupon rate, a decimal |
| \(f\) | The coupon frequency: the number of regular coupon periods a year |
| \(r_i\) | The fraction of original face redeemed with payment \(i\); \(\sum_i r_i = 1\) |
| \(N_i\) | The fraction of original face outstanding during period \(i\) |
| \(\alpha(d_1, d_2)\) | The day-count fraction from \(d_1\) to \(d_2\) inside the coupon period that holds them (Section 19.3) |
| \(C_i\) | The coupon of period \(i\), per unit of original face |
| \(s\) | The settlement date |
| \(k(s)\) | The coupon period holding \(s\): \(u_{k-1} \le s < u_k\) |
| \(F(s)\) | The factor: the fraction of original face a buyer settling on \(s\) receives back |
| \(AI(s)\) | The accrued interest on \(s\), per unit of original face |
| \(y\) | The yield to maturity, a decimal per year |
| \(m\) | The number of times a year the yield compounds |
| \(L_i\) | The length of period \(i\) in regular coupon periods |
| \(t_i\) | The yield time of payment \(i\): years from \(s\) to \(u_i\), counted in coupon periods |
| \(P(y)\) | The dirty price at yield \(y\), per unit of original face |
| \(Q\) | The face amount of a trade, signed |
| \(Z(d)\) | The discount factor to date \(d\) on the curve |
The holder's side. A bond is written once, from the side of its holder and per unit of original face: the holder receives every coupon and every redemption. The bond itself therefore has no direction, and the same stored bond serves every trade in it, whatever its size. A trade carries the direction as the sign of its face amount \(Q\): positive to buy or hold, negative to sell, short or issue. Every cash flow of a trade is the bond's flow times \(Q\):
In words: holding 10,000,000 of a bond receives 10,000,000 times each coupon rate; issuing it (\(Q = -10{,}000{,}000\)) pays the same amounts. This is the sign rule of the whole library (received positive, paid negative), and the same rule as the signed notional of a swap. Own issuance is a trade with a negative face amount and no counterparty; a buyback is a positive trade in the same bond, so the face outstanding is the net of the trades. Whether a position is shown as an asset or a liability, and whether it is measured at fair value or at amortised cost, belongs to the portfolio, not to the bond.
19.2 Coupon periods and redemptions
Coupon dates. The coupon dates step back from the maturity by whole regular periods (backward generation, Chapter 4), and stay at month ends when the convention says so and the maturity is a month end. When the interest accrual date does not fall on that grid, the first period is irregular: short when it is less than a regular period, long when the bond names a first coupon date further away. Coupon dates are not adjusted: interest accrues between the unadjusted dates. Only the payment date \(D_i\) moves to a business day of the bond's calendar, by the convention's business-day rule (Following for US Treasuries). A zero-coupon bond has a single period from \(u_0\) to \(u_n\) and a coupon rate of zero.
Redemptions. Principal is repaid on coupon payment dates, never on period starts: \(r_i\) of the original face is paid on \(D_i\), together with the coupon of period \(i\). A bullet bond has \(r_n = 1\) and every other \(r_i = 0\); an amortising or sinking bond spreads the \(r_i\) over several dates. The principal outstanding during period \(i\) is what earlier payments left:
The coupon of period \(i\) is paid on that outstanding principal:
In words: a 5% bond that repays half its face after one year pays coupons on the full face in the first year and on half of it afterwards. Payment \(i\) is \(C_i + r_i\) per unit of original face.
19.3 Day counts and accrual fractions
The day-count fraction \(\alpha(d_1, d_2)\) is the bond's day count over the two dates (Chapter 3), with one exception. Actual/Actual (ICMA), the day count of US Treasuries and of most Eurobonds and Sukuk, needs the coupon period that holds the dates and the coupon frequency (Section 3.7): a regular period is exactly \(1/f\) of a year, and an irregular period is measured against its notional regular periods. The notional periods of a first period are counted back from its end; those of a last period forward from its start. So a short first period from 1 March to 15 August 2026 on a semi-annual bond, whose notional period runs from 15 February to 15 August (181 days), has the fraction \(\tfrac{1}{2} \cdot \tfrac{167}{181}\).
19.4 Settlement and ex-coupon entitlement
Standard settlement. A bond trade on date \(d\) settles \(\ell\) business days later, \(\ell\) being the convention's settlement lag (1 for US Treasuries); \(d\) is first moved to the next business day if it is not one. Yields, prices and accrued interest are always computed for a stated settlement date: the standard settlement date of the valuation date for quotes and risk, or the trade's own settlement date when asked.
Entitlement. Payment \(i\) goes to whoever holds the bond on its record date. A buyer settling on \(s\) receives payment \(i\) if and only if
In words: without an ex-coupon period, a buyer settling before the coupon date receives that coupon; with one (UK gilts, for example), a buyer settling in the last \(x\) business days before the payment does not, and the seller keeps it.
Redemptions. By default the same rule applies to a redemption paid with the coupon: in the UK the final dividend and the redemption go to the same registered holder, so a buyer settling in the final ex-coupon period receives nothing and the bond cannot be priced for that settlement. A convention can instead apply the ex-coupon period to coupons only; a redemption \(r_i\) then goes to a buyer settling before \(u_i\). With \(X_i^r\) the redemption's cut-off (\(X_i\) by default, \(u_i\) under that choice), a buyer settling on \(s\) receives from payment \(i\)
and the sums below run over these entitled amounts.
19.5 Accrued interest and the factor
Accrued interest. A buyer pays the seller the interest earned since the last coupon date, and receives the whole next coupon. With \(k = k(s)\) the period holding the settlement date:
In words: normally the accrued interest is the coupon earned from the period start to settlement. In an ex-coupon period the buyer will not receive the coupon, so the accrued interest turns negative: the seller pays the buyer the interest for the days left to the coupon date. On a coupon date the accrued interest is zero.
Factor and quotes. Prices are quoted per 100 of current face, as the market quotes them. The current face of a buyer settling on \(s\) is the principal still to come to them:
For a bullet bond \(F(s) = 1\) until maturity. When an amortising bond is in an ex-coupon period that also takes its redemption, \(F(s)\) already leaves that redemption out while the negative accrued interest is on \(N_k\), the face before it: the library quotes accrued interest and prices per 100 of the face the buyer receives, not of the face on the record date. This corner (ex-coupon and amortisation together) is the library's stated choice, to revisit when a market that combines them is added.
19.6 Yield to maturity
The yield to maturity is the single rate that discounts the payments a buyer is entitled to back to their dirty price. Its formula counts time in coupon periods.
Period lengths. A regular period counts as one period; an irregular one as its share of its notional periods (Section 19.3):
where \(\alpha_{\text{ICMA}}\) is the Actual/Actual (ICMA) fraction, whatever the bond's own day count. For the short first period above, \(L_1 = 167/181\).
Yield times. From a settlement date \(s\) in period \(k\), the share of the current period still to run is \(w = \alpha(s, u_k) / \alpha(u_{k-1}, u_k)\), and the yield time of each later payment adds whole period lengths:
For a bond with a single period over its whole term (a zero-coupon bond), \(t_n = \alpha(s, u_n)\), the day-count fraction itself.
Compounded price. The dirty price at yield \(y\), compounding \(m\) times a year (\(m = f\) unless the convention names another frequency), sums the entitled payments:
Simple last period. Under the street convention, a settlement in the last coupon period (\(k = n\)) discounts the final payment at a simple rate instead:
The ICMA yield compounds in every period, the last one included; the street convention of US Treasuries is the same formula with Equation (19.9) in the last period (United States Government, 2024). A yield convention is these two choices (compounding frequency, simple last period), so each market's convention is a combination, not a separate formula. The convention of KSA Government SAR Sukuk is still to be confirmed.
Quotes. The dirty and clean prices per 100 of current face are
Given a quoted clean price, the yield is the root of \(\text{Clean}(y) = \text{quote}\), found with Brent's method (Section 5.5): the price falls as the yield rises, so the root is unique where every discount base \(1 + y/m\) (or \(1 + y\,t_n\)) is positive.
19.7 Values on a discount curve
Settlement amount. On its settlement date a trade exchanges the bond for cash. The cash the holder pays (negative) or receives (positive) is
with the clean price as traded and \(s\) the trade's settlement date. A buyer (\(Q > 0\)) pays; a seller or the issuer receives.
Present value of a trade. On a curve with valuation date \(d_0\), a trade is worth the payments it is entitled to that are still to come, and, while it is unsettled, its settlement amount:
In words: once settled, a holding is worth its future coupons and redemptions; before settlement, the price still to be paid is a cash flow of the trade too, so the value does not jump on the settlement date. Payments on or before the valuation date are settled and excluded, as everywhere in the library.
Curve price. The dirty price a curve implies for settlement on \(s\) (with \(s \ge d_0\)) is the entitled payments discounted to \(s\):
These values use the curve given, with no credit spread. A government bond priced on the OIS discount curve will therefore not match its market price: the gap is the spread between the bond and the OIS curve (for US Treasuries, the Treasury-OIS basis), not an error. The Z-spread of Section 19.11 measures that gap; asset-swap spreads and issuer curves come in a later phase. The present value is generic over the number type, so its sensitivities to the curve's market quotes come from the adjoint sweep, like every other product (Section 7.4).
Which curve. \(Z\) is the discount curve of the bond's currency under the collateral currency the bond convention names as its discount collateral, or the currency's own curve when it names none. The bond is discounted on it whatever the collateral terms of a valuation: no netting set or counterparty CSA overrides it, so its Standard CSA PV and CSA PV are equal (Section 20.3). SAR bonds and Sukuk name USD: a SAR bond is discounted on the SAR curve under USD collateral, implied from SAR/USD cross-currency basis swaps, which is the agreed SAR discounting and the curve the shipped SAR market builds; it holds no SAR curve of its own. USD bonds name none. Credit comes on top as the bond's Z-spread. Every SAR bond or Sukuk price the library shows is therefore "SAR curve under USD collateral plus Z-spread".
Cash flows. The rows of Section 10.9 list the terms of Equation (19.13) one by one: the settlement amount SA while \(s > d_0\) (a principal row of its own leg, paid on \(s\)), then for each payment date \(D_i > d_0\) with \(D_i > s\) a coupon row \(Q\,C_i\) when \(s < X_i\) and a redemption row \(Q\,r_i\) when \(s < X_i^r\), each with its discount factor \(Z(D_i)\). A coupon row carries its accrual period, the outstanding notional \(Q\,N_i\), the coupon rate and the accrual fraction; a redemption row carries the amount repaid. The rows' present values add up to Equation (19.13).
19.8 Yield risk measures
From Equation (19.8), with \(b = 1 + y/m\) and \(a_i = C_i + r_i\), the derivatives in yield are, for a compounded payment,
and for the simple last period, with \(v = 1/(1 + y t_n)\), \(-a_n t_n v^2\) and \(2 a_n t_n^2 v^3\). Summed over the entitled payments they give \(P'(y)\) and \(P''(y)\), and
- Macaulay duration \(= \sum_i t_i \, a_i \, v_i / P\), the payment times weighted by their discounted values (\(v_i\) the discount of payment \(i\));
- modified duration \(= -P'(y)/P(y)\); for a compounded yield it is the Macaulay duration over \(1 + y/m\);
- convexity \(= P''(y)/P(y)\);
- yield DV01 \(= -P'(y) \times 0.0001 \times 100 / F(s)\): the rise in dirty price per 100 of current face when the yield falls by one basis point.
These are yield-space measures of the security. They are not curve sensitivities: the sensitivity of a trade to each curve quote is the curve risk of its present value (Section 19.7), named apart so the two are never confused.
19.9 Worked example
A 4.25% bond paying semi-annually on 15 February and 15 August, Actual/Actual (ICMA), from 15 February 2026 to 15 February 2031, street convention, settling on Monday 19 October 2026 at a yield of 4.10%.
- The settlement date lies in the period from 15 August 2026 to 15 February 2027, which has 184 days; 65 have passed and 119 remain, so \(w = 119/184\).
- Accrued interest (Equation (19.4)): \(2.125 \times 65/184 = 0.750679\) per 100.
- Nine payments remain: eight coupons of 2.125 and 102.125 at maturity, at yield times \(t_i = (w + j)/2\), \(j = 0, \dots, 8\). With \(b = 1.0205\), Equation (19.8) gives a dirty price of \(101.334541\).
- Clean price (Equation (19.11)): \(101.334541 - 0.750679 = 100.583861\).
- Modified duration \(3.888069\), Macaulay duration \(3.967775\) years, yield DV01 \(0.039400\) per 100.
The test ValuationFromYield_WorkedExample_MatchesTheMethodology checks these
numbers.
19.10 Edge cases and limits
- Settlement before accrual or at maturity. Accrued interest, yields and prices need \(u_0 \le s < u_n\); outside, they are refused.
- Ex-coupon and amortisation together. A redemption whose ex-coupon date has passed no longer counts in the factor (Equation (19.5)), so prices stay per 100 of the face the buyer receives.
- Rounding of redemption fractions. The fractions must add up to one within \(10^{-9}\); the last redemption takes the remainder, so the face is repaid exactly.
- Payments between valuation and settlement. A payment due before a trade settles belongs to the seller and is left out of the trade (Equation (19.13)).
- Z-spread outside its range. A price that needs a Z-spread below \(-5\%\) or above \(50\%\) is refused, as is a price that is not positive.
- Not yet covered. Floating-rate notes and Sukuk, bills, asset-swap spreads and issuer curves come in later phases. Mudaraba and Musharaka Sukuk (expected rather than contractual distributions), inflation-linked, callable and perpetual bonds are later still.
19.11 Z-spread
The Z-spread \(z\) of a bond is the constant rate that, added to every zero rate of the discount curve, makes the curve price the bond at its market price. It is continuously compounded on the curve's own time \(t(d)\) of Equation (7.1) (Actual/365 Fixed from the valuation date), exactly the zero spread of Section 7.9:
The trade's present value at a Z-spread is Equation (19.13) with \(Z_z\) in place of \(Z\) for the coupons and redemptions only: the settlement amount SA of an unsettled trade is owed by the trade's counterparty, not by the issuer, so it stays discounted on \(Z\). The dirty price it implies for settlement on \(s\) is Equation (19.14) with \(Z_z\):
In words: each payment is discounted on the curve, and further by \(z\) over the time from settlement to payment. A bond that pays more than the curve's risk-free rate for its issuer's credit and liquidity trades below the curve price and has a positive Z-spread.
Solving for the Z-spread. Given a clean price, the library adds the accrued interest of Equation (19.4) to get the dirty price and solves Equation (19.16) for \(z\) with Brent's method (Section 5.5) on plain numbers, searching between \(-5\%\) and \(50\%\). The right side falls as \(z\) rises (every payment comes after settlement), so the root is unique.
Risk. The solved Z-spread is a number, not a variable of the curve. A bond's curve deltas hold its Z-spread fixed, as the market quotes it: when the curve moves, the bond's price moves with it at a constant spread. (The sensitivity of the solved spread to the curve, by the implicit function theorem, is a different quantity, not reported.)
Worked example. The 4.25% note of Section 19.9 on a flat 4% curve (continuously compounded zero rate) settling on 19 October 2026: the curve clean price is 100.7709, the accrued interest 0.7507. At a market clean price of 100.00 (dirty 100.7507), Equation (19.16) gives \(z = 0.19154\%\), 19.15 basis points.
19.12 Sukuk
Islamic products are valued as wrappers around conventional ones. A fixed-rate Sukuk with contractual periodic distributions and dissolution at par is a fixed-rate bond in every cash flow it pays:
| Sukuk term | Bond term |
|---|---|
| Profit rate | Coupon rate \(c\) |
| Periodic distribution amount | Coupon \(C_i\) |
| Dissolution amount (at par) | Redemption \(r_i\) |
| Profit accrual date | Interest accrual date \(u_0\) |
| Scheduled dissolution date | Maturity \(u_n\) |
| Obligor | Issuer (whose credit is priced) |
A Sukuk is stored as a security of its own type, in the words of its prospectus: its structure (Ijara, Murabaha, Wakala or hybrid), its obligor, the issuer of the certificates (usually a trustee special purpose vehicle) and the terms above. The library reads it into the conventional bond plus these Islamic terms; every price, yield, accrued amount, Z-spread and risk measure of this chapter then applies unchanged. A position in a Sukuk is a bond trade in that bond, signed as in Equation (19.1); reports show its legs as a Sukuk.
Mudaraba and Musharaka Sukuk are not covered: their distributions are a share of expected profits, not contractual amounts, so they are not a fixed-rate bond. Floating-rate Sukuk come with floating-rate notes.
SAR Government Sukuk convention. The shipped convention SAR-GOVT-SUKUK
(semi-annual, Actual/360, T+2, Riyadh calendar, USD discount collateral) is
provisional: it is to be confirmed against the quoted yield of one
issue, and no price is validated against it yet. USD Reg S bonds and Sukuk of
GCC issuers use USD-REGS-30360 (semi-annual, ISDA 30/360 Bond Basis of
Chapter 3, T+2); the US variant's February-end adjustments are not
implemented, so a coupon period ending on the last day of February can differ
by a day from a US 30/360 calculation. US Treasuries USD-TREASURY
(semi-annual, Actual/Actual ICMA, T+1, US street yield).
References
- International Capital Market Association (2024). Primary Market Handbook, Appendix A9: formula for yield (Rule 251). ICMA publication.
- United States Government (2024). 31 CFR Part 356, Appendix B: Formulas and Tables. Code of Federal Regulations, https://www.ecfr.gov/current/title-31/part-356