IRS SOI ZIP Code Data 2018 – Individual Income Tax Statistics (with AGI)
- Rows
- 165,935
- Columns
- 153
- Data range
- 0 to 99999
Tax Year 2018 individual income tax statistics by ZIP code and AGI class. All states. Covers returns, exemptions, AGI, wages, dividends, interest, income tax, and total tax liability.
AI analysis
IRS SOI ZIP Code Data 2018 – Analysis
1. Dataset Overview and Research Value
This dataset originates from the IRS Statistics of Income (SOI) division, published at https://www.irs.gov/pub/irs-soi/18zpallagi.csv, representing Tax Year 2018 individual income tax filings aggregated by ZIP code and AGI (Adjusted Gross Income) class. The structured breakdown across six AGI stubs (agistub 1–6, representing income brackets from under $1 to $500k+) makes this exceptionally powerful for studying income inequality, tax burden distribution, and economic geography simultaneously. With 165,935 rows spanning 51 state FIPS codes and 27,558 distinct ZIP codes, this constitutes a near-census-level snapshot of American household financial behavior at fine geographic resolution, making it one of the most analytically rich publicly available economic datasets for ZIP-level correlation work.
2. Data Quality Observations
Data quality here is remarkably strong. Total null cells across all 153 columns is zero, which is rare for a dataset of this scale and breadth, reflecting the IRS's rigorous tabulation standards. No type mismatches are reported, and all integer and decimal columns are internally consistent with their expected ranges (e.g., STATEFIPS ranges 1–56 correctly covering 51 distinct state codes including DC). The duplicate row count is noted as pending Phase D recomputation, which warrants attention before any row-level aggregation — if duplicates exist, double-counting could silently corrupt income or return-count totals. One subtle quality concern is the structural use of zero as a suppression value rather than null: columns like VITA, TCE, VITAEIC, N19500, N09600, and several others show medians and Q1/Q3 of exactly zero with very high skewness (114, 208, 211 respectively), suggesting that many ZIP-AGI combinations have no filers in those categories, and zeros encode absence rather than a true measured value. Analysts must distinguish zero-suppression from genuine zero values, particularly for rare deductions and credits.
3. Key Column Distributions and Notable Patterns
The primary income variable A00100 (Total AGI in $thousands) is the anchor of this dataset and exhibits extreme right skew (skew=118), with a mean of $140,792 versus a median of just $16,523 — a ratio of ~8.5x — and Q1/Q3 of $4,445/$65,018, illustrating the profound concentration of reported income at upper ZIP-AGI stubs. A00200 (wages/salaries) follows a similar pattern (mean $93,984, median $11,212, skew=96.6) with 18,412 outlier rows, underscoring wage concentration in high-income urban ZIPs. A01000 (net capital gains) is even more skewed (skew=183, mean $9,581 vs. median $201), revealing that capital gains are heavily concentrated in a small fraction of ZIP-AGI cells — a textbook wealth inequality signal. On the filing behavior side, mars1 (single filers) shows skew=96.9 with a median of just 70, while MARS2 (joint filers) has a median of 110, suggesting that at the granular ZIP-AGI level most cells are small, with massive outliers driven by large urban ZIPs. TOTALVITA (volunteer tax assistance returns) has a median and Q1/Q3 all at zero (skew=97.1), confirming that VITA services are geographically concentrated and largely absent from most ZIP-AGI combinations. A04470 (itemized deductions, skew=147, mean $7,492 vs. median $602) and A19300 (charitable contributions, skew=172) both show extreme concentration, ideal for studying the geography of tax avoidance and philanthropy.
4. Recommended Join Key Columns
The natural compound join key is (zipcode + agistub), which together form a unique identifier for each row and enable precise income-stratified geographic analysis. For broader geographic joins, STATEFIPS and STATE provide reliable state-level aggregation anchors — STATEFIPS is especially clean (min=1, max=56, 51 distinct values, zero nulls) and will join cleanly to any standard FIPS-coded dataset. zipcode alone (27,558 distinct values, zero nulls) is the primary geographic bridge to external datasets such as Census, HUD, or USPS files, though analysts should note that ZIP code 0 (min=0) may represent suppressed or unassigned codes and should be filtered before spatial joins. For income-stratified analysis without external data, agistub serves as a clean categorical stratifier with exactly 6 levels, uniformly distributed (mean=3.5, σ=1.71).
5. Recommended Paired Datasets for Correlation Discovery
Several datasets would pair powerfully with this IRS SOI data. U.S. Census Bureau American Community Survey (ACS) 5-Year Estimates at the ZIP/ZCTA level would enable direct correlation between IRS-reported AGI, wages, and dividends against Census measures of poverty rate, educational attainment, housing costs, and demographic composition — particularly valuable for testing whether tax behavior varies by race, education, or housing tenure after controlling for income class. HUD Fair Market Rents and Low-Income Housing Tax Credit (LIHTC) data joined on ZIP code could reveal whether high-AGI ZIPs correlate with rental cost burdens or subsidized housing scarcity. BLS Quarterly Census of Employment and Wages (QCEW) at the county level (crosswalked via ZIP-to-county files) could test whether local industry mix predicts self-employment income (A00900) or partnership income (A26270) levels. CDC PLACES or County Health Rankings data joined via FIPS/ZIP crosswalk would enable a compelling socioeconomic-health correlation study, linking AGI distribution and EITC uptake (A59660) to health outcomes. Finally, Federal Election Commission campaign contribution data aggregated by ZIP code would allow fascinating analysis of the relationship between income concentration, itemized deductions, charitable giving (A19700), and political giving behavior.
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)
- NUMDEP (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)
- N01750 (decimal)
- A01750 (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)
- N09750 (decimal)
- A09750 (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)