Overview
Treasury Yields sources daily constant-maturity market yields from the Federal Reserve (FRED), the same rates used to construct the Treasury yield curve. Nominal yields span 1-month to 30-year maturities and TIPS real yields span 5-year to 30-year. Historical month-end snapshots go back to January 2010. Paid plans also get the standard curve spreads (10yr-2yr, 10yr-3mo, 30yr-5yr, 5yr-2yr), inversion flags, the curve's shape, and breakeven inflation at each TIPS maturity (the nominal yield minus the real yield, the market's implied inflation rate).
Live Test Treasury Yields Source →
Formula
One function covers the whole catalog: the first argument names the source, the next are its inputs, and the field after them says which single value lands in the cell. Formulas covers the grammar that applies to all of them.
=VERVE("treasuryyields", "bills")=VERVE.CALL("treasuryyields", "bills")Inputs
Required inputs are positional, in the order below, followed by the field. Everything else is passed as a "name", value pair after that — the same shape as SUMIFS. Premium inputs are accepted on every plan but only take effect on plans that include them.
| Input | Type | Where it goes | Description |
|---|---|---|---|
dateOptionalPremium | string | "date", value | Optional month in YYYY-MM format, back to 2010-01; returns that month's closing curve. Omit for the latest daily curve. |
typeOptional | string | "type", value | Optional filter for a single point. Legacy security types: bills, notes, bonds, tips, frn. Or a maturity: 1mo, 3mo, 6mo, 1yr, 2yr, 3yr, 5yr, 7yr, 10yr, 20yr, 30yr |
Passing an option
=VERVE("treasuryyields", "bills", "date", "2025-06")=VERVE.CALL("treasuryyields", "bills", "date", "2025-06")What lands in your sheet
The field — the argument after the inputs — is what makes the formula resolve to one cell. Its value is a dot-path from the table below, so swapping it is how you pull a different value — one formula per column.
Seeing everything at once
Leave the field out and the formula returns the whole response instead: two columns, field name on the left and value on the right, spilling from the cell you typed in.
=VERVE("treasuryyields")=VERVE.CALL("treasuryyields")The second row's table would land on top of the first's, and every cell after the first reads #REF! (#SPILL! in Excel). Keep one per sheet, or name a field, and leave the cells below and to the right empty.
Response fields
Paths are relative to data. Each one is exactly what the field argument accepts, so swapping it is how you pull a different value into a cell. On a plan without a Premium field the cell reads #PREMIUM(field) rather than a value, so a locked field never looks like a real answer.
| Use as the field | Type | Example cell value | Description |
|---|---|---|---|
date | string | 2026-10-23 | The date of the treasury yields data in YYYY-MM-DD format |
yields | object | {…} | Nominal constant-maturity market yields (percent) keyed by maturity: 1mo, 3mo, 6mo, 1yr, 2yr, 3yr, 5yr, 7yr, 10yr, 20yr, 30yr |
yields.1mo | number | 4.11 | |
yields.3mo | number | 4.22 | |
yields.6mo | number | 4.3 | |
yields.1yr | number | 4.44 | |
yields.2yr | number | 4.69 | |
yields.3yr | number | 4.75 | |
yields.5yr | number | 4.82 | |
yields.7yr | number | 4.89 | |
yields.10yr | number | 5 | |
yields.20yr | number | 5.37 | |
yields.30yr | number | 5.33 | |
realYieldsPremium | object | {…} | TIPS real (inflation-indexed) constant-maturity yields (percent) keyed by maturity: 5yr, 7yr, 10yr, 20yr, 30yr |
realYields.5yrPremium | number | 2.34 | |
realYields.7yrPremium | number | 2.49 | |
realYields.10yrPremium | number | 2.66 | |
realYields.20yrPremium | number | 2.94 | |
realYields.30yrPremium | number | 3.08 | |
bills | number | 4.22 | Benchmark short-term yield (3-month) as percentage |
notes | number | 5 | Benchmark note yield (10-year) as percentage |
bonds | number | 5.33 | Benchmark long bond yield (30-year) as percentage |
tipsPremium | number | 2.66 | Benchmark TIPS real yield (10-year) as percentage |
frnPremium | number | 4.22 | Floating Rate Note reference yield (3-month bill) as percentage |
changesPremium | object | {…} | Day-over-day change statistics, keyed by legacy type and by maturity |
changes.billsPremium | object | {…} | Change data for the 3-month benchmark including change1d and direction |
changes.bills.change1dPremium | number | 0 | One-day percentage point change for the 3-month benchmark |
changes.bills.directionPremium | string | unchanged | Direction of change: up, down, or unchanged |
changes.notesPremium | object | {…} | Change data for the 10-year benchmark including change1d and direction |
changes.notes.change1dPremium | number | 0.04 | One-day percentage point change for the 10-year benchmark |
changes.notes.directionPremium | string | up | Direction of change: up, down, or unchanged |
changes.bondsPremium | object | {…} | Change data for the 30-year benchmark including change1d and direction |
changes.bonds.change1dPremium | number | 0.04 | One-day percentage point change for the 30-year benchmark |
changes.bonds.directionPremium | string | up | Direction of change: up, down, or unchanged |
changes.tipsPremium | object | {…} | Change data for the 10-year TIPS benchmark including change1d and direction |
changes.tips.change1dPremium | number | 0.02 | One-day percentage point change for the 10-year TIPS benchmark |
changes.tips.directionPremium | string | up | Direction of change: up, down, or unchanged |
changes.frnPremium | object | {…} | Change data for the FRN reference (3-month) including change1d and direction |
changes.frn.change1dPremium | number | 0 | One-day percentage point change for the FRN reference |
changes.frn.directionPremium | string | unchanged | Direction of change: up, down, or unchanged |
changes.1moPremium | object | {…} | |
changes.1mo.change1dPremium | number | 0 | One-day percentage point change for the requested type, when available |
changes.1mo.directionPremium | string | unchanged | |
changes.3moPremium | object | {…} | |
changes.3mo.change1dPremium | number | 0 | One-day percentage point change for the requested type, when available |
changes.3mo.directionPremium | string | unchanged | |
changes.6moPremium | object | {…} | |
changes.6mo.change1dPremium | number | 0.01 | One-day percentage point change for the requested type, when available |
changes.6mo.directionPremium | string | up | |
changes.1yrPremium | object | {…} | |
changes.1yr.change1dPremium | number | 0.03 | One-day percentage point change for the requested type, when available |
changes.1yr.directionPremium | string | up | |
changes.2yrPremium | object | {…} | |
changes.2yr.change1dPremium | number | 0.04 | One-day percentage point change for the requested type, when available |
changes.2yr.directionPremium | string | up | |
changes.3yrPremium | object | {…} | |
changes.3yr.change1dPremium | number | 0.03 | One-day percentage point change for the requested type, when available |
changes.3yr.directionPremium | string | up | |
changes.5yrPremium | object | {…} | |
changes.5yr.change1dPremium | number | 0.04 | One-day percentage point change for the requested type, when available |
changes.5yr.directionPremium | string | up | |
changes.7yrPremium | object | {…} | |
changes.7yr.change1dPremium | number | 0.03 | One-day percentage point change for the requested type, when available |
changes.7yr.directionPremium | string | up | |
changes.10yrPremium | object | {…} | |
changes.10yr.change1dPremium | number | 0.04 | One-day percentage point change for the requested type, when available |
changes.10yr.directionPremium | string | up | |
changes.20yrPremium | object | {…} | |
changes.20yr.change1dPremium | number | 0.05 | One-day percentage point change for the requested type, when available |
changes.20yr.directionPremium | string | up | |
changes.30yrPremium | object | {…} | |
changes.30yr.change1dPremium | number | 0.04 | One-day percentage point change for the requested type, when available |
changes.30yr.directionPremium | string | up | |
spread10yr2yrPremium | number | 0.31 | 10-year minus 2-year yield, in percentage points; negative means that part of the curve is inverted; returned with the full curve, not with type |
spread10yr3moPremium | number | 0.78 | 10-year minus 3-month yield, in percentage points (the Fed's preferred recession indicator); returned with the full curve, not with type |
spread30yr5yrPremium | number | 0.51 | 30-year minus 5-year yield, in percentage points; returned with the full curve, not with type |
spread5yr2yrPremium | number | 0.13 | 5-year minus 2-year yield, in percentage points; returned with the full curve, not with type |
inverted10yr2yrPremium | boolean | false | True when the 10-year yield is below the 2-year; returned with the full curve, not with type |
inverted10yr3moPremium | boolean | false | True when the 10-year yield is below the 3-month; returned with the full curve, not with type |
curveShapePremium | string | normal | normal, flat (10yr-3mo spread within 0.25 points) or inverted (10yr below 3mo); returned with the full curve, not with type |
When a cell doesn't fill
A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() will not catch it; test with LEFT(cell, 4) = "#ERR" instead. Error handling covers the rest.
| Cell reads | What happened |
|---|---|
#ERR Not connected | No API key saved. Open the side panel and connect your account. |
#ERR Replace <name> with a cell or value | A preview formula was copied as-is. Swap the placeholder for a cell reference. |
#ERR No "x" in treasuryyields | An option name this source does not take. The message lists the ones it does. |
#ERR No data point "…" | The field path is not in the response. Check it against the table above. |
#PREMIUM(field) | The field exists but your plan does not include it. |
#ERR Out of credits | The cycle's credits are spent. Usage resets on your billing date. |
Before the formula works
The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet does not leak it and a collaborator without access simply sees the last calculated values.
- Install the add-in for Google Sheets or Excel.
- Open the side panel and sign in, or paste a key from your dashboard.
- Type the formula above into any cell.
Use cases
- Yield Curve Analysis
- Build yield curves using Treasury rates across different maturities
- Fixed Income Research
- Analyze treasury securities for investment research and portfolio management
- Financial Modeling
- Use risk-free rates for DCF models and derivatives pricing
- Economic Indicators
- Track treasury yields as indicators of economic conditions and Fed policy
Other ways to use Treasury Yields
Set up Treasury Yields on VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.
Related
More in Finance: