Annual U.S. Federal Budget Deficit/Surplus (1901–present)
- Rows
- 126
- Columns
- 2
- Data range
- 1901-06-30 to 2026-09-30
- Auto-refresh
- Re-checks its source daily
- Last refreshed with new data
- 2026-10-29
Annual U.S. federal government budget surplus or deficit in billions of dollars from 1901 to present, a foundational fiscal policy time series covering wars, depressions, and recoveries.
AI analysis
Dataset Analysis: U.S. Federal Budget Deficit/Surplus (1901–Present)
1. Dataset Overview & Value for Correlation Studies
This dataset captures the annual U.S. federal government fiscal position — surplus or deficit — in billions of dollars spanning from 1901 to the present, sourced directly from the Federal Reserve Bank of St. Louis (FRED) at fred.stlouisfed.org. FRED is widely considered the gold standard for U.S. macroeconomic time series data, meaning this dataset benefits from institutional rigor, consistent methodology, and regular updates. With 125 annual observations covering transformative economic epochs — the Great Depression, World War II mobilization, the postwar boom, the Reagan-era deficits, the Clinton surplus years, the 2008 financial crisis, and COVID-19 stimulus — this is an exceptionally rich foundational time series. Its long temporal span makes it ideal for studying fiscal policy cycles, and it serves as a strong anchor variable for cross-dataset correlation studies examining how government borrowing interacts with broader economic and social conditions.
2. Data Quality Observations
Data quality is notably strong for a century-spanning historical series. There are zero null values across both columns (0 of 250 total cells are missing), which is exceptional and reflects FRED's careful curation of historical records. No type mismatches are indicated — the Date column is properly typed as a date and FYFSD as an integer. The duplicate row count is flagged as pending final recomputation (Phase D), but given that Date has 125 distinct values across 125 rows, there are effectively no duplicate records — each year is uniquely represented. The only mild caution is that FYFSD shows 123 distinct values versus 125 rows, meaning two years share the same reported fiscal value — a negligible and likely coincidental artifact rather than a data integrity concern.
3. Key Column Distributions & Statistical Highlights
The FYFSD column tells a dramatic fiscal story through its statistics. The mean of approximately −$220 billion versus a median of only −$6.1 billion signals a severe right-tail distortion — most years historically ran near balance or small deficit, but modern large deficits (and particularly crisis-era outliers) pull the mean sharply negative. This is confirmed by the skewness of −3.34, indicating a heavy left tail driven by extreme deficit years. The interquartile range runs from −$164 billion (Q1) to $0 (Q3), meaning roughly half of all annual observations fall between a modest deficit and breakeven — reinforcing that deep deficits are a relatively modern or crisis-driven phenomenon. The 19 flagged outliers almost certainly correspond to identifiable events: WWII spending (1943–1945), the 2009 stimulus response (~−$1.4T), and COVID-era deficits peaking near the minimum of −$3.096 trillion. The maximum of $236 billion surplus likely reflects the late Clinton years (1998–2001).
4. Recommended Join Key Columns
The Date column (annual, formatted as a date) is the natural and recommended join key for all cross-dataset correlation work. Since observations are yearly and span 1901–present, it will join cleanly to any other annual U.S. macroeconomic time series using a 4-digit year or full date match. Analysts should be mindful that some partner datasets may use fiscal year endings (September 30) vs. calendar years — a common alignment issue with federal budget data specifically. For decade-level or multi-year aggregation studies, a derived Year integer column would be a practical secondary key.
5. Recommended Pairing Datasets for Correlation Discovery
Several datasets would pair powerfully with this series:
- U.S. GDP (annual, FRED: GDPA) — The classic deficit-to-GDP ratio is a standard fiscal health metric; correlations between deficit size and economic growth phases would be immediately testable. - U.S. Unemployment Rate (annual, FRED: UNRATE) — Deficits tend to expand during recessions via automatic stabilizers; this pairing could quantify the countercyclical fiscal response over a century. - Federal Debt Held by the Public (FRED: FYGFDPUN) — Cumulative deficits drive debt accumulation; regression analysis here would validate data consistency and model debt trajectory. - U.S. 10-Year Treasury Yield (FRED: GS10) — Tests the "crowding out" hypothesis: do large deficits correlate with rising long-term interest rates? - U.S. CPI / Inflation Rate (FRED: CPIAUCSL) — Examines whether deficit spending correlates with inflationary periods, a perennially debated fiscal-monetary relationship. - War/Conflict Indicators or Defense Spending — Given that WWII and post-9/11 periods are clearly visible in the outliers, pairing with military expenditure data would help decompose structural vs. discretionary deficit drivers.
Columns
- Date (date)
- FYFSD (integer)