Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/rate-gain-election-tests.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Test the regular tax with 28-percent rate gain, unrecaptured section 1250 gain and a Form 4952 election against the 2025 Schedule D Tax Worksheet, extend the section 911(f) and Form 4952 tests to those gains, and pin a case where an election lawfully lowers the tax by moving gain from the 28 to the 25 percent rate.
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
# 28-percent rate gain (here all collectibles gain, Schedule D line 18) with
# and without a Form 4952 line 4g election, for a single filer aged 45 in
# 2025. Line references are to the 2025 Schedule D Tax Worksheet
# (Instructions for Schedule D, pages 15 and 16):
# line 9 line 7 (net capital gain) less line 8 (the part of the line 4g
# election that comes from the gain)
# line 11 Schedule D lines 18 and 19
# line 12 the smaller of line 9 or line 11
# line 13 line 10 less line 12
# line 18 line 1 less line 10
# line 19 the smaller of line 1 or $197,300, the top of the 24% bracket
# line 20 the smaller of line 14 or line 19
# line 21 the larger of line 18 or line 20, taxed at the regular rates
# line 42 line 1 less lines 21, 22, 30, 33 and 39, taxed at 28%
# line 47 the smaller of line 45 (the sum) or line 46 (the tax on line 1)
# 26 U.S.C. 1(h)(1)(F) taxes at 28% only "the amount of taxable income in
# excess of the sum of the amounts on which tax is determined under the
# preceding subparagraphs", and the election removes the elected gain from
# net capital gain (1(h)(2)), so the 28% amount is never more than line 9 or
# taxable income. The standard deduction is $15,750. Tax on an amount
# between $103,350 and $197,300 is 24% of it less $7,153; between $250,525
# and $626,350, 35% of it less $30,452.75 (2025 Tax Computation Worksheet).

- name: Collectibles gain with no taxable income bears no tax
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 45
employment_income: 0
long_term_capital_gains: 10_000
long_term_capital_gains_on_collectibles: 10_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: TX
output:
# Line 1 = 10,000 - 15,750, so zero. Lines 9 to 12 = 10,000; line 13 =
# 0; line 14 = 0; line 21 = 0; line 42 = 0. Line 47 = 0.
taxable_income: 0
capital_gains_tax: 0
income_tax_before_credits: 0

- name: Collectibles gain above taxable income is not taxed at 28%
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 45
employment_income: 10_750
long_term_capital_gains: 10_000
long_term_capital_gains_on_collectibles: 10_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: TX
output:
# Line 1 = 20,750 - 15,750 = 5,000. Lines 9 to 12 = 10,000; line 13 = 0;
# line 14 = 5,000; line 16 = 5,000, the same as line 1, so lines 23 to
# 43 are skipped. Line 21 = 5,000; line 44 = line 46 = 10% of 5,000 =
# 500 at the exact rates the model uses (the Tax Table row 5,000-5,050
# gives 503). Taxing all 10,000 at 28% would add 2,800.
taxable_income: 5_000
income_tax_main_rates: 500
capital_gains_tax: 0
income_tax_before_credits: 500

- name: Half the collectibles gain elected as investment income
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 45
employment_income: 100_000
long_term_capital_gains: 100_000
long_term_capital_gains_on_collectibles: 100_000
investment_income_elected_form_4952: 50_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: TX
output:
# Line 1 = 184,250. Line 3 = 50,000; line 4 = 100,000; line 8 = 50,000;
# line 9 = 50,000; line 10 = 50,000. Line 11 = 100,000; line 12 =
# 50,000; line 13 = 0; line 14 = 184,250. Line 18 = 134,250; line 19 =
# 184,250; line 20 = 184,250; line 21 = 184,250, all of line 1, so line
# 42 = 0. Line 44 = line 46 = 24% of 184,250 less 7,153 = 37,067.
# Taxing line 18 at the regular rates (25,067) and 28% of the 50,000 left
# (14,000) would give 39,067, more than line 46.
taxable_income: 184_250
dwks09: 50_000
dwks10: 50_000
dwks19: 184_250
income_tax_main_rates: 37_067
capital_gains_tax: 0
income_tax_before_credits: 37_067

- name: All the collectibles gain elected as investment income
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 45
employment_income: 100_000
long_term_capital_gains: 100_000
long_term_capital_gains_on_collectibles: 100_000
investment_income_elected_form_4952: 100_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: TX
output:
# Line 8 = 100,000; line 9 = 0; line 10 = 0; line 12 = 0; line 13 = 0.
# Line 18 = 184,250 = line 21; line 42 = 0. Line 47 = tax on 184,250.
taxable_income: 184_250
dwks10: 0
dwks19: 184_250
income_tax_main_rates: 37_067
capital_gains_tax: 0
income_tax_before_credits: 37_067

- name: The same collectibles gain with no election
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 45
employment_income: 100_000
long_term_capital_gains: 100_000
long_term_capital_gains_on_collectibles: 100_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: TX
output:
# Lines 9 to 12 = 100,000; line 13 = 0; line 14 = 184,250. Line 18 =
# 84,250, but line 19 = 184,250 and line 20 = 184,250, so line 21 =
# 184,250: the gain falls below the top of the 24% bracket and is taxed
# at the regular rates (1(h)(1)(A)(ii)). Line 47 = 37,067. Taxing 84,250
# at the regular rates (13,449) and all 100,000 at 28% would give 41,449.
taxable_income: 184_250
dwks19: 184_250
income_tax_main_rates: 37_067
capital_gains_tax: 0
income_tax_before_credits: 37_067

- name: An election above the 24% bracket leaves 28% on line 9 only
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 45
employment_income: 300_000
long_term_capital_gains: 100_000
long_term_capital_gains_on_collectibles: 100_000
investment_income_elected_form_4952: 50_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: TX
output:
# Line 1 = 384,250. Line 9 = 50,000; line 10 = 50,000; line 11 =
# 100,000; line 12 = 50,000; line 13 = 0; line 14 = 384,250. Line 18 =
# 334,250; line 19 = 197,300; line 20 = 197,300; line 21 = 334,250. Line
# 22 = 0; lines 30 and 33 = 0; Schedule D line 19 is zero, so lines 35
# to 40 are skipped. Line 41 = 334,250; line 42 = 50,000; line 43 =
# 14,000. Line 44 = 35% of 334,250 less 30,452.75 = 86,534.75. Line 45 =
# 100,534.75; line 46 = 104,034.75; line 47 = 100,534.75. The Form 6251
# tentative minimum tax, 28% of 311,900 less 4,782 = 82,550, is lower, so
# there is no AMT. Taxing all 100,000 at 28% would tax the elected 50,000
# twice: 114,534.75.
taxable_income: 384_250
dwks19: 334_250
income_tax_main_rates: 86_534.75
capital_gains_tax: 14_000
alternative_minimum_tax: 0
income_tax_before_credits: 100_534.75
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,28 @@
taxable_income_taxed_below_25_percent: 201_775
dwks19: 200_000
capital_gains_excluded_from_taxable_income: 100_000

# 26 U.S.C. 1(h)(1), "shall not exceed", on the reform's rate schedule. From
# 2026 the schedule taxes $49,300 to $119,400 (single) at 25 percent, below
# the 28 percent of subparagraph (F). Single, taxable income $100,000, all
# $50,000 of net capital gain 28-percent rate gain. Regular rate amount:
# the greater of $50,000 or the lesser of $49,300 and $100,000, $50,000; its
# tax is 10% of $12,150 plus 15% of $37,150 plus 25% of $700 = $6,962.50.
# Subparagraph (F): 28% of the other $50,000 = $14,000. The tax on all
# $100,000 is $6,787.50 plus 25% of $50,700 = $19,462.50, so the capital
# gains tax is $12,500, not $14,000.
- name: Additional tax bracket reform's own limit on the regular tax
period: 2026
absolute_error_margin: 0.01
reforms: policyengine_us.reforms.additional_tax_bracket.additional_tax_bracket_reform.additional_tax_bracket
input:
gov.contrib.additional_tax_bracket.in_effect: true
filing_status: SINGLE
taxable_income: 100_000
long_term_capital_gains: 50_000
capital_gains_28_percent_rate_gain: 50_000
output:
capital_gains_excluded_from_taxable_income: 50_000
income_tax_main_rates: 6_962.50
tax_on_taxable_income_at_main_rates: 19_462.50
capital_gains_tax: 12_500
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,32 @@
output:
taxable_income: 584_250
capital_gains_tax: 69_346

# 26 U.S.C. 1(h)(1), "shall not exceed": as in the baseline, the regular tax
# is at most the tax on all taxable income at the regular rates. 2025,
# single, $64,100 of wages and $125 of long-term gain: taxable income
# $48,475, of which $48,350 is ordinary income (tax $5,563.50). The gain
# lies above the $48,350 0% amount and is taxed at 15% ($18.75), but the tax
# on all $48,475 is $5,578.50, so the capital gains tax is $15.
- name: Reform active, the regular tax is limited to the tax on all taxable income
period: 2025
absolute_error_margin: 0.01
reforms: policyengine_us.reforms.biden.budget_2025.capital_gains_tax_increase.capital_gains_tax_increase
input:
gov.contrib.biden.budget_2025.capital_gains.active: true
people:
head:
age: 45
employment_income: 64_100
long_term_capital_gains: 125
tax_units:
tax_unit:
members: [head]
households:
household:
members: [head]
state_code: TX
output:
taxable_income: 48_475
income_tax_main_rates: 5_563.50
capital_gains_tax: 15
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,34 @@
taxable_income: 584_250
capital_gains_excluded_from_taxable_income: 386_950
capital_gains_tax: 69_346

# 26 U.S.C. 1(h)(1), "shall not exceed": as in the baseline, the regular tax
# is at most the tax on all taxable income at the regular rates. The
# reform's 0% amount for single filers ($47,025) ends $1,450 below the top
# of the 2025 12% bracket ($48,475). 2025, single, $62,775 of wages and
# $1,450 of long-term gain: taxable income $48,475, of which $47,025 is
# ordinary income (12% of it less $238.50 = $5,404.50). The reform taxes the
# gain at 15% ($217.50), but the tax on all $48,475 is $5,578.50, so the
# capital gains tax is $174.
- name: Reform applied, the regular tax is limited to the tax on all taxable income
period: 2025
absolute_error_margin: 0.01
reforms: policyengine_us.reforms.harris.capital_gains.harris_capital_gains.harris_capital_gains
input:
gov.contrib.harris.capital_gains.in_effect: true
people:
head:
age: 45
employment_income: 62_775
long_term_capital_gains: 1_450
tax_units:
tax_unit:
members: [head]
households:
household:
members: [head]
state_code: TX
output:
taxable_income: 48_475
income_tax_main_rates: 5_404.50
capital_gains_tax: 174
Loading
Loading