IRS SOI ZIP Code Data 2012 – Individual Income Tax Statistics (no AGI breakdown)
- Rows
- 27,820
- Columns
- 77
- Data range
- 0 to 99999
Tax Year 2012 ZIP code-level aggregated income tax data, all states, without AGI class splits.
AI analysis
IRS SOI ZIP Code Data 2012 – Analysis
1. Dataset Overview & Research Value
This dataset originates from the IRS Statistics of Income (SOI) division, published at https://www.irs.gov/pub/irs-soi/12zpallnoagi.csv, representing Tax Year 2012 individual income tax filings aggregated at the ZIP code level across all 50 states plus Washington D.C. (51 state-level entities). With 27,820 rows and 77 columns, it captures a rich cross-section of filing behavior, income sources, deductions, and tax liability at granular geographic resolution. Critically, this version contains no AGI class splits (confirmed by AGISTUB having a constant value of 0 across all rows), meaning each row represents the total population of filers within a given ZIP code rather than income-stratified subgroups. This makes it particularly well-suited for geographic income distribution studies, neighborhood-level economic profiling, and macro-level correlation analyses linking tax behavior to demographic or socioeconomic outcomes. The 2012 vintage means researchers should treat findings as a pre-ACA-implementation baseline snapshot, which has its own analytical value for longitudinal comparisons.
---
2. Data Quality Observations
The dataset demonstrates exceptionally clean structural quality: zero null cells across all 77 columns and 27,820 fully populated rows is rare for a government administrative dataset of this size. The ZIPCODE field shows 27,720 distinct values against 27,820 rows, implying approximately 100 near-duplicate or repeated ZIP code entries — these warrant investigation, particularly since some ZIPs may appear under multiple state assignments (e.g., border ZIP codes or IRS-internal placeholder codes). The presence of ZIPCODE = 0 (min value) and the theoretical max of 99,999 suggests the field includes sentinel or summary rows (e.g., statewide totals or unclassifiable filers) that should be filtered prior to any join-based analysis. The AGISTUB column is analytically inert — constant zero across all rows with zero variance — and should be dropped or ignored in any modeling pipeline. No type mismatches are reported, and all numeric fields parse cleanly as integer or decimal types. Overall, this is a production-grade clean dataset with only minor structural anomalies requiring preprocessing.
---
3. Key Column Distributions & Notable Patterns
The filing count variable N1 (total returns per ZIP) exhibits extreme right skew (skew = 56.1) with a mean of 10,218 but a median of only 1,890, and 1,800 flagged outliers — a pattern that repeats across virtually every column and reflects the fundamental urban/rural ZIP size disparity. A handful of very large urban ZIPs (max N1 ≈ 16.6 million in aggregate-equivalent units) dominate the upper tail. A00100 (Adjusted Gross Income, in thousands) shows a mean of $655,930 vs. a median of $92,888, with skew of 61.6 and 2,606 outliers, confirming extreme wealth concentration in a small number of high-income ZIPs. The A00900 column (net business income/loss) is the only field with a negative minimum (-2,686), reflecting ZIP-level net losses — this is analytically important for small business geographic analysis. Capital gains (A01000, skew = 73.3, 4,085 outliers) and alternative minimum tax (A09600, skew = 92.5, 4,316 outliers — the highest skew in the dataset) show the most extreme concentration, suggesting these income types are hyper-localized to wealthy enclaves. Deduction-related columns like A18425 (state/local income taxes, skew = 89.6) and A18450 (skew = 94.4) similarly cluster in high-tax, high-income coastal ZIPs. The PREP column (paid preparer usage) tracks closely with N1 (r likely very high), suggesting preparer reliance scales with filing volume rather than being income-driven at the ZIP level.
---
4. Recommended Join Key Columns
ZIPCODE is the primary join key (tagged as such), enabling linkage to virtually any U.S. geographic dataset. However, analysts must standardize it as a zero-padded 5-digit string (e.g., ZIP 01001 appears as integer 1001) before joining — a critical preprocessing step given the integer storage format and the known existence of leading-zero ZIPs in New England and other regions. STATEFIPS (51 distinct values, no nulls) provides a reliable secondary join key for state-level aggregations and conforms to the standard FIPS encoding used by Census Bureau, BLS, and HUD datasets. STATE (string, 51 distinct) offers a human-readable fallback but should be validated against FIPS for consistency. For any analysis requiring per-capita normalization, N1 (total returns) or N2 (total exemptions, a proxy for population) should be used as denominators rather than joined to external population sources, providing internal self-normalization. Researchers building multi-year panels should note that ZIP code boundaries change annually, so ZCTA (ZIP Code Tabulation Area) crosswalks from the Census Bureau will be necessary for joins to 2010 or 2020 Census data.
---
5. Recommended Complementary Datasets for Correlation Analysis
Several dataset categories would pair powerfully with this IRS data:
- U.S. Census Bureau American Community Survey (ACS) 2012 5-Year Estimates at ZCTA level — enables direct correlation of tax metrics (AGI, deductions) with demographic variables (education, race, housing tenure, commute patterns), joinable via ZCTA/ZIP crosswalk. Strong expected correlations: A00200 (wages) × median household income; NUMDEP × household size. - HUD USPS ZIP Code Crosswalk Files — essential for resolving the ZIP-to-ZCTA boundary mismatch and identifying residential vs. PO-Box-only ZIPs that may inflate or deflate per-filer metrics. - IRS SOI Migration Data (2011–2012) — tracks filer inflows/outflows by ZIP, enabling causal analysis of whether high-AGI ZIPs are attracting or losing high-income filers over time. - BLS Quarterly Census of Employment and Wages (QCEW) by county (2012) — correlating A00200 (wage income) and N00200 (wage earners) against local employment composition and industry mix would reveal whether wage concentration tracks specific industry clusters. - FHFA House Price Index or Zillow ZIP-level home values (2012) — A01400 (IRA distributions) and A18500 (real estate taxes paid) are strong proxies for wealth and property ownership, making housing price correlation a natural analytical target. - CDC BRFSS or County Health Rankings (2012) — linking high-income, high-AMT ZIPs to health outcomes could surface socioeconomic health gradients, though a county-level crosswalk would be needed.
Columns
- ZIPCODE (integer)
- STATEFIPS (integer)
- STATE (string)
- AGI_STUB (integer)
- N1 (decimal)
- MARS1 (decimal)
- MARS2 (decimal)
- MARS4 (decimal)
- PREP (decimal)
- N2 (decimal)
- NUMDEP (decimal)
- A00100 (decimal)
- N00200 (decimal)
- A00200 (decimal)
- N00300 (decimal)
- A00300 (decimal)
- N00600 (decimal)
- A00600 (decimal)
- N00650 (decimal)
- A00650 (decimal)
- N00900 (decimal)
- A00900 (decimal)
- SCHF (decimal)
- N01000 (decimal)
- A01000 (decimal)
- N01400 (decimal)
- A01400 (decimal)
- N01700 (decimal)
- A01700 (decimal)
- N02300 (decimal)
- A02300 (decimal)
- N02500 (decimal)
- A02500 (decimal)
- N03300 (decimal)
- A03300 (decimal)
- N00101 (decimal)
- A00101 (decimal)
- N04470 (decimal)
- A04470 (decimal)
- N18425 (decimal)
- A18425 (decimal)
- N18450 (decimal)
- A18450 (decimal)
- N18500 (decimal)
- A18500 (decimal)
- N18300 (decimal)
- A18300 (decimal)
- N19300 (decimal)
- A19300 (decimal)
- N19700 (decimal)
- A19700 (decimal)
- N04800 (decimal)
- A04800 (decimal)
- N07100 (decimal)
- A07100 (decimal)
- N07220 (decimal)
- A07220 (decimal)
- N07180 (decimal)
- A07180 (decimal)
- N07260 (decimal)
- A07260 (decimal)
- N59660 (decimal)
- A59660 (decimal)
- N59720 (decimal)
- A59720 (decimal)
- N11070 (decimal)
- A11070 (decimal)
- N09600 (decimal)
- A09600 (decimal)
- N06500 (decimal)
- A06500 (decimal)
- N10300 (decimal)
- A10300 (decimal)
- N11901 (decimal)
- A11901 (decimal)
- N11902 (decimal)
- A11902 (decimal)