Fix Virginia age deduction: protect fixed pre-1939 amount from income phase-out - #9303
Open
DTrim99 wants to merge 1 commit into
Open
Fix Virginia age deduction: protect fixed pre-1939 amount from income phase-out#9303DTrim99 wants to merge 1 commit into
DTrim99 wants to merge 1 commit into
Conversation
… phase-out Va. Code § 58.1-322.03(5) grants two age deductions: (a) a fixed $12,000 for filers born on or before January 1, 1939, which is not income-tested, and (b) a $12,000 for filers born after that date, reduced dollar-for- dollar by the amount adjusted federal AGI exceeds the threshold. The income test applies only to (b). The prior formula computed a combined maximum and subtracted the full excess from the whole thing, wiping out the protected fixed amount for a mixed-age couple. Split the deduction so only the income-based portion is reduced. Fixes PolicyEngine#9302 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9303 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 12 1 -11
Lines 161 30 -131
==========================================
- Hits 161 30 -131
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DTrim99
marked this pull request as ready for review
August 19, 2026 19:19
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.
Fixes #9302.
What
Virginia grants two distinct age deductions under Va. Code § 58.1-322.03(5):
The income test appears only in subparagraph (b). The (a) fixed deduction is never reduced.
va_age_deductionpreviously computed a single combined maximum ($12,000 × count_eligible) and then subtracted the entire AFAGI excess from the whole thing whenever not every eligible filer qualified for the fixed amount. For a mixed-age couple — one spouse born on/before Jan 1, 1939 (fixed) and one born after (income-based) — this wiped out the protected fixed $12,000.This PR splits the deduction into the fixed portion (never reduced) and the income-based portion (reduced by the excess), so only the (b) amount is means-tested.
Impact
Only the mixed-age married case changes. All-fixed, all-income-based, and single-filer cases are unchanged.
Failing case (taxsim #1140)
Joint filers, TY2022: taxpayer born 1/1/1937 (fixed $12,000), spouse born 1/1/1945 (income-based), AFAGI $160,294 ≫ $75,000 married threshold so the (b) amount phases to $0.
Tests
va_age_deductiontests pass.🤖 Generated with Claude Code