What the US federal government spends, by purpose, for every fiscal year from 1940 to 2026, with the White House budget office's estimates to 2031. Outlays are split by the federal budget's functional classification, up to 20 categories a year (18 functions plus allowances and undistributed offsetting receipts): national defense, net interest on the debt, Social Security, Medicare, health, income security, veterans' benefits and the rest. Figures are in millions of nominal US dollars (not adjusted for inflation), with each function's share of total outlays. In fiscal year 2026, which ended on 30 September 2026, federal outlays were $7.396 trillion.

## What stands out

In fiscal year 2026 the US federal government spent more on net interest than on national defense. Net interest outlays were $1,051.8 billion, $86.6 billion more than the $965.2 billion spent on national defense (Treasury's figures for the year to 30 September 2026). Net interest took 14.2% of all federal outlays, defense 13.1%.

This is recent. In OMB's actuals from 1940 onwards, net interest first exceeded defense in fiscal 2024, by $6.4 billion ($879.9 billion against $873.5 billion), and the gap widened to $53.9 billion in 2025. As recently as 2021 defense was more than twice as large ($753.9 billion against $352.3 billion). OMB's FY2027 Budget estimates put defense back ahead throughout FY2027–2031, at $1,205.0 billion against $1,065.4 billion of interest; those are projections, not actuals.

## Data

`data/outlays-by-function.csv`: one row per fiscal year and budget function, FY1940 to FY2031, plus the 1976 transition quarter (1,744 rows).

- `fiscal_year`: the federal fiscal year, named for the year it ends. Since 1977 it runs from 1 October to 30 September; before that, from 1 July to 30 June.
- `period`: `FY` for a fiscal year; `TQ` for the transition quarter, July-September 1976, a separate three-month accounting period used when the start of the fiscal year moved (its `fiscal_year` is 1976). Leave it out when you add up years.
- `function_code`, `function`: the budget function, e.g. `050` National Defense, `900` Net Interest. The code is text, so the leading zero is kept.
- `superfunction`: OMB's summary group (National defense, Human resources, Physical resources, Net interest, Other functions, Undistributed offsetting receipts).
- `outlays_million_usd`: outlays in millions of nominal US dollars, on-budget and off-budget together. Can be negative.
- `share_of_total_pct`: the function's share of total federal outlays for the same period, calculated for this dataset (2 decimals).
- `status`: `actual` or `estimate`.
- `source`: `omb-hist-fy2027` or `treasury-mts-2026-09` (see below).

The functions of each year add up to total federal outlays (to within $3 million of OMB's printed total, from OMB's rounding of each line). A row is left out where the source has no amount for that function in that year: Medicare before 1966, General Science, Space, and Technology in 1940-41, and Allowances in every year except the estimates for 2027-2031.

`data/outlays-by-superfunction.csv`: OMB's six superfunctions and the total, FY1940 to FY2031 plus the transition quarter (651 rows), with `outlays_million_usd`, and OMB's own `share_of_outlays_pct` and `share_of_gdp_pct` (1 decimal). Use this file for shares of GDP. Its FY2026 row is OMB's estimate from April 2026, not the actual.

### Which source covers which years

| Years | Values | Source |
|---|---|---|
| FY1940-2025 (and the 1976 transition quarter) | actual | OMB Historical Tables, FY2027 Budget, Table 3.1 |
| FY2026 | actual (Treasury) in `outlays-by-function.csv`; OMB estimate in `outlays-by-superfunction.csv` | Monthly Treasury Statement for September 2026, Table 9, fiscal year to date; OMB Table 3.1 |
| FY2027-2031 | estimate | OMB Historical Tables, FY2027 Budget, Table 3.1 |

## Caveats

- **Nominal dollars.** Nothing is adjusted for inflation; compare years with the share columns, or deflate the dollars yourself.
- **FY2026 is from a different source.** Treasury's September statement is the government's own year-end account, but OMB revises it slightly when it publishes the year as an actual in the next budget. For FY2015-2025, OMB's actuals for national defense and net interest are within 0.5% of the figures in each year's September statement except defense in FY2018, which Treasury classified $33 billion higher in September 2018 and restated a year later. Treasury's total for FY2025 ($7,009,974 million) and OMB's ($7,011,105 million) differ by $1.1 billion.
- **What "net interest" is.** Function 900 combines gross interest on Treasury debt securities, offsets for interest received by federal trust funds, other interest payments and receipts, and other investment income. Most net interest spending is interest paid to the public on federal debt.
- **What "national defense" is.** Function 050 covers the Department of Defense (military), atomic energy defense activities and other defense-related activities. Veterans' benefits are a separate function (700).
- **Negative values** are real: undistributed offsetting receipts (function 950: e.g. agencies' payments as employers into federal retirement funds, offshore oil and gas rents) are always negative, and some functions (Commerce and Housing Credit, Allowances in the estimates) go negative when receipts or planned savings exceed spending.
- **Estimates are policy proposals.** OMB's figures for 2026-2031 assume the policies proposed in the President's FY2027 Budget (April 2026), not current law.
- **Functional classification is applied back in time.** OMB reclassifies past years to the current structure, so these figures can differ from budget documents of the time.
- OMB's shares of GDP use fiscal-year GDP as revised by BEA up to the FY2027 Budget.

## Source and licence

- Office of Management and Budget (OMB), Historical Tables, Budget of the US Government, Fiscal Year 2027 (April 2026), Table 3.1 "Outlays by Superfunction and Function: 1940-2031": https://www.whitehouse.gov/omb/budget/historical-tables/ (spreadsheet https://www.whitehouse.gov/wp-content/uploads/2026/04/hist03z1_fy2027.xlsx). Table 3.2 (by function and subfunction) was used as a cross-check. The Table 3.2 cross-check covers FY1962–2031 and the 1976 transition quarter, excluding FY2026: 1,331 numeric amounts and 69 missing-value positions agree.
- US Department of the Treasury, Bureau of the Fiscal Service, Monthly Treasury Statement, Table 9 "Summary of Receipts by Source, and Outlays by Function of the U.S. Government", September 2026, through the keyless Fiscal Data API: https://fiscaldata.treasury.gov/datasets/monthly-treasury-statement/ (statement PDF: https://fiscaldata.treasury.gov/static-data/published-reports/mts/MonthlyTreasuryStatement_202609.pdf).

Licence: public domain (US-PD), works of the US federal government. The White House says: "Pursuant to federal law, government-produced materials appearing on this site are not copyright protected." (https://www.whitehouse.gov/copyright/). Treasury's Fiscal Data says: "The data is offered free, without restriction, and available to copy, adapt, redistribute, or otherwise use for non-commercial or commercial purposes." (https://fiscaldata.treasury.gov/api-documentation/). Please cite: OMB Historical Tables (FY2027 Budget) and US Treasury Monthly Treasury Statement.

This is a frozen snapshot taken on 2026-11-29, with actuals to FY2026. `scripts/fetch.mjs` downloads the source files into `archive/` and `scripts/build.mjs` rebuilds the CSVs from them. A newer edition of the Historical Tables (the FY2028 Budget) will turn FY2026 into an OMB actual and may revise earlier years.
