Skip to content

Start Massachusetts circuit breaker total income from Massachusetts AGI and add the missing add-backs - #11177

Merged
hua7450 merged 3 commits into
mainfrom
ma-senior-circuit-breaker-income
Nov 21, 2026
Merged

hua7450 merged 3 commits into
mainfrom
ma-senior-circuit-breaker-income

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #10812 (state credit income audit).

What was wrong

ma_scb_total_income started from ma_gross_income. Its comment called that "an equivalent path" to the statute's AGI start, but it isn't one:

  • The deductions taken in reaching Massachusetts AGI (HSA, self-employed health insurance, pre-2019 alimony paid, student loan interest and the other Schedule Y lines 2 to 9b and 10 that ma_part_b_agi allows) never reduced total income.
  • irs_gross_income nets a long-term loss against a short-term gain (and the reverse) before Massachusetts sees it, so that loss was never added back.
  • The add-back list had no tax-exempt retirement account distributions, EAEDC, workers' compensation or tax-exempt disability pay.

M.G.L. c.62 s.6(k)(1) (statute) defines "taxpayer's total income" as "the sum of the taxpayer's Part A adjusted gross income, Part B adjusted gross income and Part C adjusted gross income, as defined in section 2, increased by, to the extent they are excluded or subtracted from adjusted gross income, the following: the total amount of income and receipts from social security, retirement, pension, or annuities, cash, but not in-kind, public assistance, tax-exempt interest and dividends, net capital losses deducted pursuant to paragraph (2) of subsection (c) of section 2, net losses in any class of Part C adjusted gross income ... and gross receipts from any other source", less the age 65, blindness and dependent exemptions.

What changes

Total income now starts from ma_agi and adds back:

Item Source
Starting point: ma_agi (Part A + B + C AGI), so the s.2(d) deductions come off s.6(k)(1); 2025 Schedule CB, line 3 worksheet, lines 1 to 3, page 2: "Enter the total of Schedule Y, lines 2 through 9b and line 10 ... Subtract line 2 from line 1"
Formula: everything Part A and Part C AGI deduct from gains, computed as Part A gross income plus long-term gains (floored at 0) minus Part A and Part C AGI. That is the s.2(c)(2) losses applied against dividends (Schedule B lines 20 and 32) and against the other holding period's gains (lines 22 and 25), plus the collectibles deduction (line 27) s.6(k)(1) "net capital losses deducted pursuant to paragraph (2) of subsection (c) of section 2"; worksheet lines 7 to 10 take Schedule B line 9 and line 15 (before losses and before line 27), and lines 12 to 18 take long-term gains "not including any losses" (page 2)
us_govt_interest (subtracted in ma_part_b_agi) Worksheet line 8, "Enter the amounts from Schedule B, lines 6a and 6b" (page 2); s.6(k)(1) "tax-exempt interest"
ma_qualified_unemployment_deduction (2021 Schedule Y line 9c; zero in other years) St. 2021, c. 9, s.26(b) excludes it from Massachusetts gross income; the 2021 Schedule CB worksheet, page 2: "do not exclude any amount on Schedule Y, line 9 that represents a deduction for unemployment compensation"
tax_exempt_retirement_distributions s.6(k)(1) "retirement, pension, or annuities"; 2025 Schedule CB line 5, page 1: "Pensions/annuities/IRA/Keogh distributions not taxed on your Massachusetts tax return"
ma_eaedc (SPM unit, like tanf) s.6(k)(1) "cash, but not in-kind, public assistance"; Schedule CB line 6 "Miscellaneous income, including cash public assistance"
workers_compensation, tax_exempt_disability_benefits s.6(k)(1) "gross receipts from any other source"; 2025 Form 1 instructions, Schedule CB line 6, page 30: "disability income, gifts, sick pay, worker's compensation and return of capital"

The list items go into gov.states.ma.tax.income.credits.senior_circuit_breaker.income.disallowed_deductions, each with its reference; the capital add-back is in the formula.

Schedule Y lines the worksheet leaves out (the review asked). The 2025 Schedule Y, page 1 has line 1 "Reserved for future use" and line 9c "Charitable contributions deduction". Line 9c and lines 11 to 18 are deductions from AGI under s.3, and ma_agi takes none of them (charitable_contributions_ald is on the Massachusetts disallowed list), so for 2025 nothing needs adding back. In 2021, line 9c was the qualified unemployment deduction, which ma_part_b_agi does subtract; the 2021 worksheet note above says to keep it in, so it is now added back.

Collectibles. Starting from ma_agi would newly take the 50% collectibles deduction (s.2(c)(3)) off total income. The worksheet doesn't: line 10 takes Schedule B line 15, before the line 27 deduction, and the statute's "gross receipts from any other source" covers the deducted half. The formula adds it back, so collectibles count in full, as they did before.

Two capital-loss points that only come up with gross figures: PolicyEngine has net short-term and net long-term inputs, so losses netted within a holding period can't be separated, and an unused Part C net loss (carried forward) was never subtracted from AGI, so it is not added back.

Who is affected

Massachusetts residents 65 or older claiming the Senior Circuit Breaker credit (refundable, Form 1 line 44):

  • Lower total income, so a larger credit or newly eligible: filers with deductions allowed in reaching Massachusetts AGI (HSA, self-employed health insurance, pre-2019 alimony paid, student loan interest, Armed Forces moving expenses).
  • Higher total income, so a smaller credit or none: filers with a long-term loss offsetting short-term gains, a short-term loss offsetting long-term gains or dividends, Roth or other tax-exempt retirement account distributions, EAEDC, workers' compensation or tax-exempt disability pay. Also filers with a business or rental loss larger than their Part B income: that loss no longer offsets dividends or capital gains, which matches Schedule CB (worksheet lines 1 and 3, "Not less than 0").
  • No change: U.S. obligation interest, collectibles gains and the 2021 unemployment deduction were already counted through ma_gross_income.
  • Dependents: ma_part_a_gross_income and ma_long_term_capital_gains sum over every tax unit member, so ma_agi includes a dependent's dividends and capital gains. Total income subtracts that share, so it counts only the head's and spouse's own Part A and Part C income (s.6(k) "the taxpayer's"; Schedule CB reads the claimant's own Form 1, Schedule B and U.S. Schedule D).

Tests

Moved from #10812 (ma_scb_total_income_audit.yaml) into ma_scb_total_income.yaml, comments kept apart from the audit framing: the HSA deduction (27,300), the long-term loss against a short-term gain (29,300), tax-exempt IRA distributions (30,300), EAEDC (26,700), workers' compensation (29,300) and tax-exempt disability pay (28,300). The review lists no rewrites for these cases.

Added, with arithmetic in each comment:

  • ma_scb_total_income.yaml: U.S. obligation interest added back (ma_agi 6,000, total 9,300), a short-term loss against long-term gains (ma_agi 26,000, total 29,300), a short-term loss against dividends (ma_agi 21,500, total 22,300), the collectibles deduction added back (ma_agi 31,000, total 32,300) and the 2021 unemployment deduction added back (ma_agi 10,000, total 17,300).
  • ma_senior_circuit_breaker.yaml Cases 17 and 18: a single filer whose HSA deduction brings total income to exactly the 75,000 limit gets 2,500; one dollar more of wages gives 75,001 and no credit.
  • ma_senior_circuit_breaker.yaml Case 19 (2025): a head of household aged 70 with 94,000 of wages and 12,000 of real estate tax, plus a dependent grandchild with 2,000 of dividends. Total income is 92,300 (94,000 - 700 - 1,000) and the credit is 2,770, the same as main; the grandchild's dividends stay out.
  • ma_scb_total_income.yaml: the head and a dependent with offsetting gains and losses give 26,300, the same as with no dependent income.

Existing tests changed: none.

Not in this PR

axiom: needed (rulespec-us us-ma/statutes/62/6.yaml encodes s.6(e) and (h) only, not the s.6(k) circuit breaker; no encoder run was authorized for this PR)

After the review fix, tested locally: the senior circuit breaker directory (37) and the Massachusetts income tax directory (234) pass. Before it, tested on Modal: run w1-ma-b, 274/274 passed (273 YAML files: the Massachusetts folder, every partner file, ma_commonwealth_credit.yaml and state_income_tax_before_one_time_rebates.yaml, which read the credit; plus test_source_conflicts.py). Run w1-ma-a never started: its launch timed out before spawning.

🤖 Generated with Claude Code

@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 00:13

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. Starting from Massachusetts AGI and adding back the listed exclusions follows MGL c.62 s.6(k) and Schedule CB. U.S. government interest, the 2021 unemployment deduction, tax-exempt retirement distributions, workers' compensation, tax-exempt disability pay and EAEDC are each counted once, and EAEDC adds no cycle. One fix before I approve.

Before merge

  1. A dependent's dividends and capital gains now count. ma_agi brings in ma_part_a_gross_income and ma_long_term_capital_gains. Both add up every tax-unit member, while Part B leaves dependents out. The statute sums "the taxpayer's" Part A, B and C income (c.62 s.6(k)), and the 2025 Schedule CB worksheet reads the claimant's own Form 1, Schedule B and U.S. Schedule D.

    Hand trace (not run), 2025: a head of household aged 70 with 94,000 of wages and 12,000 of real estate tax, plus a dependent grandchild with 2,000 of dividends. On main, total income is 92,300 and the credit is 2,770. On this PR, total income is 94,300, over the 94,000 limit, so the credit is 0.

    The PR body names this and defers it, but this diff is what moves the dependent's income into the credit. There are two ways to fix it:

    • Make ma_part_a_gross_income and ma_long_term_capital_gains count the head and spouse only (tax_unit_non_dep_add, as ma_part_b_gross_income does). Since that also corrects Massachusetts income tax, it could go in a small PR merged first.
    • Remove the dependents' Part A and Part C amounts inside ma_scb_total_income here.

    Either way, please add a case with a dependent who has dividends, and correct the comment at lines 45-47, which says dependents' income is never in that AGI.

Optional

  • Effect missing from the PR body. A business or rental loss larger than Part B income no longer offsets dividends or capital gains. That matches Schedule CB (worksheet lines 1 and 3, "Not less than 0"), so main was the one in error. But the "Who is affected" list and the changelog don't mention it, and no case covers it.

DTrim99 and others added 2 commits November 20, 2026 16:26
M.G.L. c.62 s.6(k)(1) starts total income from Part A, B and C AGI, so the
deductions allowed in reaching AGI now reduce it. It adds back the capital
losses and collectibles deduction taken in reaching Part A and Part C AGI,
interest on U.S. obligations, the 2021 unemployment deduction, tax-exempt
retirement account distributions, EAEDC, workers' compensation and
tax-exempt disability pay, following the statute and the Schedule CB line 3
worksheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t of circuit breaker total income

ma_scb_total_income now subtracts dependents' Part A gross income and
long-term capital gains, which Massachusetts AGI pools across all tax
unit members, so only head and spouse income counts toward the senior
circuit breaker. Adds the reviewer's dependent case and a cross-member
capital loss netting case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 force-pushed the ma-senior-circuit-breaker-income branch from f3f6fc7 to a946537 Compare November 20, 2026 21:26
@DTrim99

DTrim99 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, Ziming. Fixed in a946537, rebased on main.

Fixed (your "Before merge" item)

  1. A dependent's dividends and capital gains no longer count. I took your second option and kept the fix inside the credit, so Massachusetts income tax is untouched. Moving ma_part_a_gross_income and ma_long_term_capital_gains to head and spouse only can still go in its own PR.
    • The subtraction. ma_scb_total_income now subtracts the dependents' share of what ma_agi brings in: the all-member Part A gross income plus floored long-term gains, minus the same amounts rebuilt for the head and spouse with tax_unit_non_dep_add.
    • Why it is exact. Adding the capital add-back to ma_agi cancels the loss limits and floors inside Part A and Part C AGI. What is left is the Part A gross income and the long-term gains floored at zero, so the dependents' share can be isolated exactly. That holds even when a filer's loss nets against a dependent's gain, or the reverse. With no dependents, the subtraction is exactly zero.
    • New Case 19 is your trace: total income 92,300 (94,000 − 700 aged exemption − 1,000 dependent exemption) and credit 2,770 (12,000 − 9,230, under the 2,820 cap), the same as main.
    • A second new case gives the head and the dependent offsetting gains and losses. Total income is 26,300, the same as with no dependent income.
    • Comment. The one at the old lines 45-47 now says dependents' items belong on their own returns, and a short note explains the subtraction.

Skipped (optional, not in this round): the PR-body line, changelog line and test case for business or rental losses no longer offsetting dividends.

Verification:

  • The senior circuit breaker directory (37) and the Massachusetts income tax directory (234) pass locally. Against the PR head before this fix, only the two new cases fail, so no existing case moved.
  • An independent check confirmed that the head-and-spouse rebuild mirrors the two income tax variables exactly. If a component is ever added to ma_long_term_capital_gains, it needs adding here too, and the code says so.

@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 21:27

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. The fix works. Subtracting the dependents' share makes the pooled Part A and Part C terms cancel exactly, so total income comes out to ma_part_b_agi plus the head's and spouse's own dividends and floored gains. That matches s.6(k)(1) and Schedule CB Parts 1-3. A plain-Python copy of the formulas matched that form in 200,000 random cases, and the subtraction is exactly zero when there are no dependents. Case 19 (92,300 and a 2,770 credit, as on main) and the netting case (26,300) both check by hand. Approving.

Optional:

  • PR body. It still says dependents' dividends and capital gains are "now in total income too", and its test list describes the earlier head. Please update it before merging so the squash commit doesn't carry that.
  • PR 9894. Once it makes ma_part_a_gross_income and ma_long_term_capital_gains head-and-spouse only, the dependent subtraction here is always zero and can go. Either merge order gives the same results.
  • Part B losses (from the first round): the "Who is affected" list and the changelog still don't mention that a business or rental loss no longer offsets dividends and gains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hua7450
hua7450 merged commit 80a0330 into main Nov 21, 2026
38 checks passed
@hua7450
hua7450 deleted the ma-senior-circuit-breaker-income branch November 21, 2026 02:39
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.

2 participants