Treasury Futures Basis
Calculates the conversion factor, basis and implied repo rate of every Treasury that can be delivered into a CME US Treasury futures contract: what delivering each costs and earns against the futures price, and which of them is the cheapest to deliver.
The seller of a Treasury futures contract delivers a Treasury of its choice from a basket of eligible ones and receives the futures price times that security’s conversion factor, plus accrued interest. The factors put securities of different coupons and maturities on one scale, but not exactly, so one of them is the cheapest to deliver: the one whose purchase today, financed in repo and delivered into the futures, earns the most (the highest implied repo rate). The futures price tracks that security (Burghardt and Belton, 2005, The Treasury Bond Basis; Hull, 2022, Options, Futures and Other Derivatives, ch. 6.2).
The formula is as follows:
\[\text{Conversion Factor} = a \cdot \left(\frac{c}{2} + C + d\right) - \text{b:} \;\text{the price per 1 of par at}\; a 6\% \;\text{yield on the first day of the delivery month},\;\; \text{with}\;\; a = \frac{1}{1.03^{\frac{v}{6}}},\;\; b = \frac{\frac{c}{2} \cdot (6 - v)}{6},\;\; C = \frac{1}{1.03^{2n}(\text{or}\; 1.03^{2n + 1} \;\text{from 7 months})},\;\; d = \frac{c}{0.06} \cdot (1 - C),\;\; n \;\text{and}\; z \;\text{the whole years and months to maturity and}\; v = z \;\text{below 7 months} \;(\text{CME Group},\; \text{"Calculating} \text{U.S.} \;\text{Treasury Futures Conversion}\; \text{Factors"})\] \[\text{Invoice Price} = F \cdot \text{CF} + \text{AI}_{T}\] \[\text{Gross Basis} = P - F \cdot \text{CF}\] \[\text{Carry} = P - \text{Forward Price},\;\; \text{the coupon income less the repo cost to delivery (see get\_treasury\_forward\_prices)}\] \[\text{Net Basis} = \text{Gross Basis} - \text{Carry}\] \[\text{Implied Repo Rate} = \frac{F \cdot \text{CF} + \text{AI}_{T} + \Sigma_{k} c_{k} - (P + \text{AI}_{0})}{\frac{(P + \text{AI}_{0}) \cdot d}{360} - \frac{\Sigma_{k} c_{k} \cdot (d - d_{k})}{360}}\]where c is the coupon, P the clean price (FedInvest), F the futures price, \(\text{AI}_{0}\) and \(\text{AI}_{T}\) the accrued interest on the price date and the delivery date, d the days to the delivery date and \(c_{k}\) the coupons paid before it. The months to maturity are rounded down to whole quarters for the 10-year (ZN), Ultra 10-year (TN), bond (ZB) and Ultra bond (UB) contracts and to whole months for the 2-year (ZT) and 5-year (ZF) ones. Rates are simple interest on actual/360. The cheapest to deliver has the highest implied repo rate and the lowest net basis.
The conversion factors equal those of FinancePy’s BondFuture and rateslib’s BondFuture (CME conventions) and Hull’s examples (1.4623 for a 10% coupon with 20 years and 2 months).
See definition: cmegroup.com
Also known as: cheapest to deliver, CTD, Treasury basis, implied repo rate, IRR, conversion factor, net basis, gross basis, invoice price, delivery basket.
Example
Install the Finance Toolkit with pip install financetoolkit -U, then call get_treasury_futures_basis:
from financetoolkit import FixedIncome
fixedincome = FixedIncome()
basis = fixedincome.get_treasury_futures_basis(contract="ZN", contract_month="2026-12", date="2026-11-19")
basis[["Maturity", "Price", "Conversion Factor", "Gross Basis", "Net Basis", "Implied Repo Rate"]]
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What were the gross basis, net basis and implied repo rate of the bonds deliverable into the December 2026 10-year Treasury note future on 19 November 2026?
Which returns:
| CUSIP | Maturity | Price | Conversion Factor | Gross Basis | Net Basis | Implied Repo Rate |
|---|---|---|---|---|---|---|
| 91282CRJ2 | 2033-08-31 | 97.5000 | 0.9202 | 0.0738 | -0.0024 | 0.0390 |
| 91282CHT1 | 2033-08-15 | 93.9688 | 0.8870 | 0.0576 | 0.0453 | 0.0347 |
| 91282CRC7 | 2033-07-31 | 96.8438 | 0.9136 | 0.1163 | 0.0614 | 0.0334 |
| 91282CRM5 | 2033-09-30 | 100.3440 | 0.9451 | 0.2813 | 0.1617 | 0.0251 |
| 91282CQW4 | 2033-06-30 | 96.2188 | 0.9069 | 0.2007 | 0.1586 | 0.0249 |
| 91282CJJ1 | 2033-11-15 | 97.4062 | 0.9177 | 0.2448 | 0.1638 | 0.0244 |
| 91282CRV5 | 2033-10-31 | 99.6250 | 0.9382 | 0.2931 | 0.1796 | 0.0234 |
| 91282CJZ5 | 2034-02-15 | 94.2500 | 0.8870 | 0.3389 | 0.3137 | 0.0106 |
| 91282CKQ3 | 2034-05-15 | 96.3750 | 0.9055 | 0.5052 | 0.4341 | 0.0002 |
| 91282CLF6 | 2034-08-15 | 93.0000 | 0.8732 | 0.5499 | 0.5333 | -0.0098 |
| 91282CLW9 | 2034-11-15 | 95.1875 | 0.8927 | 0.6729 | 0.6109 | -0.0162 |
11 rows
Parameters
get_treasury_futures_basis accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
contract | str | The futures contract. Options are: “ZT” (2-year note), “ZF” (5-year note), “ZN” (10-year note), “TN” (Ultra 10-year note), “ZB” (bond), “UB” (Ultra bond). Defaults to “ZN”. | "ZN" |
contract_month | str | None | The delivery month (YYYY-MM), March, June, September or December. Defaults to None, the first of those months that starts after the price date. | None, the first of those months that starts after the price date |
repo_rate | float | None | The repo rate (decimal, simple interest on actual/360) to the delivery date, for the carry and net basis. Defaults to None, the tri-party general collateral rate (TGCR) of the price date. | None, the tri-party general collateral rate (TGCR) of the price date |
date | str | None | The day of the FedInvest prices (YYYY-MM-DD); a weekend or holiday uses the business day before it. Defaults to None, the latest day with prices. | "2025-03-31" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the class. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Library Referenced against rateslib’s BondFuture.cfs
- Library Shares similar logic as FinancePy’s BondFuture.gross_basis
- Library Shares similar logic as FinancePy’s BondFuture.net_basis
- Library Shares similar logic as rateslib’s BondFuture.gross_basis
- Library Shares similar logic as rateslib’s BondFuture.net_basis
- Library Shares similar logic as rateslib’s BondFuture.implied_repo