Site Map  enter code:



Download Data for Year 2017:

Would you like to download government spending data from, spending data that covers all levels of government, United States federal, state, and local government spending? No problem. We have five ways you can download spending data. And more to come.

Fast Lane

Click to download your government spending data for Fiscal Year 2017

CSV file simple text tab-delimited
simple html <table>
without styling
fully styled
html <table>

Slow Lane

Here is how to get your government spending data. You can use controls on the table below to change the data, including:

  • The fiscal year
  • The view
  • The level of spending detail
  • The units, including billions, millions, percent of GDP, percent of spending
  • An individual state

To get what you want, just follow the easy steps outlined below.

Step 1: Select the data set you want

In the table below, click the controls to get the data you want.

  1. Click the “-1yr” and “+1yr” text-links or the “2017” drop-down to change the year from 2017 to the year you want.
  2. Click the “Change View” controls to change the data labels to the view you want.
  3. Click the expander [+] controls to add more detail.
  4. Click the “$ billion” drop-down to change the units.
  5. Click the “United States” drop-down to change to an individual state.

Go ahead and use the controls on the table below to get the particular spending information you want to download.

Units: By default, values are displayed in billions of nominal dollars. By using a dropdown control in the table heading you can select millions of dollars, percent of GDP, percent of federal total, percent of overall total, dollars per capita of population, and thousand dollars per capita of population.
Fiscal Year: The default year displayed is the current US government fiscal year. But you can select any year you want using the dropdown control in the table heading. At the top and bottom of the dropdown only years ending in “0” are shown. Select a year to get close, then select the year you want. You can increase or decrease the year using the “yr” text links in the table heading.
US Budget Year: By default, the table displays budgeted and estimated numbers from the most recent US Federal Budget submitted to the Congress by the president. But you can look at numbers from other US Federal Budgets using this dropdown control.
GDP: $19,302.8 bln
$33,757.6 bln
State and Local Spending: By default, state and local spending are displayed separately. But you can select state'n local and display state and local spending combined.
US or State: By default, the table shows values for governments in the United States overall. But for years after 1991 you can select individual states by selecting the state dropdown control in the table heading or the text link right above it.
Pie Chart: Select a pie chart you wish to display. You can create a pie chart for federal, state and local, and overall spending/revenue.

United States Federal
State and Local Government Spending
Pop: 325.4 million
-5yr -1yr   Fiscal Year 2017 in $ billion   +1yr +4yr
View: people old default radical census
programs altprog oldprog COFOG
Total chart
[+]  Pensions 1,033.4 0.0 252.2 52.4 1,338.0
[+]  Health Care 1,172.5 -412.9 626.2 164.1 1,550.1
[+]  Education 120.5 -58.5 311.0 698.5 1,071.4
Charts: Click on a to display a bar of data in a row or column of this table.
Click on to display a time-series chart of data in a row.
[+] Drill-down: Click on the [+] to drill down to more detailed numbers. For federal spending line items (but not revenue) you can drill down three levels to view about 4,000 items of spending at the “agency code” level.
Defense 853.6 0.0 1.2 0.1 854.8
[+]  Welfare 386.8 -126.9 124.6 90.9 475.4
[+]  Protection 40.9 -9.3 80.9 177.9 290.3
[+]  Transportation 100.2 -69.0 128.5 157.8 317.5
[+]  General Government 53.6 -3.4 60.8 81.8 192.8
[+]  Other Spending 83.1 -14.3 86.7 383.7 539.2
[+]  Interest 302.7 0.0 45.4 62.3 410.3
[+]  Balance -0.0 0.0 0.0 -0.0 -0.0
[+]  Total Spending:  Start chart 4,147.2 -694.2 1,717.5 1,869.4 7,039.8
[+]  Federal Deficit 503.5 0.0 0.0 0.0 503.5
[+]  Gross Public Debt 20,149.4 0.0 1,201.6 1,893.6 23,244.6
[+]  Other Borrowing 108.5 0.0 0.0 0.0 108.5
[+]  Agency/GSE Debt 8,402.5 0.0 0.0 0.0 8,402.5
expand / collapse      Click for Bar Chart -> 
Pie Chart: Select a pie chart you wish to display. You can create a pie chart for federal, state and local, and overall spending/revenue.

b - estimated by US budget
g - 'guesstimated' projection by
e - estimated by
Data Sources:
GDP, GO: GDP, GO Sources
Federal: Fed. Budget: Hist. Tables 3.2, 5.1, 7.1
State and Local: State and Local Gov. Finances
'Guesstimated' by projecting the latest change in reported spending forward to future years
Switch to revenue

OK. Now you are ready to download your data.

back to table | back to top

Step 2: Download Your Data

Download Data as CSV File

 Click button to download CSV file of data in table

Copy/Paste Data

You can copy data and then paste it into a document on your computer:

  • A simple text table with the top-line numbers for total spending across all governments.
  • A tab-delimited table that you can cut and paste into your spreadsheet program.
  • A simple table using html <table> tags without styling.
  • A fully styled html <table> with all the styles included.

back to table | back to top

Top-line numbers

If you want just the top-line total numbers for overall government spending, federal, state, and local, then here they are:

Use your cursor to copy and paste the following lines into your own content:

United States Federal
State and Local Government Spending
Fiscal Year 2017

Pensions: $1,338.0 billion
Health Care: $1,550.1 billion
Education: $1,071.4 billion
Defense: $854.8 billion
Welfare: $475.4 billion
Protection: $290.3 billion
Transportation: $317.5 billion
General Government: $192.8 billion
Other Spending: $539.2 billion
Interest: $410.3 billion
Balance: $-0.0 billion
Total Spending: $7,039.8 billion
Federal Deficit: $503.5 billion
Gross Public Debt: $23,244.6 billion
Other Borrowing: $108.5 billion
Agency/GSE Debt: $8,402.5 billion


back to table | back to top

Here is a bar chart of the top-line numbers. Right click the cursor to copy or save the image:

back to table | back to top

Tab-delimited Table

Here is the spending table with columns tab-delimited. You can cut and paste directly into a spreadsheet:

You can copy all the text in the textbox by clicking your cursor in the box. Then press Ctrl-A and Ctrl-C and paste the text into your spreadsheet.

back to table | back to top

Simple html <table>

Maybe you want to get the data formatted in html for insertion into your content as a table. Here is the data in html with a simple table setup. There are no fancy tags or styles. Just a straight table with <table>, <tr>, and <td> tags.

You can copy all the text in the textbox by clicking your cursor in the box. Then press Ctrl-A and Ctrl-C and paste the html into your content.

back to table | back to top

Fully styled table

Here in the textbox is the full table with styles but without controls. The styles are built around an id called “usgs342”. It shouldn’t interfere with your styles.

You can copy all the text in the textbox by clicking your cursor in the box. Then press Ctrl-A and Ctrl-C and paste into your content.

back to table | back to top


You Can Help!

What do you want from Email us at

Best wishes from all of us at the team.


back to table | back to top

Site Search

Win Cash for Bugs

File a valid bug report and get a $5 Amazon Gift Certificate.

Next Data Update

> Federal Budget FY18

> data update schedule.

FY18 Budget Blueprint Released

On March 16, 2018 the Trump administration issued a Budget Blueprint outlining proposed changes to "discretionary" spending for Fiscal Year 2018. The following table shows the major changes to Budget Authority in excess of $2 billion per agency.

AgencyFY18 Change
in $ billion
Health and
Human Services
State and Intl Aid-10.9

Because usgovernmentspending spending data is based on Historical Table 3.2, it shows spending by function rather than by agency. Until Table 3.2 is published in the final version of the FY18 budget we cannot exactly predict how the Table 3.2 numbers will change at the subfunction level.

But we have applied the Budget Blueprint budget authority changes into the budgeted FY18 outlays by guessing the application of agency level changes to subfunction changes to give a rough feeling of what the Trump changes look like. You can check out what is going on here or here.

The numbers will change when the final FY18 federal budget numbers come out.

Spend links

us numbersus budgetcustom chartdeficit/gdpspend/gdpdebt/gdpus gdpus real gdpstate gdpbreakdownfederalstatelocal201520162017californiatexas

Masthead was designed and executed by:

Christopher Chantrill.

Email here.

presented by Christopher Chantrill

Data Sources  •   •  Contact