Repository navigation
Count only the filer and spouse in the Schedule R section 22 amount, and keep the pension return of cost out of its reduction - #11701
Open
peyton-thalman wants to merge 3 commits into
Conversation
section_22_income subtracted pension_income minus taxable_pension_income (the tax-free part of an employer pension or annuity) from the section 22 amount. 26 U.S.C. 22(c)(3)(A) reduces the amount only by pensions, annuities and disability benefits excluded from gross income and payable under title II of the Social Security Act, the Railroad Retirement Act or a VA law, or excluded under a provision of law not in title 26. The tax-free part of a pension is a return of cost under section 72, inside title 26, and the 2026 Schedule R line 13b instructions say not to include it. A single filer aged 70 with a $9,000 pension, $3,000 of it tax free, had a section 22 amount of $2,000 instead of $5,000. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
section_22_income counted every tax unit member who was 65 or older or retired on disability as a qualified individual, so a dependent parent aged 65 or older raised the count. A joint couple over 65 with such a parent counted three and fell to the zero default instead of $7,500, and a disabled filer under 65 with an elderly dependent counted two and started from $7,500 instead of $5,000. It also reduced the amount by the dependents' nontaxable Social Security (tax_unit_social_security includes them while the taxable part covers only the filers), and added dependents' disability income to the under-65 cap. 26 U.S.C. 22(c)(2)(A) sets the initial amount by the filer and spouse, 22(c)(2)(B) uses their disability income, and 22(c)(3)(A) reduces it by amounts received by the individual or, on a joint return, either spouse. Restrict all three to the head and spouse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What
Two fixes to
section_22_income, the amount the credit for the elderly or the disabled (Schedule R) is figured from.pension_income - taxable_pension_income, the return of the employee's own cost under section 72. 22(c)(3)(A) reduces only by benefits excluded under the Social Security Act, the Railroad Retirement Act or a VA law, or "under any provision of law not contained in this title", and section 72 is in title 26. The Schedule R line 13b instructions say "Don't include amounts that are treated as a return of your cost of a pension or annuity."Changes
section_22_income.pyrestricts the qualifying count, the elderly count and under-65 disability income tois_tax_unit_head_or_spouse, usestax_unit_social_security_for_taxability(filers only) for untaxed Social Security, and drops the nontaxable pension term, with the statute and instructions cited in comments.section_22_dependents.yamlandsection_22_return_of_cost.yaml(6 cases, arithmetic in comments), each failing on main and passing here.test_elderly_disabled_credit_invariants.pyreference function updated, since it mirrored the old formula.changelog.d/section-22-filer-and-spouse.fixed.md.Expected values (2026)
Tests run locally
section_22_income.yaml,section_22_dependents.yaml,section_22_return_of_cost.yaml,permanent_disability_retirement_pay.yaml, the elderly and disabled integration file, and the state files that read the credit orsection_22_income(Michigan subtractions, Vermont and Nebraska elderly or disabled credits, among others) pass, as doescore/test_elderly_disabled_credit_invariants.py.Notes
section_22_income, and Vermont and Nebraska build on the federal credit.🤖 Generated with Claude Code