Compare HUD income limits by county and household size in Python
Look up published income thresholds and compare them with median family income using genuine county and household-size selections.
Compare published housing-program income thresholds
A housing researcher wants to compare the income thresholds for two- and four-person households in Los Angeles County, California, and Wake County, North Carolina. The prepared data connects each county to its HUD income-limit area, then supplies the published thresholds and median family income estimate.
Download area_membership.csv and income_limits.csv below. They are genuine subsets of the purchased tables: both county membership records and all 48 household-size/category limits for their two HUD areas. Every column is unchanged. The county codes and household sizes are selected in the Python code below; no input records are invented.
The full $29 edition contains 63,240 thresholds for 2,635 HUD areas, separate median family income estimates and all 4,764 source county/town memberships. It covers HUD’s FY2026 Public Housing/Section 8 limits, effective May 1, 2026. Inspect the full download.
Code example
Place both CSV files in your working directory. This code runs in a notebook cell, IPython or a script using Python’s standard library. County and area identifiers remain text, so leading zeros are preserved.
Paths are relative to your working folder; use from pathlib import Path; print(Path.cwd()) to check it, or supply full paths.
import csv
# Genuine locations selected for comparison; change these for your analysis.
county_codes = ['06037', '37183'] # Los Angeles, CA and Wake, NC
household_sizes = [2, 4]
with open('area_membership.csv', newline='', encoding='utf-8') as file:
membership = [r for r in csv.DictReader(file) if r['county_fips'] in county_codes]
county_areas = {}
for row in membership:
county_areas.setdefault(row['county_fips'], {})[row['hud_area_code']] = row
with open('income_limits.csv', newline='', encoding='utf-8') as file:
limits = {
(r['hud_area_code'], int(r['household_size']), r['income_category']): r
for r in csv.DictReader(file)
if int(r['household_size']) in household_sizes
}
results = []
for county in county_codes:
if county not in county_areas:
raise ValueError(f'No published county membership for {county}')
# Keep all areas if a county contains different town-level limits.
for area, location in sorted(county_areas[county].items()):
for size in household_sizes:
selected = [limits[(area, size, category)]
for category in ['extremely_low', 'very_low', 'low']]
result = {
'county_fips': county,
'county_name': location['county_name'],
'hud_area_code': area,
'household_size': size,
'median_family_income_usd': int(selected[0]['median_family_income_usd']),
'extremely_low_usd': int(selected[0]['income_limit_usd']),
'very_low_usd': int(selected[1]['income_limit_usd']),
'low_usd': int(selected[2]['income_limit_usd']),
}
results.append(result)
print(f"{result['county_name']} | {size} people | "
f"MFI ${result['median_family_income_usd']:,} | "
f"Extremely low ${result['extremely_low_usd']:,} | "
f"Very low ${result['very_low_usd']:,} | Low ${result['low_usd']:,}")
Analysis of the output
Los Angeles County | 2 people | MFI $108,100 | Extremely low $40,000 | Very low $66,650 | Low $106,600
Los Angeles County | 4 people | MFI $108,100 | Extremely low $50,000 | Very low $83,300 | Low $133,250
Wake County | 2 people | MFI $132,300 | Extremely low $31,800 | Very low $52,950 | Low $84,700
Wake County | 4 people | MFI $132,300 | Extremely low $39,700 | Very low $66,150 | Low $105,850
For a four-person household, the published very-low-income limit is $83,300 in Los Angeles County and $66,150 in Wake County. Los Angeles has the higher threshold even though its HUD median family income estimate is lower: $108,100 versus $132,300.
This illustrates why the prepared file retains HUD’s published amounts. The limits reflect housing-cost adjustments, floors, caps and other methodology provisions; they cannot reliably be recreated by multiplying median family income by 30%, 50% or 80%. The example compares reference amounts without determining anyone’s eligibility.
The two-person rows show how the published thresholds also vary with household size. The median family income column stays the same because it describes the HUD area, not a separate median for each household size. It is also different from the Census median household income measure.
Using the full dataset
Extract the purchased ZIP and replace both sample files with the full tables. The code runs unchanged. Edit county_codes and household_sizes to select your locations and household sizes from one through eight. The unique threshold key is hud_area_code + household_size + income_category.
In the full source, 19 counties contain more than one HUD income-limit area. The code keeps each area once for the county comparison, rather than repeating the same thresholds for every member town. For a location-specific lookup, use the original hud_geography_code and county_town_name to identify the relevant town relationship. A county alone is not always enough to choose one threshold.
area_median_incomes.csv provides one estimate per area for separate analyses. The remaining files document fields, coverage, source rows and checks. These are annual US-dollar program reference amounts; income definitions and additional eligibility requirements remain with the relevant housing agency. Separate MTSP/LIHTC, HOME, ESG and BMIR limits, and households above eight, are outside this edition.
The HUD rent reference adds rent benchmarks, while the construction and housing markets collection provides housing and local-income context. Check source periods and geographic membership before combining them: our rent product uses FY2027, while this income-limit edition is FY2026.
Sources and versions
The original workbook is HUD’s free FY2026 Section 8 income-limit data. Notice PDR-2026-02, issued May 1, 2026, supplies the effective date and program scope. ACD retained the workbook and supporting methodology on November 11, 2026 UTC.
ACD adds documented CSV tables, explicit geographic relationships, field and coverage checks, retained source evidence and this tested example. Read the source and preparation record. Processing improvements and documented publisher corrections to the purchased edition are included. New source editions may be separate purchases.
Example checked November 11, 2026 against both these samples and the complete purchased files. Source and processing records, sample checksums · Expected result CSV. Independent preparation; no agency endorsement.