Repository navigation
Exclude dependents' deducted health premiums from Schedule A - #10831
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a computed subtotal, a supplied applied exclusion covers the filers only. North Dakota and New Mexico now add back the dependents' computed exclusion, as Montana does, so their paid-cost bases match the derived path. The govinfo copy of 26 U.S.C. 162 replaces the Cornell link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No source-conflict register entry cites these captures, and the source captures folder holds texts that register entries cite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
marked this pull request as ready for review
November 14, 2026 20:51
The computed subtotal leaves out the medical premiums dependents deduct, and the computed applied exclusion holds them. Beside a supplied subtotal, the Montana formula capped the exclusion's medical part at the filers' premiums, so it took those dependent premiums out of line 1 a second time. It now caps the medical part at the filers' premiums plus the dependents' computed exclusion. A subtotal and exclusion supplied at their computed values then give the computed deduction, as test_mt_medical_premium_deduction_invariants.py requires. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Beside a supplied subtotal, the Montana formula now reads the part of the supplied exclusion above the filers' own computed exclusion as the dependents' deducted premiums, up to the dependents' computed exclusion. An exclusion that covers the filers only then leaves the dependents' premiums in the subtotal, as on main, and an exclusion supplied at its computed value still gives the computed deduction. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A caller can supply an exclusion above what the return's people deducted. Beside a supplied subtotal, the Montana formula reads no more of that exclusion as a dependent's premiums than the dependent deducted. The new case gives 7,500 in place of 7,000 when the formula drops that cap. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tal once The computed subtotal leaves out the medical premiums dependents deduct, and the computed applied exclusion holds them. Beside a supplied subtotal, the New Jersey formula subtracted the dependents' computed exclusion again, so a subtotal and exclusion supplied at their computed values gave 6,400 where the computed path gives 9,400. The formula now reads the part of the supplied exclusion above the filers' own computed exclusion as the dependents' deducted premiums, up to the dependents' computed exclusion, and subtracts only the rest. A subtotal supplied alone, or with an exclusion that covers the filers only, still loses the dependents' deducted premiums, as on main. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Since #10724, main counts SSI and TANF in North Dakota renter's refund income. The two North Dakota cases supplied the parent's $40,000 of wages as employment_income and left employment_income_before_lsr at zero. The TANF formulas read earnings from the second input, so the model paid the family the full standard of need, 9 x $704 + 3 x $739 = $8,553, and refund income came to $43,553 against the expected $35,000. Both cases now supply the wages as employment_income_before_lsr, as main's North Dakota cases do. The family's countable earnings, $1,216.67 a month or more, exceed the $704 and $739 standards, so the family gets no TANF and every expectation holds as written. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Author
|
US + core hub merge audit, us#10831 at
🤖 Generated with Claude Code |
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exclude medical premiums a dependent deducts through self-employed health insurance from the claiming filers' Schedule A medical expenses.
Parents may count only the medical expenses they paid under 26 U.S.C. 213(a) and 26 CFR 1.213-1(a)(1). A dependent who deducts their own premiums paid them, so those premiums leave the parents' Schedule A. Taxpayers also exclude their own deducted premiums from Schedule A under section 162(l)(3).
For example, a dependent deducts $3,000 of medical premiums and $480 of eligible long-term care premiums against $10,000 of Schedule C or partnership earnings. With $50,000 of other medical expenses, the parents' medical subtotal falls from $53,000 to $50,000. The dependent's $3,480 deduction stays unchanged. The IRS sets the 2025 long-term care limit in Rev. Proc. 2024-40, section 2.28.
Invariants and tests
For computed subtotals with derived exclusion helpers and deductions within their corresponding paid premium pools:
For supplied amounts:
We keep undeducted dependent-paid premiums in the parents' subtotal, as main does. #10270 addresses payer attribution more broadly.
Hypothesis tests check conservation, earnings caps, premium splits, separate tax units, and state paid-cost bases.
test_mt_medical_premium_deduction_invariants.pychecks Montana's supplied-amount equality on a seeded population for 2021, 2022 and 2023. One New Jersey YAML case checks the same equality, and no property test does. YAML cases test zero and premium-pool boundaries, excess supplied deductions, sibling isolation and a self-employed filer alongside a dependent. They also test supplied subtotals and exclusions in Montana and New Jersey, and a supplied exclusion in North Dakota and New Mexico. The Montana cases use 2022 and 2023, and the seeded test covers 2021 to 2023, so neither runs Montana's 2017 to 2020 years.Pull request run 43914459007 at
44fb51ba82passed all 37 jobs on GitHub's merge with main8e1837790b.State effects
The New Jersey formula removes a dependent's deducted premiums once, from a computed or a supplied subtotal. For 2017 to 2023, the Montana formula keeps other medical expenses in line 1 and keeps supplied exclusions.
With a supplied subtotal, a supplied applied exclusion holds every premium that subtotal leaves out. The Montana and New Jersey formulas read the part of it above the filers' own computed exclusion as the dependents' deducted medical premiums, up to the dependents' computed exclusion. The Montana formula takes the rest from the filers' medical premiums first. The New Jersey formula subtracts only the dependents' deducted premiums that part does not cover. An exclusion that covers the filers only gives main's result in both states.
For example, a New Jersey parent with $30,000 of wages pays $10,000 of other medical costs, and a dependent pays and deducts $3,000 of medical premiums. The formulas compute a $10,000 subtotal and a $3,000 exclusion. Those two amounts supplied as inputs give the computed deduction of $10,000 − 2% × $30,000 = $9,400.
With a computed subtotal, a supplied applied exclusion covers the filers' premiums only. The Montana, North Dakota and New Mexico formulas each add the dependents' computed exclusion to it, as the derived path does. North Dakota takes out of renter refund income the medical expenses paid "by the applicant or the applicant's dependent" (NDCC 57-02-08.1(5)(c)). New Mexico's Taxation and Revenue Department lets filers aged 65 or older count expenses for the care of "any combination of you, your spouse, or dependents" toward the medical care credit (PIT-RC line 23). Its exemption instructions cover the filer's dependents the same way (PIT-ADJ line 18).
For example, a North Dakota parent with $40,000 of wages pays $2,000 of other medical costs, and a dependent pays $3,000 of premiums and deducts $1,000 of them. The federal subtotal leaves out the deducted $1,000 and comes to $4,000. With a supplied zero filer exclusion, we still add the $1,000 back, and renter refund income stays at $40,000 − $5,000 = $35,000. In New Mexico, with the same supplied zero, a dependent with $28,001 of premiums and a $1,000 deduction leaves a 65-year-old filer a $27,001 subtotal. We add the $1,000 back to reach $28,001, so the filer keeps the $2,800 credit and the $3,000 exemption.
Affected filers may deduct less for medical expenses in states that use the federal subtotal or deduction. When calculating Missouri's subtraction, we use the corrected subtotal in Form 5695, lines 10–12, so affected families' premium subtraction can shift.
Methodology choices
Overlap
#10270 counts only the head's and spouse's premiums in the federal subtotal and adds dependents' own premiums back in North Dakota. Whichever PR lands second must apply every item below, so dependent premiums leave the subtotal once and no state adds them back twice:
itemized_medical_expenses_excluded_dependent_premiumsfromitemized_medical_expenses. After items 1 to 5 no formula reads that variable, so remove it with the 20 YAML outputs that assert it, or keep it for reporting alone.itemized_medical_expenses_applied_exclusion.premiums_in_subtotalfrom the filers' premiums only, and drop every dependent term inmt_medical_expense_deduction_joint: the computed path's exclusion, the add-back beside a supplied exclusion, and the dependents' part of an exclusion supplied with a subtotal.nd_renters_refund_income,nm_medical_expense_creditandnm_medical_expense_exemption. Under Count only filer-paid premiums in Schedule A medical expenses #10270, the North Dakota formula adds every dependent's premiums back on all paths, and the New Mexico formulas count no premiums a dependent paid.test_long_term_care_premium_properties.py, and from the three YAML outputs that expect an applied exclusion with a dependent's part.Microsimulation impact
We estimate that this branch changes no tax unit's federal or state income tax and no household's benefits or net income in 2026 on the default dataset. Schedule A medical expenses before the 7.5% floor fall by $151,839, for 9 sampled tax units (6,200 weighted). The medical expense deduction falls by $689, for 6 sampled tax units (1 weighted). The exclusion that the North Dakota and New Mexico formulas add back,
itemized_medical_expenses_applied_exclusion, rises by $151,839, and none of the Montana, New Jersey, North Dakota or New Mexico outputs moves. We comparedmainat61c743cb61with this branch ata91ff3cb76; the head adds one commit that changes the wage input of two North Dakota test cases and no formula or parameter.itemized_medical_expensesitemized_medical_expenses_applied_exclusionmedical_expense_deductionmt_medical_expense_deduction_jointnj_medical_expense_deductionnd_renters_refund_incomenm_medical_expense_creditnm_medical_expense_exemptionmt_income_taxnj_income_taxnm_income_taxstate_income_taxincome_taxhousehold_benefitshousehold_net_incomeaxiom: TheAxiomFoundation/rulespec-us#1654 queued (26 U.S.C. 213(a) and 162(l)(3) with 26 CFR 1.213-1(a)(1), extended with a comment for a dependent's deducted premiums; the pinned corpus release lacks section 162(l)(3) and 26 CFR 1.213-1, so the signed encoder can't run yet)
🤖 Generated with Claude Code