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).
US federal outlays by budget function, FY1940-2031
Field
Type
Description
fiscal_year
integer
US federal fiscal year, named for the year it ends. Since FY1977 it runs 1 October to 30 September (FY2026: 1 October 2025 to 30 September 2026); before that, 1 July to 30 June.
period
string
FY for a full fiscal year; TQ for the transition quarter of July-September 1976, a separate accounting period between FY1976 and FY1977 (fiscal_year is 1976).
function_code
string
Three-digit budget function code, e.g. 050 National Defense, 900 Net Interest, 950 Undistributed Offsetting Receipts. Kept as text so the leading zero survives.
function
string
Budget function name as in OMB Historical Table 3.2.
superfunction
string
OMB's summary grouping (Table 3.1): National defense, Human resources, Physical resources, Net interest, Other functions, or Undistributed offsetting receipts.
outlays_million_usd
integer
Outlays (on-budget plus off-budget), millions of nominal US dollars, not adjusted for inflation. Can be negative where offsetting receipts exceed spending (e.g. Commerce and Housing Credit in some years, Undistributed Offsetting Receipts always). FY2026 values are Treasury's dollar figures rounded to the nearest million.
share_of_total_pct
number
outlays_million_usd as a percentage of total federal outlays for the same period, rounded to 2 decimals. Calculated for this dataset from OMB's total (Treasury's total for FY2026); not a published figure.
status
string
actual, or estimate (OMB projection in the FY2027 Budget, released April 2026, FY2027-2031 here).
source
string
omb-hist-fy2027: OMB Historical Tables, FY2027 Budget, Table 3.1 (FY1940-2025 actuals and FY2027-2031 estimates). treasury-mts-2026-09: Monthly Treasury Statement for September 2026, Table 9, fiscal year to date (FY2026 actual).
US federal outlays by superfunction, with shares of outlays and GDP, FY1940-2031 (OMB)
Field
Type
Description
fiscal_year
integer
US federal fiscal year, named for the year it ends (see outlays-by-function).
period
string
FY for a full fiscal year; TQ for the July-September 1976 transition quarter.
superfunction
string
National defense, Human resources, Physical resources, Net interest, Other functions, Undistributed offsetting receipts, or Total, federal outlays. The total is OMB's published figure; the sum of the rounded components can differ from it by up to $2 million.
outlays_million_usd
integer
Outlays, millions of nominal US dollars, as published in OMB Historical Table 3.1.
share_of_outlays_pct
number
Percentage of total federal outlays, as published by OMB (1 decimal).
share_of_gdp_pct
number
Percentage of gross domestic product (fiscal-year GDP), as published by OMB (1 decimal). OMB prints * for 0.05 percent or less; written here as 0.
status
string
actual (FY1940-2025) or estimate (FY2026-2031, OMB FY2027 Budget). This file has OMB's FY2026 estimate; Treasury's FY2026 actual is in outlays-by-function.
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.
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.