IRS SOI ZIP Code Data 2016 – Individual Income Tax Statistics (with AGI)
- Rows
- 179,796
- Columns
- 147
- Data range
- 0 to 99999
Tax Year 2016 individual income tax statistics by ZIP code and AGI class. All states. Covers returns, exemptions, AGI, wages, dividends, interest received, income tax, and total tax liability.
AI analysis
IRS SOI ZIP Code Data 2016 – 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/16zpallagi.csv](https://www.irs.gov/pub/irs-soi/16zpallagi.csv), a highly authoritative federal source with a clear vintage anchor of Tax Year 2016. It represents aggregated individual income tax return statistics stratified by ZIP code and AGI income class (agistub 1–6), covering all 51 U.S. state FIPS geographies across ~29,874 distinct ZIP codes. With 179,796 rows and 147 columns spanning returns filed, exemptions claimed, wages, dividends, interest, capital gains, deductions, and tax liabilities, this is a richly structured socioeconomic geography dataset. Its primary value for correlation analysis lies in its ability to reveal income distribution patterns, tax behavior, and financial composition at hyper-local geographic resolution — making it an exceptional base layer for cross-domain studies involving housing, education, health outcomes, voting behavior, or business density.
---
2. Data Quality Observations
Data quality here is notably strong for a dataset of this scale. There are zero null cells across all 147 columns and all 179,796 rows, which is exceptional and reflects the IRS's rigorous aggregation methodology — though it also means zeros are used as a substantive fill value rather than nulls, which analysts must treat carefully (a zero in VITA, TCE, or RAL means no activity in that ZIP/AGI cell, not missing data). No type mismatches are reported. The duplicate row count is noted as pending Phase D recomputation, but given the natural composite uniqueness of (zipcode, agistub) — 29,874 ZIP codes × 6 AGI stubs — the theoretical maximum distinct row count is ~179,244, very close to the actual 179,796 rows, suggesting minimal or no meaningful duplication. One structural caution: zipcode ranges from 0 to 99,999 with a mean of 49,237 and median of 49,046, indicating the field is stored as an integer, which means leading-zero ZIP codes (e.g., 01001 for Massachusetts) are silently truncated — a critical join-key flaw that must be corrected with zero-padding to 5 characters before any geographic join.
---
3. Key Column Distributions and Notable Patterns
Several columns exhibit extreme right skewness that warrants careful treatment:
- N1 (total returns): mean = 1,635.9, median = 200, σ = 35,244, skew = 84.2, with 21,098 outliers. The vast gulf between mean and median confirms that a handful of high-density urban ZIP codes dominate return counts, while most ZIPs are small. This is expected but must be normalized in any per-capita analysis. - A00100 (Adjusted Gross Income): mean = $114,021, median = $12,694, σ = $2.64M, skew = 112, 20,049 outliers. The median is just 11% of the mean — a dramatic indicator of AGI concentration in top agistub tiers. Q1 = $3,224 and Q3 = $53,651 bracket a wide middle range. - A01000 (Net Capital Gains/Losses): mean = $5,466, median = $80, skew = 204, max = $81.5M. This is one of the most skewed columns in the dataset — the interquartile range spans $0 to $511, while the upper tail reaches into the tens of millions, powerfully reflecting wealth concentration in specific ZIP codes. - A09600 (Alternative Minimum Tax): skew = 277, median = 0, mean = $327 — the highest skewness in the dataset, confirming AMT as an extreme high-income phenomenon almost invisible at median ZIP/AGI cells. - mars1 (single filers): skew = 106, median = 50, mean = 774 — vs. MARS2 (joint filers): skew = 66.5, median = 90, mean = 592. The joint filer median exceeding single filer median (90 vs. 50) despite lower mean reflects that married couples concentrate in moderate-density suburbs. - TOTALVITA / VITA / TCE: medians all = 0, Q3 = 0 — these volunteer tax assistance program columns are nearly absent across most ZIP/AGI combinations, appearing only in lower-income urban or rural clusters. Skewness of 92–115 confirms extreme sparsity; these are better treated as binary presence indicators than continuous variables.
---
4. Recommended Join Key Columns
| Column | Role | Notes | |---|---|---| | zipcode | Primary geographic join key | Must be zero-padded to 5 chars before joining to any external dataset | | agistub | Income tier stratification key | Values 1–6 align to IRS-defined AGI brackets; essential for within-ZIP income disaggregation | | STATEFIPS | State-level rollup key | Standard FIPS codes (1–56, 51 distinct); joins cleanly to Census, BLS, and federal datasets | | STATE | Human-readable state string | Useful for display; prefer STATEFIPS for programmatic joins | | (zipcode, agistub) | Composite primary key | The natural grain of this dataset — use this pair for all row-level joins to avoid fan-out |
For aggregated ZIP-level analysis (collapsing across all 6 AGI stubs), pre-aggregate N1, A00100, A10600 etc. with summation before joining, as the raw table is not ZIP-unique.
---
5. Recommended Pairing Datasets for Correlation Discovery
The following dataset categories would yield the highest-value correlations with this IRS data:
1. U.S. Census Bureau ACS 5-Year Estimates (ZIP Code Tabulation Areas / ZCTAs): Educational attainment, poverty rates, housing tenure, commute times, and racial composition by ZCTA pair directly with AGI and wage distributions. Key hypothesis: higher median AGI ZIPs correlate with bachelor's degree attainment rates.
2. HUD Fair Market Rents & Median Gross Rent by ZIP: Correlating A00200 (wages) and A01700 (pensions) with rent burden ratios could reveal housing affordability stress at the ZIP level — particularly powerful for lower agistub tiers.
3. CDC PLACES / BRFSS Health Outcomes by ZIP/County: Testing whether AGI concentration (A00100), capital gains (A01000), or VITA program usage correlates with self-reported health outcomes, obesity rates, or preventive care utilization.
4. USDA Food Access Research Atlas (Food Desert Data by ZIP): Low agistub ZIP codes with high N59660 (Earned Income Tax Credit recipients) may cluster in food desert geographies — a socioeconomic inequality signal.
5. Small Business Administration (SBA) Loan Data or IRS Business Returns by ZIP: Pairing individual return data (especially A00900 — self-employment income, mean $3,740, skew 109) with business formation rates could reveal entrepreneurship corridors and gig economy concentration.
6. MIT Election Lab Presidential Voting Data by Precinct/County: AGI distribution and capital gains concentration are hypothesized predictors of partisan voting patterns — a high-interest political economy correlation that has been studied extensively and could be tested at ZIP → county crosswalk level.
Columns
- zipcode (integer)
- agi_stub (integer)
- STATEFIPS (integer)
- STATE (string)
- N1 (integer)
- mars1 (integer)
- MARS2 (integer)
- MARS4 (integer)
- PREP (integer)
- N2 (integer)
- NUMDEP (integer)
- TOTAL_VITA (integer)
- VITA (integer)
- TCE (integer)
- VITA_EIC (integer)
- RAL (integer)
- RAC (integer)
- ELDERLY (integer)
- A00100 (integer)
- N02650 (integer)
- A02650 (integer)
- N00200 (integer)
- A00200 (integer)
- N00300 (integer)
- A00300 (integer)
- N00600 (integer)
- A00600 (integer)
- N00650 (integer)
- A00650 (integer)
- N00700 (integer)
- A00700 (integer)
- N00900 (integer)
- A00900 (integer)
- N01000 (integer)
- A01000 (integer)
- N01400 (integer)
- A01400 (integer)
- N01700 (integer)
- A01700 (integer)
- SCHF (integer)
- N02300 (integer)
- A02300 (integer)
- N02500 (integer)
- A02500 (integer)
- N26270 (integer)
- A26270 (integer)
- N02900 (integer)
- A02900 (integer)
- N03220 (integer)
- A03220 (integer)
- N03300 (integer)
- A03300 (integer)
- N03270 (integer)
- A03270 (integer)
- N03150 (integer)
- A03150 (integer)
- N03210 (integer)
- A03210 (integer)
- N03230 (integer)
- A03230 (integer)
- N03240 (integer)
- A03240 (integer)
- N04470 (integer)
- A04470 (integer)
- A00101 (integer)
- N17000 (integer)
- A17000 (integer)
- N18425 (integer)
- A18425 (integer)
- N18450 (integer)
- A18450 (integer)
- N18500 (integer)
- A18500 (integer)
- N18800 (integer)
- A18800 (integer)
- N18300 (integer)
- A18300 (integer)
- N19300 (integer)
- A19300 (integer)
- N19500 (integer)
- A19500 (integer)
- N19530 (integer)
- A19530 (integer)
- N19550 (integer)
- A19550 (integer)
- N19570 (integer)
- A19570 (integer)
- N19700 (integer)
- A19700 (integer)
- N20800 (integer)
- A20800 (integer)
- n21020 (integer)
- a21020 (integer)
- N04800 (integer)
- A04800 (integer)
- N05800 (integer)
- A05800 (integer)
- N09600 (integer)
- A09600 (integer)
- N05780 (integer)
- A05780 (integer)
- N07100 (integer)
- A07100 (integer)
- N07300 (integer)
- A07300 (integer)
- N07180 (integer)
- A07180 (integer)
- N07230 (integer)
- A07230 (integer)
- N07240 (integer)
- A07240 (integer)
- N07220 (integer)
- A07220 (integer)
- N07260 (integer)
- A07260 (integer)
- N09400 (integer)
- A09400 (integer)
- N85770 (integer)
- A85770 (integer)
- N85775 (integer)
- A85775 (integer)
- N09750 (integer)
- A09750 (integer)
- N10600 (integer)
- A10600 (integer)
- N59660 (integer)
- A59660 (integer)
- N59720 (integer)
- A59720 (integer)
- N11070 (integer)
- A11070 (integer)
- N10960 (integer)
- A10960 (integer)
- N11560 (integer)
- A11560 (integer)
- N06500 (integer)
- A06500 (integer)
- N10300 (integer)
- A10300 (integer)
- N85530 (integer)
- A85530 (integer)
- N85300 (integer)
- A85300 (integer)
- N11901 (integer)
- A11901 (integer)
- N11902 (integer)
- A11902 (integer)