{
  "name": "us-federal-outlays-by-function",
  "title": "US Federal Outlays by Budget Function, 1940-2031",
  "description": "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).",
  "status": "structured",
  "licenses": [
    {
      "name": "US-PD",
      "title": "Public domain: works of the US federal government (OMB and the US Treasury). White House copyright policy: \"Pursuant to federal law, government-produced materials appearing on this site are not copyright protected.\" Treasury Fiscal Data: \"The data is offered free, without restriction, and available to copy, adapt, redistribute, or otherwise use for non-commercial or commercial purposes.\"",
      "path": "https://www.whitehouse.gov/copyright/"
    }
  ],
  "sources": [
    {
      "title": "Office of Management and Budget, Historical Tables, Budget of the US Government Fiscal Year 2027, Table 3.1: Outlays by Superfunction and Function, 1940-2031",
      "path": "https://www.whitehouse.gov/omb/budget/historical-tables/"
    },
    {
      "title": "Office of Management and Budget, Historical Tables FY2027, Table 3.1 spreadsheet",
      "path": "https://www.whitehouse.gov/wp-content/uploads/2026/04/hist03z1_fy2027.xlsx"
    },
    {
      "title": "US 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 (Fiscal Data API)",
      "path": "https://fiscaldata.treasury.gov/datasets/monthly-treasury-statement/"
    },
    {
      "title": "Monthly Treasury Statement for September 2026 (PDF)",
      "path": "https://fiscaldata.treasury.gov/static-data/published-reports/mts/MonthlyTreasuryStatement_202609.pdf"
    }
  ],
  "upkeep": { "mode": "frozen", "snapshot": "2026-11-29" },
  "resources": [
    {
      "path": "data/outlays-by-function.csv",
      "name": "outlays-by-function",
      "title": "US federal outlays by budget function, FY1940-2031",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "fiscal_year", "type": "integer", "description": "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." },
          { "name": "period", "type": "string", "description": "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)." },
          { "name": "function_code", "type": "string", "description": "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." },
          { "name": "function", "type": "string", "description": "Budget function name as in OMB Historical Table 3.2." },
          { "name": "superfunction", "type": "string", "description": "OMB's summary grouping (Table 3.1): National defense, Human resources, Physical resources, Net interest, Other functions, or Undistributed offsetting receipts." },
          { "name": "outlays_million_usd", "type": "integer", "description": "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." },
          { "name": "share_of_total_pct", "type": "number", "description": "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." },
          { "name": "status", "type": "string", "description": "actual, or estimate (OMB projection in the FY2027 Budget, released April 2026, FY2027-2031 here)." },
          { "name": "source", "type": "string", "description": "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)." }
        ],
        "primaryKey": ["fiscal_year", "period", "function_code"]
      }
    },
    {
      "path": "data/outlays-by-superfunction.csv",
      "name": "outlays-by-superfunction",
      "title": "US federal outlays by superfunction, with shares of outlays and GDP, FY1940-2031 (OMB)",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "fiscal_year", "type": "integer", "description": "US federal fiscal year, named for the year it ends (see outlays-by-function)." },
          { "name": "period", "type": "string", "description": "FY for a full fiscal year; TQ for the July-September 1976 transition quarter." },
          { "name": "superfunction", "type": "string", "description": "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." },
          { "name": "outlays_million_usd", "type": "integer", "description": "Outlays, millions of nominal US dollars, as published in OMB Historical Table 3.1." },
          { "name": "share_of_outlays_pct", "type": "number", "description": "Percentage of total federal outlays, as published by OMB (1 decimal)." },
          { "name": "share_of_gdp_pct", "type": "number", "description": "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." },
          { "name": "status", "type": "string", "description": "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." },
          { "name": "source", "type": "string", "description": "omb-hist-fy2027: OMB Historical Tables, FY2027 Budget, Table 3.1." }
        ],
        "primaryKey": ["fiscal_year", "period", "superfunction"]
      }
    }
  ],
  "views": [
    {
      "name": "interest-vs-defense",
      "title": "US federal net interest and national defense outlays, billions of nominal dollars, FY1940-2031 (FY2027 onwards: OMB estimates)",
      "resources": ["outlays-by-function"],
      "specType": "vega-lite",
      "spec": {
        "width": "container",
        "height": 340,
        "transform": [
          { "filter": "datum.period == 'FY' && (datum.function_code == '050' || datum.function_code == '900')" },
          { "calculate": "datum.outlays_million_usd / 1000", "as": "billion_usd" }
        ],
        "mark": { "type": "line", "strokeWidth": 1.5 },
        "encoding": {
          "x": { "field": "fiscal_year", "type": "quantitative", "axis": { "title": "Fiscal year", "format": "d" }, "scale": { "zero": false } },
          "y": { "field": "billion_usd", "type": "quantitative", "axis": { "title": "Billions of US dollars (nominal)" } },
          "color": { "field": "function", "type": "nominal", "title": null },
          "strokeDash": { "field": "status", "type": "nominal", "title": null },
          "tooltip": [
            { "field": "fiscal_year", "type": "quantitative", "format": "d" },
            { "field": "function", "type": "nominal" },
            { "field": "billion_usd", "type": "quantitative", "format": ",.1f" },
            { "field": "status", "type": "nominal" },
            { "field": "source", "type": "nominal" }
          ]
        }
      }
    }
  ]
}
