IRS SOI ZIP Code Data 2021 – Individual Income Tax Statistics (no AGI breakdown)
- Rows
- 27,705
- Columns
- 167
- Data range
- 0 to 99999
Tax Year 2021 ZIP code-level individual income tax data without AGI class splits. Includes totals for all income, tax, and credit line items across all US ZIP codes.
AI analysis
IRS SOI ZIP Code Data 2021 – Analysis
1. Dataset Overview and Correlation Value
This dataset originates from the IRS Statistics of Income (SOI) division, published at [https://www.irs.gov/pub/irs-soi/21zpallnoagi.csv](https://www.irs.gov/pub/irs-soi/21zpallnoagi.csv), representing Tax Year 2021 individual income tax filings aggregated at the ZIP code level without AGI class stratification. With 27,705 rows spanning 167 columns, it provides a remarkably comprehensive fiscal snapshot of approximately 27,605 distinct US ZIP codes (nearly exhaustive national coverage), capturing total counts and dollar amounts for every major line item on Form 1040 — wages, dividends, capital gains, deductions, credits, and tax liabilities. The IRS SOI program is among the most authoritative sources of small-area economic data available publicly, making this dataset exceptionally valuable for geographic correlation studies linking tax behavior to demographic, housing, health, or labor market variables. The "no AGI" structure means each ZIP appears as a single rolled-up row rather than six income-bracket rows, simplifying joins but sacrificing distributional detail within ZIPs.
2. Data Quality Observations
The dataset presents an unusually clean quality profile: zero null cells across all 167 columns and 27,705 rows, which is rare for administrative data of this scale and likely reflects IRS suppression rules (small cell values are replaced with zeros rather than nulls, preserving row integrity but potentially masking true non-reporting). The agistub column is entirely constant at zero (min=0, max=0, σ=0, distinct=1), confirming this is the no-AGI-breakdown version — this column carries no analytical value and should be dropped before modeling. ZIPCODE has 27,605 distinct values against 27,705 rows, implying roughly 100 duplicate ZIP entries worth investigating (potentially territorial or special-purpose ZIPs like ZIPCODE=0, which appears given min=0). The near-uniform mean of 48,878 and median of 48,857 on ZIPCODE with σ=27,171 reflects expected geographic spread across the 00000–99999 range. No type mismatches are reported, and the mix of Integer and Decimal types is appropriate. The primary data quality concern is not missingness but rather extreme right skew across virtually every financial column, with skewness values routinely ranging from 45 to 151, indicating that a small number of high-population ZIP codes (e.g., Manhattan, Beverly Hills, large suburban ZIPs) dominate raw totals and will distort any correlation analysis that does not normalize by filer count.
3. Key Column Distributions
The return count variable N1 (total returns filed) is the foundational denominator for normalization, with a median of 2,030 but a mean of 11,206 (σ=196,654, skew=57.2, 1,816 outliers), illustrating the extreme population concentration in a subset of ZIPs. A00100 (Adjusted Gross Income aggregate) has a median of $137,565 but a mean of $1.06M (σ=$20.1M, skew=66.2, 2,769 outliers) — per-return AGI (A00100/N1) will be far more analytically useful. A01000 (net capital gains/losses) is particularly striking: median=$5,964 but mean=$132,075 (σ=$2.85M, skew=73, 3,958 outliers), with a minimum of -$16, confirming net loss ZIPs exist. A00300 (taxable interest) shows even more concentration with skew=66.3 and 3,460 outliers. Credits like VITA/TCE (free tax preparation services) have medians of zero, meaning most ZIPs report no VITA usage, yet outliers reach 135,480 and 64,790 respectively — these are strong candidate variables for correlating with low-income geography. N19500/A19500 (likely educator expenses or a minor deduction) have skewness of 139–140 with Q1=Q3=0, indicating near-zero prevalence across the distribution and limited correlation utility without transformation. The filing status breakdown (MARS1=single, MARS2=married joint, MARS4=head of household) collectively sums to approximately N1, providing a useful internal consistency check.
4. Recommended Join Key Columns
ZIPCODE is the primary join key (flagged as such, 27,605 distinct values, zero nulls), suitable for linking to any ZIP-level dataset. However, ZIP codes are notoriously unstable over time (USPS adds/retires ZIPs annually) and do not align perfectly with Census geographies, so joins should be validated carefully. STATEFIPS (51 distinct values, zero nulls) enables state-level aggregation and joining to state FIPS-keyed datasets. STATE (string, 51 distinct) serves as a human-readable state key. For Census cross-joins, a ZIP-to-ZCTA (ZIP Code Tabulation Area) crosswalk will be necessary, as Census Bureau data uses ZCTAs rather than USPS ZIPs. A composite key of (STATEFIPS + ZIPCODE) is recommended over ZIPCODE alone to avoid any cross-state ZIP ambiguity in edge cases.
5. Recommended Complementary Datasets for Correlation Discovery
Several dataset categories pair naturally with this data. Census Bureau ACS 5-Year Estimates at the ZCTA level (via data.census.gov) would enable rich correlations between tax metrics and population demographics — race, education, age, housing tenure, and poverty rates. HUD Fair Market Rents or USPS vacancy data by ZIP could reveal relationships between housing costs and deduction patterns (A18500 mortgage interest, A04470 itemized deductions). BLS Quarterly Census of Employment and Wages (QCEW) at the county level (bridged via ZIP-county crosswalk) could illuminate how local industry mix correlates with wage income (A00200) and self-employment income (A00900). CDC PLACES or BRFSS health data at the ZIP or county level could test whether areas with high EITC uptake (A59660) or VITA usage correlate with adverse health outcomes, a proxy for concentrated poverty. Finally, Federal Election Commission (FEC) campaign contribution data aggregated by ZIP code offers an intriguing angle for correlating high-AGI ZIPs, capital gains concentration, and charitable contribution patterns (A19700) with political giving behavior — a pairing frequently used in political economy research.
Columns
- ZIPCODE (integer)
- STATEFIPS (integer)
- STATE (string)
- agi_stub (integer)
- N1 (decimal)
- MARS1 (decimal)
- MARS2 (decimal)
- MARS4 (decimal)
- ELF (decimal)
- CPREP (decimal)
- PREP (decimal)
- DIR_DEP (decimal)
- VRTCRIND (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)
- N02910 (decimal)
- A02910 (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)
- N19550 (decimal)
- A19550 (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)
- N11450 (decimal)
- A11450 (decimal)
- N11520 (decimal)
- A11520 (decimal)
- N11530 (decimal)
- A11530 (decimal)
- N10970 (decimal)
- A10970 (decimal)
- N10971 (decimal)
- A10971 (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)