Skip to content

Count dependents' MAGI in ACA and Medicaid household income only when they must file - #10108

Draft
MaxGhenis wants to merge 7 commits into
mainfrom
dependent-magi-filing-requirement
Draft

MaxGhenis wants to merge 7 commits into
mainfrom
dependent-magi-filing-requirement

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Linux household YAML checks and Python invariant tests pass on the branch. The household YAML checks also pass on a merge with main. Axiom parity and the 2025 and 2026 microsimulations are pending.

What's wrong on main

The premium tax credit counts the taxpayer's return and the MAGI of other tax-family members required to file. Medicaid uses each applicant's Medicaid household, with the child and specified tax-dependent exclusions in 42 CFR 435.603(d)(2).

On main:

  • medicaid_magi (which aca_magi adds) is tax-unit AGI plus add(tax_unit, modification). That adds every member's tax_exempt_interest_income and tax_exempt_social_security, and the latter includes all of a dependent's Social Security. It never adds a dependent's AGI. So a child's survivor benefits or tax-exempt interest raise household income, and a teen who must file because of wages adds nothing.
  • medicaid_magi_person gives the tax unit's tax_exempt_social_security, the child's benefits included, to the head and spouse. So Medicaid household income (medicaid_household_income) puts a child's benefits in the parent's MAGI even when 435.603(d)(2)(i) excludes the child's income.

Fix

  • tax_exempt_social_security_person (new) adds each filer's untaxed benefits from the return that reports them. If a tax-unit total contains benefits without person amounts, the filers share the unallocated amount equally. Dependents' benefits use their own returns (Pub. 915 (2025), "Who is taxed").
  • medicaid_magi combines the return's MAGI with the MAGI of dependents required to file and floors the sum at zero. For incomplete joint-return roles, both tax-unit MAGI formulas (aca_magi and medicaid_magi) use the same inferred filers for AGI and the Social Security add-back. The shared helper magi_household_income takes both a filer mask and a counted-dependent mask. ACA uses its tax-family gate when choosing dependents.
  • medicaid_magi_person already classifies additions by entity. The modification parameter (gov.hhs.medicaid.income.modification) now supplies person-level Social Security so the household calculation can attribute benefits to their recipients.
  • medicaid_irs_gross_income counts dependent Social Security toward the filing threshold to the extent it is taxable (Pub. 501 (2025), Table 2). The $5 rule in medicaid_person_is_required_to_file uses the dependent's separately filing spouse's itemization status. Dependent MAGI (medicaid_adjusted_gross_income_person and dependent_taxable_ss_magi) applies the passive loss limit before the excess business loss limit and applies the separate-return capital loss cap when spouses lived apart.

Examples (2025, parent with $40,000 of wages)

Dependent Must file? medicaid_magi on main branch
Child, $12,000 survivor benefits no 52,000 40,000
Child, $20,000 survivor benefits no (none taxable) 60,000 40,000
Child, $12,000 survivor benefits + $2,000 interest yes 52,000 54,000
Child, $20,000 tax-exempt interest no 60,000 40,000
Teen, $16,000 wages yes 40,000 56,000
Disabled adult child, $15,000 wages + $36,000 benefits ($4,000 taxable) yes 76,000 91,000

Coordination

axiom: needed

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits October 11, 2026 13:05
26 CFR 1.36B-1(e)(1)(ii) and 42 CFR 435.603(d)(2) count another family
member's modified AGI in household income only if that member is required to
file. medicaid_magi (which aca_magi adds) added every member's tax-exempt
interest and all of a dependent's Social Security, and none of a dependent's
AGI. It now adds the filers' MAGI plus the whole MAGI of each dependent who
is required to file.

The MAGI additions now take each person's own tax-exempt Social Security
(tax_exempt_social_security_person), so medicaid_magi_person no longer gives
a child's benefits to the parent. medicaid_irs_gross_income counts a
dependent's taxable benefits, figured on their own return, toward the filing
threshold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Property-based and seeded-population checks: a Form 8962 differential for
medicaid_magi, the exclusion of dependents who need not file, the Social
Security identities, the unchanged formula without dependents, and agreement
with the person-level Medicaid household income on the tax-filer route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 5 commits November 30, 2026 12:39
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Net allowable capital and business losses on a dependent's return. Test filing with positive capital gains. Apply the ACA tax-family mask before summing household income and floor the Social Security add-back on the return.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant