Repository navigation
Description
Bug
al_federal_income_tax_deduction Part I computes income_tax_before_refundable_credits minus the credits in gov.states.al.tax.income.deductions.federal_tax.credits. That list contains american_opportunity_credit, the total AOC. The Alabama worksheet subtracts only the refundable AOC (Form 1040 line 29). The nonrefundable part has already reduced Form 1040 line 22, so it is subtracted twice. This applies in every year that uses Part I.
Law
2024 Alabama Form 40 booklet, Federal Income Tax Deduction Worksheet, line 4c (https://www.revenue.alabama.gov/wp-content/uploads/2025/01/24f40bk.pdf#page=31):
"American Opportunity Credit. Enter the amount from line 29 of 2024 Form 1040"
Line 1 of the same worksheet is Form 1040 line 22, which is tax after nonrefundable credits.
Reproduction (main f7c6525, 2026-09-29)
2024, AL, single, age 30, employment_income 60,000, qualified_tuition_expenses 4,000, is_eligible_for_american_opportunity_credit true.
| PolicyEngine | Worksheet | |
|---|---|---|
income_tax_before_refundable_credits (lines 1–3) |
3,716 | 3,716 |
| AOC subtracted (line 4c) | 2,500 (total AOC) | 1,000 (refundable AOC) |
al_federal_income_tax_deduction |
1,216 | 2,716 |
Code
- Credit list:
Lines 3 to 6 in f7c6525
2021-01-01: - eitc - american_opportunity_credit - refundable_ctc - Part I:
Lines 26 to 28 in f7c6525
# Part I (worksheet lines 1-6): subtract the actual refundable federal # credits (EITC, refundable CTC/ACTC, American Opportunity Credit). part_i = max_(federal_tax - add(tax_unit, period, p.credits), 0) - The 2021 Part II branch of the same file already uses
refundable_american_opportunity_credit, and its comment says subtracting the total "would double-count it":Lines 68 to 74 in f7c6525
# Worksheet line 11 (2021 Form 1040 line 29) is the REFUNDABLE portion of # the American Opportunity Credit (Form 8863 line 8). The non-refundable # portion already reduced `federal_tax`, so subtracting the total would # double-count it. refundable_american_opportunity_credit = tax_unit( "refundable_american_opportunity_credit", period )
Suggested fix
Replace american_opportunity_credit with refundable_american_opportunity_credit in credits.yaml, and add a test like the case above.
Related: #9487 and #9502 added Part II for 2021 and did not change Part I.
Activity
buzzedaldrinx86-creator commentedon Sep 30, 2026
For transparency: this issue was found and checked with AI assistance. The reproduction and legal citation were verified by running the model and reading the cited source.
buzzedaldrinx86-creator commentedon Nov 13, 2026
Fixed on main by #10038 (merged 7 Nov 2026): the Alabama credit list now subtracts
refundable_american_opportunity_credit. On main at 44f9211 the example above givesal_federal_income_tax_deductionof 2,716. Closing.