From f2107a2e543a9f5ea07bb872418da77e0add27af Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Thu, 19 Nov 2026 17:26:10 -0500 Subject: [PATCH] Fix Minnesota property tax refund and renter's credit household income The Homestead Credit Refund now adds the amounts Minn. Stat. 290A.03, subd. 3(a)(2) counts beyond federal AGI: SSI, Minnesota Supplemental Aid, General Assistance, MFIP, workers' compensation, tax-exempt interest, nontaxable retirement account distributions, alimony not in AGI and the HSA deduction. Its retirement base amount follows the federal IRA deductible amount for the claimant and spouse (subd. 3(d)(2)), so it is $7,500 per filer from 2026 instead of a frozen $7,000. The renter's credit counts only the claimant's and spouse's AGI (290.0693, subd. 1(g) and 7), not the AGI of other adults in the SPM unit. Moves the Minnesota cases from the #10812 audit into the real test files. Co-Authored-By: Claude Opus 5.5 --- ...-tax-refund-renters-credit-income.fixed.md | 1 + .../income_additions.yaml | 26 ++ .../retirement_subtraction/limit.yaml | 29 -- .../tax/income/credits/mn_renters_credit.yaml | 47 +++ .../mn_renters_credit_household_agi.yaml | 58 +++ .../mn_renters_credit_household_income.yaml | 13 +- .../mn_homestead_credit_refund.yaml | 28 ++ ...estead_credit_refund_household_income.yaml | 356 ++++++++++++++++++ .../mn_renters_credit_household_agi.py | 35 +- .../mn_renters_credit_household_income.py | 6 +- ...omestead_credit_refund_household_income.py | 45 ++- 11 files changed, 590 insertions(+), 54 deletions(-) create mode 100644 changelog.d/mn-property-tax-refund-renters-credit-income.fixed.md create mode 100644 policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/income_additions.yaml delete mode 100644 policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/retirement_subtraction/limit.yaml diff --git a/changelog.d/mn-property-tax-refund-renters-credit-income.fixed.md b/changelog.d/mn-property-tax-refund-renters-credit-income.fixed.md new file mode 100644 index 00000000000..9ec03f59f90 --- /dev/null +++ b/changelog.d/mn-property-tax-refund-renters-credit-income.fixed.md @@ -0,0 +1 @@ +Minnesota's Homestead Credit Refund household income now adds Supplemental Security Income, cash assistance, workers' compensation, tax-exempt interest, nontaxable retirement distributions and alimony, and the HSA deduction, and its retirement base amount follows the federal IRA limit. The renter's credit now counts only the claimant's and spouse's income, not other adults' in the home. diff --git a/policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/income_additions.yaml b/policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/income_additions.yaml new file mode 100644 index 00000000000..f9ffb3979bb --- /dev/null +++ b/policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/income_additions.yaml @@ -0,0 +1,26 @@ +description: Minnesota adds these amounts to federal adjusted gross income when computing household income under the Homestead Credit Refund program. +values: + 2024-01-01: + # Line 4, government assistance: Supplemental Security Income (Minn. + # Stat. 290A.03, subd. 3(a)(2)(v)) and cash public assistance and relief + # (subd. 3(a)(2)(iv)): Minnesota Supplemental Aid, General Assistance and + # MFIP, which tanf holds for Minnesota. + - ssi + - mn_msa_person + - general_assistance + - tanf + # Line 6, additional nontaxable income. + - workers_compensation # subd. 3(a)(2)(vii) + - tax_exempt_interest_income # subd. 3(a)(2)(vi) + - tax_exempt_retirement_distributions # subd. 3(a)(2)(xii) + - health_savings_account_ald # subd. 3(a)(2)(xv) + +metadata: + unit: list + period: year + label: Minnesota Homestead Credit Refund household income additions + reference: + - title: Minn. Stat. 290A.03, subd. 3(a)(2) + href: https://www.revisor.mn.gov/statutes/cite/290A.03 + - title: "2025 Form M1PR Instructions, lines 4 and 6 #page 7-8" + href: https://www.revenue.state.mn.us/sites/default/files/2026-06/m1pr-inst-25.pdf#page=7 diff --git a/policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/retirement_subtraction/limit.yaml b/policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/retirement_subtraction/limit.yaml deleted file mode 100644 index f4129a1509e..00000000000 --- a/policyengine_us/parameters/gov/states/mn/tax/property/homestead_credit_refund/retirement_subtraction/limit.yaml +++ /dev/null @@ -1,29 +0,0 @@ -description: Minnesota limits the retirement account subtraction to this amount under the Homestead Credit Refund program. -metadata: - propagate_metadata_to_children: true - unit: currency-USD - period: year - label: Minnesota Homestead Credit Refund retirement account subtraction limit - breakdown: - - filing_status - reference: - - title: 2024 Form M1PR Instructions, Line 10 - href: https://www.taxformfinder.org/forms/2024/2024-minnesota-form-m1pr-instructions.pdf#page=9 - - title: 2025 Form M1PR Instructions, Line 10 - href: https://www.taxformfinder.org/forms/2025/2025-minnesota-form-m1pr-instructions.pdf#page=9 - -JOINT: - values: - 2024-01-01: 14_000 -HEAD_OF_HOUSEHOLD: - values: - 2024-01-01: 7_000 -SURVIVING_SPOUSE: - values: - 2024-01-01: 7_000 -SINGLE: - values: - 2024-01-01: 7_000 -SEPARATE: - values: - 2024-01-01: 7_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit.yaml index d0e816e7933..f88f82b466d 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit.yaml @@ -172,3 +172,50 @@ # Excess rent = 3,000 - 0.02 * 47,570 = 3,000 - 951.40 = 2,048.60 # Credit = round(2,048.60 * 0.70) = round(1,434.02) = 1,434 mn_renters_credit: 1_434 + +- name: Roommates each claim the credit with only their own income. + # Minn. Stat. 290.0693, subd. 7: "the rent shall be deemed to be paid + # equally by each renter, and separate claims shall be filed by each + # renter. The income of each renter shall be each renter's household + # income". 2025 Schedule M1RENT instructions (PDF page 3), "Lived with a + # roommate": "Include only your income when filing for the credit." + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 66 + employment_income: 10_000 + pre_subsidy_rent: 9_000 + is_tax_unit_head: true + person2: + age: 40 + employment_income: 60_000 + pre_subsidy_rent: 9_000 + is_tax_unit_head: true + tax_units: + tax_unit1: + members: [person1] + mn_renters_credit_qualifying_crp: true + tax_unit2: + members: [person2] + mn_renters_credit_qualifying_crp: true + spm_units: + spm_unit: + members: [person1, person2] + housing_assistance: 0 + households: + household: + members: [person1, person2] + state_code: MN + output: + # person1: 10,000 - 5,200 (age 65 or older) = 4,800. person2: 60,000. + mn_renters_credit_household_income: [4_800, 60_000] + # Rent constituting property taxes: 9,000 x 17% = 1,530 each. + mn_rent_constituting_property_taxes: [1_530, 1_530] + # person1, $0 - $8,859 band: 1.0% of income, claimant pays 5%, maximum + # $2,720. 1,530 - 0.01 x 4,800 = 1,482; round(1,482 x 0.95) = + # round(1,407.90) = 1,408. + # person2: 2.0% of income, claimant pays 40% ($53,180 - $62,059), + # maximum $2,240. 1,530 - 0.02 x 60,000 = 330; 330 x 0.60 = 198. + mn_renters_credit: [1_408, 198] diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.yaml index fdd80c83110..5814a2d8911 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.yaml @@ -23,3 +23,61 @@ # Before, the spouse's AGI was -3,000 and the head's 27,000. adjusted_gross_income_person: [24_000, 0] mn_renters_credit_household_agi: 24_000 + +- name: Roommates sharing an SPM unit each count only their own AGI. + # Minn. Stat. 290.0693, subd. 1(g) and 290A.03, subd. 4: the household is + # the claimant and spouse. 290.0693, subd. 7: "The income of each renter + # shall be each renter's household income". 2025 Schedule M1RENT + # instructions (PDF page 3), "Lived with a roommate": "Include only your + # income when filing for the credit." + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 30 + employment_income: 25_000 + is_tax_unit_head: true + person2: + age: 35 + employment_income: 45_000 + is_tax_unit_head: true + tax_units: + tax_unit1: + members: [person1] + tax_unit2: + members: [person2] + spm_units: + spm_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: MN + output: + # Each tax unit's own AGI, not the SPM unit's 70,000. + mn_renters_credit_household_agi: [25_000, 45_000] + +- name: A separate filer's household AGI adds the spouse's AGI. + # Schedule M1RENT line 2: "If your filing status is married filing + # separately ... enter your spouse's adjusted gross income for the time + # they lived with you" (2025 instructions, PDF page 4). The model takes the + # spouse's AGI to equal the filer's. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + is_tax_unit_head: true + tax_units: + tax_unit: + members: [person1] + filing_status: SEPARATE + adjusted_gross_income: 40_000 + households: + household: + members: [person1] + state_code: MN + output: + # 40,000 + 40,000 = 80,000. + mn_renters_credit_household_agi: 80_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.yaml index f1106d371a3..babee0666d1 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.yaml @@ -40,7 +40,14 @@ output: mn_renters_credit_household_income: 80_000 -- name: Case 3, other adult household income counts. +- name: Case 3, another adult's income is not the renter's household income. + # Minn. Stat. 290.0693, subd. 1(g) takes "household" from 290A.03, subd. 4: + # "a claimant and an individual related to the claimant as the claimant's + # spouse who are domiciled in the same homestead". 290.0693, subd. 7: "If a + # homestead is occupied by two or more renters who are not married to each + # other ... The income of each renter shall be each renter's household + # income". 2025 Schedule M1RENT instructions (PDF page 3), "Lived with a + # roommate": "Include only your income when filing for the credit." period: 2025 absolute_error_margin: 0.1 input: @@ -66,4 +73,6 @@ members: [person1, person2] state_code: MN output: - mn_renters_credit_household_income: [64_800, 70_000] + # person1: 10,000 - 5,200 (age 65 or older, subd. 1(i)(6)) = 4,800. + # person2: 60,000. + mn_renters_credit_household_income: [4_800, 60_000] diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund.yaml index eeed87ba1f7..0f1698d7703 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund.yaml @@ -191,3 +191,31 @@ # IRA contribution is neither added back nor subtracted, as their wages # are not in AGI. mn_homestead_credit_refund_household_income: 45_720 + +- name: Case 9, a retired homeowner's Supplemental Security Income counts in household income. + # Minn. Stat. 290A.03, subd. 3(a)(2)(v) counts Supplemental Security + # Income; 2025 M1PR instructions, line 4 (PDF page 7). + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + taxable_pension_income: 12_000 + ssi: 3_000 + real_estate_taxes: 2_000 + is_tax_unit_head: true + tax_units: + tax_unit: + members: [person1] + households: + household: + members: [person1] + state_code: MN + output: + # 12,000 + 3,000 - 5,200 (age 65 or older) = 9,800. + mn_homestead_credit_refund_household_income: 9_800 + # $8,810 - $10,989 band: 1.4% of income, refund rate 83%, maximum $3,480. + # 2,000 - 0.014 x 9,800 = 2,000 - 137.20 = 1,862.80; + # round(1,862.80 x 0.83) = round(1,546.12) = 1,546. + mn_homestead_credit_refund: 1_546 diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.yaml index cfa6d3c978a..d6e2732bac4 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.yaml @@ -22,3 +22,359 @@ output: traditional_ira_deduction: 0 mn_homestead_credit_refund_household_income: 93_000 + +# Minn. Stat. 290A.03, subd. 3(a): "Income" means federal adjusted gross +# income plus the listed amounts "to the extent not included" in it. Page +# numbers below are PDF pages of the 2025 Form M1PR instructions +# (https://www.revenue.state.mn.us/sites/default/files/2026-06/m1pr-inst-25.pdf). + +- name: Line 4 adds Supplemental Security Income + # Subd. 3(a)(2)(v): "any pension or annuity (including railroad retirement + # benefits, all payments received under the federal Social Security Act, + # Supplemental Security Income, and veterans benefits)". Line 4 (page 7): + # "Include nontaxable payments you received from ... Supplemental Security + # Income (SSI)". + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 70 + taxable_pension_income: 12_000 + ssi: 3_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # Line 1: 12,000. Line 4: 3,000. Line 8 (age 65 or older): 5,200. + # 12,000 + 3,000 - 5,200 = 9,800. + mn_homestead_credit_refund_household_income: 9_800 + +- name: Line 4 adds General Assistance + # Subd. 3(a)(2)(iv): "cash public assistance and relief". Line 4 (page 7) + # names "General Assistance (GA)". + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 10_000 + general_assistance: 2_400 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # 10,000 + 2,400 = 12,400. + mn_homestead_credit_refund_household_income: 12_400 + +- name: Line 4 adds Minnesota Supplemental Aid + # Subd. 3(a)(2)(iv): "cash public assistance and relief". Line 4 (page 7) + # names "Minnesota Supplemental Aid (MSA)". + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 70 + ssi: 9_000 + mn_msa_person: 1_200 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # Line 4: 9,000 + 1,200 = 10,200. Line 8 (age 65 or older): 5,200. + # 10,200 - 5,200 = 5,000. + mn_homestead_credit_refund_household_income: 5_000 + +- name: Line 4 adds the family's MFIP cash grant + # Subd. 3(a)(2)(iv): "cash public assistance and relief". Line 4 (page 7) + # names the "Minnesota Family Investment Program (MFIP)", which tanf holds + # for Minnesota. The grant is paid for the parent and child, so the tax + # unit's per-person share of it is the whole grant. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + parent: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [parent, child] + spm_units: + spm_unit: + members: [parent, child] + tanf: 6_000 + households: + household: + members: [parent, child] + state_code: MN + output: + # Line 1: 5,000. Line 4: 6,000. Line 9, first dependent: 5,200 x 1.4 = + # 7,280. 5,000 + 6,000 - 7,280 = 3,720. + mn_homestead_credit_refund_household_income: 3_720 + +- name: Line 6 adds workers' compensation + # Subd. 3(a)(2)(vii): "workers' compensation". Line 6 (page 8) lists + # "Worker's compensation benefits (to the extent not used for medical + # expenses)"; the model does not split out the part used for medical + # expenses. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 30_000 + workers_compensation: 5_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # 30,000 + 5,000 = 35,000. + mn_homestead_credit_refund_household_income: 35_000 + +- name: Line 6 adds federally nontaxed interest + # Subd. 3(a)(2)(vi): "interest received from the federal or a state + # government or any instrumentality or political subdivision thereof". + # Line 6 (page 8): "Federally nontaxed interest and mutual fund dividends". + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 30_000 + tax_exempt_interest_income: 1_500 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # 30,000 + 1,500 = 31,500. + mn_homestead_credit_refund_household_income: 31_500 + +- name: Line 6 adds Roth IRA distributions that are not in federal AGI + # Subd. 3(a)(2)(xii): "to the extent not included in federal adjusted gross + # income, distributions received by the claimant or spouse from a + # traditional or Roth style retirement account or plan". Line 6 (page 8): + # "Distributions from a ROTH or traditional IRA not included on line 1". + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 62 + employment_income: 30_000 + tax_exempt_ira_distributions: 4_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # 30,000 + 4,000 = 34,000. + mn_homestead_credit_refund_household_income: 34_000 + +- name: Line 6 adds alimony that is not in federal AGI + # Subd. 3(a)(2)(xiv): "alimony received to the extent not included in the + # recipient's income". Alimony under a 2020 divorce is not gross income. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 20_000 + alimony_income: 6_000 + divorce_year: 2020 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + taxable_alimony_income: 0 + # 20,000 + 6,000 = 26,000. + mn_homestead_credit_refund_household_income: 26_000 + +- name: Alimony already in federal AGI counts once + # Alimony under a divorce before 2019 is gross income, so line 1 holds it + # and line 6 adds nothing (subd. 3(a)(2): "to the extent not included in + # clause (1)"). + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 20_000 + alimony_income: 6_000 + divorce_year: 2015 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + taxable_alimony_income: 6_000 + adjusted_gross_income: 26_000 + # Line 1: 26,000. Line 6: 6,000 - 6,000 = 0. + mn_homestead_credit_refund_household_income: 26_000 + +- name: Line 6 adds back the health savings account deduction + # Subd. 3(a)(2)(xv): "the amount of deduction allowed under section 220 or + # 223 of the Internal Revenue Code". Line 6 (page 8): "Health savings + # account and Archer MSA deductions". + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 50_000 + tax_units: + tax_unit: + members: [head] + health_savings_account_ald: 2_000 + households: + household: + members: [head] + state_code: MN + output: + # Line 1: 50,000 - 2,000 = 48,000. Line 6: 2,000. + # 48,000 + 2,000 = 50,000. + adjusted_gross_income: 48_000 + mn_homestead_credit_refund_household_income: 50_000 + +- name: The 2026 retirement base amount is $7,500 + # Subd. 3(b)(3) leaves out after-tax contributions up to "the retirement + # base amount", which subd. 3(d)(2) defines as "the deductible amount for + # the taxable year for the claimant and spouse under section 219(b)(5)(A) + # of the Internal Revenue Code, adjusted for inflation as provided in + # section 219(b)(5)(C)". IRS Notice 2025-67 (page 4): "The deductible + # amount under section 219(b)(5)(A) ... is increased from $7,000 to + # $7,500" for 2026. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 60_000 + roth_ira_contributions: 7_500 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # Contributions equal the base amount: 60,000 - 7,500 = 52,500. + mn_homestead_credit_refund_household_income: 52_500 + +- name: In 2026 the retirement subtraction stops at $7,500 + # Subd. 3(b)(3) and (d)(2). Roth 401(k) deferrals stay in federal AGI. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 60_000 + roth_401k_contributions_desired: 10_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + adjusted_gross_income: 60_000 + # Subtraction: min(10,000, 60,000 of wages, 7,500) = 7,500. + # 60,000 - 7,500 = 52,500. + mn_homestead_credit_refund_household_income: 52_500 + +- name: In 2025 the retirement subtraction stops at $7,000 + # Subd. 3(d)(2); the IRC 219(b)(5)(A) amount is $7,000 for 2024 and 2025. + # 2025 M1PR line 10 (page 9): "Do not enter more than $7,000 ($14,000 if + # filing a joint return)." + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 60_000 + roth_401k_contributions_desired: 10_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MN + output: + # Subtraction: min(10,000, 60,000, 7,000) = 7,000. + # 60,000 - 7,000 = 53,000. + mn_homestead_credit_refund_household_income: 53_000 + +- name: A married couple's 2026 retirement base amount is $15,000 + # Subd. 3(d)(2): the deductible amount "for the claimant and spouse", so + # $7,500 for each of them in 2026. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 40_000 + roth_401k_contributions_desired: 10_000 + spouse: + age: 40 + employment_income: 40_000 + roth_401k_contributions_desired: 10_000 + tax_units: + tax_unit: + members: [head, spouse] + households: + household: + members: [head, spouse] + state_code: MN + output: + adjusted_gross_income: 80_000 + # Subtraction: min(20,000, 80,000, 2 x 7,500 = 15,000) = 15,000. + # 80,000 - 15,000 = 65,000. + mn_homestead_credit_refund_household_income: 65_000 diff --git a/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.py b/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.py index 59370f6b0b6..4f45946bc1a 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_agi.py @@ -3,26 +3,33 @@ class mn_renters_credit_household_agi(Variable): value_type = float - entity = SPMUnit + entity = TaxUnit label = "Minnesota renter's credit household adjusted gross income" unit = USD definition_period = YEAR + documentation = ( + "Adjusted gross income of the claimant and spouse, Schedule M1RENT " + "lines 1 to 3. The household is the claimant and the claimant's " + "spouse (Minn. Stat. 290.0693, subd. 1(g), and 290A.03, subd. 4), so " + "other adults in the home, such as roommates, claim with their own " + "income (290.0693, subd. 7)." + ) reference = ( "https://www.revisor.mn.gov/statutes/cite/290.0693", - "https://www.revenue.state.mn.us/sites/default/files/2026-07/m1rent-25.pdf", + "https://www.revisor.mn.gov/statutes/cite/290A.03", + # PDF pages 3-4: the filing situations table ("Lived with a roommate + # ... Include only your income when filing for the credit") and the + # line 1 and line 2 instructions. + "https://www.revenue.state.mn.us/sites/default/files/2026-07/m1rent-25.pdf#page=3", ) defined_for = StateCode.MN - def formula(spm_unit, period, parameters): - person = spm_unit.members - person_agi = person("adjusted_gross_income_person", period) - is_dependent = person("is_tax_unit_dependent", period) | person( - "claimed_as_dependent_on_another_return", period - ) - tax_unit_person_agi = person.tax_unit.sum(person_agi) - tax_unit_agi = person.tax_unit("adjusted_gross_income", period) - is_head = person("is_tax_unit_head", period) - tax_unit_agi_fallback = ( - (tax_unit_person_agi == 0) * is_head * ~is_dependent * tax_unit_agi + def formula(tax_unit, period, parameters): + # Line 1 is the filer's federal AGI, which leaves out tax unit + # dependents' income, as household income does (subd. 1(h)). Line 2 + # adds a separate filer's spouse's AGI. + filing_status = tax_unit("filing_status", period) + separate = filing_status == filing_status.possible_values.SEPARATE + return tax_unit("adjusted_gross_income", period) + ( + tax_unit("spouse_separate_adjusted_gross_income", period) * separate ) - return spm_unit.sum(person_agi * ~is_dependent + tax_unit_agi_fallback) diff --git a/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.py b/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.py index 7907c770403..1feb25f82ca 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/credits/mn_renters_credit_household_income.py @@ -16,11 +16,7 @@ class mn_renters_credit_household_income(Variable): def formula(tax_unit, period, parameters): p = parameters(period).gov.states.mn.tax.income minimum_age = p.credits.renters.age_threshold - filing_status = tax_unit("filing_status", period) - separate = filing_status == filing_status.possible_values.SEPARATE - household_agi = tax_unit.spm_unit("mn_renters_credit_household_agi", period) + ( - tax_unit("spouse_separate_adjusted_gross_income", period) * separate - ) + household_agi = tax_unit("mn_renters_credit_household_agi", period) exemption_amount = p.exemptions.amount people = tax_unit.members diff --git a/policyengine_us/variables/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.py b/policyengine_us/variables/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.py index cdaa9b234fa..e802b10a157 100644 --- a/policyengine_us/variables/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.py +++ b/policyengine_us/variables/gov/states/mn/tax/property/homestead_credit_refund/mn_homestead_credit_refund_household_income.py @@ -9,7 +9,10 @@ class mn_homestead_credit_refund_household_income(Variable): definition_period = YEAR documentation = ( "Approximates Form M1PR lines 1 through 13 using modeled adjusted gross " - "income, nontaxable Social Security, retirement add-backs and " + "income, nontaxable Social Security, government assistance (line 4), " + "the line 6 nontaxable income and deductions listed in " + "gov.states.mn.tax.property.homestead_credit_refund.income_additions, " + "alimony not in adjusted gross income, retirement add-backs and " "contributions, and age/disability and dependent subtractions. " "Co-occupant income and other nontaxable additions or subtractions " "are not separately modeled." @@ -17,6 +20,10 @@ class mn_homestead_credit_refund_household_income(Variable): reference = ( "https://www.taxformfinder.org/forms/2024/2024-minnesota-form-m1pr-instructions.pdf#page=7", "https://www.taxformfinder.org/forms/2025/2025-minnesota-form-m1pr-instructions.pdf#page=7", + # Minn. Stat. 290A.03, subd. 3 (income) and subd. 5 (household income). + "https://www.revisor.mn.gov/statutes/cite/290A.03", + # IRC 219(b)(5)(A), the retirement base amount of subd. 3(d)(2). + "https://www.law.cornell.edu/uscode/text/26/219#b_5_A", ) defined_for = StateCode.MN @@ -32,6 +39,7 @@ def formula(tax_unit, period, parameters): ) people = tax_unit.members + claimant = people("is_tax_unit_head_or_spouse", period) is_dependent = people("is_tax_unit_dependent", period) | people( "claimable_as_dependent_on_another_return", period ) @@ -41,6 +49,24 @@ def formula(tax_unit, period, parameters): max_(0, social_security - taxable_social_security) * ~is_dependent ) + # Lines 4 and 6 (subd. 3(a)(2)): government assistance, nontaxable + # income and the deductions added back. Household income leaves out + # a dependent's income (subd. 5), so person amounts count for the + # head and spouse only. The HSA deduction is the filer's tax unit + # amount, and tanf, an SPM unit amount, counts as the tax unit's + # per-person share. + listed_additions = tax_unit_non_dep_add( + tax_unit, period, refund_p.income_additions + ) + # Subd. 3(a)(2)(xiv): "alimony received to the extent not included + # in the recipient's income". taxable_alimony_income is the part in + # federal AGI. + alimony = tax_unit_non_dep_add(tax_unit, period, ["alimony_income"]) + taxable_alimony = tax_unit_non_dep_add( + tax_unit, period, ["taxable_alimony_income"] + ) + nontaxable_alimony = max_(0, alimony - taxable_alimony) + # Line 1 is the filer's federal AGI, which leaves out tax unit # dependents, so the retirement add-backs, contributions and # compensation count the head and spouse only. @@ -76,12 +102,18 @@ def formula(tax_unit, period, parameters): compensation = tax_unit_non_dep_add( tax_unit, period, ["employment_income", "self_employment_income"] ) + # Subd. 3(d)(2): the retirement base amount is "the deductible amount + # for the taxable year for the claimant and spouse under section + # 219(b)(5)(A)", the federal IRA limit for each of them. + ira_limit = parameters( + period + ).gov.irs.gross_income.retirement_contributions.limit.ira + retirement_base_amount = ira_limit * tax_unit.sum(claimant) retirement_subtraction = min_( retirement_contributions, - min_(compensation, refund_p.retirement_subtraction.limit[filing_status]), + min_(compensation, retirement_base_amount), ) - claimant = people("is_tax_unit_head_or_spouse", period) minimum_age = income_p.credits.renters.age_threshold is_age_eligible = people("age", period) >= minimum_age is_disabled = people("is_permanently_and_totally_disabled", period) @@ -100,7 +132,12 @@ def formula(tax_unit, period, parameters): income_p.exemptions.amount * dependent_subtraction_multiplier ) - additions = nontaxable_social_security + retirement_additions + additions = ( + nontaxable_social_security + + listed_additions + + nontaxable_alimony + + retirement_additions + ) subtractions = ( age_or_disability_subtraction + dependent_subtraction