Compare state disposable income and income sources in Python

Compare BEA disposable income per person and income composition in North Carolina, Georgia and Virginia, 2019 and 2025.

A state market brief needs both the level of income and an explanation of where it comes from. This example compares disposable income per person in North Carolina, Georgia and Virginia in 2019 and 2025, then separates 2025 personal income into net earnings, property income and transfers.

Sample data

state_income.csv below is a genuine subset of the paid main table: three states in two years, with all 30 fields unchanged. The optional input.csv contains the selected state FIPS codes and names. Those selections also appear in the places list in the Python code below. No income observations or households are invented.

Save the sample as state_income.csv in your working folder. BEA’s personal income includes residence-based net earnings, dividends/interest/rent and current transfers. Disposable personal income subtracts personal current taxes. Both are broader than wages or the cash left in a particular household’s bank account.

Code example

The code uses the reported disposable-income-per-person values and the prepared income shares. It runs in a notebook or as a Python script, using only the standard library.

Paths are relative to your working folder; use from pathlib import Path; print(Path.cwd()) to check it, or supply full paths.

Python 3.10+ · Jupyter, IPython or a script
"""Compare genuine state disposable income and income composition."""
import csv
from decimal import Decimal

places = [
    {'state_fips': '37', 'name': 'North Carolina'},
    {'state_fips': '13', 'name': 'Georgia'},
    {'state_fips': '51', 'name': 'Virginia'},
]
with open('state_income.csv', newline='', encoding='utf-8') as f:
    selected = {}
    for row in csv.DictReader(f):
        if row['geography_type'] == 'state' and row['year'] in ('2019', '2025'):
            key = (row['state_fips'], row['year'])
            if key in selected:
                raise ValueError('Duplicate state-year')
            selected[key] = row

results = []
for place in places:
    start = selected[place['state_fips'], '2019']
    end = selected[place['state_fips'], '2025']
    if any(r['status'] != 'reported_values_with_derived_shares' for r in (start, end)):
        raise ValueError('Review availability before comparing')
    a, b = (Decimal(r['disposable_income_per_capita']) for r in (start, end))
    growth = (b / a - 1) * 100
    results.append({
        'state_fips': place['state_fips'], 'state': place['name'],
        'disposable_per_person_2019': str(a), 'disposable_per_person_2025': str(b),
        'nominal_change_pct': f'{growth:.1f}',
        'net_earnings_share_2025': f"{Decimal(end['net_earnings_share_pct']):.1f}",
        'property_income_share_2025': f"{Decimal(end['property_income_share_pct']):.1f}",
        'transfer_share_2025': f"{Decimal(end['transfer_share_pct']):.1f}",
    })
    print(f"{place['name']}: disposable income per person ${a:,.0f} → ${b:,.0f} "
          f"({growth:+.1f}% nominal)")
    print(f"  2025 personal income: net earnings {Decimal(end['net_earnings_share_pct']):.1f}%, "
          f"dividends/interest/rent {Decimal(end['property_income_share_pct']):.1f}%, "
          f"transfers {Decimal(end['transfer_share_pct']):.1f}%")

Analysis of the output

North Carolina: disposable income per person $43,005 → $60,541 (+40.8% nominal)
  2025 personal income: net earnings 58.6%, dividends/interest/rent 19.3%, transfers 22.1%
Georgia: disposable income per person $43,272 → $57,469 (+32.8% nominal)
  2025 personal income: net earnings 60.2%, dividends/interest/rent 20.6%, transfers 19.2%
Virginia: disposable income per person $50,765 → $69,955 (+37.8% nominal)
  2025 personal income: net earnings 61.9%, dividends/interest/rent 21.3%, transfers 16.7%

North Carolina’s disposable income rises from $43,005 to $60,541 per person, a 40.8% nominal increase. Georgia rises 32.8% and Virginia 37.8%. Virginia has the highest 2025 level among these three states, even though North Carolina has the largest percentage increase over this interval.

The composition comparison adds context. Net earnings account for 58.6% of North Carolina’s personal income, compared with 61.9% in Virginia. Transfers account for 22.1% in North Carolina and 16.7% in Virginia. These shares describe each state’s aggregate income mix; they do not identify the reasons for the differences or the distribution among residents. Displayed shares may differ slightly from 100% because of rounding.

These are current-dollar changes. Dividing by population does not remove inflation. Per-capita income is an average across all residents, not median household income, a typical salary or an affordability measure. These tables do not supply standard errors for a significance test.

Using the full dataset

After purchase, replace the sample with state_income.csv from the archive. Change the text state codes in places or select other years. To load your own list, replace the inline list with a csv.DictReader reading your state-selection CSV. The download’s areas.csv and measures.csv document valid keys and original definitions.

For state comparisons, select geography_type=state and join on text state_fips + year. The full unique key is geography_type + bea_area_code + year. National and regional rows are separate overlapping aggregates; do not add them to their states.

Joining income and spending

The State Consumer Spending by Category product uses the same September 30, 2026 BEA publication and observation years. A join can put resident spending alongside income. To try it free, also save its genuine state_spending.csv sample in the same folder. That sample includes these states and years, with food and housing categories. Run the following after the first example.

This join selects category 15, housing and utilities, and compares its published spending per person with disposable income per person. The two full products are sold separately; their full files use the same columns as these samples.

Python 3.10+ · optional spending join
# Run after the income example; save both genuine sample CSVs in this folder.
with open('state_spending.csv', newline='', encoding='utf-8') as f:
    housing = {}
    for row in csv.DictReader(f):
        if (row['geography_type'] == 'state' and row['year'] == '2025'
                and row['category_code'] == '15'):
            key = (row['state_fips'], row['year'])
            if key in housing:
                raise ValueError('Duplicate state/year/category')
            housing[key] = row

for place in places:
    key = (place['state_fips'], '2025')
    spending, income = housing[key], selected[key]
    if spending['per_capita_status'] != 'reported':
        raise ValueError('Review spending availability')
    amount = Decimal(spending['per_capita_dollars'])
    disposable = Decimal(income['disposable_income_per_capita'])
    ratio = 100 * amount / disposable
    print(f"{place['name']}: housing/utilities ${amount:,.0f} per person; "
          f"{ratio:.1f}% of disposable income per person")
North Carolina: housing/utilities $10,351 per person; 17.1% of disposable income per person
Georgia: housing/utilities $10,332 per person; 18.0% of disposable income per person
Virginia: housing/utilities $11,316 per person; 16.2% of disposable income per person

This is an aggregate spending-to-income ratio. BEA housing spending includes imputed owner-occupied rental services and utilities; it is not a renter’s payment burden or a mortgage affordability measure. The ratio is not the share of households with high housing costs. Even using total PCE would not make the residual BEA’s official personal saving rate.

Income components and tax units

The three income components—residence-based net earnings, dividends/interest/rent and transfers—combine to personal income within published rounding. Workplace wages, supplements and proprietors’ income are intermediate components of earnings. Social insurance contributions are subtracted and a residence adjustment is added before arriving at net earnings by residence. Do not sum all the income columns.

Personal current taxes are distinct from social insurance contributions and from all taxes paid by households. The source’s federal, state and local tax subtotals exclude a separately reported state/local personal property tax line; that separate field is included when reconciling total personal current taxes. Original tax amounts are in thousands, while the prepared summary expresses totals in millions. Original values and units remain in source_values.csv, and thousands do not imply greater source precision.

The regional price-level reference can add geographic context for a common state and year. It uses a different source publication vintage, and an RPP change is not a local time-series inflation index. See the spending, income and price collection to choose the appropriate companion.

Sources and versions

Source: BEA Personal Income by State, SAINC1, SAINC4, SAINC50 and SAINC51, September 30, 2026 release. SAINC50 adds 2025 and revises 2009–2024; SAINC1/4/51 report revisions for 2009–2025. We retained this source on November 18, 2026 UTC with the October 2026 methodology. The product is one revised historical edition, not original annual publication vintages.

BEA supplies the original tables free. Actually Clean Data sells preparation, checks and documentation. Processing improvements and publisher error corrections to the purchased edition are included; future source publications may be separate purchases. Read the release notes.

Example checked November 18, 2026 against both these samples and the complete purchased files. Source and processing records, sample checksums · Expected result CSV. Independent preparation; no agency endorsement.