US Federal Outlays by Budget Function, 1940-2031

US federal government outlays by budget function (national defense, net interest, Social Security, Medicare, health and the other functions of the federal budget) for every fiscal year from 1940 to 2031, in millions of nominal US dollars, with each function's share of total outlays. Actuals for FY1940-2025 and OMB estimates for FY2027-2031 come from the OMB Historical Tables of the FY2027 Budget (Table 3.1); the FY2026 actual comes from the US Treasury's Monthly Treasury Statement for September 2026 (Table 9). A second file gives OMB's superfunctions and total with their shares of outlays and of GDP, FY1940-2031 (FY2026 onwards as OMB estimates).

Report an issue
Downloads
16
Last updated
Data files
2
Total size
195 kB
Format
csv
License
US-PD

Data Views

1 view

US federal net interest and national defense outlays, billions of nominal dollars, FY1940-2031 (FY2027 onwards: OMB estimates)

Source · core/us-federal-outlays-by-function · outlays-by-function

US federal outlays by budget function, FY1940-2031

US federal outlays by superfunction, with shares of outlays and GDP, FY1940-2031 (OMB)

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

YearsValuesSource
FY1940-2025 (and the 1976 transition quarter)actualOMB Historical Tables, FY2027 Budget, Table 3.1
FY2026actual (Treasury) in outlays-by-function.csv; OMB estimate in outlays-by-superfunction.csvMonthly Treasury Statement for September 2026, Table 9, fiscal year to date; OMB Table 3.1
FY2027-2031estimateOMB 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

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.

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/core/us-federal-outlays-by-function/5 files
  • README.mddocumentationhttps://datahub.io/core/us-federal-outlays-by-function/_r/-/README.md
  • config.jsonhttps://datahub.io/core/us-federal-outlays-by-function/_r/-/config.json
  • data/outlays-by-function.csvhttps://datahub.io/core/us-federal-outlays-by-function/_r/-/data/outlays-by-function.csv
  • data/outlays-by-superfunction.csvhttps://datahub.io/core/us-federal-outlays-by-function/_r/-/data/outlays-by-superfunction.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/core/us-federal-outlays-by-function/_r/-/datapackage.json