diff --git a/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md b/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md new file mode 100644 index 00000000000..4768141777d --- /dev/null +++ b/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md @@ -0,0 +1 @@ +Applied Minnesota’s cap to combined real estate and personal property taxes and prevented excess rebates from reducing other itemized deductions. diff --git a/policyengine_us/parameters/gov/states/mn/tax/income/deductions/itemized/property_taxes/cap.yaml b/policyengine_us/parameters/gov/states/mn/tax/income/deductions/itemized/property_taxes/cap.yaml new file mode 100644 index 00000000000..e97efca5882 --- /dev/null +++ b/policyengine_us/parameters/gov/states/mn/tax/income/deductions/itemized/property_taxes/cap.yaml @@ -0,0 +1,21 @@ +description: Minnesota caps combined real estate and personal property tax deductions at this amount, by filing status. +SINGLE: + 2019-01-01: 10_000 +SEPARATE: + 2019-01-01: 5_000 +JOINT: + 2019-01-01: 10_000 +HEAD_OF_HOUSEHOLD: + 2019-01-01: 10_000 +SURVIVING_SPOUSE: + 2019-01-01: 10_000 +metadata: + unit: currency-USD + label: Minnesota property tax deduction cap + breakdown: + - filing_status + reference: + - title: Minnesota Statutes 290.0122, subdivision 3(a)(1) + href: https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3 + - title: Minnesota 2019 First Special Session Laws, chapter 6, article 1, section 16 + href: https://www.revisor.mn.gov/laws/2019/1/Session+Law/Chapter/6/ diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml new file mode 100644 index 00000000000..64a58040970 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml @@ -0,0 +1,199 @@ +# 2025 M1SA lines 5–8 combine net eligible real estate tax and personal +# property tax and apply the filing-status cap before the line 26 reduction. +# https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-25_0.pdf +# https://www.revisor.mn.gov/statutes/2025/cite/290.0122#stat.290.0122.3 +- name: Case 1, single filer combines property taxes under the Minnesota cap. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: [MN, MN, MN, MN, WI] + filing_status: [SINGLE, SINGLE, SINGLE, SINGLE, SINGLE] + adjusted_gross_income: [50_000, 50_000, 50_000, 50_000, 50_000] + real_estate_taxes: [6_000, 6_000, 6_000, 0, 6_000] + mn_personal_property_taxes: [3_999, 4_000, 4_001, 0, 0] + output: + # The first three rows put $9,999/$10,000/$10,001 on M1SA line 7. + # The fourth claims no eligible taxes and the fifth lives in Wisconsin. + mn_property_tax_deduction: [9_999, 10_000, 10_000, 0, 0] + mn_itemized_deductions: [9_999, 10_000, 10_000, 0, 0] + +- name: Case 2, real estate taxes alone use the Minnesota cap with the new input omitted. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 50_000 + real_estate_taxes: 12_000 + output: + # Without personal property tax, line 8 is still the lesser of the + # $12,000 on line 5 and the Minnesota $10,000 cap. + mn_property_tax_deduction: 10_000 + mn_itemized_deductions: 10_000 + +- name: Case 3, married separate filers use the $5,000 combined property tax cap. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: [MN, MN, MN] + filing_status: [SEPARATE, SEPARATE, SEPARATE] + adjusted_gross_income: [50_000, 50_000, 50_000] + real_estate_taxes: [3_000, 3_000, 3_000] + mn_personal_property_taxes: [1_999, 2_000, 2_001] + output: + # M1SA line 7 holds $4,999/$5,000/$5,001, and line 8 caps the amount. + mn_property_tax_deduction: [4_999, 5_000, 5_000] + mn_itemized_deductions: [4_999, 5_000, 5_000] + +- name: Case 4, the existing aggregate retains qualifying mortgage interest and property tax. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 100_000 + real_estate_taxes: 3_500 + home_mortgage_interest: 10_000 + first_home_mortgage_balance: 200_000 + first_home_mortgage_origination_year: 2020 + output: + # The debt solely financed acquisition of the home. Section 290.0122 + # subd. 5 allows the $10,000 reported interest at that balance. The + # total on M1SA line 27 includes $3,500 from line 8 and $10,000 from + # line 14. This result also applies to the pre-backport aggregate. + mn_property_tax_deduction: 3_500 + mn_itemized_deductions: 13_500 + +- name: The 2018 fallback uses only real estate taxes. + absolute_error_margin: 0.01 + period: 2018 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 50_000 + real_estate_taxes: 8_000 + mn_personal_property_taxes: 4_000 + output: + # The legacy deduction is min($8,000, $10,000) = $8,000. + mn_property_tax_deduction: 8_000 + mn_itemized_deductions: 8_000 + +# Minnesota Laws 2019, First Special Session, chapter 6, article 1, section 16. +# https://www.revisor.mn.gov/laws/2019/1/Session+Law/Chapter/6/#laws.1.16.0 +- name: The combined Minnesota cap applies by filing status in its first year. + absolute_error_margin: 0.01 + period: 2019 + input: + state_code: [MN, MN, MN, MN] + filing_status: [SINGLE, SEPARATE, HEAD_OF_HOUSEHOLD, SURVIVING_SPOUSE] + adjusted_gross_income: [50_000, 50_000, 50_000, 50_000] + real_estate_taxes: [7_000, 3_000, 7_000, 7_000] + mn_personal_property_taxes: [4_000, 4_000, 4_000, 4_000] + output: + # $7,000 + $4,000 = $11,000, capped at $10,000 for single, head of + # household and surviving spouse. $3,000 + $4,000 = $7,000, capped + # at $5,000 for married filing separately. + mn_property_tax_deduction: [10_000, 5_000, 10_000, 10_000] + mn_itemized_deductions: [10_000, 5_000, 10_000, 10_000] + +- name: The joint cap applies once to the property taxes paid by both spouses. + absolute_error_margin: 0.01 + period: 2019 + input: + people: + head: + real_estate_taxes: 4_000 + mn_personal_property_taxes: 1_000 + spouse: + real_estate_taxes: 3_000 + mn_personal_property_taxes: 4_000 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + adjusted_gross_income: 50_000 + households: + household: + members: [head, spouse] + state_code: MN + output: + # $4,000 + $1,000 + $3,000 + $4,000 = $12,000, capped at $10,000. + mn_property_tax_deduction: 10_000 + mn_itemized_deductions: 10_000 + +- name: An over-rebate cannot reduce otherwise deductible mortgage interest. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: MN + filing_status: SINGLE + age: 40 + employment_income: 100_000 + real_estate_taxes: -1_000 + home_mortgage_interest: 16_000 + first_home_mortgage_balance: 200_000 + first_home_mortgage_origination_year: 2020 + output: + # A net property tax of -$1,000 gives a $0 deduction. All $16,000 + # of interest qualifies, so taxable income is $100,000 - $16,000. + mn_property_tax_deduction: 0 + mn_itemized_deductions: 16_000 + mn_deductions: 16_000 + mn_taxable_income: 84_000 + +- name: Qualifying personal property taxes alone count while income taxes do not. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 50_000 + mn_personal_property_taxes: 3_000 + state_and_local_sales_or_income_tax: 15_000 + output: + # $0 real estate tax + $3,000 personal property tax = $3,000. + # The $15,000 of state and local income tax does not enter the sum. + mn_property_tax_deduction: 3_000 + mn_itemized_deductions: 3_000 + +- name: Separate returns in the same household have independent Minnesota caps. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + first: + real_estate_taxes: 6_000 + second: + mn_personal_property_taxes: 4_000 + tax_units: + first_return: + members: [first] + filing_status: SEPARATE + adjusted_gross_income: 50_000 + second_return: + members: [second] + filing_status: SEPARATE + adjusted_gross_income: 50_000 + households: + household: + members: [first, second] + state_code: MN + output: + # The first return caps $6,000 at $5,000. The second deducts all $4,000. + mn_property_tax_deduction: [5_000, 4_000] + mn_itemized_deductions: [5_000, 4_000] + +- name: The Minnesota AGI reduction uses the capped taxes. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: [MN, MN] + filing_status: [SINGLE, SINGLE] + adjusted_gross_income: [238_950, 239_950] + real_estate_taxes: [10_000, 10_000] + mn_personal_property_taxes: [2_000, 2_000] + output: + # Cap $12,000 at $10,000. Reduce that by 3% of $0 or $1,000 + # above the $238,950 AGI threshold, giving $10,000 or $9,970. + mn_property_tax_deduction: [10_000, 10_000] + mn_itemized_deductions: [10_000, 9_970] diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py index f161dbe51a7..c6e075a804a 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py @@ -8,10 +8,10 @@ class mn_itemized_deductions(Variable): unit = USD definition_period = YEAR reference = ( - "https://www.revenue.state.mn.us/sites/default/files/2021-12/m1_21_0.pdf" - "https://www.revenue.state.mn.us/sites/default/files/2023-01/m1_inst_21.pdf" - "https://www.revenue.state.mn.us/sites/default/files/2022-12/m1_22.pdf" - "https://www.revenue.state.mn.us/sites/default/files/2023-03/m1_inst_22.pdf" + "https://www.revenue.state.mn.us/sites/default/files/2023-12/m1_21_0.pdf", + "https://www.revenue.state.mn.us/sites/default/files/2023-12/m1_inst_21.pdf", + "https://www.revenue.state.mn.us/sites/default/files/2023-12/m1_22.pdf", + "https://www.revenue.state.mn.us/sites/default/files/2024-02/m1-inst-22.pdf", ) defined_for = StateCode.MN @@ -23,8 +23,8 @@ def formula(tax_unit, period, parameters): # itemized or standard deduction. # ... calculate pre-limitation itemized deductions itm_deds_less_salt = tax_unit("itemized_deductions_less_salt", period) - capped_property_taxes = tax_unit("capped_property_taxes", period) - mn_itm_deds = itm_deds_less_salt + capped_property_taxes + property_taxes = tax_unit("mn_property_tax_deduction", period) + mn_itm_deds = itm_deds_less_salt + property_taxes # ... calculate itemized deductions offset p = parameters(period).gov.states.mn.tax.income.deductions.itemized exempt_deds = add( diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py new file mode 100644 index 00000000000..91000395746 --- /dev/null +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py @@ -0,0 +1,17 @@ +from policyengine_us.model_api import * + + +class mn_personal_property_taxes(Variable): + value_type = float + entity = Person + label = "Personal property taxes paid for Minnesota itemized deductions" + unit = USD + definition_period = YEAR + default_value = 0 + documentation = ( + "Qualifying state and local personal property taxes paid during the year " + "for Minnesota Schedule M1SA line 6. Include only taxes based on value " + "alone and imposed annually." + ) + reference = "https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3" + defined_for = StateCode.MN diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py new file mode 100644 index 00000000000..bde69f1a984 --- /dev/null +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py @@ -0,0 +1,37 @@ +from policyengine_us.model_api import * + + +class mn_property_tax_deduction(Variable): + value_type = float + entity = TaxUnit + label = "Minnesota property tax deduction" + unit = USD + definition_period = YEAR + documentation = ( + "Before 2019, real estate taxes limited by the federal SALT cap. " + "From 2019, combined qualifying real estate and personal property taxes " + "are floored at zero and limited by the Minnesota cap for the filing status." + ) + reference = ( + "https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3", + # Laws 2019, First Special Session, chapter 6, article 1, section 16 + "https://www.revisor.mn.gov/laws/2019/1/Session+Law/Chapter/6/", + "https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-25_0.pdf#page=3", + ) + defined_for = StateCode.MN + + def formula(tax_unit, period, parameters): + # The Legislature enacted section 290.0122 for taxable years + # beginning after December 31, 2018. For earlier years, return + # real estate taxes under the federal cap. + return tax_unit("capped_property_taxes", period) + + def formula_2019(tax_unit, period, parameters): + property_taxes = add( + tax_unit, period, ["real_estate_taxes", "mn_personal_property_taxes"] + ) + p = parameters( + period + ).gov.states.mn.tax.income.deductions.itemized.property_taxes + filing_status = tax_unit("filing_status", period) + return min_(max_(property_taxes, 0), p.cap[filing_status])