diff --git a/changelog.d/fix-gambling-winnings-gross-income.fixed.md b/changelog.d/fix-gambling-winnings-gross-income.fixed.md new file mode 100644 index 00000000000..bfe930b2692 --- /dev/null +++ b/changelog.d/fix-gambling-winnings-gross-income.fixed.md @@ -0,0 +1 @@ +Count gambling winnings in federal gross income, limit the wagering losses deduction to 90% of losses from 2026 and to the head's and spouse's gambling, treat it as a Schedule A itemized deduction, and align the states that tax gambling winnings or build on federal itemized deductions. Count the winnings in market income too, so household and SPM net income hold the winnings whose tax they subtract. diff --git a/docs/spm.md b/docs/spm.md index 0b6d439656c..55b6a4cd247 100644 --- a/docs/spm.md +++ b/docs/spm.md @@ -21,6 +21,10 @@ that counts its cash, and it fails when a new source has none. Market income keeps a source's losses where the source has them, such as partnership, farm rental and Form 4797 losses. +Market income counts gambling winnings before losses, as gross income does. +Filers deduct gambling losses only as an itemized deduction, up to their +winnings, and neither net income total subtracts the losses. + Three sources stay out of resources on purpose: - `debt_relief`: discharged debt brings the family no cash. diff --git a/policyengine_us/parameters/gov/household/market_income_sources.yaml b/policyengine_us/parameters/gov/household/market_income_sources.yaml index 87d085309eb..06e9ff679b7 100644 --- a/policyengine_us/parameters/gov/household/market_income_sources.yaml +++ b/policyengine_us/parameters/gov/household/market_income_sources.yaml @@ -32,6 +32,8 @@ values: - illicit_income - retirement_distributions - miscellaneous_income + # Gambling winnings before losses, as gross income counts them. + - gambling_winnings - alimony_income - strike_benefits - ak_permanent_fund_dividend diff --git a/policyengine_us/parameters/gov/irs/deductions/deductions_if_itemizing.yaml b/policyengine_us/parameters/gov/irs/deductions/deductions_if_itemizing.yaml index 87159339586..294617604a7 100644 --- a/policyengine_us/parameters/gov/irs/deductions/deductions_if_itemizing.yaml +++ b/policyengine_us/parameters/gov/irs/deductions/deductions_if_itemizing.yaml @@ -5,14 +5,12 @@ values: # that switches them on in another year also reaches taxable income. 2018-01-01: - qualified_business_income_deduction - - wagering_losses_deduction - itemized_taxable_income_deductions - tip_income_deduction - overtime_income_deduction 2025-01-01: - qualified_business_income_deduction - - wagering_losses_deduction - itemized_taxable_income_deductions - tip_income_deduction - overtime_income_deduction @@ -21,7 +19,6 @@ values: 2029-01-01: - qualified_business_income_deduction - - wagering_losses_deduction - itemized_taxable_income_deductions - tip_income_deduction - overtime_income_deduction diff --git a/policyengine_us/parameters/gov/irs/deductions/itemized/limitation/excluded_deductions.yaml b/policyengine_us/parameters/gov/irs/deductions/itemized/limitation/excluded_deductions.yaml index 96e642fd5db..b37a9d2fb0a 100644 --- a/policyengine_us/parameters/gov/irs/deductions/itemized/limitation/excluded_deductions.yaml +++ b/policyengine_us/parameters/gov/irs/deductions/itemized/limitation/excluded_deductions.yaml @@ -5,8 +5,6 @@ values: # and wagering losses (section 165(c)(2), (c)(3) and (d)). # investment_interest_expense is the investment interest that # interest_deduction includes through non_mortgage_interest. - # wagering_losses_deduction is deducted outside - # total_itemized_taxable_income_deductions, so it never enters the base. # The 2017 worksheet also removes qualified disaster-relief contributions # (P.L. 115-63 sec. 504(a)(3), P.L. 115-123 sec. 20104(a)(3)), which are # not modeled. @@ -14,6 +12,7 @@ values: - medical_expense_deduction - investment_interest_expense - casualty_loss_deduction + - wagering_losses_deduction metadata: unit: list period: year diff --git a/policyengine_us/parameters/gov/irs/deductions/itemized/wagering_losses/rate.yaml b/policyengine_us/parameters/gov/irs/deductions/itemized/wagering_losses/rate.yaml new file mode 100644 index 00000000000..86e3b6d8a1a --- /dev/null +++ b/policyengine_us/parameters/gov/irs/deductions/itemized/wagering_losses/rate.yaml @@ -0,0 +1,17 @@ +description: The US allows this share of wagering losses as an itemized deduction, up to wagering gains. +values: + 0000-01-01: 1 + # P.L. 119-21 sec. 70114 rewrote section 165(d)(1) for taxable years + # beginning after December 31, 2025. + 2026-01-01: 0.9 +metadata: + unit: /1 + period: year + label: Wagering losses deduction rate + reference: + - title: 26 U.S. Code § 165(d) - Wagering losses + href: https://uscode.house.gov/view.xhtml?req=granuleid:USC-prelim-title26-section165&num=0&edition=prelim + - title: P.L. 119-21, sec. 70114 - Extension and modification of limitation on wagering losses + href: https://www.govinfo.gov/content/pkg/PLAW-119publ21/pdf/PLAW-119publ21.pdf#page=96 + - title: 2024 Instructions for Schedule A (Form 1040), line 16 - Gambling losses + href: https://www.irs.gov/pub/irs-prior/i1040sca--2024.pdf#page=11 diff --git a/policyengine_us/parameters/gov/irs/deductions/itemized_deductions.yaml b/policyengine_us/parameters/gov/irs/deductions/itemized_deductions.yaml index c19e9f6664d..b5b35904641 100644 --- a/policyengine_us/parameters/gov/irs/deductions/itemized_deductions.yaml +++ b/policyengine_us/parameters/gov/irs/deductions/itemized_deductions.yaml @@ -7,7 +7,14 @@ values: - medical_expense_deduction - casualty_loss_deduction - misc_deduction + # Gambling losses, Schedule A line 16 (other itemized deductions). + - wagering_losses_deduction - claim_of_right_deduction metadata: unit: list label: itemized deductions + reference: + - title: 2024 Schedule A (Form 1040), lines 4-17 + href: https://www.irs.gov/pub/irs-prior/f1040sa--2024.pdf#page=1 + - title: 2024 Instructions for Schedule A (Form 1040), line 16 - Other itemized deductions + href: https://www.irs.gov/pub/irs-prior/i1040sca--2024.pdf#page=11 diff --git a/policyengine_us/parameters/gov/irs/gross_income/sources.yaml b/policyengine_us/parameters/gov/irs/gross_income/sources.yaml index a2474e69e74..86f909766be 100644 --- a/policyengine_us/parameters/gov/irs/gross_income/sources.yaml +++ b/policyengine_us/parameters/gov/irs/gross_income/sources.yaml @@ -39,6 +39,9 @@ values: - taxable_retirement_distributions - taxable_roth_conversions - miscellaneous_income + # Gambling winnings, including lotteries and raffles (Schedule 1 line + # 8b). Only itemizers deduct the losses (wagering_losses_deduction). + - gambling_winnings # Listed separately on 1040 line 8g. - ak_permanent_fund_dividend # Alimony from divorces executed before the TCJA cutoff (Schedule 1 line 2a). @@ -68,7 +71,11 @@ metadata: href: https://www.irs.gov/pub/irs-prior/p525--2024.pdf#page=18 - title: 26 U.S. Code § 61(a)(14) - Income from an interest in an estate or trust href: https://www.law.cornell.edu/uscode/text/26/61#a_14 - - title: 2024 Schedule 1 (Form 1040), line 5 - Rental real estate, royalties, partnerships, S corporations, trusts, etc. + - title: 2024 Schedule 1 (Form 1040), line 5 - Rental real estate, royalties, partnerships, S corporations, trusts, etc., and line 8b - Gambling href: https://www.irs.gov/pub/irs-prior/f1040s1--2024.pdf#page=1 - title: 2024 Instructions for Schedule E (Form 1040), Part III - Income or Loss From Estates and Trusts href: https://www.irs.gov/pub/irs-prior/i1040se--2024.pdf#page=11 + - title: 2024 Instructions for Form 1040, Schedule 1 line 8b - Gambling + href: https://www.irs.gov/pub/irs-prior/i1040gi--2024.pdf#page=85 + - title: 2025 Instructions for Form 1040, Schedule 1 line 8b - Gambling + href: https://www.irs.gov/pub/irs-prior/i1040gi--2025.pdf#page=91 diff --git a/policyengine_us/parameters/gov/states/al/tax/income/agi/gross_income_sources.yaml b/policyengine_us/parameters/gov/states/al/tax/income/agi/gross_income_sources.yaml index 3fe236f9846..2eac188405d 100644 --- a/policyengine_us/parameters/gov/states/al/tax/income/agi/gross_income_sources.yaml +++ b/policyengine_us/parameters/gov/states/al/tax/income/agi/gross_income_sources.yaml @@ -19,6 +19,9 @@ values: - partnership_s_corp_income - farm_operations_income - farm_rent_income + # Prizes and awards: contests, lotteries and gambling winnings (Form 40 + # page 2, Part I, other income), of the head and spouse. + - al_gambling_winnings # Form 40, Part I, line 5: rents, royalties, partnerships, S corporations, # trusts and estates (Alabama Schedule E, Part II). - estate_income diff --git a/policyengine_us/parameters/gov/states/al/tax/income/deductions/itemized/sources.yaml b/policyengine_us/parameters/gov/states/al/tax/income/deductions/itemized/sources.yaml index bad60cdd74a..4197a465dc5 100644 --- a/policyengine_us/parameters/gov/states/al/tax/income/deductions/itemized/sources.yaml +++ b/policyengine_us/parameters/gov/states/al/tax/income/deductions/itemized/sources.yaml @@ -12,6 +12,9 @@ values: - al_casualty_loss_deduction # Section (a), (6) - al_misc_deduction # Section (a), (23) - al_interest_deduction # Section (a), (2) + # Schedule A line 25: gambling losses to the extent of gambling winnings, + # not subject to the 2% limit. + - al_gambling_loss_deduction metadata: unit: list @@ -28,3 +31,5 @@ metadata: href: https://www.revenue.alabama.gov/ultraviewer/viewer/basic_viewer/index.html?form=2024/01/23f40schabdc_blk.pdf#page=1 - title: 2024 Alabama Income Tax Instructions href: https://www.revenue.alabama.gov/wp-content/uploads/2025/01/24f40bk.pdf#page=18 + - title: 2025 Alabama Income Tax Instructions, Schedule A line 25 - gambling losses + href: https://www.revenue.alabama.gov/wp-content/uploads/2026/01/25f40bk.pdf#page=21 diff --git a/policyengine_us/parameters/gov/states/ca/tax/income/deductions/itemized/limit/excluded_deductions.yaml b/policyengine_us/parameters/gov/states/ca/tax/income/deductions/itemized/limit/excluded_deductions.yaml index 1b4ee81991e..01bb1cc7024 100644 --- a/policyengine_us/parameters/gov/states/ca/tax/income/deductions/itemized/limit/excluded_deductions.yaml +++ b/policyengine_us/parameters/gov/states/ca/tax/income/deductions/itemized/limit/excluded_deductions.yaml @@ -10,12 +10,17 @@ values: # 26 U.S.C. 68(c)(2), adopted by R&TC 17077, leaves out the deduction # allowed for investment interest. - ca_investment_interest_expense_deduction + # Itemized Deductions Worksheet line 2: "plus any gambling losses + # included on line 16". + - ca_wagering_losses_deduction metadata: unit: list period: year label: itemized deductions excluded from CA high-AGI limitation reference: + - title: 2025 Form 540 booklet, Schedule CA (540) Itemized Deductions Worksheet, line 2 + href: https://www.ftb.ca.gov/forms/2025/2025-540-booklet.pdf#page=68 - title: 2021 Form 540 Schedule CA instructions href: https://www.ftb.ca.gov/forms/2021/2021-540-ca-instructions.html - title: 2022 Form 540 Schedule CA instructions diff --git a/policyengine_us/parameters/gov/states/de/tax/income/deductions/itemized/sources.yaml b/policyengine_us/parameters/gov/states/de/tax/income/deductions/itemized/sources.yaml index ea8e0ca8dbe..d3f59d8c69e 100644 --- a/policyengine_us/parameters/gov/states/de/tax/income/deductions/itemized/sources.yaml +++ b/policyengine_us/parameters/gov/states/de/tax/income/deductions/itemized/sources.yaml @@ -5,6 +5,8 @@ values: - charitable_deduction - interest_deduction - casualty_loss_deduction + # PIT-RSA line 16, other itemized deductions permitted under federal law. + - wagering_losses_deduction metadata: unit: list period: year @@ -14,6 +16,6 @@ metadata: href: https://revenuefiles.delaware.gov/2022/TY22_PIT-RSA_2022-02_PaperInteractive.pdf - title: Code of Delaware. Title30. CHAPTER 11. Personal Income Tax, § 1109 href: https://delcode.delaware.gov/title30/c011/sc02/index.html - - title: 2025 Delaware Individual Income Tax Return Instructions + - title: "2025 Delaware Individual Income Tax Return Instructions #page 7,12" href: https://revenuefiles.delaware.gov/2025/PITForms_Instructions/Instructions/PIT-RES_Instructions_2025-01.pdf#page=7 diff --git a/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/limitation/excluded_deductions.yaml b/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/limitation/excluded_deductions.yaml index 1f8d53c4c3a..50660331b6e 100644 --- a/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/limitation/excluded_deductions.yaml +++ b/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/limitation/excluded_deductions.yaml @@ -1,12 +1,13 @@ description: Hawaii excludes these deductions from the itemized deductions that the 80 percent ceiling of the overall limitation on itemized deductions applies to. values: # Section 68(c) excludes medical expenses, investment interest, and - # casualty, theft and wagering losses. PolicyEngine's Hawaii itemized - # deductions do not include wagering losses. + # casualty, theft and wagering losses (worksheet lines 2a to 2d). 2021-01-01: - hi_medical_expense_deduction - investment_interest_expense - hi_casualty_loss_deduction + # Line 2d: gambling losses included in Worksheet A-6, line 30. + - wagering_losses_deduction metadata: unit: list period: year diff --git a/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/sources.yaml b/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/sources.yaml index 97bfaa307ec..6013a5167be 100644 --- a/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/sources.yaml +++ b/policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/sources.yaml @@ -6,6 +6,8 @@ values: - hi_interest_deduction - hi_casualty_loss_deduction - hi_salt_deduction + # Worksheet A-6, line 30: gambling losses, up to gambling winnings. + - wagering_losses_deduction - hi_claim_of_right_deduction - hi_misc_deduction metadata: @@ -25,5 +27,5 @@ metadata: href: https://files.hawaii.gov/tax/forms/2018/n11ins.pdf#page=19 - title: Hawaii Income Tax Law, Chapter 235, Section 235-2.4 href: https://files.hawaii.gov/tax/legal/hrs/hrs_235.pdf#page=10 - - title: "2025 Hawaii N-11 Instructions, Itemized Deductions and Worksheet #page 17,34" + - title: "2025 Hawaii N-11 Instructions, Itemized Deductions and Worksheet #page 17,19,34" href: https://files.hawaii.gov/tax/forms/2025/n11ins.pdf#page=17 diff --git a/policyengine_us/parameters/gov/states/ia/tax/income/gross_income/sources.yaml b/policyengine_us/parameters/gov/states/ia/tax/income/gross_income/sources.yaml index af73d758e57..29aba1b9110 100644 --- a/policyengine_us/parameters/gov/states/ia/tax/income/gross_income/sources.yaml +++ b/policyengine_us/parameters/gov/states/ia/tax/income/gross_income/sources.yaml @@ -19,6 +19,8 @@ values: - taxable_unemployment_compensation - miscellaneous_income - ia_other_additions + # IA 1040 line 13, gambling winnings, of the head and spouse. + - ia_gambling_winnings metadata: unit: list diff --git a/policyengine_us/parameters/gov/states/ky/tax/income/deductions/itemized/wagering_losses_allowed.yaml b/policyengine_us/parameters/gov/states/ky/tax/income/deductions/itemized/wagering_losses_allowed.yaml new file mode 100644 index 00000000000..1c9c01f00e6 --- /dev/null +++ b/policyengine_us/parameters/gov/states/ky/tax/income/deductions/itemized/wagering_losses_allowed.yaml @@ -0,0 +1,18 @@ +description: Kentucky allows the federal wagering losses deduction as an itemized deduction if this is true. +values: + 2000-01-01: true + # For 2018 Kentucky disallowed every section 165 loss. + 2018-01-01: false + # 2019 Ky. Acts ch. 151, sec. 37 restored wagering losses allowed under + # section 165(d), for taxable years beginning on or after January 1, 2019 + # (sec. 83). + 2019-01-01: true +metadata: + unit: bool + period: year + label: Kentucky wagering losses itemized deduction allowed + reference: + - title: "2019 Ky. Acts ch. 151, sec. 37 (KRS 141.019(2)(b)) and sec. 83 #page 60,112" + href: https://apps.legislature.ky.gov/law/acts/19RS/documents/0151.pdf#page=60 + - title: TY2018 Kentucky Publication 1345, itemized deductions obsolete for tax year 2018 + href: https://revenue.ky.gov/Software-Developer/Software%20Development%20Documents/TY2018%20KY%20Publication%201345-Handbook%20for%20Electronic%20Filing.pdf#page=9 diff --git a/policyengine_us/parameters/gov/states/mi/tax/income/subtractions.yaml b/policyengine_us/parameters/gov/states/mi/tax/income/subtractions.yaml index b9d9ff8abd2..0d44a120951 100644 --- a/policyengine_us/parameters/gov/states/mi/tax/income/subtractions.yaml +++ b/policyengine_us/parameters/gov/states/mi/tax/income/subtractions.yaml @@ -12,6 +12,21 @@ values: - mi_529_deduction - salt_refund_income # Line 16 - mi_other_subtractions + # 2021 PA 168 added a deduction for the wagering losses a casual gambler + # deducts on the federal return, for tax years beginning in 2021. + 2021-01-01: + - us_govt_interest # Line 10 + - mi_military_retirement_subtraction # Line 11 + - taxable_social_security # Line 14 + - military_service_income # Line 14 + - section_22_income # Line 22 + - mi_standard_deduction # Line 24 & 25 + - mi_pension_benefit # Line 26 + - mi_interest_dividends_capital_gains_deduction # Line 27 + - mi_529_deduction + - salt_refund_income # Line 16 + - mi_other_subtractions + - mi_wagering_losses_deduction # Line 23 (2025), miscellaneous subtractions 2026-01-01: - us_govt_interest # Line 10 - mi_military_retirement_subtraction # Line 11 @@ -27,6 +42,7 @@ values: - mi_qualified_overtime_deduction # Qualified overtime compensation (PA 24 of 2025), TY2026-2028 - salt_refund_income # Line 16 - mi_other_subtractions + - mi_wagering_losses_deduction # Line 23 (2025), miscellaneous subtractions metadata: unit: list label: Michigan taxable income subtraction sources @@ -38,6 +54,10 @@ metadata: href: https://www.michigan.gov/taxes/-/media/Project/Websites/taxes/Forms/IIT/TY2023/BOOK_MI-1040.pdf#page=47 - title: Michigan Legal Code Section 206.30 href: https://www.legislature.mi.gov/Laws/MCL?objectName=mcl-206-30 + - title: Michigan Treasury notice - New Tax Treatment of Wagering Losses for Casual Gamblers (2021 PA 168) + href: https://www.michigan.gov/taxes/rep-legal/notices/notice-new-tax-treatment-of-wagering-losses-for-casual-gamblers-under-the-michigan-income-tax-act + - title: 2025 MI-1040 booklet, Schedule 1 line 23 - Miscellaneous subtractions (wagering losses) + href: https://www.michigan.gov/taxes/-/media/Project/Websites/taxes/Forms/IIT/TY2025/MI-1040-Book.pdf#page=16 - title: Michigan Standard Deduction href: https://web.archive.org/web/20250202140014/https://www.michigan.gov/taxes/iit/retirement-and-pension-benefits/michigan-standard-deduction - title: Michigan 2022 MI-1040 Individual Income Tax FORMS AND INSTRUCTIONS diff --git a/policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/misc_deductions.yaml b/policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/misc_deductions.yaml index 587a56be434..61287813a0b 100644 --- a/policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/misc_deductions.yaml +++ b/policyengine_us/parameters/gov/states/mt/tax/income/deductions/itemized/misc_deductions.yaml @@ -6,6 +6,8 @@ description: Montana counts these sources as miscellaneous deductions. values: 2017-01-01: - casualty_loss_deduction + # Gambling losses, up to gambling winnings (2023 Form 2 instructions). + - mt_wagering_losses_deduction # Form 2 itemized deductions line 18 follows federal Schedule A line 16. - mt_claim_of_right_deduction # From 2024 mt_taxable_income_joint starts from federal taxable income, diff --git a/policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/market_income_components.yaml b/policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/market_income_components.yaml index f908d9342f8..1416a7f1bbc 100644 --- a/policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/market_income_components.yaml +++ b/policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/market_income_components.yaml @@ -18,6 +18,7 @@ values: - illicit_income - farm_operations_income - miscellaneous_income + - gambling_winnings - alimony_income - strike_benefits - retirement_distributions diff --git a/policyengine_us/parameters/gov/states/pa/tax/income/nontaxable_income_sources.yaml b/policyengine_us/parameters/gov/states/pa/tax/income/nontaxable_income_sources.yaml index 4f20466d5ad..50b91a15ff2 100644 --- a/policyengine_us/parameters/gov/states/pa/tax/income/nontaxable_income_sources.yaml +++ b/policyengine_us/parameters/gov/states/pa/tax/income/nontaxable_income_sources.yaml @@ -13,6 +13,8 @@ values: # third-party insurer payments, and disability distributions (61 Pa. # Code 101.6(c)(1)). Regular sick leave pay is in employment income. - taxable_disability_benefits + # PA-40 Schedule T line 4: the cost of bets comes off the winnings. + - pa_gambling_loss_offset metadata: unit: currency-USD label: PA nontaxable income sources @@ -23,3 +25,5 @@ metadata: href: https://www.pacodeandbulletin.gov/Display/pacode?file=/secure/pacode/data/061/chapter101/s101.6.html - title: "2024 Pennsylvania PIT Return Instructions (PA-40 IN), nontaxable sick pay and disability benefits and Code 3 disability distributions #page 8,13" href: https://www.pa.gov/content/dam/copapwp-pagov/en/revenue/documents/formsandpublications/formsforindividuals/pit/documents/2024/2024_pa-40in.pdf#page=8 + - title: 2025 PA-40 Schedule T - Gambling and Lottery Winnings + href: https://www.pa.gov/content/dam/copapwp-pagov/en/revenue/documents/formsandpublications/formsforindividuals/pit/documents/2025/2025_pa-40t.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/applicable.yaml b/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/applicable.yaml index 000810af023..3f6a8818dbd 100644 --- a/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/applicable.yaml +++ b/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/applicable.yaml @@ -7,6 +7,8 @@ values: - real_estate_taxes - casualty_loss_deduction - va_capped_state_and_local_sales_or_income_tax + # Schedule A line 16a, gambling losses. + - wagering_losses_deduction # Schedule A line 16b, other itemized deductions. - claim_of_right_deduction # Already reduced by the federal AGI floor; zero from 2018. @@ -22,7 +24,7 @@ metadata: href: https://law.lis.virginia.gov/vacode/title58.1/chapter3/section58.1-301/ - title: 26 U.S.C. Section 68(a), (c), and (d), 2024 edition href: https://www.govinfo.gov/content/pkg/USCODE-2024-title26/html/USCODE-2024-title26-subtitleA-chap1-subchapB-partI-sec68.htm - - title: "2025 Virginia Schedule A Itemized Deductions, line 16b and Limited Itemized Deduction Worksheet line 1 #page 1-2" + - title: "2025 Virginia Schedule A Itemized Deductions, lines 16a-16b and Limited Itemized Deduction Worksheet line 1 #page 1-2" href: https://www.tax.virginia.gov/sites/default/files/taxforms/individual-income-tax/2025/schedule-2025.pdf#page=1 - title: 2024 Virginia Schedule A Itemized Deductions href: https://www.tax.virginia.gov/sites/default/files/taxforms/individual-income-tax/2024/schedule-2024.pdf#page=2 diff --git a/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/reducible.yaml b/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/reducible.yaml index 8518c31559b..4775e39d0a3 100644 --- a/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/reducible.yaml +++ b/policyengine_us/parameters/gov/states/va/tax/income/deductions/itemized/reduction/reducible.yaml @@ -3,13 +3,17 @@ values: 2013-01-01: - medical_expense_deduction - investment_interest_expense - - gambling_losses + # Worksheet line 2: "any gambling losses included on Line 16a", which + # is the deduction allowed, not the losses incurred. + - wagering_losses_deduction - casualty_loss_deduction metadata: unit: list period: year label: Virginia itemized deductions reduction reducible deduction sources reference: + - title: 2025 Virginia Schedule A, Limited Itemized Deduction Worksheet line 2 + href: https://www.tax.virginia.gov/sites/default/files/taxforms/individual-income-tax/2025/schedule-2025.pdf#page=2 - title: 2024 Virginia Schedule A Itemized Deductions href: https://www.tax.virginia.gov/sites/default/files/taxforms/individual-income-tax/2024/schedule-2024.pdf#page=2 - title: 2023 Virginia Schedule A Itemized Deductions diff --git a/policyengine_us/reforms/crfb/senior_deduction_extension.py b/policyengine_us/reforms/crfb/senior_deduction_extension.py index d686b464cdd..4a607773150 100644 --- a/policyengine_us/reforms/crfb/senior_deduction_extension.py +++ b/policyengine_us/reforms/crfb/senior_deduction_extension.py @@ -12,7 +12,6 @@ def modify_parameters(parameters): start=instant("2029-01-01"), value=[ "qualified_business_income_deduction", - "wagering_losses_deduction", "itemized_taxable_income_deductions", "tip_income_deduction", "overtime_income_deduction", diff --git a/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py b/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py index 0a2f4903d04..19bd2ce2920 100644 --- a/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py +++ b/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py @@ -124,10 +124,17 @@ def formula(tax_unit, period, parameters): ) # ... calculate itemized deductions offset p = parameters(period).gov.states.mn.tax.income.deductions.itemized + # As in the baseline: Minn. Stat. 290.0122, subd. 2(d)(3) leaves + # the subd. 8 losses, including wagering losses, out of the + # limitation. exempt_deds = add( tax_unit, period, - ["medical_expense_deduction", "mn_casualty_loss_deduction"], + [ + "medical_expense_deduction", + "mn_casualty_loss_deduction", + "wagering_losses_deduction", + ], ) net_deds = max_(0, mn_itm_deds - exempt_deds) net_deds_offset = p.reduction.alternate.rate * net_deds diff --git a/policyengine_us/tests/core/test_hi_itemized_deduction_limitation_properties.py b/policyengine_us/tests/core/test_hi_itemized_deduction_limitation_properties.py index 8dcd0453a30..bc384fb9a72 100644 --- a/policyengine_us/tests/core/test_hi_itemized_deduction_limitation_properties.py +++ b/policyengine_us/tests/core/test_hi_itemized_deduction_limitation_properties.py @@ -5,9 +5,9 @@ married individual filing separately). Act 35, SLH 2026 keeps section 68 "in the form that it existed as of December 31, 2024" for taxable years beginning after December 31, 2025, so the 3 percent and 80 percent rates and the section -68(c) exclusions (medical expenses, investment interest, casualty losses) do -not change in 2026. The Total Itemized Deductions Worksheet in the Form N-11 -instructions implements this. +68(c) exclusions (medical expenses, investment interest, casualty losses, +wagering losses) do not change in 2026. The Total Itemized Deductions +Worksheet in the Form N-11 instructions implements this. Act 35 also conforms Hawaii to the section 224 deduction for qualified tips from 2026 (section 224(h) ends it after 2028). @@ -47,7 +47,12 @@ # Components of hi_total_itemized_deductions, split by whether section 68(c) # excludes them. Investment interest and mortgage interest are person inputs # that hi_interest_deduction adds up. -EXCLUDED = ("hi_medical_expense_deduction", "hi_casualty_loss_deduction") +EXCLUDED = ( + "hi_medical_expense_deduction", + "hi_casualty_loss_deduction", + # Worksheet line 2d: gambling losses included in Worksheet A-6, line 30. + "wagering_losses_deduction", +) EXCLUDED_PERSON = ("investment_interest_expense",) OTHER = ("hi_charitable_deduction", "hi_salt_deduction", "hi_misc_deduction") OTHER_PERSON = ("home_mortgage_interest",) diff --git a/policyengine_us/tests/core/test_itemized_deduction_limitation_properties.py b/policyengine_us/tests/core/test_itemized_deduction_limitation_properties.py index 39b433c0f4b..5f3c58bf28d 100644 --- a/policyengine_us/tests/core/test_itemized_deduction_limitation_properties.py +++ b/policyengine_us/tests/core/test_itemized_deduction_limitation_properties.py @@ -54,11 +54,10 @@ itemized deductions before section 68, and the reduction nets it out of leg (2), whether the itemization choice is set or calculated. -PolicyEngine deducts gambling losses outside -total_itemized_taxable_income_deductions (wagering_losses_deduction), so they -never enter the limited base here; that is a model limitation, not the law -from 2026 (#10070). They are not generated, except that test 9 checks they -leave section 68(a)(2)'s taxable income unchanged. +Gambling losses (wagering_losses_deduction, Schedule A line 16) are part of +total_itemized_taxable_income_deductions and are one of the section 68(c) +exclusions before 2026, so they are generated here as an excluded deduction. +From 2026 they count like every other itemized deduction. """ from functools import cache @@ -66,7 +65,7 @@ import numpy as np import pytest -from policyengine_us import CountryTaxBenefitSystem, Simulation +from policyengine_us import Simulation from policyengine_core.reforms import Reform N = 600 @@ -86,7 +85,11 @@ # Components of total_itemized_taxable_income_deductions, split by whether # section 68(c) excludes them. Mortgage and investment interest are person # inputs that interest_deduction adds up. -EXCLUDED = ("medical_expense_deduction", "casualty_loss_deduction") +EXCLUDED = ( + "medical_expense_deduction", + "casualty_loss_deduction", + "wagering_losses_deduction", +) EXCLUDED_PERSON = ("investment_interest_expense",) OTHER = ("charitable_deduction", "salt_deduction", "misc_deduction") OTHER_PERSON = ("deductible_mortgage_interest",) @@ -157,7 +160,11 @@ def _simulate( } households[f"h{i}"] = {"members": [person]} situation = {"people": people, "tax_units": tax_units, "households": households} - simulation = Simulation(situation=situation, reform=reform) + # Share the prepared read-only policy; Simulation clones it for the reform + # while keeping populations and calculation caches separate for each run. + simulation = Simulation( + tax_benefit_system=_system(), situation=situation, reform=reform + ) return {name: simulation.calculate(name, period) for name in outputs} @@ -195,7 +202,8 @@ def _worksheet_amounts(year, statuses): @cache def _system(): - return CountryTaxBenefitSystem() + # Reading parameters does not need another full model construction. + return Simulation.default_tax_benefit_system_instance def _parameter_amounts(year, statuses): diff --git a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/itemized_taxable_income_deductions_reduction.yaml b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/itemized_taxable_income_deductions_reduction.yaml index 4c70d5d80f5..6e136d1f624 100644 --- a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/itemized_taxable_income_deductions_reduction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/itemized_taxable_income_deductions_reduction.yaml @@ -165,6 +165,53 @@ # Lesser: 200_000; reduction: 200_000 * 2 / 37 = 10_810.81 itemized_taxable_income_deductions_reduction: 10_810.81 +# Wagering losses (section 165(d)) are itemized deductions. Before 2018 +# section 68(c) kept them out of the 80 percent base; from 2026 the reduction +# counts them like any other itemized deduction. +- name: 2017 single filer - wagering losses are outside the 80 percent base + period: 2017 + absolute_error_margin: 0.01 + input: + adjusted_gross_income: 1_000_000 + filing_status: SINGLE + gambling_winnings: 20_000 + gambling_losses: 20_000 + charitable_deduction: 10_000 + interest_deduction: 0 + salt_deduction: 0 + casualty_loss_deduction: 0 + misc_deduction: 0 + medical_expense_deduction: 0 + output: + wagering_losses_deduction: 20_000 + # Line 1: 30_000. Line 2: 20_000. Line 3: 10_000. Line 4: 8_000. + # Line 7: 1_000_000 - 261_500 = 738_500. Line 8: 22_155. + # Line 9: smaller of 8_000 or 22_155. + itemized_taxable_income_deductions_reduction: 8_000 + itemized_taxable_income_deductions: 22_000 + +- name: 2026 single filer - the reduction counts wagering losses + period: 2026 + absolute_error_margin: 0.01 + input: + adjusted_gross_income: 1_000_000 + filing_status: SINGLE + gambling_winnings: 30_000 + gambling_losses: 30_000 + charitable_deduction: 0 + interest_deduction: 0 + salt_deduction: 0 + casualty_loss_deduction: 0 + misc_deduction: 0 + medical_expense_deduction: 0 + output: + # 90% of 30_000 + wagering_losses_deduction: 27_000 + # Excess over the 37 percent bracket: 1_000_000 - 640_600 = 359_400 + # Lesser: 27_000; reduction: 27_000 * 2 / 37 = 1_459.46 + itemized_taxable_income_deductions_reduction: 1_459.46 + itemized_taxable_income_deductions: 25_540.54 + # Section 68(a)(2) as rewritten by P.L. 119-21, sec. 70111(a): "so much of the # taxable income of the taxpayer for the taxable year (determined without # regard to this section and increased by such amount of itemized diff --git a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_deductions_if_itemizing.yaml b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_deductions_if_itemizing.yaml index fb8dfc3a11a..225f1a94b32 100644 --- a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_deductions_if_itemizing.yaml +++ b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_deductions_if_itemizing.yaml @@ -1,12 +1,11 @@ -- name: Integration test, reduction of itemized deductions but not QBID or wagering losses +- name: Integration test, reduction of itemized deductions but not QBID period: 2024 input: total_itemized_taxable_income_deductions: 1_000 itemized_taxable_income_deductions_reduction: 2_000 qualified_business_income_deduction: 1_000 - wagering_losses_deduction: 500 output: - taxable_income_deductions_if_itemizing: 1_500 + taxable_income_deductions_if_itemizing: 1_000 - name: Integration test, some itemized deductions over reduction threshold period: 2024 @@ -14,6 +13,18 @@ total_itemized_taxable_income_deductions: 3_000 itemized_taxable_income_deductions_reduction: 2_000 qualified_business_income_deduction: 1_000 - wagering_losses_deduction: 500 output: - taxable_income_deductions_if_itemizing: 2_500 + taxable_income_deductions_if_itemizing: 2_000 + +- name: Wagering losses are part of the itemized deductions total, not a separate deduction. + period: 2024 + input: + wagering_losses_deduction: 500 + charitable_deduction: 3_000 + qualified_business_income_deduction: 1_000 + output: + total_itemized_taxable_income_deductions: 3_500 + itemized_taxable_income_deductions: 3_500 + # 3,500 of itemized deductions and 1,000 of QBID; the wagering losses + # are not added a second time. + taxable_income_deductions_if_itemizing: 4_500 diff --git a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.yaml index 6ded087918c..ae37d552290 100644 --- a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.yaml @@ -69,3 +69,228 @@ members: [person1, person2] output: wagering_losses_deduction: 5 + +- name: Through 2025 all losses count, up to winnings. + absolute_error_margin: 0 + period: 2025 + input: + gambling_winnings: 10_000 + gambling_losses: 8_000 + output: + wagering_losses_deduction: 8_000 + +- name: Through 2025 losses above winnings are not deductible. + absolute_error_margin: 0 + period: 2025 + input: + gambling_winnings: 10_000 + gambling_losses: 12_000 + output: + wagering_losses_deduction: 10_000 + +- name: From 2026 only 90% of losses count. + absolute_error_margin: 0 + period: 2026 + input: + gambling_winnings: 10_000 + gambling_losses: 8_000 + output: + # 90% of 8,000 + wagering_losses_deduction: 7_200 + +- name: From 2026 the winnings cap applies after the 90% share. + absolute_error_margin: 0 + period: 2026 + input: + gambling_winnings: 10_000 + gambling_losses: 12_000 + output: + # min(90% of 12,000, 10,000) + wagering_losses_deduction: 10_000 + +- name: From 2026 equal winnings and losses leave 10% of the winnings taxed. + absolute_error_margin: 0 + period: 2026 + input: + gambling_winnings: 30_000 + gambling_losses: 30_000 + output: + wagering_losses_deduction: 27_000 + +- name: A dependent's gambling is not on the parent's return. + absolute_error_margin: 0 + period: 2024 + input: + people: + parent: + age: 40 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 10_000 + gambling_losses: 10_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + output: + wagering_losses_deduction: 0 + +- name: A dependent's losses cannot use up the parent's winnings. + absolute_error_margin: 0 + period: 2024 + input: + people: + parent: + age: 40 + gambling_winnings: 10_000 + gambling_losses: 2_000 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 5_000 + gambling_losses: 9_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + output: + # The parent's own 2,000, not min(11,000, 15,000). + wagering_losses_deduction: 2_000 + +# Integration with gross income, itemizing and income tax. Gambling winnings +# are gross income (26 U.S.C. 61(a); Schedule 1 line 8b), and the losses are +# an itemized deduction up to the winnings (26 U.S.C. 165(d); Schedule A line +# 16), 90% of the losses from 2026 (P.L. 119-21 sec. 70114). The cases follow +# PolicyEngine/policyengine-us#9637: a single filer aged 40 in Texas with +# 60,000 of wages. The state and local tax deduction is set to zero so each +# figure can be computed by hand. + +- name: 2024, no gambling. + absolute_error_margin: 0.01 + period: 2024 + input: + age: 40 + employment_income: 60_000 + salt_deduction: 0 + state_code: TX + output: + adjusted_gross_income: 60_000 + # 60,000 - 14,600 standard deduction + taxable_income: 45_400 + # 10% x 11,600 + 12% x 33,800 + income_tax: 5_216 + +- name: 2024, winnings are income and losses below the standard deduction do not help. + absolute_error_margin: 0.01 + period: 2024 + input: + age: 40 + employment_income: 60_000 + gambling_winnings: 10_000 + gambling_losses: 8_000 + salt_deduction: 0 + state_code: TX + output: + irs_gross_income: 70_000 + adjusted_gross_income: 70_000 + wagering_losses_deduction: 8_000 + itemized_taxable_income_deductions: 8_000 + tax_unit_itemizes: false + # 70,000 - 14,600 + taxable_income: 55_400 + # 1,160 + 12% x 35,550 + 22% x 8,250 + income_tax: 7_241 + +- name: 2024, an itemizer deducts losses against the winnings in income. + absolute_error_margin: 0.01 + period: 2024 + input: + age: 40 + employment_income: 60_000 + gambling_winnings: 30_000 + gambling_losses: 25_000 + salt_deduction: 0 + state_code: TX + output: + adjusted_gross_income: 90_000 + wagering_losses_deduction: 25_000 + itemized_taxable_income_deductions: 25_000 + tax_unit_itemizes: true + # 90,000 - 25,000 + taxable_income: 65_000 + # 1,160 + 4,266 + 22% x 17,850 + income_tax: 9_353 + +- name: 2024, equal winnings and losses still raise tax by replacing the standard deduction. + absolute_error_margin: 0.01 + period: 2024 + input: + age: 40 + employment_income: 60_000 + gambling_winnings: 20_000 + gambling_losses: 20_000 + salt_deduction: 0 + state_code: TX + output: + adjusted_gross_income: 80_000 + wagering_losses_deduction: 20_000 + tax_unit_itemizes: true + # 80,000 - 20,000, against 45,400 with no gambling + taxable_income: 60_000 + # 1,160 + 4,266 + 22% x 12,850 + income_tax: 8_253 + +- name: 2026, the itemizer deducts 90% of losses. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 60_000 + gambling_winnings: 30_000 + gambling_losses: 25_000 + salt_deduction: 0 + state_code: TX + output: + adjusted_gross_income: 90_000 + # 90% of 25,000 + wagering_losses_deduction: 22_500 + itemized_taxable_income_deductions: 22_500 + tax_unit_itemizes: true + # 90,000 - 22,500 + taxable_income: 67_500 + # 10% x 12,400 + 12% x 38,000 + 22% x 17,100 + income_tax: 9_562 + +- name: A dependent's winnings and losses do not change the parent's return. + absolute_error_margin: 0.01 + period: 2024 + input: + people: + parent: + age: 40 + employment_income: 60_000 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 30_000 + gambling_losses: 25_000 + tax_units: + tax_unit: + members: [parent, child] + salt_deduction: 0 + households: + household: + members: [parent, child] + state_code: TX + output: + irs_gross_income: [60_000, 0] + adjusted_gross_income: 60_000 + wagering_losses_deduction: 0 + tax_unit_itemizes: false + # 60,000 - 21,900 head of household standard deduction + taxable_income: 38_100 diff --git a/policyengine_us/tests/policy/baseline/gov/irs/irs_gross_income.yaml b/policyengine_us/tests/policy/baseline/gov/irs/irs_gross_income.yaml index 5e241bbd3ee..ce70da66e59 100644 --- a/policyengine_us/tests/policy/baseline/gov/irs/irs_gross_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/irs/irs_gross_income.yaml @@ -94,3 +94,21 @@ members: [parent, child] output: irs_gross_income: [0, 0] + +- name: Gambling winnings are gross income for the filer, not a dependent's on this return. + period: 2024 + input: + people: + parent: + is_tax_unit_head: true + gambling_winnings: 10_000 + gambling_losses: 4_000 + child: + is_tax_unit_dependent: true + gambling_winnings: 5_000 + tax_units: + tax_unit: + members: [parent, child] + output: + # The full winnings, not reduced by losses. + irs_gross_income: [10_000, 0] diff --git a/policyengine_us/tests/policy/baseline/gov/states/al/tax/income/al_agi.yaml b/policyengine_us/tests/policy/baseline/gov/states/al/tax/income/al_agi.yaml index ec47cc567f9..8511745399f 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/al/tax/income/al_agi.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/al/tax/income/al_agi.yaml @@ -66,6 +66,7 @@ # health insurance (1,000) and SEP (500) deductions all go on the child's # Alabama return (Ala. Code 40-18-27(a); Form 40 booklet p. 5, # "Dependent's and Student's Income"), as on the federal return. + # Parent-only AGI: 40,000 + 0 dependent income - 0 dependent deductions. adjusted_gross_income: 40_000 al_agi: 40_000 @@ -187,3 +188,37 @@ # amortization apportioned to the beneficiary can exceed the income: # 30,000 - 5,000. al_agi: 25_000 + +- name: Alabama taxes gambling winnings. + absolute_error_margin: 0.01 + period: 2026 + input: + irs_employment_income: 50_000 + gambling_winnings: 20_000 + gambling_losses: 12_000 + state_code: AL + output: + al_agi: 70_000 + +- name: A dependent's gambling winnings are not in the parent's Alabama AGI. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + parent: + age: 40 + gambling_winnings: 2_000 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 20_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: AL + output: + al_gambling_winnings: [2_000, 0] + al_agi: 2_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/al/tax/income/deductions/itemized/al_gambling_loss_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/al/tax/income/deductions/itemized/al_gambling_loss_deduction.yaml new file mode 100644 index 00000000000..28c6f3d9c0a --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/al/tax/income/deductions/itemized/al_gambling_loss_deduction.yaml @@ -0,0 +1,45 @@ +- name: Alabama deducts all gambling losses up to winnings in 2026. + absolute_error_margin: 0.01 + period: 2026 + input: + gambling_winnings: 20_000 + gambling_losses: 12_000 + state_code: AL + output: + # The federal deduction is 90% of the losses from 2026; Alabama's is not. + wagering_losses_deduction: 10_800 + al_gambling_loss_deduction: 12_000 + +- name: Alabama gambling losses are capped at winnings. + absolute_error_margin: 0.01 + period: 2025 + input: + gambling_winnings: 5_000 + gambling_losses: 12_000 + state_code: AL + output: + al_gambling_loss_deduction: 5_000 + al_itemized_deductions: 5_000 + +- name: A dependent's gambling is not on the parent's Alabama return. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + parent: + age: 40 + gambling_winnings: 1_000 + gambling_losses: 10_000 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 20_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: AL + output: + al_gambling_loss_deduction: 1_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions.yaml b/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions.yaml index aaae4fd3a9b..677299453db 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions.yaml @@ -54,6 +54,49 @@ output: ca_itemized_deductions: 7_000 # charity subject to limitation +- name: California allows all gambling losses up to winnings in 2026 and does not limit them. + absolute_error_margin: 0.01 + period: 2026 + input: + filing_status: SINGLE + adjusted_gross_income: 1_000_000 + gambling_winnings: 10_000 + gambling_losses: 10_000 + state_code: CA + output: + # Federal: min(90% x 10,000 losses, 10,000 winnings) = 9,000. + wagering_losses_deduction: 9_000 + # California: min(10,000 losses, 10,000 winnings) = 10,000. + ca_wagering_losses_deduction: 10_000 + ca_itemized_deductions_pre_limitation: 10_000 + # Gambling losses are outside the high-income limitation. + ca_itemized_deductions: 10_000 + +- name: California gambling losses are capped at winnings and exclude a dependent's. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + parent: + age: 40 + gambling_winnings: 5_000 + gambling_losses: 8_000 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 10_000 + gambling_losses: 10_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: CA + output: + # Only the parent counts: min(8,000 losses, 5,000 winnings) = 5,000. + ca_wagering_losses_deduction: 5_000 + # 2024 Schedule CA (540) instructions, line 29 worksheet (Form 540 booklet, # PDF p. 68): line 2 takes medical expenses, investment interest, casualty and # theft losses and gambling losses out before the 80%/6% limitation. Cal. Rev. diff --git a/policyengine_us/tests/policy/baseline/gov/states/dc/tax/income/dc_itemized_deductions.yaml b/policyengine_us/tests/policy/baseline/gov/states/dc/tax/income/dc_itemized_deductions.yaml index b4bc41434fc..5d01c6cfcd4 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/dc/tax/income/dc_itemized_deductions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/dc/tax/income/dc_itemized_deductions.yaml @@ -53,3 +53,36 @@ state_code: DC output: dc_itemized_deductions: 8_000 # = 1_000 + (12_000 - 100_000 * 0.05) + +- name: Wagering losses are outside the DC itemized deduction phase-out. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 190_000 + gambling_winnings: 20_000 + gambling_losses: 20_000 + state_code: DC + output: + dc_agi: 210_000 + # 90% of 20,000 from 2026 + wagering_losses_deduction: 18_000 + # The phase-out, 5% x (210,000 - 200,000) = 500, applies only to + # deductions other than medical, casualty and wagering losses. + dc_itemized_deductions: 18_000 + +- name: The DC phase-out still reduces other deductions held with wagering losses. + absolute_error_margin: 0.01 + period: 2025 + input: + age: 40 + employment_income: 190_000 + gambling_winnings: 20_000 + gambling_losses: 20_000 + charitable_deduction: 10_000 + state_code: DC + output: + dc_agi: 210_000 + wagering_losses_deduction: 20_000 + # 20,000 + (10,000 - 500) + dc_itemized_deductions: 29_500 diff --git a/policyengine_us/tests/policy/baseline/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.yaml b/policyengine_us/tests/policy/baseline/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.yaml index 755bbb44249..ffb52a8671d 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.yaml @@ -335,3 +335,66 @@ output: de_itemized_deductions_unit: 0 de_itemized_deductions_indv: [0, 0] + +- name: Wagering losses go to the spouse who had them. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + head: + age: 40 + employment_income: 50_000 + gambling_winnings: 10_000 + gambling_losses: 6_000 + spouse: + age: 40 + employment_income: 50_000 + gambling_losses: 2_000 + tax_units: + tax_unit: + members: [head, spouse] + marital_units: + marital_unit: + members: [head, spouse] + households: + household: + members: [head, spouse] + state_code: DE + output: + de_itemized_deductions_unit: 8_000 + de_itemized_deductions_indv: [6_000, 2_000] + +- name: A dependent's gambling losses do not change the spouses' wagering allocation. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + head: + age: 40 + employment_income: 40_000 + gambling_winnings: 10_000 + gambling_losses: 6_000 + spouse: + age: 40 + employment_income: 50_000 + gambling_losses: 2_000 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 10_000 + gambling_losses: 8_000 + tax_units: + tax_unit: + members: [head, spouse, child] + marital_units: + marital_unit: + members: [head, spouse] + households: + household: + members: [head, spouse, child] + state_code: DE + output: + de_itemized_deductions_unit: 8_000 + # The head's 6,000 and the spouse's 2,000; the child's 8,000 is on the + # child's own return. + de_itemized_deductions_indv: [6_000, 2_000, 0] diff --git a/policyengine_us/tests/policy/baseline/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_unit.yaml b/policyengine_us/tests/policy/baseline/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_unit.yaml new file mode 100644 index 00000000000..ff28767425d --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_unit.yaml @@ -0,0 +1,13 @@ +- name: Delaware carries the federal wagering losses deduction. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 50_000 + gambling_winnings: 10_000 + gambling_losses: 8_000 + state_code: DE + output: + adjusted_gross_income: 60_000 + # 90% of 8,000 from 2026 + de_itemized_deductions_unit: 7_200 diff --git a/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions.yaml b/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions.yaml index b03767807d5..e3981639d62 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions.yaml @@ -140,3 +140,36 @@ # The federal 2/37 limit under P.L. 119-21 does not apply in Hawaii. # 30,000 - min(24,000, 24,996) = 6,000. hi_itemized_deductions: 6_000 + +- name: Case 14, Hawaii allows gambling losses and does not reduce them at high income. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 200_000 + gambling_winnings: 10_000 + gambling_losses: 10_000 + state_code: HI + output: + hi_agi: 210_000 + # 90% of 10,000 from 2026 + hi_total_itemized_deductions: 9_000 + # Total Itemized Deductions Worksheet line 4: line 3 (gambling losses) + # is not less than line 1, so the deduction is not limited. + hi_itemized_deductions: 9_000 + +- name: Case 15, the Hawaii limitation reduces other deductions held with gambling losses. + absolute_error_margin: 0.01 + period: 2025 + input: + age: 40 + employment_income: 200_000 + gambling_winnings: 10_000 + gambling_losses: 10_000 + hi_charitable_deduction: 20_000 + state_code: HI + output: + hi_agi: 210_000 + hi_total_itemized_deductions: 30_000 + # Smaller of 80% x 20,000 and 3% x (210,000 - 166,800) = 1,296. + hi_itemized_deductions: 28_704 diff --git a/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.yaml index 7fd0864660f..bb4031b7d9a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.yaml @@ -45,6 +45,9 @@ state_code: HI output: hi_itemized_deductions_reduction: 0 + # Worksheet line 8: income is not over 166,800, so the deduction is not + # limited and line 1 is entered. + hi_itemized_deductions: 10_000 - name: Case 3, excluded deductions equal the total, no reduction. period: 2022 @@ -68,6 +71,10 @@ state_code: HI output: hi_itemized_deductions_reduction: 0 + # Worksheet line 4: the medical, investment interest and casualty + # deductions (300 + 200 + 400) are not less than the total, so the + # deduction is not limited and line 1 is entered. + hi_itemized_deductions: 900 - name: Case 4, joint filer in 2026 uses the $166,800 threshold, not a joint federal amount. period: 2026 @@ -112,3 +119,41 @@ hi_total_itemized_deductions: 30_000 output: hi_itemized_deductions_reduction: 0 + +- name: Case 8, gambling losses are outside the limitation (worksheet line 2d). + period: 2025 + input: + tax_units: + tax_unit: + filing_status: SINGLE + wagering_losses_deduction: 4_000 + hi_agi: 266_800 + members: [person1] + hi_total_itemized_deductions: 10_000 + people: + person1: {} + households: + household: + members: [person1] + state_code: HI + output: + # Smaller of 80% x (10,000 - 4,000) = 4,800 and 3% x (266,800 - 166,800) + # = 3,000. + hi_itemized_deductions_reduction: 3_000 + # 10,000 - 3,000 = 7,000. + hi_itemized_deductions: 7_000 + +- name: Case 9, the 80% ceiling leaves out gambling losses. + period: 2025 + input: + state_code: HI + filing_status: SINGLE + hi_agi: 1_000_000 + wagering_losses_deduction: 4_000 + hi_total_itemized_deductions: 10_000 + output: + # Line 5: (10,000 - 4,000) * 80% = 4,800. + # Line 9: (1,000,000 - 166,800) * 3% = 24,996. + hi_itemized_deductions_reduction: 4_800 + # 10,000 - 4,800 = 5,200. + hi_itemized_deductions: 5_200 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ia/tax/income/ia_gross_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/ia/tax/income/ia_gross_income.yaml index 650bcdb385a..52538dbe1b9 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ia/tax/income/ia_gross_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ia/tax/income/ia_gross_income.yaml @@ -6,6 +6,31 @@ output: ia_gross_income: 100_000 +- name: Gambling winnings are Iowa gross income on the 2021 return (IA 1040 line 13). + absolute_error_margin: 0.01 + period: 2021 + input: + people: + parent: + age: 40 + irs_employment_income: 60_000 + gambling_winnings: 10_000 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 5_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: IA + output: + ia_gambling_winnings: [10_000, 0] + # The child's winnings are on the child's own return. + ia_gross_income: [70_000, 0] + - name: Estate and trust income is included in Iowa gross income period: 2022 input: diff --git a/policyengine_us/tests/policy/baseline/gov/states/ks/tax/income/ks_itemized_deductions.yaml b/policyengine_us/tests/policy/baseline/gov/states/ks/tax/income/ks_itemized_deductions.yaml index d890c39797f..acf9a762573 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ks/tax/income/ks_itemized_deductions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ks/tax/income/ks_itemized_deductions.yaml @@ -20,6 +20,36 @@ output: ks_itemized_deductions: 12 + 9 + 2 +- name: Kansas taxes gambling winnings but its itemized deductions leave out wagering losses. + absolute_error_margin: 0.01 + period: 2025 + input: + age: 40 + employment_income: 40_000 + gambling_winnings: 10_000 + gambling_losses: 8_000 + state_code: KS + output: + wagering_losses_deduction: 8_000 + ks_agi: 50_000 + # K.S.A. 79-32,120(a) lists only charity, medical care, home mortgage + # interest and property taxes. + ks_itemized_deductions: 0 + +- name: Kansas itemized deductions keep charity and drop wagering losses in 2026. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 40_000 + gambling_winnings: 10_000 + gambling_losses: 8_000 + charitable_deduction: 3_000 + state_code: KS + output: + wagering_losses_deduction: 7_200 + ks_itemized_deductions: 3_000 + # K.S.A. 79-32,120(a)(5): from 2020, 100% of charitable contributions, medical # care, qualified residence interest and real and personal property taxes. # Investment interest and casualty losses are not Kansas itemized deductions. diff --git a/policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.yaml b/policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.yaml index 2c95b9fe2fc..4c584665619 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.yaml @@ -141,3 +141,37 @@ itemized_deductions_less_salt: 12_000 ky_disallowed_second_residence_interest: 3_000 ky_itemized_deductions_unit: 9_000 + +- name: Kentucky allowed no wagering losses for 2018. + absolute_error_margin: 0.01 + period: 2018 + input: + gambling_winnings: 30_000 + gambling_losses: 30_000 + charitable_deduction: 4_000 + state_code: KY + output: + wagering_losses_deduction: 30_000 + ky_itemized_deductions_unit: 4_000 + +- name: Kentucky allows wagering losses from 2019. + absolute_error_margin: 0.01 + period: 2019 + input: + gambling_winnings: 30_000 + gambling_losses: 30_000 + charitable_deduction: 4_000 + state_code: KY + output: + ky_itemized_deductions_unit: 34_000 + +- name: Kentucky follows the 90% share from 2026. + absolute_error_margin: 0.01 + period: 2026 + input: + gambling_winnings: 30_000 + gambling_losses: 30_000 + charitable_deduction: 4_000 + state_code: KY + output: + ky_itemized_deductions_unit: 31_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_subtractions.yaml b/policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_subtractions.yaml index 8ae2f31b6ef..09a36927f3d 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_subtractions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mi/tax/income/mi_subtractions.yaml @@ -199,3 +199,62 @@ mi_standard_deduction: 14_400 # 0 + 14,400 = 14,400. mi_subtractions: 14_400 + +- name: A Michigan filer who itemizes federally subtracts the wagering losses deducted. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 50_000 + gambling_winnings: 20_000 + gambling_losses: 20_000 + state_code: MI + output: + tax_unit_itemizes: true + # 90% of 20,000 from 2026 + mi_wagering_losses_deduction: 18_000 + mi_subtractions: 18_000 + +- name: A Michigan filer who takes the federal standard deduction subtracts no wagering losses. + absolute_error_margin: 0.01 + period: 2025 + input: + age: 40 + employment_income: 50_000 + gambling_winnings: 10_000 + gambling_losses: 8_000 + state_code: MI + output: + tax_unit_itemizes: false + wagering_losses_deduction: 8_000 + mi_wagering_losses_deduction: 0 + mi_subtractions: 0 + +- name: Michigan allowed no wagering losses before 2021. + absolute_error_margin: 0.01 + period: 2020 + input: + age: 40 + employment_income: 50_000 + gambling_winnings: 20_000 + gambling_losses: 20_000 + tax_unit_itemizes: true + state_code: MI + output: + wagering_losses_deduction: 20_000 + mi_subtractions: 0 + +- name: A Michigan filer who itemizes federally in 2023 subtracts all the wagering losses deducted. + absolute_error_margin: 0.01 + period: 2023 + input: + age: 40 + employment_income: 50_000 + gambling_winnings: 20_000 + gambling_losses: 20_000 + state_code: MI + output: + tax_unit_itemizes: true + # 2021 PA 168; all losses up to winnings before 2026 + mi_wagering_losses_deduction: 20_000 + mi_subtractions: 20_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_itemized_deductions.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_itemized_deductions.yaml index 9c75f9292f5..963c04bda3b 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_itemized_deductions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_itemized_deductions.yaml @@ -93,6 +93,22 @@ output: mn_itemized_deductions: 10_000 +- name: Wagering losses are outside the Minnesota itemized deduction limitation. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 200_000 + gambling_winnings: 100_000 + gambling_losses: 50_000 + state_code: MN + output: + adjusted_gross_income: 300_000 + # min(90% x 50,000 losses, 100,000 winnings) = 45,000. + wagering_losses_deduction: 45_000 + # Minn. Stat. 290.0122, subd. 2(d)(3): no reduction of the losses. + mn_itemized_deductions: 45_000 + # Schedule M1SA line 19 takes the casualty and theft loss from Schedule M1CAT: # each casualty less $100, then less 10% of Form M1 line 1 (federal AGI). Minn. # Stat. 290.0122, subd. 8, disregards the federal limit to declared disasters. @@ -234,3 +250,25 @@ # reduction is 800 and the deduction 11,000 - 800. Were the interest in # the cap base, the cap would be 8,800 and the deduction 11,000 - 2,025. mn_itemized_deductions: 10_200 + +- name: Minnesota exempts wagering losses from the 2023 high-income limitation. + period: 2023 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 2_000_000 + gambling_winnings: 50_000 + gambling_losses: 50_000 + interest_deduction: 0 + charitable_deduction: 0 + medical_expense_deduction: 0 + casualty_loss_deduction: 0 + mn_casualty_loss_deduction: 0 + capped_property_taxes: 0 + misc_deduction: 0 + claim_of_right_deduction: 0 + output: + wagering_losses_deduction: 50_000 + itemized_deductions_less_salt: 50_000 + # Minn. Stat. 290.0122, subd. 2(d)(3) and 8: 50,000 - 80% * 0. + mn_itemized_deductions: 50_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.yaml b/policyengine_us/tests/policy/baseline/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.yaml index fec806c77f9..c24d265703f 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.yaml @@ -41,3 +41,16 @@ output: # 10,000 + 2,000; before the fix 13,000. ms_itemized_deductions_unit: 12_000 + +- name: Mississippi itemized deductions leave out the federal wagering losses deduction. + absolute_error_margin: 0.01 + period: 2025 + input: + gambling_winnings: 10_000 + gambling_losses: 8_000 + charitable_deduction: 3_000 + state_code: MS + output: + wagering_losses_deduction: 8_000 + # Mississippi income here has no gambling winnings to deduct them from. + ms_itemized_deductions_unit: 3_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/itemized/mt_claim_of_right_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/itemized/mt_claim_of_right_deduction.yaml index 23743f6fb17..b5846be698e 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/itemized/mt_claim_of_right_deduction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/itemized/mt_claim_of_right_deduction.yaml @@ -584,7 +584,7 @@ mt_misc_deductions: [0, 5_000] mt_misc_deductions_subject_to_floor_joint: 800 -- name: Wagering losses are included in the 2024 full federal itemized amount and ceiling. +- name: In 2024 the full federal itemized amount sets the ceiling on the Montana addback. period: 2024 input: state_code: MT @@ -592,8 +592,7 @@ mt_additions: 0 mt_subtractions: 0 tax_unit_itemizes: true - itemized_taxable_income_deductions: 16_000 - wagering_losses_deduction: 4_000 + itemized_taxable_income_deductions: 20_000 standard_deduction: 14_600 salt_deduction: 6_000 state_withheld_income_tax: 6_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/itemized/mt_wagering_losses_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/itemized/mt_wagering_losses_deduction.yaml new file mode 100644 index 00000000000..f9a45c1f856 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/itemized/mt_wagering_losses_deduction.yaml @@ -0,0 +1,113 @@ +- name: Montana allows the federal wagering losses deduction. + absolute_error_margin: 0.01 + period: 2023 + input: + age: 40 + employment_income: 50_000 + gambling_winnings: 30_000 + gambling_losses: 20_000 + state_code: MT + output: + mt_wagering_losses_deduction: 20_000 + mt_misc_deductions: 20_000 + +- name: From 2026 Montana carries 90% of the losses through federal deductions. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + employment_income: 50_000 + gambling_winnings: 30_000 + gambling_losses: 20_000 + state_code: MT + output: + # min(0.9 x 20,000, 30,000) = 18,000. + wagering_losses_deduction: 18_000 + mt_wagering_losses_deduction: 18_000 + # From 2024 Montana uses the federal deduction instead of the legacy list. + mt_misc_deductions: 0 + +- name: The Montana spouse who reports the winnings claims the losses. + absolute_error_margin: 0.01 + period: 2023 + input: + people: + head: + age: 40 + gambling_winnings: 10_000 + spouse: + age: 40 + gambling_losses: 8_000 + child: + age: 10 + is_tax_unit_dependent: true + gambling_winnings: 5_000 + tax_units: + tax_unit: + members: [head, spouse, child] + marital_units: + marital_unit: + members: [head, spouse] + households: + household: + members: [head, spouse, child] + state_code: MT + output: + wagering_losses_deduction: 8_000 + mt_wagering_losses_deduction: [8_000, 0, 0] + +- name: When both Montana spouses have winnings, each claims their own losses. + absolute_error_margin: 0.01 + period: 2023 + input: + people: + head: + age: 40 + gambling_winnings: 10_000 + gambling_losses: 8_000 + spouse: + age: 40 + gambling_winnings: 10_000 + tax_units: + tax_unit: + members: [head, spouse] + marital_units: + marital_unit: + members: [head, spouse] + households: + household: + members: [head, spouse] + state_code: MT + output: + wagering_losses_deduction: 8_000 + mt_wagering_losses_deduction: [8_000, 0] + +- name: Montana losses beyond a spouse's own winnings go to the spouse with winnings left. + absolute_error_margin: 0.01 + period: 2023 + input: + people: + head: + age: 40 + gambling_winnings: 4_000 + gambling_losses: 9_000 + spouse: + age: 40 + gambling_winnings: 10_000 + gambling_losses: 1_000 + tax_units: + tax_unit: + members: [head, spouse] + marital_units: + marital_unit: + members: [head, spouse] + households: + household: + members: [head, spouse] + state_code: MT + output: + # The return deducts min(10,000, 14,000) = 10,000. The head takes 4,000 + # against their own winnings and the spouse 1,000; the other 5,000 falls + # on the spouse's remaining 9,000 of winnings. + wagering_losses_deduction: 10_000 + mt_wagering_losses_deduction: [4_000, 6_000] diff --git a/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/mt_federal_deductions.yaml b/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/mt_federal_deductions.yaml new file mode 100644 index 00000000000..e1903454704 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/deductions/mt_federal_deductions.yaml @@ -0,0 +1,30 @@ +- name: Montana counts wagering once in federal deductions and the addback ceiling in 2025. + period: 2025 + input: + state_code: MT + age: 40 + filing_status: SINGLE + adjusted_gross_income: 100_000 + tax_unit_itemizes: true + gambling_winnings: 11_000 + gambling_losses: 11_000 + salt_deduction: 6_000 + state_withheld_income_tax: 6_000 + local_income_tax: 0 + state_sales_tax: 0 + local_sales_tax: 0 + real_estate_taxes: 0 + mt_federal_itemized_personal_property_taxes: 0 + charitable_deduction: 0 + interest_deduction: 0 + medical_expense_deduction: 0 + casualty_loss_deduction: 0 + misc_deduction: 0 + claim_of_right_deduction: 0 + output: + wagering_losses_deduction: 11_000 + total_itemized_taxable_income_deductions: 17_000 + itemized_taxable_income_deductions: 17_000 + standard_deduction: 15_750 + mt_federal_deductions: 17_000 + mt_state_income_tax_itemized_add_back: 1_250 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml index 3712cce127d..d34c6cb9738 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml @@ -678,3 +678,38 @@ nd_qdiv_subtraction: 400 # 30,000 + 5,000 + 1,000, with no state-law subtraction. nd_renters_refund_income: 36_000 + +- name: North Dakota counts gambling winnings in renter's refund income. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 45 + state_code: ND + employment_income: 20_000 + gambling_winnings: 4_000 + output: + # N.D.C.C. 57-02-08.1(5)(c) counts income from all sources, and federal + # law counts gambling winnings in gross income: 20,000 + 4,000. + nd_renters_refund_income: 24_000 + +- name: North Dakota takes income from Puerto Rico out of the gambling winnings that hold it. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person: + age: 40 + gambling_winnings: 10_000 + social_security_retirement: 20_000 + tax_units: + tax_unit: + members: [person] + # IRC 933 excludes it, and the winnings are the only market income. + puerto_rico_income: 4_000 + households: + household: + members: [person] + state_code: ND + output: + # 10,000 + 20,000 - min(4,000, 10,000). Social security stays whole. + nd_renters_refund_income: 26_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_phase_out.yaml b/policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_phase_out.yaml index 25f730d5927..e419ea79347 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_phase_out.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_phase_out.yaml @@ -134,3 +134,20 @@ # L1 = 130,000 - 30,000 = 100,000; L4 = 80,000; L8 = 2,734.50. # Reduction = min(80,000, 2,734.50) = 2,734.50 (same as without tuition). ny_itemized_deductions_phase_out: 2_734.50 + +- name: Gambling losses are not subject to the New York overall limitation. + absolute_error_margin: 0.01 + period: 2025 + input: + filing_status: SINGLE + adjusted_gross_income: 1_000_000 + gambling_winnings: 50_000 + gambling_losses: 50_000 + ny_itemized_deductions_phase_out_applies: true + ny_salt_deduction: 0 + state_code: NY + output: + ny_wagering_losses_deduction: 50_000 + ny_itemized_deductions_max: 50_000 + # Worksheet line 1 equals line 2 (gambling losses), so nothing is limited. + ny_itemized_deductions_phase_out: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_wagering_losses_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_wagering_losses_deduction.yaml new file mode 100644 index 00000000000..127f2bf0a40 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_wagering_losses_deduction.yaml @@ -0,0 +1,51 @@ +- name: New York allows all gambling losses up to winnings in 2026. + absolute_error_margin: 0.01 + period: 2026 + input: + age: 40 + filing_status: SINGLE + employment_income: 50_000 + gambling_winnings: 20_000 + gambling_losses: 20_000 + ny_salt_deduction: 0 + state_code: NY + output: + # The federal deduction is 90% of the losses from 2026. + wagering_losses_deduction: 18_000 + ny_wagering_losses_deduction: 20_000 + ny_agi: 70_000 + ny_itemized_deductions: 20_000 + # 70,000 - 20,000 + ny_taxable_income: 50_000 + +- name: New York gambling losses are capped at winnings. + absolute_error_margin: 0.01 + period: 2025 + input: + gambling_winnings: 5_000 + gambling_losses: 8_000 + state_code: NY + output: + ny_wagering_losses_deduction: 5_000 + +- name: A dependent's gambling is not on the parent's New York return. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + parent: + age: 40 + child: + age: 17 + is_tax_unit_dependent: true + gambling_winnings: 10_000 + gambling_losses: 10_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: NY + output: + ny_wagering_losses_deduction: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/taxable_income/pa_total_taxable_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/taxable_income/pa_total_taxable_income.yaml index da3a50fb6cd..43ae1a25d96 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/taxable_income/pa_total_taxable_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/taxable_income/pa_total_taxable_income.yaml @@ -99,3 +99,58 @@ pa_total_taxable_income: 40_000 # 40,000 x 3.07% pa_income_tax_before_forgiveness: 1_228 + +- name: Pennsylvania taxes gambling winnings net of each spouse's own wagering costs. + absolute_error_margin: 0.01 + period: 2026 + input: + people: + head: + age: 65 + employment_income: 30_000 + gambling_winnings: 10_000 + gambling_losses: 8_000 + ssi: 0 + # Rebate income counts half of computed pa_ssp; pin it to zero. + pa_ssp: 0 + spouse: + age: 65 + gambling_winnings: 2_000 + gambling_losses: 5_000 + ssi: 0 + pa_ssp: 0 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + marital_units: + marital_unit: + members: [head, spouse] + households: + household: + members: [head, spouse] + state_code: PA + output: + adjusted_gross_income: 42_000 + pa_gambling_loss_offset: [8_000, 2_000] + # 30,000 + (10,000 - 8,000) + max(2,000 - 5,000, 0); the spouse's extra + # 3,000 of costs cannot reduce the head's winnings, and the federal 90% + # limit does not apply. + pa_total_taxable_income: 32_000 + pa_eligibility_income: 32_000 + # PA-1000 line 11b counts the same net winnings, once. + pa_property_tax_or_rent_rebate_income: 32_000 + # 3.07% x 32,000 + pa_income_tax_before_forgiveness: 982.40 + +- name: Pennsylvania taxes gross winnings when there are no losses. + absolute_error_margin: 0.01 + period: 2025 + input: + age: 40 + employment_income: 30_000 + gambling_winnings: 10_000 + state_code: PA + output: + pa_gambling_loss_offset: 0 + pa_total_taxable_income: 40_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.yaml index ec86404383c..a17857e90b2 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.yaml @@ -125,7 +125,6 @@ age: 65 ssi: 0 pa_ssp: 0 - gambling_winnings: 1_000 alimony_income: 2_000 workers_compensation: 3_000 disability_benefits: 4_000 @@ -141,7 +140,32 @@ members: [person1] state_code: PA output: - pa_property_tax_or_rent_rebate_income: 20_000 + pa_property_tax_or_rent_rebate_income: 19_000 + +- name: Case 7b, gambling winnings count once, net of losses up to the winnings. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 65 + ssi: 0 + pa_ssp: 0 + employment_income: 10_000 + gambling_winnings: 1_000 + gambling_losses: 400 + tax_units: + tax_unit: + members: [person1] + households: + household: + members: [person1] + state_code: PA + output: + # Federal AGI already holds the 1,000 of winnings (line 11b is not added + # again), and the 400 of losses come off. + adjusted_gross_income: 11_000 + pa_property_tax_or_rent_rebate_income: 10_600 - name: Case 8, CSRS exclusion is capped by each recipient's CSRS income. period: 2025 diff --git a/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/deductions/va_itemized_deductions.yaml b/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/deductions/va_itemized_deductions.yaml index d75f22585a0..370df6c7de4 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/deductions/va_itemized_deductions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/deductions/va_itemized_deductions.yaml @@ -67,6 +67,41 @@ output: va_itemized_deductions: 40_000 #20,000+20,000 +- name: Gambling losses are Virginia itemized deductions below the limitation threshold. + absolute_error_margin: 0.01 + period: 2025 + input: + filing_status: SINGLE + adjusted_gross_income: 100_000 + gambling_winnings: 20_000 + gambling_losses: 30_000 + charitable_deduction: 10_000 + state_and_local_sales_or_income_tax: 0 + real_estate_taxes: 0 + state_code: VA + output: + wagering_losses_deduction: 20_000 + va_itemized_deductions: 30_000 + +- name: Above the threshold gambling losses stay in the total and are not reduced. + absolute_error_margin: 0.01 + period: 2025 + input: + filing_status: SINGLE + adjusted_gross_income: 400_000 + gambling_winnings: 20_000 + gambling_losses: 30_000 + charitable_deduction: 10_000 + state_and_local_sales_or_income_tax: 0 + real_estate_taxes: 0 + state_code: VA + output: + wagering_losses_deduction: 20_000 + # Worksheet line 1: 30,000. Line 2 (gambling losses): 20,000. Line 3: + # 10,000, 80% of which is 8,000. Line 8: 3% x (400,000 - 332,700) = + # 2,019. Deduction: 30,000 - 2,019. + va_itemized_deductions: 27_981 + - name: The 2018 unlimited branch retains federally allowable repayment deductions period: 2018 input: diff --git a/policyengine_us/tests/policy/baseline/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.yaml b/policyengine_us/tests/policy/baseline/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.yaml index 671bdc0aa63..dea829beeaf 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.yaml @@ -90,7 +90,7 @@ input: state_code: VT tax_unit_itemizes: true - itemized_taxable_income_deductions: 12_850 + itemized_taxable_income_deductions: 42_850 wagering_losses_deduction: 30_000 standard_deduction: 6_350 salt_deduction: 4_850 @@ -98,7 +98,7 @@ medical_expense_deduction: 0 charitable_deduction: 0 output: - # IN-155 line 1 takes Schedule A line 29, so I = 12,850 + 30,000 = 42,850. + # The filer reports all 42,850 of itemized deductions on Schedule A line 29. # min(4,850, 42,850 - 6,350) + max(42,850 - 4,850 - 2.5 x 6,350, 0) # = 4,850 + 22,125 vt_2017_itemized_deduction_addback: 26_975 @@ -261,3 +261,33 @@ vt_2017_itemized_deduction_addback: 5_100 # 100,000 - 4,050 - 24,850 + 5,100 vt_taxable_income: 76_200 + +- name: 2017 Vermont single filer adds back gambling losses above the threshold. + period: 2017 + input: + people: + head: + age: 40 + employment_income: 60_000 + gambling_winnings: 30_000 + gambling_losses: 30_000 + tax_units: + tax_unit: + members: [head] + filing_status: SINGLE + salt_deduction: 0 + households: + household: + members: [head] + state_code: VT + output: + adjusted_gross_income: 90_000 + wagering_losses_deduction: 30_000 + itemized_taxable_income_deductions: 30_000 + standard_deduction: 6_350 + exemptions: 4_050 + taxable_income: 55_950 + # IN-155 line 9: 2.5 x 6,350 = 15,875; line 11: 30,000 - 15,875. + vt_2017_itemized_deduction_addback: 14_125 + # Federal taxable income 55,950 + IN-155 addback 14,125. + vt_taxable_income: 70_075 diff --git a/policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_itemized_deduction_credit.yaml b/policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_itemized_deduction_credit.yaml index e26cda776f8..6b04d730679 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_itemized_deduction_credit.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_itemized_deduction_credit.yaml @@ -316,3 +316,17 @@ deductible_mortgage_insurance_premiums: 1_800 interest_deduction: 11_800 wi_itemized_deduction_credit_potential: 0 + +- name: Gambling losses do not count for the Wisconsin itemized deduction credit. + absolute_error_margin: 0.01 + period: 2025 + input: + gambling_winnings: 20_000 + gambling_losses: 20_000 + charitable_deduction: 15_000 + wi_standard_deduction: 10_000 + state_code: WI + output: + wagering_losses_deduction: 20_000 + # 5% x (15,000 - 10,000); the 20,000 of gambling losses is left out. + wi_itemized_deduction_credit_potential: 250 diff --git a/policyengine_us/tests/policy/baseline/household/income/person/market_income.yaml b/policyengine_us/tests/policy/baseline/household/income/person/market_income.yaml index d27093f57e1..e6da2fb30fe 100644 --- a/policyengine_us/tests/policy/baseline/household/income/person/market_income.yaml +++ b/policyengine_us/tests/policy/baseline/household/income/person/market_income.yaml @@ -112,3 +112,15 @@ other_net_gain_person: 7_500 other_net_gain_gross_income: 7_500 market_income: 7_500 + +- name: Gambling winnings are market income before losses. + period: 2026 + input: + gambling_winnings: 5_000 + gambling_losses: 3_000 + output: + # Gross income counts the 5,000 of winnings in full, and filers deduct the + # losses only as an itemized deduction. + market_income: 5_000 + household_market_income: 5_000 + spm_unit_market_income: 5_000 diff --git a/policyengine_us/tests/policy/contrib/crfb/senior_deduction_extension.yaml b/policyengine_us/tests/policy/contrib/crfb/senior_deduction_extension.yaml index 0596d5075fb..aa683bb68bb 100644 --- a/policyengine_us/tests/policy/contrib/crfb/senior_deduction_extension.yaml +++ b/policyengine_us/tests/policy/contrib/crfb/senior_deduction_extension.yaml @@ -29,6 +29,38 @@ # additional_senior_deduction: 12_000 (from extension) taxable_income_deductions_if_itemizing: 47_000 +- name: Senior deduction extension counts wagering losses once when itemizing in 2029. + absolute_error_margin: 0.01 + period: 2029 + reforms: policyengine_us.reforms.crfb.senior_deduction_extension.senior_deduction_extension + input: + gov.contrib.crfb.senior_deduction_extension.applies: true + age: 70 + filing_status: SINGLE + employment_income: 30_000 + gambling_winnings: 30_000 + gambling_losses: 30_000 + salt_deduction: 0 + medical_expense_deduction: 0 + charitable_deduction: 0 + interest_deduction: 0 + casualty_loss_deduction: 0 + misc_deduction: 0 + qualified_business_income_deduction: 0 + state_code: TX + output: + adjusted_gross_income: 60_000 + # 90% x 30,000 losses = 27,000, below 30,000 winnings. + wagering_losses_deduction: 27_000 + itemized_taxable_income_deductions: 27_000 + # AGI falls below the 75,000 phase-out threshold. + additional_senior_deduction: 6_000 + # 27,000 itemized + 6,000 senior deduction = 33,000. + taxable_income_deductions_if_itemizing: 33_000 + tax_unit_itemizes: true + # 60,000 - 33,000 = 27,000. + taxable_income: 27_000 + - name: Integration test - senior deduction included in taxable income deductions when not itemizing in 2029 period: 2029 reforms: policyengine_us.reforms.crfb.senior_deduction_extension.senior_deduction_extension diff --git a/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml b/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml index aacb657d111..ba60f22ad0a 100644 --- a/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml +++ b/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml @@ -128,3 +128,22 @@ # (0.8 x 10,000 = 8,000) and 3% of AGI over $220,650 (53,380.50). # 10,000 + 49,900 - 8,000 mn_itemized_deductions: 51_900 + +- name: Minnesota HF1938 repeal exempts wagering losses from the itemized deduction offset. + absolute_error_margin: 0.01 + period: 2023 + reforms: policyengine_us.reforms.states.mn.walz.mn_walz_hf1938.mn_walz_hf1938 + input: + gov.contrib.states.mn.walz.hf1938.repeal: true + age: 40 + filing_status: SINGLE + employment_income: 1_900_000 + gambling_winnings: 100_000 + gambling_losses: 50_000 + salt_deduction: 0 + state_code: MN + output: + adjusted_gross_income: 2_000_000 + wagering_losses_deduction: 50_000 + # All 50,000 of itemized deductions qualify for the exemption. + mn_itemized_deductions: 50_000 diff --git a/policyengine_us/tests/test_household_spm_resource_parity.py b/policyengine_us/tests/test_household_spm_resource_parity.py index 84eb058ad20..03be9b7123b 100644 --- a/policyengine_us/tests/test_household_spm_resource_parity.py +++ b/policyengine_us/tests/test_household_spm_resource_parity.py @@ -114,6 +114,9 @@ "illicit_income": "illicit_income", "taxable_retirement_distributions": "retirement_distributions", "miscellaneous_income": "miscellaneous_income", + # Winnings before losses. Filers deduct losses only as an itemized + # deduction, and neither net income total subtracts them. + "gambling_winnings": "gambling_winnings", "ak_permanent_fund_dividend": "ak_permanent_fund_dividend", "taxable_alimony_income": "alimony_income", "military_retirement_income": "military_retirement_income", @@ -130,6 +133,7 @@ } # Market income inputs: the entity each sits on, and whether it can be a loss. +GAMBLING_WINNINGS = ("gambling_winnings", "person", False) MARKET_SOURCES = [ ("partnership_income", "person", True), ("s_corp_income", "person", True), @@ -137,6 +141,7 @@ ("non_sch_d_capital_gains", "person", False), ("other_net_gain", "tax_unit", True), ("disability_benefits", "person", False), + GAMBLING_WINNINGS, ] # Cash payments, with the state that pays each and a year it pays. @@ -318,6 +323,7 @@ def market_situation(name, entity, amount, year=2026, state="TX"): ) @example(source=MARKET_SOURCES[0], magnitude=287_010, loss=False) @example(source=MARKET_SOURCES[0], magnitude=40_000, loss=True) +@example(source=GAMBLING_WINNINGS, magnitude=30_000, loss=False) def test_market_income_moves_both_totals_dollar_for_dollar(source, magnitude, loss): name, entity, can_be_loss = source amount = -magnitude if loss and can_be_loss else magnitude @@ -335,6 +341,9 @@ def test_market_income_moves_both_totals_dollar_for_dollar(source, magnitude, lo state=st.sampled_from(STATES), ) @example(source=MARKET_SOURCES[0], amount=287_010, state="TN") +# Texas taxes no income; Minnesota taxes the winnings too. +@example(source=GAMBLING_WINNINGS, amount=30_000, state="TX") +@example(source=GAMBLING_WINNINGS, amount=30_000, state="MN") def test_cash_income_never_lowers_spm_net_income(source, amount, state): """The tax on a source never exceeds the source in SPM resources. diff --git a/policyengine_us/tests/test_nd_renters_refund_income_exclusions.py b/policyengine_us/tests/test_nd_renters_refund_income_exclusions.py index 696a9d785f5..17e7748fa0b 100644 --- a/policyengine_us/tests/test_nd_renters_refund_income_exclusions.py +++ b/policyengine_us/tests/test_nd_renters_refund_income_exclusions.py @@ -89,6 +89,7 @@ "illicit_income": "illicit_income", "farm_operations_income": "farm_operations_income", "miscellaneous_income": "miscellaneous_income", + "gambling_winnings": "gambling_winnings", "military_retirement_income": "military_retirement_income", "ak_permanent_fund_dividend": "ak_permanent_fund_dividend", } @@ -377,6 +378,7 @@ def shared_sources(draw): "long_term_capital_gains": draw(amount), "rental_income": draw(amount), "miscellaneous_income": draw(amount), + "gambling_winnings": draw(amount), "military_retirement_pay": draw(amount), } # Leave out a random subset, so zero amounts and missing inputs both occur. diff --git a/policyengine_us/tests/test_vt_2017_taxable_income_properties.py b/policyengine_us/tests/test_vt_2017_taxable_income_properties.py index 1cceb17a680..3e549065f2e 100644 --- a/policyengine_us/tests/test_vt_2017_taxable_income_properties.py +++ b/policyengine_us/tests/test_vt_2017_taxable_income_properties.py @@ -80,9 +80,13 @@ def complete_addback_unit(draw): unit["salt_deduction"] + unit["medical_expense_deduction"] + unit["charitable_deduction"] + + unit["wagering_losses_deduction"] + unit.pop("other_itemized") ) - ceiling = 0.8 * max(total - unit["medical_expense_deduction"], 0) + ceiling = 0.8 * max( + total - unit["medical_expense_deduction"] - unit["wagering_losses_deduction"], + 0, + ) reduction = round(unit.pop("reduction_share") * ceiling) unit["itemized_taxable_income_deductions_reduction"] = reduction unit["itemized_taxable_income_deductions"] = total - reduction @@ -108,9 +112,7 @@ def complete_addback_unit(draw): def itemized_total(unit): - return ( - unit["itemized_taxable_income_deductions"] + unit["wagering_losses_deduction"] - ) + return unit["itemized_taxable_income_deductions"] def in155_line_11(unit): @@ -121,10 +123,7 @@ def in155_line_11(unit): # Worksheet: L8 total deductions, L9 deductions not limited at the # federal level (medical and wagering losses here), L10 total deductions # after limitations. - l8 = ( - unit["total_itemized_taxable_income_deductions"] - + unit["wagering_losses_deduction"] - ) + l8 = unit["total_itemized_taxable_income_deductions"] l9 = unit["medical_expense_deduction"] + unit["wagering_losses_deduction"] l10 = itemized_total(unit) ratio = (l10 - l9) / (l8 - l9) if l8 > l9 else 1.0 diff --git a/policyengine_us/tests/unit/test_gambling_winnings_and_losses_properties.py b/policyengine_us/tests/unit/test_gambling_winnings_and_losses_properties.py new file mode 100644 index 00000000000..3707061a2fc --- /dev/null +++ b/policyengine_us/tests/unit/test_gambling_winnings_and_losses_properties.py @@ -0,0 +1,215 @@ +"""Properties of the federal treatment of gambling winnings and losses. + +26 U.S.C. 61(a) puts gambling winnings in gross income (Schedule 1 line 8b). +26 U.S.C. 165(d) lets an itemizer deduct wagering losses up to wagering gains +(Schedule A line 16), and P.L. 119-21 section 70114 allows 90% of the losses +for taxable years beginning after 2025. A dependent's gambling belongs on the +dependent's own return. + +YAML cases check specific households. These tests reuse a generated grid to +check relations between households at every point of winnings x losses x +other itemized deductions. Each year uses one vectorized simulation; the grid +point with no gambling is the baseline for the others. + +- The deduction equals min(share x losses, winnings), with the share restated + here from the statute (1 through 2025, 0.9 from 2026). +- It is non-negative, never exceeds the winnings or the share of losses, and + never falls as either rises. +- Adjusted gross income rises by exactly the winnings. +- The deduction is in itemized deductions once, and an itemizer's taxable + income is AGI less those deductions. +- Income tax never falls as winnings rise and never rises as losses rise. +- Gambling never lowers taxable income or income tax, including when winnings + equal losses. It raises taxable income by at most the winnings, and by + exactly the winnings less the deduction for a filer who itemizes either way. +- A dependent's winnings and losses change nothing on the filer's return. + +Before PolicyEngine/policyengine-us#9637 was fixed, gross income left the +winnings out while itemizers still deducted the losses, so gambling lowered +tax; the deduction had no 90% share; and it counted a dependent's gambling. +""" + +import itertools + +import numpy as np +import pytest + +from policyengine_us import Simulation + +AMOUNTS = [0, 1, 999, 5_000, 10_000, 25_000, 30_000, 250_000] +# A charitable deduction of 30,000 exceeds every standard deduction, so those +# filers itemize with or without gambling. +OTHER_ITEMIZED = [0, 30_000] +AXES = [AMOUNTS, AMOUNTS, OTHER_ITEMIZED] +GRID = list(itertools.product(*AXES)) +SHAPE = tuple(len(axis) for axis in AXES) +WINNINGS, LOSSES, OTHER = ( + np.array([point[i] for point in GRID], dtype=float) for i in range(len(AXES)) +) +# Winnings and losses of a dependent child; the first household has none. +DEPENDENT_GAMBLING = [ + (0, 0), + (10_000, 10_000), + (30_000, 25_000), + (250_000, 0), + (5_000, 250_000), +] +YEARS = [2024, 2025, 2026] +# Share of wagering losses section 165(d) allows (P.L. 119-21 section 70114). +LOSS_SHARE = {2024: 1.0, 2025: 1.0, 2026: 0.9} +WAGES = 60_000 +VARIABLES = [ + "adjusted_gross_income", + "wagering_losses_deduction", + "itemized_taxable_income_deductions", + "tax_unit_itemizes", + "taxable_income", + "income_tax", +] +# PolicyEngine computes in float32, whose spacing near 300,000 is 3 cents. +ATOL = 0.05 + + +def calculate(year): + """Grid filers, then parents whose dependent child has the gambling.""" + situation = {"people": {}, "tax_units": {}, "households": {}} + + def add_household(name, members, other_itemized): + situation["tax_units"][f"t_{name}"] = { + "members": members, + "charitable_deduction": {year: float(other_itemized)}, + # No estimated sales tax deduction, so deductions are exact. + "salt_deduction": {year: 0}, + } + situation["households"][f"h_{name}"] = { + "members": members, + "state_code": {year: "TX"}, + } + + for i, (winnings, losses, other) in enumerate(GRID): + situation["people"][f"filer_{i}"] = { + "age": {year: 40}, + "employment_income": {year: WAGES}, + "gambling_winnings": {year: winnings}, + "gambling_losses": {year: losses}, + } + add_household(f"grid_{i}", [f"filer_{i}"], other) + for j, (winnings, losses) in enumerate(DEPENDENT_GAMBLING): + situation["people"][f"parent_{j}"] = { + "age": {year: 40}, + "employment_income": {year: WAGES}, + } + situation["people"][f"child_{j}"] = { + "age": {year: 17}, + "gambling_winnings": {year: winnings}, + "gambling_losses": {year: losses}, + } + add_household(f"dependent_{j}", [f"parent_{j}", f"child_{j}"], 0) + simulation = Simulation(situation=situation) + values = { + variable: np.asarray(simulation.calculate(variable, year)) + for variable in VARIABLES + } + grid = {variable: value[: len(GRID)] for variable, value in values.items()} + dependents = {variable: value[len(GRID) :] for variable, value in values.items()} + return grid, dependents + + +@pytest.fixture(scope="module") +def results(): + return {year: calculate(year) for year in YEARS} + + +def baseline(values): + """Each grid point's value with no gambling and the same other deductions.""" + table = values.reshape(SHAPE) + return np.broadcast_to(table[:1, :1, :], SHAPE).reshape(-1) + + +@pytest.mark.parametrize("year", YEARS) +def test_deduction_is_the_section_165d_amount(results, year): + grid, _ = results[year] + np.testing.assert_allclose( + grid["wagering_losses_deduction"], + np.minimum(LOSS_SHARE[year] * LOSSES, WINNINGS), + atol=ATOL, + ) + + +@pytest.mark.parametrize("year", YEARS) +def test_deduction_is_bounded_and_monotone(results, year): + grid, _ = results[year] + deduction = grid["wagering_losses_deduction"] + assert np.all(deduction >= 0) + assert np.all(deduction <= WINNINGS + ATOL) + assert np.all(deduction <= LOSS_SHARE[year] * LOSSES + ATOL) + table = deduction.reshape(SHAPE) + assert np.all(np.diff(table, axis=0) >= -ATOL), "falls as winnings rise" + assert np.all(np.diff(table, axis=1) >= -ATOL), "falls as losses rise" + + +@pytest.mark.parametrize("year", YEARS) +def test_winnings_are_in_adjusted_gross_income(results, year): + grid, _ = results[year] + np.testing.assert_allclose( + grid["adjusted_gross_income"], WAGES + WINNINGS, atol=ATOL + ) + + +@pytest.mark.parametrize("year", YEARS) +def test_deduction_is_in_itemized_deductions_once(results, year): + grid, _ = results[year] + deduction = grid["wagering_losses_deduction"] + # No income here reaches the section 68 limitation. + np.testing.assert_allclose( + grid["itemized_taxable_income_deductions"], OTHER + deduction, atol=ATOL + ) + itemizes = grid["tax_unit_itemizes"] + assert itemizes.any() and not itemizes.all() + np.testing.assert_allclose( + grid["taxable_income"][itemizes], + (WAGES + WINNINGS - OTHER - deduction)[itemizes], + atol=ATOL, + ) + + +@pytest.mark.parametrize("year", YEARS) +def test_income_tax_is_monotone_in_winnings_and_losses(results, year): + grid, _ = results[year] + table = grid["income_tax"].reshape(SHAPE) + assert np.all(np.diff(table, axis=0) >= -ATOL), "falls as winnings rise" + assert np.all(np.diff(table, axis=1) <= ATOL), "rises as losses rise" + + +@pytest.mark.parametrize("year", YEARS) +def test_gambling_never_lowers_taxable_income_or_income_tax(results, year): + grid, _ = results[year] + change = grid["taxable_income"] - baseline(grid["taxable_income"]) + assert np.all(change >= -ATOL), "gambling lowered taxable income" + assert np.all(change <= WINNINGS + ATOL), "taxed more than the winnings" + tax_change = grid["income_tax"] - baseline(grid["income_tax"]) + assert np.all(tax_change >= -ATOL), "gambling lowered income tax" + # Equal winnings and losses are the case the issue reported. + equal = WINNINGS == LOSSES + assert np.all(tax_change[equal] >= -ATOL) + # A filer who itemizes either way pays tax on the winnings less the + # deduction. + itemizes_either_way = OTHER > 0 + assert np.all(grid["tax_unit_itemizes"][itemizes_either_way]) + net_gain = WINNINGS - grid["wagering_losses_deduction"] + np.testing.assert_allclose( + change[itemizes_either_way], net_gain[itemizes_either_way], atol=ATOL + ) + + +@pytest.mark.parametrize("year", YEARS) +def test_a_dependents_gambling_does_not_change_the_filers_return(results, year): + _, dependents = results[year] + for variable in VARIABLES: + values = dependents[variable] + # The first household's child has no gambling. + np.testing.assert_allclose( + values.astype(float), float(values[0]), atol=ATOL, err_msg=variable + ) + assert np.all(dependents["wagering_losses_deduction"] == 0) + assert np.all(dependents["adjusted_gross_income"] == WAGES) diff --git a/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_before_itemized_deductions.py b/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_before_itemized_deductions.py index 8d30e3f22d0..6db66cae730 100644 --- a/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_before_itemized_deductions.py +++ b/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/taxable_income_before_itemized_deductions.py @@ -27,16 +27,13 @@ def formula(tax_unit, period, parameters): agi = tax_unit("adjusted_gross_income", period) exemptions = tax_unit("exemptions", period) # Section 68(a)(2) adds the itemized deductions back to taxable - # income, so neither they nor wagering losses (a section 165(d) - # itemized deduction, listed apart from the other itemized - # deductions) reduce this amount. Everything else an itemizer - # deducts does: the section 199A, 224 and 225 deductions, the - # section 151(d)(5)(C) senior deduction and qualified passenger + # income, so they don't reduce this amount. Everything else an + # itemizer deducts does: the section 199A, 224 and 225 deductions, + # the section 151(d)(5)(C) senior deduction and qualified passenger # vehicle loan interest. - itemized = ["itemized_taxable_income_deductions", "wagering_losses_deduction"] other_deductions = [ deduction for deduction in p.deductions_if_itemizing - if deduction not in itemized + if deduction != "itemized_taxable_income_deductions" ] return agi - exemptions - add(tax_unit, period, other_deductions) diff --git a/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.py b/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.py index db1e3293763..d1e221ac6c8 100644 --- a/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.py +++ b/policyengine_us/variables/gov/irs/income/taxable_income/deductions/itemizing/wagering_losses_deduction.py @@ -6,11 +6,23 @@ class wagering_losses_deduction(Variable): entity = TaxUnit label = "Wagering losses deduction" unit = USD - documentation = "Deduction from taxable income for gambling losses, capped at gambling winnings." + documentation = ( + "Itemized deduction for gambling losses (Schedule A line 16): the " + "allowed share of losses, up to gambling winnings." + ) definition_period = YEAR - reference = "https://www.law.cornell.edu/uscode/text/26/165#d" + reference = ( + "https://uscode.house.gov/view.xhtml?req=granuleid:USC-prelim-title26-section165&num=0&edition=prelim", + # P.L. 119-21 sec. 70114: 90% of losses from 2026 + "https://www.govinfo.gov/content/pkg/PLAW-119publ21/pdf/PLAW-119publ21.pdf#page=96", + "https://www.irs.gov/pub/irs-prior/i1040sca--2024.pdf#page=11", + ) def formula(tax_unit, period, parameters): - gambling_losses = add(tax_unit, period, ["gambling_losses"]) - gambling_winnings = add(tax_unit, period, ["gambling_winnings"]) - return min_(gambling_losses, gambling_winnings) + p = parameters(period).gov.irs.deductions.itemized.wagering_losses + # Losses are deductible only against gambling winnings reported on + # the return. A dependent's gambling is on the dependent's own + # return, as irs_gross_income leaves their winnings off this one. + losses = tax_unit_non_dep_add(tax_unit, period, ["gambling_losses"]) + winnings = tax_unit_non_dep_add(tax_unit, period, ["gambling_winnings"]) + return min_(p.rate * losses, winnings) diff --git a/policyengine_us/variables/gov/states/al/tax/income/al_gambling_winnings.py b/policyengine_us/variables/gov/states/al/tax/income/al_gambling_winnings.py new file mode 100644 index 00000000000..377b8043315 --- /dev/null +++ b/policyengine_us/variables/gov/states/al/tax/income/al_gambling_winnings.py @@ -0,0 +1,24 @@ +from policyengine_us.model_api import * + + +class al_gambling_winnings(Variable): + value_type = float + entity = Person + label = "Alabama gambling winnings" + unit = USD + documentation = ( + "Gambling winnings reported on the Alabama return of the tax unit's " + "head or spouse. A dependent who must file reports their own " + "winnings on their own return." + ) + definition_period = YEAR + reference = ( + # 2025 Form 40 booklet: who must file, and taxable income + # PDF pages 5, 7 + "https://www.revenue.alabama.gov/wp-content/uploads/2026/01/25f40bk.pdf#page=5", + ) + defined_for = StateCode.AL + + def formula(person, period, parameters): + is_dependent = person("is_tax_unit_dependent", period) + return ~is_dependent * person("gambling_winnings", period) diff --git a/policyengine_us/variables/gov/states/al/tax/income/deductions/itemized/al_gambling_loss_deduction.py b/policyengine_us/variables/gov/states/al/tax/income/deductions/itemized/al_gambling_loss_deduction.py new file mode 100644 index 00000000000..f13bd487aee --- /dev/null +++ b/policyengine_us/variables/gov/states/al/tax/income/deductions/itemized/al_gambling_loss_deduction.py @@ -0,0 +1,31 @@ +from policyengine_us.model_api import * + + +class al_gambling_loss_deduction(Variable): + value_type = float + entity = TaxUnit + label = "Alabama gambling loss deduction" + unit = USD + documentation = ( + "Alabama itemized deduction for gambling losses, to the extent of " + "gambling winnings and not subject to the 2% limit on miscellaneous " + "deductions. Alabama does not follow the federal 90% limit that " + "starts in 2026." + ) + definition_period = YEAR + reference = ( + # 2025 Form 40 booklet, Schedule A line 25 + "https://www.revenue.alabama.gov/wp-content/uploads/2026/01/25f40bk.pdf#page=21", + # Ala. Admin. Code r. 810-3-17-.01 + "https://admincode.legislature.state.al.us/api/rule/810-3-17-.01", + # ALDOR summary of P.L. 119-21: section 165(d), "Tied to Federal: No" + # PDF pages 9-10 + "https://www.revenue.alabama.gov/wp-content/uploads/2025/11/OBBBA-Executive-Summary_FinalwAppendixA_10.31.25.pdf#page=9", + ) + defined_for = StateCode.AL + + def formula(tax_unit, period, parameters): + # Dependents report their gambling on their own returns. + losses = tax_unit_non_dep_add(tax_unit, period, ["gambling_losses"]) + winnings = tax_unit_non_dep_add(tax_unit, period, ["gambling_winnings"]) + return min_(losses, winnings) diff --git a/policyengine_us/variables/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions_pre_limitation.py b/policyengine_us/variables/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions_pre_limitation.py index 9e7a5fc77b5..f6167828bae 100644 --- a/policyengine_us/variables/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions_pre_limitation.py +++ b/policyengine_us/variables/gov/states/ca/tax/income/deductions/itemized/ca_itemized_deductions_pre_limitation.py @@ -20,7 +20,7 @@ class ca_itemized_deductions_pre_limitation(Variable): def formula(tax_unit, period, parameters): # Exclude the replaced federal amounts before summation, so changes - # to federal charity/misc/casualty rules cannot cause cancellation + # to federal charity/misc/casualty/wagering rules cannot cause cancellation # errors. Schedule CA line 15 replaces the federal casualty loss, # which is limited to declared disasters from 2018, with California's # own. @@ -39,6 +39,7 @@ def formula(tax_unit, period, parameters): "charitable_deduction", "charitable_deduction_for_non_itemizers", "misc_deduction", + "wagering_losses_deduction", "casualty_loss_deduction", ) ] @@ -47,6 +48,7 @@ def formula(tax_unit, period, parameters): "real_estate_taxes", "ca_charitable_deduction", "ca_misc_deduction", + "ca_wagering_losses_deduction", "ca_casualty_loss_deduction", ] # Federal investment interest and mortgage insurance premiums are diff --git a/policyengine_us/variables/gov/states/ca/tax/income/deductions/itemized/ca_wagering_losses_deduction.py b/policyengine_us/variables/gov/states/ca/tax/income/deductions/itemized/ca_wagering_losses_deduction.py new file mode 100644 index 00000000000..a2e8638a613 --- /dev/null +++ b/policyengine_us/variables/gov/states/ca/tax/income/deductions/itemized/ca_wagering_losses_deduction.py @@ -0,0 +1,34 @@ +from policyengine_us.model_api import * + + +class ca_wagering_losses_deduction(Variable): + value_type = float + entity = TaxUnit + label = "California wagering losses deduction" + unit = USD + documentation = ( + "California itemized deduction for gambling losses, up to gambling " + "winnings. California does not apply the federal 90% limit that " + "starts in 2026. California Lottery winnings are exempt and " + "California Lottery losses are not deductible; the gambling inputs " + "do not separate them, so they are treated as other gambling." + ) + definition_period = YEAR + reference = ( + # 2025 Form 540 booklet: Schedule CA (540) line 8b (California + # Lottery winnings), Part II line 16 (gambling losses) and the + # Itemized Deductions Worksheet + # PDF pages 62, 67-68 + "https://www.ftb.ca.gov/forms/2025/2025-540-booklet.pdf#page=62", + # California conforms to the Internal Revenue Code as of January 1, + # 2025, before P.L. 119-21. + "https://www.ftb.ca.gov/tax-pros/law/conformity.html", + ) + defined_for = StateCode.CA + + def formula(tax_unit, period, parameters): + # 26 U.S.C. 165(d) before P.L. 119-21: all losses, up to the gains. + # Dependents report their gambling on their own returns. + losses = tax_unit_non_dep_add(tax_unit, period, ["gambling_losses"]) + winnings = tax_unit_non_dep_add(tax_unit, period, ["gambling_winnings"]) + return min_(losses, winnings) diff --git a/policyengine_us/variables/gov/states/dc/tax/income/deductions/dc_itemized_deductions.py b/policyengine_us/variables/gov/states/dc/tax/income/deductions/dc_itemized_deductions.py index 93343decc14..e50ec510f36 100644 --- a/policyengine_us/variables/gov/states/dc/tax/income/deductions/dc_itemized_deductions.py +++ b/policyengine_us/variables/gov/states/dc/tax/income/deductions/dc_itemized_deductions.py @@ -10,6 +10,8 @@ class dc_itemized_deductions(Variable): reference = ( "https://otr.cfo.dc.gov/sites/default/files/dc/sites/otr/publication/attachments/52926_D-40_12.21.21_Final_Rev011122.pdf#page=18", "https://otr.cfo.dc.gov/sites/default/files/dc/sites/otr/publication/attachments/2022_D-40_Booklet_Final_blk_01_23_23_Ordc.pdf#page=17", + # D.C. Code 47-1803.03(b-4)(2)(B): deductions outside the phase-out + "https://code.dccouncil.gov/us/dc/council/code/sections/47-1803.03", ) defined_for = StateCode.DC @@ -24,6 +26,8 @@ def formula(tax_unit, period, parameters): EXEMPT_ITEMS = [ "medical_expense_deduction", "casualty_loss_deduction", + # Losses described in section 165(d) of the Internal Revenue Code. + "wagering_losses_deduction", ] exempt_deds = add(tax_unit, period, EXEMPT_ITEMS) nonexempt_deds = max_(0, dc_itm_deds - exempt_deds) diff --git a/policyengine_us/variables/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.py b/policyengine_us/variables/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.py index 44d1a83f168..33cfee8d1e5 100644 --- a/policyengine_us/variables/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.py +++ b/policyengine_us/variables/gov/states/de/tax/income/deductions/itemized/de_itemized_deductions_indv.py @@ -10,7 +10,11 @@ "charitable_deduction": ["total_charitable_donations"], "interest_deduction": ["deductible_interest_expense"], "casualty_loss_deduction": ["casualty_loss"], + "wagering_losses_deduction": ["gambling_losses"], } +# Deductions that count only the head's and spouse's expenses, so a +# dependent's expense leaves nothing unallocated. +FILER_ONLY_DEDUCTIONS = ("wagering_losses_deduction",) def _share(numerator, denominator): @@ -88,6 +92,8 @@ def formula(person, period, parameters): ) * _share(filer_premium_expense, total_premium_expense) amount = max_(amount - premiums, 0) expense = add(person, period, expense_sources) + if deduction in FILER_ONLY_DEDUCTIONS: + expense = head_or_spouse * expense total_expense = person.tax_unit.sum(expense) allocated += amount * _share(head_or_spouse * expense, total_expense) # Prorate what could not be specifically allocated. diff --git a/policyengine_us/variables/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.py b/policyengine_us/variables/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.py index 6c503d3bace..17911c7d125 100644 --- a/policyengine_us/variables/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.py +++ b/policyengine_us/variables/gov/states/hi/tax/income/deductions/itemized/hi_itemized_deductions_reduction.py @@ -22,8 +22,8 @@ def formula(tax_unit, period, parameters): p = parameters(period).gov.states.hi.tax.income.deductions.itemized total_deductions = tax_unit("hi_total_itemized_deductions", period) # Lines 2 to 5: 80% of the deductions other than medical expenses, - # investment interest and casualty losses. If those deductions are not - # less than the total, the deduction is not limited. + # investment interest, casualty losses and gambling losses. If those + # deductions are not less than the total, the deduction is not limited. excluded_deductions = add(tax_unit, period, p.limitation.excluded_deductions) limited_deductions = max_(0, total_deductions - excluded_deductions) deduction_based_reduction = ( diff --git a/policyengine_us/variables/gov/states/ia/tax/income/net_income/ia_gambling_winnings.py b/policyengine_us/variables/gov/states/ia/tax/income/net_income/ia_gambling_winnings.py new file mode 100644 index 00000000000..a9d014f7c58 --- /dev/null +++ b/policyengine_us/variables/gov/states/ia/tax/income/net_income/ia_gambling_winnings.py @@ -0,0 +1,24 @@ +from policyengine_us.model_api import * + + +class ia_gambling_winnings(Variable): + value_type = float + entity = Person + label = "Iowa gambling winnings" + unit = USD + documentation = ( + "Gambling winnings reported on IA 1040 line 13 by the tax unit's " + "head or spouse, for the returns before 2023 that start from Iowa " + "gross income. A dependent reports their own winnings on their own " + "return." + ) + definition_period = YEAR + reference = ( + "https://revenue.iowa.gov/sites/default/files/2022-01/IA1040%2841-001%29.pdf#page=1", + "https://revenue.iowa.gov/sites/default/files/2023-01/2022IA1040%2841001%29.pdf#page=1", + ) + defined_for = StateCode.IA + + def formula(person, period, parameters): + is_dependent = person("is_tax_unit_dependent", period) + return ~is_dependent * person("gambling_winnings", period) diff --git a/policyengine_us/variables/gov/states/ks/tax/income/deductions/ks_itemized_deductions.py b/policyengine_us/variables/gov/states/ks/tax/income/deductions/ks_itemized_deductions.py index 6c87171e4de..7a82cfeb1cb 100644 --- a/policyengine_us/variables/gov/states/ks/tax/income/deductions/ks_itemized_deductions.py +++ b/policyengine_us/variables/gov/states/ks/tax/income/deductions/ks_itemized_deductions.py @@ -19,8 +19,9 @@ def formula(tax_unit, period, parameters): # K.S.A. 79-32,120(a) limits the Kansas itemized deduction to four # federal categories, each at a year-specific share. Other federal # itemized deductions (investment interest, casualty and theft losses, - # miscellaneous deductions) do not count. Property taxes are not limited - # by the federal cap on state and local taxes. + # wagering losses and miscellaneous deductions) do not count. + # Property taxes are not limited by the federal cap on state and + # local taxes. p = parameters(period).gov.states.ks.tax.income.deductions.itemized.rate charitable = tax_unit("charitable_deduction", period) medical = tax_unit("medical_expense_deduction", period) diff --git a/policyengine_us/variables/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.py b/policyengine_us/variables/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.py index 94e39ee398d..1baa702909c 100644 --- a/policyengine_us/variables/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.py +++ b/policyengine_us/variables/gov/states/ky/tax/income/deductions/ky_itemized_deductions_unit.py @@ -11,11 +11,23 @@ class ky_itemized_deductions_unit(Variable): "https://revenue.ky.gov/Forms/Form%20740%20Schedule%20A%202022.pdf", "https://law.justia.com/codes/kentucky/2022/chapter-141/section-141-019/", # (2)(i) "https://apps.legislature.ky.gov/law/statutes/statute.aspx?id=57914#page=4", # (2)(j) + # 2019 Ky. Acts ch. 151, sec. 37: wagering losses allowed from 2019 + # PDF pages 60, 112 + "https://apps.legislature.ky.gov/law/acts/19RS/documents/0151.pdf#page=60", ) defined_for = StateCode.KY - adds = ["itemized_deductions_less_salt"] - subtracts = [ - "medical_expense_deduction", - "ky_disallowed_second_residence_interest", - ] + def formula(tax_unit, period, parameters): + p = parameters(period).gov.states.ky.tax.income.deductions.itemized + deductions = add(tax_unit, period, ["itemized_deductions_less_salt"]) - add( + tax_unit, + period, + [ + "medical_expense_deduction", + "ky_disallowed_second_residence_interest", + ], + ) + if p.wagering_losses_allowed: + return deductions + # KRS 141.019(2) excluded every section 165 loss for 2018. + return deductions - tax_unit("wagering_losses_deduction", period) diff --git a/policyengine_us/variables/gov/states/mi/tax/income/deductions/mi_wagering_losses_deduction.py b/policyengine_us/variables/gov/states/mi/tax/income/deductions/mi_wagering_losses_deduction.py new file mode 100644 index 00000000000..40c384104f1 --- /dev/null +++ b/policyengine_us/variables/gov/states/mi/tax/income/deductions/mi_wagering_losses_deduction.py @@ -0,0 +1,30 @@ +from policyengine_us.model_api import * + + +class mi_wagering_losses_deduction(Variable): + value_type = float + entity = TaxUnit + label = "Michigan wagering losses deduction" + unit = USD + documentation = ( + "Michigan subtraction, from 2021, for the wagering losses a casual " + "gambler deducts as an itemized deduction on the federal return." + ) + definition_period = YEAR + reference = ( + # 2021 PA 168, MCL 206.30 + "https://www.legislature.mi.gov/Laws/MCL?objectName=mcl-206-30", + "https://www.michigan.gov/taxes/rep-legal/notices/notice-new-tax-treatment-of-wagering-losses-for-casual-gamblers-under-the-michigan-income-tax-act", + # 2025 MI-1040 booklet, Schedule 1 line 23 + "https://www.michigan.gov/taxes/-/media/Project/Websites/taxes/Forms/IIT/TY2025/MI-1040-Book.pdf#page=16", + # 2025 Taxpayer Assistance Manual: the federal 90% limit carries over + "https://www.michigan.gov/taxes/-/media/Project/Websites/taxes/Tax-Professional/2025-Taxpayer-Assistance-Manual.pdf#page=99", + ) + defined_for = StateCode.MI + + def formula(tax_unit, period, parameters): + # Only the losses claimed as an itemized deduction on the federal + # return count, so a filer who takes the federal standard deduction + # has none. + itemizes = tax_unit("tax_unit_itemizes", period) + return itemizes * tax_unit("wagering_losses_deduction", period) 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 af304f84ea2..78f81bb5b9f 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 @@ -56,6 +56,8 @@ def formula(tax_unit, period, parameters): # (step 2: lines 4, 13 and 19) leave medical expenses, investment # interest and casualty and theft losses out of the reduction. M1SA # line 13 is the investment interest that interest_deduction holds. + # Subd. 8 also leaves wagering losses out. The casualty amount is + # Minnesota's own. exempt_deds = add( tax_unit, period, @@ -63,6 +65,7 @@ def formula(tax_unit, period, parameters): "medical_expense_deduction", "investment_interest_expense", "mn_casualty_loss_deduction", + "wagering_losses_deduction", ], ) net_deds = max_(0, mn_itm_deds - exempt_deds) diff --git a/policyengine_us/variables/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.py b/policyengine_us/variables/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.py index 8724624db9a..076f5bf1229 100644 --- a/policyengine_us/variables/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.py +++ b/policyengine_us/variables/gov/states/ms/tax/income/deductions/itemized/ms_itemized_deductions_unit.py @@ -17,6 +17,10 @@ class ms_itemized_deductions_unit(Variable): "https://law.justia.com/codes/mississippi/2020/title-27/chapter-7/article-1/section-27-7-17/", # 2017 instructions, Form 80-108 lines 7a to 7d. "https://taxsim.nber.org/historical_state_tax_forms/MS/2017/80100178.pdf#page=15", + # 2025 instructions: Schedule A line 7b (gaming losses), and the 3% + # tax on winnings reported by Mississippi casinos + # PDF pages 16, 25 + "https://www.dor.ms.gov/sites/default/files/tax-forms/individual/80100251%202.pdf#page=16", ) defined_for = StateCode.MS @@ -28,6 +32,12 @@ class ms_itemized_deductions_unit(Variable): "itemized_deductions_less_salt", "ms_real_estate_tax_deduction", ] + # Winnings reported by Mississippi casinos bear a separate 3% tax and are + # not Mississippi income, and Mississippi gaming losses come off the + # itemized deductions (Schedule A line 7b). Mississippi income here + # leaves out all gambling winnings, including those from other states, + # so the federal wagering losses deduction is left out as well. + subtracts = ["wagering_losses_deduction"] # Mississippi allows itemized deductions for gaming establishments and gender transition procedures # which are currently not modeled diff --git a/policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_wagering_losses_deduction.py b/policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_wagering_losses_deduction.py new file mode 100644 index 00000000000..29c9fcb93bb --- /dev/null +++ b/policyengine_us/variables/gov/states/mt/tax/income/deductions/itemized/general/mt_wagering_losses_deduction.py @@ -0,0 +1,44 @@ +from policyengine_us.model_api import * + + +class mt_wagering_losses_deduction(Variable): + value_type = float + entity = Person + label = "Montana wagering losses deduction" + unit = USD + documentation = ( + "The person's part of the federal wagering losses deduction, which " + "Montana allows as an itemized deduction. Each spouse takes their " + "own losses against their own winnings; losses beyond that go to " + "the spouse with winnings left to absorb them, since the spouse who " + "reports the winnings claims the losses." + ) + definition_period = YEAR + reference = ( + # 2023 Form 2 instructions: allocating deductions between spouses, + # and gambling losses + # PDF pages 13, 39 + "https://revenue.mt.gov/files/forms/Montana-Individual-Income-Tax-Return-Form-2-Instructions/2023_Montana_Individual_Income_Tax_Return_Form_2_Instructions.pdf#page=13", + "https://revenue.mt.gov/files/forms/Montana-Individual-Income-Tax-Return-Form-2-Instructions/2025_Montana_Individual_Income_Tax_Return_Form_2_Instructions.pdf#page=13", + ) + defined_for = StateCode.MT + + def formula(person, period, parameters): + deduction = person.tax_unit("wagering_losses_deduction", period) + p = parameters(period).gov.irs.deductions.itemized.wagering_losses + # The federal deduction counts the head's and spouse's gambling. + head_or_spouse = person("is_tax_unit_head_or_spouse", period) + winnings = head_or_spouse * person("gambling_winnings", period) + losses = head_or_spouse * person("gambling_losses", period) + # Losses the person can deduct against their own winnings. + own = min_(p.rate * losses, winnings) + # What is left of the return's deduction falls on winnings that the + # winner's own losses did not cover. + remaining = max_(deduction - person.tax_unit.sum(own), 0) + unused_winnings = winnings - own + total_unused = person.tax_unit.sum(unused_winnings) + share = np.zeros_like(total_unused) + mask = total_unused > 0 + # Montana's instructions leave this proportional split unspecified. + share[mask] = unused_winnings[mask] / total_unused[mask] + return own + remaining * share diff --git a/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_federal_deductions.py b/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_federal_deductions.py index 6b71edc7bbf..da141d47c80 100644 --- a/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_federal_deductions.py +++ b/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_federal_deductions.py @@ -27,13 +27,8 @@ def formula_2024(tax_unit, period, parameters): itemizes = tax_unit("tax_unit_itemizes", period) # Use the full allowed federal amount after federal limitations, # including any claim of right deduction, and the federal election. - # The federal model adds wagering losses separately from its general - # itemized aggregate; they are also part of the allowed itemized amount. - itemized = add( - tax_unit, - period, - ["itemized_taxable_income_deductions", "wagering_losses_deduction"], - ) + # The federal itemized aggregate includes wagering losses once. + itemized = tax_unit("itemized_taxable_income_deductions", period) standard = tax_unit("standard_deduction", period) non_itemizer_charity = tax_unit( "charitable_deduction_for_non_itemizers", period diff --git a/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_state_income_tax_itemized_add_back.py b/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_state_income_tax_itemized_add_back.py index 7a279981547..2912c8b239a 100644 --- a/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_state_income_tax_itemized_add_back.py +++ b/policyengine_us/variables/gov/states/mt/tax/income/deductions/mt_state_income_tax_itemized_add_back.py @@ -18,13 +18,8 @@ class mt_state_income_tax_itemized_add_back(Variable): def formula_2024(tax_unit, period, parameters): itemizes = tax_unit("tax_unit_itemizes", period) - # The federal model adds wagering losses separately from its general - # itemized aggregate; they are also part of the allowed itemized amount. - itemized = add( - tax_unit, - period, - ["itemized_taxable_income_deductions", "wagering_losses_deduction"], - ) + # The federal itemized aggregate includes wagering losses once. + itemized = tax_unit("itemized_taxable_income_deductions", period) standard = tax_unit("standard_deduction", period) salt = tax_unit("salt_deduction", period) state_income_tax = add(tax_unit, period, ["state_withheld_income_tax"]) diff --git a/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_max.py b/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_max.py index 0b23e8bd25f..2f933c2655f 100644 --- a/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_max.py +++ b/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/ny_itemized_deductions_max.py @@ -21,6 +21,7 @@ class ny_itemized_deductions_max(Variable): - Medical expenses deductible above 10% of AGI (not the 7.5% floor) - Miscellaneous deductions still allowed with 2% AGI floor - Casualty losses not limited to federally declared disasters + - Gambling losses up to winnings, without the 90% limit from 2026 - Mortgage interest under the pre-TCJA acquisition and home equity debt limits (ny_interest_deduction) - NY-specific college tuition deduction addition per § 615(d) @@ -35,6 +36,7 @@ class ny_itemized_deductions_max(Variable): "ny_salt_deduction", "ny_misc_deduction", "ny_casualty_loss_deduction", + "ny_wagering_losses_deduction", # NY-specific addition per Tax Law § 615(d) "ny_college_tuition_deduction", ] diff --git a/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/phase_out/ny_itemized_deductions_phase_out.py b/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/phase_out/ny_itemized_deductions_phase_out.py index 3a311801b19..e6c606d7c39 100644 --- a/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/phase_out/ny_itemized_deductions_phase_out.py +++ b/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/phase_out/ny_itemized_deductions_phase_out.py @@ -28,19 +28,20 @@ class ny_itemized_deductions_phase_out(Variable): itemized deductions before the limitation. In PolicyEngine this is ny_itemized_deductions_max minus the NY-only college tuition addition (form line 48/43, which is added after line 40 and is not on this - worksheet). Form line 39 ("other itemized deductions": gambling losses, - estate tax on income in respect of a decedent, amortizable bond premium, - federal disaster loss, etc.) is not modeled in PolicyEngine and is therefore - treated as zero. + worksheet). Of form line 39 ("other itemized deductions"), gambling losses + (line 29) are ny_wagering_losses_deduction; the rest (estate tax on income + in respect of a decedent, amortizable bond premium, federal disaster loss, + etc.) is not modeled in PolicyEngine and is therefore treated as zero. Worksheet line 2 (L2) = form lines 4, 14, 16a, 20, 29, 30, 37, i.e. the deductions NOT subject to the limitation (26 U.S.C. 68(c)): - line 4 medical/dental -> ny_medical_expense_deduction - line 14 investment interest -> investment_interest_expense - line 20 casualty/theft loss -> ny_casualty_loss_deduction - - lines 16a/29/30/37 (qualified contributions, gambling losses, - income-producing-property casualty, federal disaster loss) are not - separately modeled in PolicyEngine and are treated as zero. + - line 29 gambling losses -> ny_wagering_losses_deduction + - lines 16a/30/37 (qualified contributions, income-producing-property + casualty, federal disaster loss) are not separately modeled in + PolicyEngine and are treated as zero. L3 = L1 - L2 (worksheet line 3) is therefore the mortgage interest, real estate taxes, charitable gifts, and 2%-floor miscellaneous deductions - @@ -61,11 +62,13 @@ def formula(tax_unit, period, parameters): l1 = itemized_max - college_tuition # Worksheet line 2 (L2): deductions not subject to the limitation - # (26 U.S.C. 68(c)) - medical, investment interest, casualty/theft. + # (26 U.S.C. 68(c)) - medical, investment interest, casualty/theft, + # gambling losses. medical = tax_unit("ny_medical_expense_deduction", period) investment_interest = add(tax_unit, period, ["investment_interest_expense"]) casualty = tax_unit("ny_casualty_loss_deduction", period) - l2 = medical + investment_interest + casualty + wagering = tax_unit("ny_wagering_losses_deduction", period) + l2 = medical + investment_interest + casualty + wagering # Worksheet line 3 (L3): deductions subject to the limitation. Floored at # zero to implement the worksheet's line-3 stop ("If line 2 is not less diff --git a/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/pre_tcja/ny_wagering_losses_deduction.py b/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/pre_tcja/ny_wagering_losses_deduction.py new file mode 100644 index 00000000000..706560dda75 --- /dev/null +++ b/policyengine_us/variables/gov/states/ny/tax/income/taxable_income/deductions/itemized/pre_tcja/ny_wagering_losses_deduction.py @@ -0,0 +1,27 @@ +from policyengine_us.model_api import * + + +class ny_wagering_losses_deduction(Variable): + value_type = float + entity = TaxUnit + label = "NY wagering losses deduction" + unit = USD + definition_period = YEAR + reference = ( + "https://www.nysenate.gov/legislation/laws/TAX/615", + # Form IT-196 instructions, line 29: gambling losses + "https://www.tax.ny.gov/pdf/2025/inc/it196i_2025.pdf#page=16", + ) + defined_for = StateCode.NY + documentation = """ + NY Tax Law § 615 requires itemized deductions to be computed using + pre-TCJA federal rules. New York allows gambling losses up to gambling + winnings under the federal rules that applied to tax year 2017, so the + federal 90% limit that starts in 2026 does not apply. + """ + + def formula(tax_unit, period, parameters): + # Dependents report their gambling on their own returns. + losses = tax_unit_non_dep_add(tax_unit, period, ["gambling_losses"]) + winnings = tax_unit_non_dep_add(tax_unit, period, ["gambling_winnings"]) + return min_(losses, winnings) diff --git a/policyengine_us/variables/gov/states/pa/tax/income/pa_other_additions.py b/policyengine_us/variables/gov/states/pa/tax/income/pa_other_additions.py index 7bdc9ae9566..e445a76e6b8 100644 --- a/policyengine_us/variables/gov/states/pa/tax/income/pa_other_additions.py +++ b/policyengine_us/variables/gov/states/pa/tax/income/pa_other_additions.py @@ -9,9 +9,10 @@ class pa_other_additions(Variable): definition_period = YEAR defined_for = StateCode.PA documentation = ( - "Pennsylvania other additions to taxable income for income taxable in Pennsylvania under " - "one of the eight classes (lines 1c-8, total on line 9) that PolicyEngine does not " - "otherwise include, such as gambling and lottery winnings (line 8), entered as a positive amount." + "Enter a positive amount for other income taxable in Pennsylvania under " + "one of the eight classes (lines 1c-8, total on line 9) that PolicyEngine " + "does not otherwise include, excluding gambling winnings, which " + "PolicyEngine already includes." ) # PDF pages 8, 19-20 reference = "https://www.pa.gov/content/dam/copapwp-pagov/en/revenue/documents/formsandpublications/formsforindividuals/pit/documents/2025/2025_pa-40in.pdf#page=8" diff --git a/policyengine_us/variables/gov/states/pa/tax/income/taxable_income/pa_gambling_loss_offset.py b/policyengine_us/variables/gov/states/pa/tax/income/taxable_income/pa_gambling_loss_offset.py new file mode 100644 index 00000000000..cd19f2c68b8 --- /dev/null +++ b/policyengine_us/variables/gov/states/pa/tax/income/taxable_income/pa_gambling_loss_offset.py @@ -0,0 +1,30 @@ +from policyengine_us.model_api import * + + +class pa_gambling_loss_offset(Variable): + value_type = float + entity = Person + label = "Pennsylvania gambling losses offset against winnings" + unit = USD + documentation = ( + "The cost of tickets, bets and other wagers that Pennsylvania " + "subtracts from the same person's gambling and lottery winnings " + "(PA-40 Schedule T). Spouses may not use each other's costs, and the " + "federal 90% limit does not apply. Noncash Pennsylvania Lottery " + "prizes, which Pennsylvania does not tax, are not separated in the " + "gambling inputs." + ) + definition_period = YEAR + reference = ( + # 72 P.S. 7303(a)(7) + "https://www.legis.state.pa.us/WU01/LI/LI/US/PDF/1971/0/0002..PDF#page=123", + # 2025 PA-40 Schedule T and its instructions + # PDF pages 1, 3 + "https://www.pa.gov/content/dam/copapwp-pagov/en/revenue/documents/formsandpublications/formsforindividuals/pit/documents/2025/2025_pa-40t.pdf#page=1", + ) + defined_for = StateCode.PA + + def formula(person, period, parameters): + winnings = person("gambling_winnings", period) + losses = person("gambling_losses", period) + return min_(losses, winnings) diff --git a/policyengine_us/variables/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.py b/policyengine_us/variables/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.py index 13dd8cab593..9ab0622988d 100644 --- a/policyengine_us/variables/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.py +++ b/policyengine_us/variables/gov/states/pa/tax/property/property_tax_or_rent_rebate/pa_property_tax_or_rent_rebate_income.py @@ -12,6 +12,10 @@ class pa_property_tax_or_rent_rebate_income(Variable): "https://www.pa.gov/content/dam/copapwp-pagov/en/revenue/documents/" "formsandpublications/formsforindividuals/ptrr/documents/" "2025_pa-1000_inst.pdf#page=3", + # PA-1000 booklet, line 11b: net gambling and lottery winnings + "https://www.pa.gov/content/dam/copapwp-pagov/en/revenue/documents/" + "formsandpublications/formsforindividuals/ptrr/documents/" + "dfo-03.pdf#page=40", ) defined_for = StateCode.PA @@ -56,7 +60,6 @@ def formula(tax_unit, period, parameters): person, period, [ - "gambling_winnings", "alimony_income", "workers_compensation", # The taxable part is already in adjusted_gross_income. @@ -64,6 +67,12 @@ def formula(tax_unit, period, parameters): ], ) ) + # Line 11b counts net gambling and lottery winnings: losses offset the + # winnings but may not exceed them. The winnings are already in + # federal adjusted gross income. + gambling_loss_offset = tax_unit.sum( + head_or_spouse * person("pa_gambling_loss_offset", period) + ) life_insurance_benefits = tax_unit.sum( head_or_spouse * person("life_insurance_benefits", period) ) @@ -84,6 +93,7 @@ def formula(tax_unit, period, parameters): + p.benefit_income_rate * half_counted_benefits + tax_exempt_income + pa_1000_line_11_income + - gambling_loss_offset + taxable_life_insurance_benefits + csrs_income - csrs_exclusion, diff --git a/policyengine_us/variables/gov/states/va/tax/income/deductions/va_reduced_itemized_deductions.py b/policyengine_us/variables/gov/states/va/tax/income/deductions/va_reduced_itemized_deductions.py index cd57fbba606..567c3261b23 100644 --- a/policyengine_us/variables/gov/states/va/tax/income/deductions/va_reduced_itemized_deductions.py +++ b/policyengine_us/variables/gov/states/va/tax/income/deductions/va_reduced_itemized_deductions.py @@ -16,7 +16,8 @@ def formula(tax_unit, period, parameters): # Part A: If AGI from federal return is over a certain amount, then # limitations to the itemized deduction are applied # Line 1 - sum of medical exepens ded., capped state and local tax, - # interest ded., charitable ded., and casualty loss ded. + # interest ded., charitable ded., casualty loss ded., and gambling + # losses (Schedule A line 16a) applicable_ded = add( tax_unit, period, diff --git a/policyengine_us/variables/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.py b/policyengine_us/variables/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.py index 7f4cf5fffbd..d5ba9bf2c6e 100644 --- a/policyengine_us/variables/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.py +++ b/policyengine_us/variables/gov/states/vt/tax/income/deductions/vt_2017_itemized_deduction_addback.py @@ -7,14 +7,13 @@ class vt_2017_itemized_deduction_addback(Variable): label = "Vermont 2017 itemized deduction addback" unit = USD documentation = ( - "Federal itemized deductions Vermont adds back to 2017 federal " - "taxable income, following Schedule IN-155: deducted state and local " - "income taxes, up to the itemized deductions above the federal " - "standard deduction, plus other itemized deductions (excluding " - "medical and charitable) above 2.5 times the federal standard " - "deduction. Itemized deductions include wagering losses and are after " - "the section 68 limitation, which also scales the income taxes and " - "charity." + "For 2017, Vermont filers add back deducted state and local income taxes, " + "up to federal itemized deductions above the federal standard " + "deduction. They also add back other itemized deductions, " + "excluding medical and charitable deductions, above 2.5 times the " + "standard deduction. PolicyEngine includes wagering losses in federal " + "itemized deductions after applying section 68. Filers scale income " + "taxes and charity by the share that section 68 leaves." ) definition_period = YEAR defined_for = StateCode.VT @@ -31,14 +30,9 @@ class vt_2017_itemized_deduction_addback(Variable): def formula_2017(tax_unit, period, parameters): p = parameters(period).gov.states.vt.tax.income.deductions.itemized_addback itemizes = tax_unit("tax_unit_itemizes", period) - # IN-155 line 1 takes Schedule A line 29: allowed itemized deductions - # after the section 68 limitation, including wagering losses, which - # itemized_taxable_income_deductions leaves out. - itemized = add( - tax_unit, - period, - ["itemized_taxable_income_deductions", "wagering_losses_deduction"], - ) + # The filer enters allowed itemized deductions, including wagering losses, + # after the section 68 limitation on IN-155 line 1 (Schedule A line 29). + itemized = tax_unit("itemized_taxable_income_deductions", period) standard = tax_unit("standard_deduction", period) # The SALT deduction holds income taxes only when they exceed sales # taxes (state_and_local_sales_or_income_tax takes the larger). @@ -50,9 +44,9 @@ def formula_2017(tax_unit, period, parameters): deducted_income_taxes = where( income_taxes >= sales_taxes, min_(income_taxes, salt), 0 ) - # The Department's worksheet for limited itemized deductions scales - # income taxes and charity by the share of the limited deductions that - # section 68 leaves. Section 68(c) doesn't limit medical expenses. + # Filers scale income taxes and charity by the share of limited + # deductions that section 68 leaves, following the Department's worksheet. + # Filers exclude medical expenses and wagering losses under section 68(c). limitation = parameters(period).gov.irs.deductions.itemized.limitation total = tax_unit("total_itemized_taxable_income_deductions", period) excluded = add(tax_unit, period, limitation.excluded_deductions) diff --git a/policyengine_us/variables/gov/states/wi/tax/income/credits/itemized_deduction/wi_itemized_deduction_credit_potential.py b/policyengine_us/variables/gov/states/wi/tax/income/credits/itemized_deduction/wi_itemized_deduction_credit_potential.py index 4673dd7141b..ee0a5488616 100644 --- a/policyengine_us/variables/gov/states/wi/tax/income/credits/itemized_deduction/wi_itemized_deduction_credit_potential.py +++ b/policyengine_us/variables/gov/states/wi/tax/income/credits/itemized_deduction/wi_itemized_deduction_credit_potential.py @@ -14,6 +14,10 @@ class wi_itemized_deduction_credit_potential(Variable): "https://www.revenue.wi.gov/TaxForms2021/2021-Form1NPR-Inst.pdf#page=34", "https://www.revenue.wi.gov/TaxForms2022/2022-Form1.pdf#page=4", "https://docs.legis.wisconsin.gov/misc/lfb/informational_papers/january_2023/0002_individual_income_tax_informational_paper_2.pdf#page=19", + # Publication 600: gambling losses are not deductible and may not + # be used in computing the itemized deduction credit. + # PDF pages 4, 6, 9-10 + "https://www.revenue.wi.gov/DOR%20Publications/pb600.pdf#page=4", # Wis. Stat. 71.07(5)(a) "https://docs.legis.wisconsin.gov/statutes/statutes/71.pdf#page=39", "https://www.revenue.wi.gov/TaxForms2025/2025-Form1.pdf#page=4", @@ -23,7 +27,9 @@ class wi_itemized_deduction_credit_potential(Variable): def formula(tax_unit, period, parameters): # Schedule 1 uses actual or hypothetical Schedule A components, # excluding SALT, miscellaneous deductions, and the federal - # charitable allowance for non-itemizers. + # charitable allowance for non-itemizers. Wagering losses are not + # among the components: Wisconsin allows no deduction or credit for + # gambling losses. # Wis. Stat. 71.07(5)(a)6 excludes repayments only when used for the # separate Wisconsin claim of right credit, which is not modeled. # Section 1341 deductions are not miscellaneous deductions under diff --git a/policyengine_us/variables/household/income/person/gambling_losses.py b/policyengine_us/variables/household/income/person/gambling_losses.py index b93b6bb0f64..6d40dbbfc19 100644 --- a/policyengine_us/variables/household/income/person/gambling_losses.py +++ b/policyengine_us/variables/household/income/person/gambling_losses.py @@ -6,4 +6,13 @@ class gambling_losses(Variable): entity = Person label = "Gambling losses" unit = USD + documentation = ( + "Losses from wagering transactions of a person who does not gamble " + "as a trade or business, such as the cost of losing bets and of " + "non-winning lottery and raffle tickets (Schedule A (Form 1040) " + "line 16), before any limit. This input does not separate losses " + "by where the wager was placed, so state rules that depend on it " + "(a state lottery, in-state licensed gaming) are not modeled." + ) definition_period = YEAR + reference = "https://www.irs.gov/pub/irs-prior/i1040sca--2024.pdf#page=11" diff --git a/policyengine_us/variables/household/income/person/gambling_winnings.py b/policyengine_us/variables/household/income/person/gambling_winnings.py index 9b3c9b21f1e..c946902f1ac 100644 --- a/policyengine_us/variables/household/income/person/gambling_winnings.py +++ b/policyengine_us/variables/household/income/person/gambling_winnings.py @@ -6,4 +6,16 @@ class gambling_winnings(Variable): entity = Person label = "Gambling winnings" unit = USD + documentation = ( + "Gambling winnings of a person who does not gamble as a trade or " + "business, as reported on Schedule 1 (Form 1040) line 8b: the full " + "winnings, including lottery and raffle prizes, not reduced by " + "losses. This input does not separate winnings by source or by " + "prize, so state rules that depend on them (a state's own lottery, " + "prizes under a threshold, noncash prizes) are not modeled." + ) definition_period = YEAR + reference = ( + "https://www.irs.gov/pub/irs-prior/f1040s1--2024.pdf#page=1", + "https://www.irs.gov/pub/irs-prior/i1040gi--2025.pdf#page=91", + ) diff --git a/policyengine_us/variables/household/income/person/general/market_income.py b/policyengine_us/variables/household/income/person/general/market_income.py index 225a1d8e406..979a903c9c4 100644 --- a/policyengine_us/variables/household/income/person/general/market_income.py +++ b/policyengine_us/variables/household/income/person/general/market_income.py @@ -36,6 +36,9 @@ def formula(person, period, parameters): "illicit_income", "farm_operations_income", "miscellaneous_income", + # Gambling winnings before losses, as gross income counts them + # (Schedule 1 line 8b). + "gambling_winnings", "alimony_income", "strike_benefits", "retirement_distributions", diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index c0a7f5e3693..0e3ad4b73c1 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -6155,6 +6155,70 @@ candidates: prs: [] state: unreviewed note: Establish the guidance's statutory basis and reconcile M1SA with M1REF. +- id: us-mn:wagering-losses-itemized-limitation-exclusion + program: income-tax + years: + from: 2019 + to: 2025 + type: tax + question: Does Minnesota exclude wagering losses from its itemized deduction limitation when Schedule M1SA protects only medical expenses, investment interest, and casualty losses? + sources: + - kind: statute + citation: Minn. Stat. 290.0122, subd. 2(d)(3) and 8; subd. 2(c)(3) before 2023 + url: https://www.revisor.mn.gov/statutes/cite/290.0122 + - kind: statute + citation: 1Sp2019 c 6 art 1 s 16, subd. 2(c)(3), subd. 8, and effective date + url: https://www.revisor.mn.gov/laws/2019/1/6/#laws.1.16.0 + - kind: statute + citation: 1Sp2021 c 14 art 1 s 7, subd. 8 and effective date + url: https://www.revisor.mn.gov/laws/2021/1/14/#laws.1.7.0 + - kind: statute + citation: 2023 c 64 art 1 s 18, subd. 2(d)(3) and effective date + url: https://www.revisor.mn.gov/laws/2023/0/64/#laws.1.18.0 + - kind: instructions + citation: 2019 Schedule M1SA, line 24 and Worksheet for Line 26, PDF p. 7 + url: https://www.revenue.state.mn.us/sites/default/files/2023-01/m1sa_19.pdf#page=7 + - kind: instructions + citation: 2020 Schedule M1SA, line 24, PDF p. 7, and Worksheet for Line 26, PDF p. 8 + url: https://www.revenue.state.mn.us/sites/default/files/2023-01/m1sa_20.pdf#page=8 + - kind: instructions + citation: 2021 Schedule M1SA, line 24 and Worksheet for Line 26, PDF p. 7 + url: https://www.revenue.state.mn.us/sites/default/files/2023-02/m1sa_21.pdf#page=7 + - kind: instructions + citation: 2022 Schedule M1SA, line 24 and Worksheet for Line 26, PDF p. 7 + url: https://www.revenue.state.mn.us/sites/default/files/2023-01/m1sa_22.pdf#page=7 + - kind: instructions + citation: 2023 Schedule M1SA, line 24 and Worksheets A and B for Line 26, PDF p. 8 + url: https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-23.pdf#page=8 + - kind: instructions + citation: 2024 Schedule M1SA, line 24 and Worksheets A and B for Line 26, PDF p. 8 + url: https://www.revenue.state.mn.us/sites/default/files/2024-12/m1sa-24.pdf#page=8 + - kind: instructions + citation: 2025 Schedule M1SA, line 24, PDF p. 7, and Worksheets A and B for Line 26, PDF p. 8 + url: https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-25_0.pdf#page=8 + - kind: instructions + citation: 2026 Schedule M1SA final draft dated November 4, 2026, line 26 and Worksheets A and B for Line 28, PDF p. 9 + url: https://www.revenue.state.mn.us/sites/default/files/2026-11/m1sa-26.pdf#page=9 + readings: + statute: Taxpayers exclude all subdivision 8 losses, including wagering losses under IRC 165(d), from the deductions subject to the limitation. + other: Taxpayers enter gambling losses on line 24, but exclude only lines 4, 13, and 19 when computing the limitation, so they reduce gambling deductions with other unprotected deductions. + example: A 2023 filer with $2,000,000 of AGI, $50,000 of allowable wagering losses, and no other itemized deductions retains $50,000 under the statute. Under Worksheet B, the filer subtracts 80% of $50,000, or $40,000, and retains $10,000. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py + - policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10070 + state: ruled + note: >- + The Legislature enacted both the limitation exclusion and the wagering deduction for tax years beginning after December 31, 2018. + In 2021, the Legislature rewrote subdivision 8 while retaining wagering losses; that amendment took effect July 2, 2021. + In 2023, the Legislature moved the exclusion from paragraph (c)(3) to (d)(3), effective for tax years beginning after December 31, 2022. + We confirmed every final M1SA from 2019 through 2025; no year in that range remained unreachable. + The Department has published a 2026 final draft, which moves gambling losses to line 26 and protects only lines 4, 13, and 22 in the line 28 worksheets. + We exclude 2026 from the years above because the Department still labels that form a draft. + The baseline excludes wagering_losses_deduction at mn_itemized_deductions.py lines 68 and 71; the Walz reform does so at mn_walz_hf1938.py lines 136 and 139. - id: us-mo:claim-of-right-federal-tax-deduction program: income-tax years: diff --git a/source_conflicts/sources/us-mn/1sp2019-c6-art1-s16.txt b/source_conflicts/sources/us-mn/1sp2019-c6-art1-s16.txt new file mode 100644 index 00000000000..b6d0741ebd4 --- /dev/null +++ b/source_conflicts/sources/us-mn/1sp2019-c6-art1-s16.txt @@ -0,0 +1,5 @@ +Source: https://www.revisor.mn.gov/laws/2019/1/6/#laws.1.16.0 +Section text extracted from official HTML with Python html.parser; whitespace collapsed. +The extraction retains the Revisor's new-text and deleted-text labels. + +Sec. 16. new text begin [290.0122] ITEMIZED DEDUCTIONS. new text end new text begin Subdivision 1. new text end new text begin Itemized deductions. new text end new text begin A taxpayer's itemized deductions equal the sum of the amounts allowed as a deduction under this section, reduced by the amount calculated under subdivision 2. new text end new text begin Subd. 2. new text end new text begin Deductions limited; inflation adjustment. new text end new text begin (a) The itemized deductions of a taxpayer with adjusted gross income in excess of the applicable amount are reduced by the lesser of: new text end new text begin (1) three percent of the excess of the taxpayer's federal adjusted gross income over the applicable amount; or new text end new text begin (2) 80 percent of the amount of the taxpayer's itemized deductions. new text end new text begin (b) "Applicable amount" means $194,650, or $97,325 for a married individual filing a separate return. new text end new text begin (c) For the purposes of this subdivision, "itemized deductions" means the itemized deductions otherwise allowable to the taxpayer under subdivision 1, except itemized deductions excludes: new text end new text begin (1) the portion of the deduction for interest under subdivision 5 that represents investment interest; new text end new text begin (2) the deduction for medical expenses under subdivision 6; and new text end new text begin (3) the deduction for losses under subdivision 8. new text end new text begin (d) For taxable years beginning after December 31, 2019, the commissioner must adjust for inflation the applicable amounts under paragraph (b) as provided in section 270C.22. The statutory year is taxable year 2019. The amounts as adjusted must be rounded down to the nearest $50 amount. The threshold amount for married individuals filing separate returns must be one-half of the adjusted amount for married individuals filing joint returns. new text end new text begin Subd. 3. new text end new text begin Taxes paid. new text end new text begin (a) A taxpayer is allowed a deduction for taxes paid. The deduction equals the sum of the following amounts for the taxable year: new text end new text begin (1) state and local personal property taxes and real property taxes, in a total amount for both types not to exceed $10,000, or $5,000 for a married taxpayer filing a separate return; new text end new text begin (2) foreign income, war profits, and excess profits taxes to the extent not reduced by the federal foreign tax credit; and new text end new text begin (3) for individuals who are allowed a federal foreign tax credit for taxes that do not qualify for a credit under section 290.06, subdivision 22, an amount equal to the carryover of subnational foreign taxes for the taxable year, but not to exceed the total subnational foreign taxes reported in claiming the foreign tax credit, and to the extent not deducted under clause (2). new text end new text begin (b) For purposes of this subdivision, the following terms have the meanings given them: new text end new text begin (1) "carryover of subnational foreign taxes" equals the carryover allowed under section 904(c) of the Internal Revenue Code minus national level foreign taxes to the extent they exceed the federal foreign tax credit; new text end new text begin (2) "federal foreign tax credit" means the credit allowed under section 27 of the Internal Revenue Code; and new text end new text begin (3) "foreign income, war profits, and excess profits taxes" and "state and local real and personal property taxes" have the meanings given in section 164 of the Internal Revenue Code. new text end new text begin Subd. 4. new text end new text begin Charitable contributions. new text end new text begin (a) A taxpayer is allowed a deduction for charitable contributions. The deduction equals the amount of the charitable contribution deduction allowable to the taxpayer under section 170 of the Internal Revenue Code, including the denial of the deduction under section 408(d)(8), except that the provisions of section 170(b)(1)(G) apply regardless of the taxable year. new text end new text begin (b) For taxable years beginning after December 31, 2017, the determination of carryover amounts must be made by applying the rules under section 170 of the Internal Revenue Code based on the charitable contribution deductions claimed and allowable under this section. new text end new text begin Subd. 5. new text end new text begin Interest. new text end new text begin A taxpayer is allowed a deduction for interest. The deduction equals the amount allowed to the taxpayer as interest paid or accrued during the taxable year under section 163 of the Internal Revenue Code with the following exceptions: new text end new text begin (1) qualified residence interest excludes home equity interest; new text end new text begin (2) acquisition indebtedness must not exceed $750,000, or $375,000 for a married separate return, for indebtedness incurred on or after December 16, 2017; and new text end new text begin (3) mortgage insurance premiums treated as interest under section 163(h)(3)(E) are not interest for the purposes of this subdivision. new text end new text begin Subd. 6. new text end new text begin Medical expenses. new text end new text begin A taxpayer is allowed a deduction for medical expenses. The deduction equals the amount allowed under section 213 of the Internal Revenue Code, except that the threshold percentage of adjusted gross income in paragraph (a) is ten percent regardless of the federal percentage for the taxable year. new text end new text begin Subd. 7. new text end new text begin Unreimbursed employee expenses. new text end new text begin A taxpayer is allowed a deduction for unreimbursed employee expenses. The deduction equals the amount of the taxpayer's trade or business expenses incurred as an employee and allowed under section 162 of the Internal Revenue Code in excess of two percent of the taxpayer's adjusted gross income, disregarding the suspension of the deduction in section 67, paragraph (g), of the Internal Revenue Code. new text end new text begin Subd. 8. new text end new text begin Losses. new text end new text begin A taxpayer is allowed a deduction for losses. The deduction equals the amount allowed under sections 165(d) and 165(h) of the Internal Revenue Code, disregarding the limitation on personal casualty losses in paragraph (h)(5). new text end new text begin Subd. 9. new text end new text begin Miscellaneous deduction. new text end new text begin A taxpayer is allowed a miscellaneous deduction. The deduction equals the sum of the following amounts for the taxable year: new text end new text begin (1) impairment-related work expenses allowed under section 67(d) of the Internal Revenue Code; new text end new text begin (2) the deduction for estate tax under section 691(c) of the Internal Revenue Code; new text end new text begin (3) any deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8); new text end new text begin (4) the deduction under section 1341 of the Internal Revenue Code; new text end new text begin (5) the deduction under section 72(b)(3) of the Internal Revenue Code; new text end new text begin (6) the deduction under section 171 of the Internal Revenue Code; and new text end new text begin (7) the deduction under section 216 of the Internal Revenue Code. new text end new text begin EFFECTIVE DATE. new text end new text begin This section is effective for taxable years beginning after December 31, 2018. new text end diff --git a/source_conflicts/sources/us-mn/1sp2021-c14-art1-s7.txt b/source_conflicts/sources/us-mn/1sp2021-c14-art1-s7.txt new file mode 100644 index 00000000000..d4257950095 --- /dev/null +++ b/source_conflicts/sources/us-mn/1sp2021-c14-art1-s7.txt @@ -0,0 +1,7 @@ +Source: https://www.revisor.mn.gov/laws/2021/1/14/#laws.1.7.0 +Section text extracted from official HTML with Python html.parser; whitespace collapsed. +The extraction retains the Revisor's new-text and deleted-text labels. + +Sec. 7. Minnesota Statutes 2020, section 290.0122, subdivision 8, is amended to read: Subd. 8. Losses. A taxpayer is allowed a deduction for losses deleted text begin . The deduction equals the amount deleted text end allowed under deleted text begin sections 165(d) and deleted text end new text begin section 165(a) of the Internal Revenue Code, including the limitation provided by section 67(b)(3) of the Internal Revenue Code, for the following: new text end new text begin (1) losses described in section 165(c)(3) of the Internal Revenue Code, including the provisions of section new text end 165(h) of the Internal Revenue Code, new text begin but new text end disregarding deleted text begin the limitation on personal casualty losses in deleted text end paragraph (h)(5) deleted text begin . deleted text end new text begin ; and new text end new text begin (2) losses described in section 165(d) of the Internal Revenue Code. new text end new text begin EFFECTIVE DATE. new text end new text begin This section is effective the day following final enactment. new text end + +Presented to the governor July 1, 2021 Signed by the governor July 1, 2021, 12:30 p.m. diff --git a/source_conflicts/sources/us-mn/2023-c64-art1-s18.txt b/source_conflicts/sources/us-mn/2023-c64-art1-s18.txt new file mode 100644 index 00000000000..a70c92a5f67 --- /dev/null +++ b/source_conflicts/sources/us-mn/2023-c64-art1-s18.txt @@ -0,0 +1,5 @@ +Source: https://www.revisor.mn.gov/laws/2023/0/64/#laws.1.18.0 +Section text extracted from official HTML with Python html.parser; whitespace collapsed. +The extraction retains the Revisor's new-text and deleted-text labels. + +Sec. 18. Minnesota Statutes 2022, section 290.0122, subdivision 2, is amended to read: Subd. 2. Deductions limited; inflation adjustment. (a) The itemized deductions of a taxpayer with adjusted gross income deleted text begin in excess of the applicable amount deleted text end new text begin over $220,650 new text end are reduced by the lesser of: (1) three percent of the excess of the taxpayer's deleted text begin federal deleted text end adjusted gross income over deleted text begin the applicable amount deleted text end new text begin $220,650 but not over $304,970; plus ten percent of the taxpayer's adjusted gross income over $304,970 new text end ; or (2) 80 percent of the amount of the taxpayer's itemized deductions. deleted text begin (b) "Applicable amount" means $194,650, or $97,325 deleted text end new text begin (b) Notwithstanding paragraph (a), for a taxpayer with adjusted gross income over $1,000,000, a taxpayer's itemized deductions are reduced by 80 percent. new text end new text begin (c) new text end For a married individual filing a separate return new text begin , the reduction under paragraph (a) must be calculated using one-half of the adjusted gross income amounts specified in that paragraph new text end . deleted text begin (c) deleted text end new text begin (d) new text end For the purposes of this subdivision, "itemized deductions" means the itemized deductions otherwise allowable to the taxpayer under subdivision 1, except itemized deductions excludes: (1) the portion of the deduction for interest under subdivision 5 that represents investment interest; (2) the deduction for medical expenses under subdivision 6; and (3) the deduction for losses under subdivision 8. deleted text begin (d) deleted text end new text begin (e) new text end For taxable years beginning after December 31, deleted text begin 2019 deleted text end new text begin 2023 new text end , the commissioner must adjust for inflation the deleted text begin applicable deleted text end new text begin adjusted gross income new text end amounts under deleted text begin paragraph deleted text end new text begin paragraphs (a) and new text end (b) as provided in section 270C.22 . The statutory year is taxable year deleted text begin 2019 deleted text end new text begin 2023 new text end . The amounts as adjusted must be rounded down to the nearest $50 amount. The threshold amount for married individuals filing separate returns must be one-half of the adjusted amount for married individuals filing joint returns. new text begin EFFECTIVE DATE. new text end new text begin This section is effective for taxable years beginning after December 31, 2022. new text end diff --git a/source_conflicts/sources/us-mn/m1sa-2019-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2019-wagering-limitation.txt new file mode 100644 index 00000000000..399706dc580 --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2019-wagering-limitation.txt @@ -0,0 +1,36 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2023-01/m1sa_19.pdf +PDF pages 7-7; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 24 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 24 and enter the total of these expenses on line 24. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 24, attach a statement instead showing the type and amount of +each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, you may +qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A. +You may deduct only the following expenses on line 24: +• Gambling losses to the extent of gambling winnings reported on line 8 of federal Schedule 1. Gambling losses include, but are not limited to, + the cost on non-winning bingo, lottery, and raffle tickets. +• Federal estate tax on income in respect of a decedent. +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for amortizable + bond premium on bonds acquired before October 23, 1986). +• Deduction for repayment of amounts under a claim of right if over $3,000. See IRS Publication 525 for details. +• Certain unrecovered investment in a pension. +• Impairment-related work expenses of a person with a disability. +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code. +Line 26 — Itemized Deduction Limitation +Complete the Worksheet for Line 26 if your adjusted gross income from line 1 of Form M1 is more than $194,650 ($97,325 if married filing +separate). + + Worksheet for Line 26 + 1 Enter the amount from line 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE and enter 0 on line 26. . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (.80) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 Enter the amount from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Enter $194,650 ($97,325 if married filing separate) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 Subtract step 6 from step 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 3% (.03) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Enter the smaller of step 4 or step 8. Enter the result here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + If married filing separate returns, each spouse must complete a separate Worksheet for Line 26. diff --git a/source_conflicts/sources/us-mn/m1sa-2020-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2020-wagering-limitation.txt new file mode 100644 index 00000000000..ce7c8c0562e --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2020-wagering-limitation.txt @@ -0,0 +1,38 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2023-01/m1sa_20.pdf +PDF pages 7-8; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 24 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 24 and enter the total of these expenses on line 24. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 24, attach a statement instead showing the type and amount of +each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, you may +qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A. +You may deduct only the following expenses on line 24: +• Gambling losses to the extent of gambling winnings reported on line 8 of federal Schedule 1. Gambling losses include, but are not limited to, + the cost on non-winning bingo, lottery, and raffle tickets +• Federal estate tax on income in respect of a decedent +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for amortizable + bond premium on bonds acquired before October 23, 1986) +• Deduction for repayment of amounts under a claim of right if over $3,000 (see IRS Publication 525 for details) +• Certain unrecovered investment in a pension + + Continued + +• Impairment-related work expenses of a person with a disability +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code +Line 26 — Itemized Deduction Limitation +Complete the Worksheet for Line 26 if your adjusted gross income from line 1 of Form M1 is more than $197,850 ($98,925 if married and +filing a separate return). + Worksheet for Line 26 + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE and enter 0 on line 26. . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (.80). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 Adjusted Gross Income: Enter the amount from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Enter $197,850 ($98,925 if married and filing a separate return) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 Subtract step 6 from step 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 3% (.03). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Enter the smaller of step 4 or step 8. Enter the result here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + If married filing separate returns, each spouse must complete a separate Worksheet for Line 26. diff --git a/source_conflicts/sources/us-mn/m1sa-2021-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2021-wagering-limitation.txt new file mode 100644 index 00000000000..db852aa7141 --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2021-wagering-limitation.txt @@ -0,0 +1,35 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2023-02/m1sa_21.pdf +PDF pages 7-7; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 24 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 24 and enter the total of these expenses on line 24. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 24, attach a statement instead showing the type and amount of +each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, you may +qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A. +You may deduct only these expenses on line 24: +• Gambling losses to the extent of gambling winnings reported on line 8b of federal Schedule 1. Gambling losses include, but are not limited + to, the cost on non-winning bingo, lottery, and raffle tickets +• Federal estate tax on income in respect of a decedent +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for amortizable + bond premium on bonds acquired before October 23, 1986) +• Deduction for repayment of amounts under a claim of right, if over $3,000 (see IRS Publication 525 for details) +• Certain unrecovered investment in a pension +• Impairment-related work expenses of a person with a disability +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code +Line 26 — Itemized Deduction Limitation +Complete the Worksheet for Line 26 if your adjusted gross income from line 1 of Form M1 is more than $199,850 ($99,925 if married and +filing a separate return). + Worksheet for Line 26 + 1 Enter the amount from line 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE and enter 0 on line 26. . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (.80) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 Adjusted Gross Income: Enter the amount from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Enter $199,850 ($99,925 if married and filing a separate return) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 Subtract step 6 from step 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 3% (.03) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Enter the smaller of step 4 or step 8. Enter the result here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + If married and filing separate returns, each spouse must complete a separate Worksheet for Line 26. diff --git a/source_conflicts/sources/us-mn/m1sa-2022-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2022-wagering-limitation.txt new file mode 100644 index 00000000000..6cffc504d3e --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2022-wagering-limitation.txt @@ -0,0 +1,36 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2023-01/m1sa_22.pdf +PDF pages 7-7; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 24 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 24 and enter the total of these expenses on line 24. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 24, attach a statement instead showing the type and amount of +each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, you may +qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A. +You may deduct only these expenses on line 24: +• Gambling losses to the extent of gambling winnings reported on line 8b of federal Schedule 1. Gambling losses include, but are not limited + to, the cost on non-winning bingo, lottery, and raffle tickets +• Federal estate tax on income in respect of a decedent +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for amortizable + bond premium on bonds acquired before October 23, 1986) +• Deduction for repayment of amounts under a claim of right (if over $3,000, see IRS Publication 525 for details) +• Certain unrecovered investment in a pension +• Impairment-related work expenses of a person with a disability +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code +Line 26 — Itemized Deduction Limitation +Complete the Worksheet for Line 26 if your adjusted gross income from line 1 of Form M1 is more than $206,050 ($103,025 if married and +filing a separate return). + + Worksheet for Line 26 + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE and enter 0 on line 26. . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (.80). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 Adjusted Gross Income: Enter the amount from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Enter $206,050 ($103,025 if married and filing a separate return) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 Subtract step 6 from step 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 3% (.03). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Enter the smaller of step 4 or step 8. Enter the result here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + If married and filing separate returns, each spouse must complete a separate Worksheet for Line 26. diff --git a/source_conflicts/sources/us-mn/m1sa-2023-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2023-wagering-limitation.txt new file mode 100644 index 00000000000..e0cca315e3c --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2023-wagering-limitation.txt @@ -0,0 +1,55 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-23.pdf +PDF pages 7-8; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 24 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 24 and enter the total of these expenses on line 24. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 24, attach a statement instead showing the type and amount of +each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, you may +qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A. + + + + + Continued + +You may deduct only these expenses on line 24: +• Gambling losses to the extent of gambling winnings reported on line 8b of federal Schedule 1. Gambling losses include, but are not limited + to, the cost on non-winning bingo, lottery, and raffle tickets +• Federal estate tax on income in respect of a decedent +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for + amortizable bond premium on bonds acquired before October 23, 1986) +• Deduction for repayment of amounts under a claim of right (if over $3,000, see IRS Publication 525 for details) +• Certain unrecovered investment in a pension +• Impairment-related work expenses of a person with a disability +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code +Line 26 — Itemized Deduction Limitation +Complete Worksheet A if your AGI is greater than $220,650 ($110,325 if married filing separately) but less than or equal to $1,000,000. If +your AGI is greater than $1,000,000, complete Worksheet B. + + Worksheet A for Line 26 — Itemized Deduction Phaseout for AGI $1,000,000 or Less + Do not use this worksheet if your adjusted gross income is less than $220,650 ($110,325 if married filing separately) or over $1,000,000. + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Adjusted gross income from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 - If step 4 is greater than $304,970, enter $84,320. If it is less than or equal to $304,970, + then subtract $220,650 from step 4. + - If married filing separately and step 4 is greater than $152,485, enter $42,160. + If it is less than or equal to $152,485, subtract $110,325 from step 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Multiply step 5 by 3% (.03). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 If step 4 is greater than $304,970 subtract, $304,970 from step 4. If married filing separately + and step 4 is greater than $152,485, subtract $152,485 from step 4. Otherwise, enter 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 10% (.10) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Add steps 6 and 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 10 Multiply step 3 by 80% (.80) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 11 Enter the lesser of step 9 or 10 here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + + Worksheet B for Line 26 — Itemized deduction phaseout for AGI greater than $1,000,000 + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (.80). Enter the result here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . diff --git a/source_conflicts/sources/us-mn/m1sa-2024-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2024-wagering-limitation.txt new file mode 100644 index 00000000000..4c28e7561ff --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2024-wagering-limitation.txt @@ -0,0 +1,55 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2024-12/m1sa-24.pdf +PDF pages 7-8; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 24 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 24 and enter the total of these expenses on line 24. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 24, attach a statement instead showing the type and amount of +each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, you may +qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A. + + + + + Continued + +You may deduct only these expenses on line 24: +• Gambling losses to the extent of gambling winnings reported on line 8b of federal Schedule 1. Gambling losses include, but are not limited + to, the cost of non-winning bingo, lottery, and raffle tickets +• Federal estate tax on income in respect of a decedent +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for + amortizable bond premium on bonds acquired before October 23, 1986) +• Deduction for repayment of amounts under a claim of right (if over $3,000, see IRS Publication 525 for details) +• Certain unrecovered investment in a pension +• Impairment-related work expenses of a person with a disability +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code +Line 26 — Itemized Deduction Limitation +Complete Worksheet A if your AGI is greater than $232,500 ($116,250 if married filing separately) but less than or equal to $1,053,750. If +your AGI is greater than $1,053,750, complete Worksheet B. + + Worksheet A for Line 26 — Itemized Deduction Phaseout for AGI $1,053,750 or Less + Do not use this worksheet if your adjusted gross income is less than $232,500 ($116,250 if married filing separately) or over $1,053,750. + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Adjusted gross income from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 - If step 4 is greater than $321,350, enter $88,850. If it is less than or equal to $321,350, + then subtract $232,500 from step 4. + - If married filing separately and step 4 is greater than $160,675, enter $44,425. + If it is less than or equal to $160,675, subtract $116,250 from step 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Multiply step 5 by 3% (.03). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 If step 4 is greater than $321,350 subtract, $321,350 from step 4. If married filing separately + and step 4 is greater than $160,675, subtract $160,675 from step 4. Otherwise, enter 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 10% (.10) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Add steps 6 and 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 10 Multiply step 3 by 80% (.80) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 11 Enter the lesser of step 9 or 10 here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + + Worksheet B for Line 26 — Itemized deduction phaseout for AGI greater than $1,053,750 + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (.80). Enter the result here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . diff --git a/source_conflicts/sources/us-mn/m1sa-2025-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2025-wagering-limitation.txt new file mode 100644 index 00000000000..18955d65cba --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2025-wagering-limitation.txt @@ -0,0 +1,53 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-25_0.pdf +PDF pages 7-8; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 24 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 24 and enter the total of these expenses on line 24. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 24, attach a statement instead showing the type and amount of +each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, you may +qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A. +You may deduct only these expenses on line 24: +• Gambling losses to the extent of gambling winnings reported on line 8b of federal Schedule 1. Gambling losses include, but are not limited + to, the cost of non-winning bingo, lottery, and raffle tickets +• Federal estate tax on income in respect of a decedent +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for amortizable + bond premium on bonds acquired before October 23, 1986) +• Deduction for repayment of amounts under a claim of right (if over $3,000, see IRS Publication 525 for details) +• Certain unrecovered investment in a pension +• Impairment-related work expenses of a person with a disability +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code + + + + + Continued + +Line 26 — Itemized Deduction Limitation +Complete Worksheet A if your AGI is greater than $238,950 ($119,475 if married filing separately) but less than or equal to $1,083,150. If +your AGI is greater than $1,083,150, complete Worksheet B. +Worksheet A for Line 26 — Itemized Deduction Phaseout for AGI $1,083,150 or Less +Do not use this worksheet if your adjusted gross income is less than $238,950 ($119,475 if married filing separately) or over $1,083,150. + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Adjusted gross income from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 - If step 4 is greater than $330,300, enter $91,350. If it is less than or equal to $330,300, + then subtract $238,950 from step 4. + - If married filing separately and step 4 is greater than $165,150, enter $45,675. + If it is less than or equal to $165,150, subtract $119,475 from step 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Multiply step 5 by 3% (.03). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 If step 4 is greater than $330,300 subtract, $330,300 from step 4. If married filing separately + and step 4 is greater than $165,150, subtract $165,150 from step 4. Otherwise, enter 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 10% (.10) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Add steps 6 and 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 10 Multiply step 3 by 80% (.80) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 11 Enter the lesser of step 9 or 10 here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + +Worksheet B for Line 26 — Itemized deduction phaseout for AGI greater than $1,083,150 + 1 Enter the amount from line 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (.80). Enter the result here and on line 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . diff --git a/source_conflicts/sources/us-mn/m1sa-2026-final-draft-wagering-limitation.txt b/source_conflicts/sources/us-mn/m1sa-2026-final-draft-wagering-limitation.txt new file mode 100644 index 00000000000..bbcbf26a50c --- /dev/null +++ b/source_conflicts/sources/us-mn/m1sa-2026-final-draft-wagering-limitation.txt @@ -0,0 +1,52 @@ +Source: https://www.revenue.state.mn.us/sites/default/files/2026-11/m1sa-26.pdf +PDF pages 8-9; selected text extracted with pdftotext -layout (Poppler). +Trailing spaces removed; tabs expanded to spaces. + +Line 26 — Other Miscellaneous Deductions +List the type and amount of each expense from the following list next to line 26 and enter the total of these expenses on line 26. If you are +filing a paper return and you cannot fit all your expenses on the line next to line 26, attach a statement instead showing the type and amount +of each expense. If you filed federal Schedule A, you may have reported these deductions on line 16. If you filed federal Form 1040-NR, +you may qualify for only certain deductions from the following list which you may have deducted on line 7 of Form 1040-NR, Schedule A +(Attachment Sequence No. 7A). + Continued + +You may deduct only these expenses on line 26: +• Gambling losses to the extent of gambling winnings reported on line 8b of federal Schedule 1. Gambling losses include, but are not limited + to, the cost of non-winning bingo, lottery, and raffle tickets +• Federal estate tax on income in respect of a decedent +• Deduction for amortizable bond premium (for example, a deduction allowed for a bond premium carryforward or a deduction for + amortizable bond premium on bonds acquired before October 23, 1986) +• Deduction for repayment of amounts under a claim of right (if over $3,000, see IRS Publication 525 for details) +• Certain unrecovered investment in a pension +• Impairment-related work expenses of a person with a disability +• Deduction allowable in connection with personal property used in a short sale as described under section 67(b)(8) +• Deduction of taxes, interest, and business depreciation for cooperative housing corporation tenant-stockholder under section 216 of the + Internal Revenue Code +Line 28 — Itemized Deduction Limitation +Complete Worksheet A if your AGI is greater than $244,400 ($122,200 if married filing separately) but less than or equal to $1,107,750. If +your AGI is greater than $1,107,750, complete Worksheet B. + + Worksheet A for Line 28 — Itemized Deduction Phaseout for AGI $1,107,750 or Less + Do not use this worksheet if your adjusted gross income is less than $244,400 ($122,200 if married filing separately) or over $1,107,750 + 1 Enter the amount from line 27 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Adjusted gross income from line 1 of Form M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 5 - If step 4 is greater than $337,800, enter $93,400. If it is less than or equal to $337,800, + then subtract $244,400 from step 4. + - If married filing separately and step 4 is greater than $168,900, enter $46,700. + If it is less than or equal to $168,900, subtract $122,200 from step 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 6 Multiply step 5 by 3% (0.03) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 7 If step 4 is greater than $337,800 subtract, $337,800 from step 4. If married filing separately + and step 4 is greater than $168,900, subtract $168,900 from step 4. Otherwise, enter 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . + 8 Multiply step 7 by 10% (0.10) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 9 Add steps 6 and 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 10 Multiply step 3 by 80% (0.80) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 11 Enter the lesser of step 9 or 10 here and on line 28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + +Worksheet B for Line 28 — Itemized deduction phaseout for AGI greater than $1,107,750 + 1 Enter the amount from line 27 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 2 Enter the total amounts from lines 4, 13, and 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 3 Subtract step 2 from 1. If the result is zero or less, STOP HERE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + 4 Multiply step 3 by 80% (0.80). Enter the result here and on line 28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . diff --git a/source_conflicts/sources/us-mn/minn-stat-2900122-subd2-and8.txt b/source_conflicts/sources/us-mn/minn-stat-2900122-subd2-and8.txt new file mode 100644 index 00000000000..52e0a6c20f4 --- /dev/null +++ b/source_conflicts/sources/us-mn/minn-stat-2900122-subd2-and8.txt @@ -0,0 +1,6 @@ +Source: https://www.revisor.mn.gov/statutes/cite/290.0122 +2026 subdivisions 2 and 8; text extracted from official HTML with Python html.parser; whitespace collapsed. + +§ Subd. 2. Deductions limited; inflation adjustment. (a) The itemized deductions of a taxpayer with adjusted gross income over $220,650 are reduced by the lesser of: (1) three percent of the excess of the taxpayer's adjusted gross income over $220,650 but not over $304,970; plus ten percent of the taxpayer's adjusted gross income over $304,970; or (2) 80 percent of the amount of the taxpayer's itemized deductions. (b) Notwithstanding paragraph (a), for a taxpayer with adjusted gross income over $1,000,000, a taxpayer's itemized deductions are reduced by 80 percent. (c) For a married individual filing a separate return, the reduction under paragraph (a) must be calculated using one-half of the adjusted gross income amounts specified in that paragraph. (d) For the purposes of this subdivision, "itemized deductions" means the itemized deductions otherwise allowable to the taxpayer under subdivision 1, except itemized deductions excludes: (1) the portion of the deduction for interest under subdivision 5 that represents investment interest; (2) the deduction for medical expenses under subdivision 6; and (3) the deduction for losses under subdivision 8. (e) For taxable years beginning after December 31, 2023, the commissioner must adjust for inflation the adjusted gross income amounts under paragraphs (a) and (b) as provided in section 270C.22 . The statutory year is taxable year 2023. The amounts as adjusted must be rounded down to the nearest $50 amount. The threshold amount for married individuals filing separate returns must be one-half of the adjusted amount for married individuals filing joint returns. + +§ Subd. 8. Losses. A taxpayer is allowed a deduction for losses allowed under section 165(a) of the Internal Revenue Code, including the limitation provided by section 67(b)(3) of the Internal Revenue Code, for the following: (1) losses described in section 165(c)(3) of the Internal Revenue Code, including the provisions of section 165(h) of the Internal Revenue Code, but disregarding paragraph (h)(5); and (2) losses described in section 165(d) of the Internal Revenue Code.