IRS SOI ZIP Code Data 2019 – Individual Income Tax Statistics (with AGI)
- Rows
- 166,159
- Columns
- 152
- Data range
- 0 to 99999
Tax Year 2019 individual income tax statistics by ZIP code and AGI class. Includes number of returns, AGI, wages, dividends, interest, deductions, credits, and tax liability for all US ZIP codes.
AI analysis
IRS SOI ZIP Code Data 2019 – Analysis
1. Dataset Overview and Research Value
This dataset originates directly from the IRS Statistics of Income (SOI) division, published at [https://www.irs.gov/pub/irs-soi/19zpallagi.csv](https://www.irs.gov/pub/irs-soi/19zpallagi.csv), a highly authoritative federal source with consistent annual release cadence. The 2019 tax year vintage represents pre-pandemic economic conditions, making it a clean baseline for studying structural income inequality, wealth concentration, and tax behavior across American geographies. With 166,159 rows spanning 152 columns, the dataset is structured as a ZIP code × AGI class panel — each ZIP code appears up to 6 times (once per agistub bracket, ranging from under $25K to $200K+), covering the full US ZIP code universe across all 51 state FIPS codes. This panel structure creates exceptional potential for within-ZIP income stratification analysis and cross-geography correlation studies involving wages, dividends, capital gains, deductions, credits, and final tax liability — essentially a comprehensive cross-section of the American income distribution at fine geographic resolution.
---
2. Data Quality Observations
Data quality is remarkably high for a dataset of this size and complexity. The total null cell count across all 152 columns and 166,159 rows is exactly zero — an exceptional result that reflects the IRS's rigorous suppression-and-imputation methodology (where small cell counts are typically zeroed rather than left null, a deliberate design choice). No type mismatches are reported, and all numeric columns are consistently typed as Integer or Decimal. The duplicate row count is noted as pending Phase D recomputation, which warrants verification — given the deterministic zipcode × agistub key structure, any true duplicates would indicate ingestion errors rather than source data issues and should be flagged immediately. One subtle quality concern is the zero-inflation pattern visible across many columns: fields like TOTALVITA, VITA, TCE, VITAEIC, N19500, N09600, and N85530 show medians and Q1/Q3 values of zero, meaning the majority of ZIP-AGI combinations report no activity for these line items. This is not missing data — it reflects genuine sparsity in less-common tax provisions — but analysts should apply zero-inflated or hurdle models rather than standard linear regression for these fields to avoid systematic bias.
---
3. Key Column Distributions and Notable Patterns
Several columns reveal structurally important distribution characteristics worth highlighting:
- A00100 (Adjusted Gross Income, $thousands): Mean of 144,889 vs. median of 16,972 — a 8.5× mean-to-median ratio — with skewness of 116 and 17,815 outliers. This extreme right skew is the single most important feature of the dataset, confirming that high-AGI ZIP codes (driven by agistub=6) dominate aggregate income totals while typical ZIP-AGI cells are modest. The max of $768M reflects consolidated high-income ZIP codes like Manhattan or Beverly Hills.
- A00200 (Wages and Salaries): Mean ~$98K, median ~$11.7K, skew of 98.4 with 18,567 outliers. The gap between mean and median confirms wages are highly concentrated; however, comparing A00200/A00100 ratios across ZIP codes and AGI stubs will reveal where wage income dominates versus investment income — a powerful inequality signal.
- A00300 / A00600 / A00650 (Taxable Interest, Ordinary Dividends, Qualified Dividends): These investment income columns show the most extreme skew in the dataset — A00300 skew=162, A00600 skew=153 — with medians near zero but means in the thousands. A00600 max reaches $29.5M, with 20,850 outliers. These columns are ideal for identifying wealth-concentrated ZIP codes where passive income eclipses wages.
- A01000 (Net Capital Gains): Skew of 179, mean $8,820, median $168, with a minimum of -$371 (confirming loss harvesting) and max of $108M. With 22,548 outliers, this column captures the most volatile and concentrated income stream in the dataset and will correlate strongly with stock market exposure and high-net-worth geographies.
- N1 (Total Returns — the population count): Mean 1,860, median 260, skew 75.5. The massive gap between mean and median (7×) combined with a max of 5.5M reveals that a small number of high-population ZIP codes (e.g., large urban ZIP codes) anchor the distribution, while most ZIP-AGI cells represent relatively small filer populations — important for population-weighting any correlation analysis.
- agistub: Uniform distribution across 6 values (mean=3.5, σ=1.71) with near-zero skew (7.64E-05), confirming clean, balanced panel construction. Each ZIP code contributes equally across income brackets, validating the panel design.
---
4. Recommended Join Key Columns
The natural composite primary key is (zipcode, agistub), which together uniquely identify each row. For cross-dataset joins, the following hierarchy is recommended:
| Join Grain | Key Column(s) | Notes | |---|---|---| | ZIP-level (aggregated) | zipcode | Must aggregate across agistub; use population-weighted means | | State-level | STATEFIPS or STATE | STATEFIPS (Integer) preferred for programmatic joins; STATE (String, 51 distinct) for human-readable merges | | Income-stratum analysis | agistub | Join to any dataset with income tier classifications | | Full panel row | zipcode + agistub | Exact row-level join for datasets with matching AGI stratification |
A critical caveat: ZIP code 0 (zipcode=0, 166 rows in the data based on min=0) is an IRS convention for state-level totals and should be excluded or handled separately in any geographic join to avoid inflating aggregates. Similarly, ZIP codes not matching USPS master files (e.g., PO box-only or discontinued codes) should be validated against a current ZIP code reference table before spatial joins.
---
5. Recommended Pairing Datasets for Correlation Discovery
This dataset's geographic and income-stratified structure makes it an exceptionally versatile anchor for multi-source correlation studies. The highest-value pairings include:
- US Census Bureau ACS 5-Year Estimates (ZIP/ZCTA level): Race, educational attainment, housing tenure, commute time, poverty rates, and household size at the ZCTA level map closely to ZIP codes. Correlating A00100 (AGI), A00200 (wages), and N59660 (EITC recipients) against Census poverty and education variables would quantify income-education-race interdependencies at unprecedented geographic granularity.
- Zillow Research Housing Data (ZIP level): Home value indices, rent indices, and housing inventory by ZIP code from Zillow would allow direct correlation of A18500 (real estate tax deductions) and A04470 (itemized deductions) with local housing markets — testing whether housing wealth drives deduction behavior more than income.
- BLS Quarterly Census of Employment and Wages (County/MSA): Linking employment counts and average wages by industry to this dataset (via ZIP-to-county crosswalks) would reveal which industry compositions predict high wage AGI versus high investment income AGI — critical for understanding post-industrial income shifts.
- CDC PLACES / County Health Rankings (County level): Correlating AGI distribution and EITC usage (N59660, A59660) against health outcomes (diabetes prevalence, life expectancy, mental health days) would quantify the income-health gradient while controlling for geography — a high-value public health research application.
- IRS SOI Migration Data (same publisher): The IRS also publishes ZIP-to-ZIP migration flows with AGI data. Joining migration inflow/outflow AGI to this static 2019 snapshot would enable income mobility and brain drain analysis — identifying ZIP codes losing high-income filers to other geographies, a leading indicator of neighborhood economic trajectory.
Columns
- zipcode (integer)
- agi_stub (integer)
- STATEFIPS (integer)
- STATE (string)
- N1 (decimal)
- mars1 (decimal)
- MARS2 (decimal)
- MARS4 (decimal)
- ELF (decimal)
- CPREP (decimal)
- PREP (decimal)
- DIR_DEP (decimal)
- N2 (decimal)
- TOTAL_VITA (decimal)
- VITA (decimal)
- TCE (decimal)
- VITA_EIC (decimal)
- RAC (decimal)
- ELDERLY (decimal)
- A00100 (decimal)
- N02650 (decimal)
- A02650 (decimal)
- N00200 (decimal)
- A00200 (decimal)
- N00300 (decimal)
- A00300 (decimal)
- N00600 (decimal)
- A00600 (decimal)
- N00650 (decimal)
- A00650 (decimal)
- N00700 (decimal)
- A00700 (decimal)
- N00900 (decimal)
- A00900 (decimal)
- N01000 (decimal)
- A01000 (decimal)
- N01400 (decimal)
- A01400 (decimal)
- N01700 (decimal)
- A01700 (decimal)
- SCHF (decimal)
- N02300 (decimal)
- A02300 (decimal)
- N02500 (decimal)
- A02500 (decimal)
- N26270 (decimal)
- A26270 (decimal)
- N02900 (decimal)
- A02900 (decimal)
- N03220 (decimal)
- A03220 (decimal)
- N03300 (decimal)
- A03300 (decimal)
- N03270 (decimal)
- A03270 (decimal)
- N03150 (decimal)
- A03150 (decimal)
- N03210 (decimal)
- A03210 (decimal)
- N04450 (decimal)
- A04450 (decimal)
- N04100 (decimal)
- A04100 (decimal)
- N04200 (decimal)
- A04200 (decimal)
- N04470 (decimal)
- A04470 (decimal)
- A00101 (decimal)
- N17000 (decimal)
- A17000 (decimal)
- N18425 (decimal)
- A18425 (decimal)
- N18450 (decimal)
- A18450 (decimal)
- N18500 (decimal)
- A18500 (decimal)
- N18800 (decimal)
- A18800 (decimal)
- N18460 (decimal)
- A18460 (decimal)
- N18300 (decimal)
- A18300 (decimal)
- N19300 (decimal)
- A19300 (decimal)
- N19500 (decimal)
- A19500 (decimal)
- N19530 (decimal)
- A19530 (decimal)
- N19570 (decimal)
- A19570 (decimal)
- N19700 (decimal)
- A19700 (decimal)
- N20950 (decimal)
- A20950 (decimal)
- N04475 (decimal)
- A04475 (decimal)
- N04800 (decimal)
- A04800 (decimal)
- N05800 (decimal)
- A05800 (decimal)
- N09600 (decimal)
- A09600 (decimal)
- N05780 (decimal)
- A05780 (decimal)
- N07100 (decimal)
- A07100 (decimal)
- N07300 (decimal)
- A07300 (decimal)
- N07180 (decimal)
- A07180 (decimal)
- N07230 (decimal)
- A07230 (decimal)
- N07240 (decimal)
- A07240 (decimal)
- N07225 (decimal)
- A07225 (decimal)
- N07260 (decimal)
- A07260 (decimal)
- N09400 (decimal)
- A09400 (decimal)
- N85770 (decimal)
- A85770 (decimal)
- N85775 (decimal)
- A85775 (decimal)
- N10600 (decimal)
- A10600 (decimal)
- N59660 (decimal)
- A59660 (decimal)
- N59720 (decimal)
- A59720 (decimal)
- N11070 (decimal)
- A11070 (decimal)
- N10960 (decimal)
- A10960 (decimal)
- N11560 (decimal)
- A11560 (decimal)
- N06500 (decimal)
- A06500 (decimal)
- N10300 (decimal)
- A10300 (decimal)
- N85530 (decimal)
- A85530 (decimal)
- N85300 (decimal)
- A85300 (decimal)
- N11901 (decimal)
- A11901 (decimal)
- N11900 (decimal)
- A11900 (decimal)
- N11902 (decimal)
- A11902 (decimal)
- N12000 (decimal)
- A12000 (decimal)