Skip to content

Alabama federal income tax deduction (Part I) subtracts the total American Opportunity Credit instead of its refundable part #9700

Closed

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

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

  1. buzzedaldrinx86-creator commented on Sep 30, 2026

    @buzzedaldrinx86-creator
    Author

    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.

  2. buzzedaldrinx86-creator commented on Nov 13, 2026

    @buzzedaldrinx86-creator
    Author

    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 gives al_federal_income_tax_deduction of 2,716. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions