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/fix-niit-magi-section-911-addback.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the foreign earned income excluded under 26 U.S.C. 911(a)(1) to modified adjusted gross income for the net investment income tax, as 26 U.S.C. 1411(d) requires, through a new niit_magi_section_911_addition variable. It defaults to foreign_earned_income_exclusion; a filer with housing amounts or itemized deductions disallowed under section 911(d)(6) can enter the Form 8960 worksheet amount directly.
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,152 @@
niit_magi: 255_000
net_investment_income: 15_000
net_investment_income_tax: 190

- name: Section 911 exclusion lifts a single filer's MAGI over the threshold
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 150_000
qualified_dividend_income: 50_000
tax_units:
tax_unit:
members: [person1]
foreign_earned_income_exclusion: 100_000
households:
household:
members: [person1]
state_code: TX
output:
# MAGI 200,000 + 100,000 = 300,000; excess over 200,000 is 100,000.
# 3.8% x min(50,000, 100,000) = 1,900.
niit_magi: 300_000
net_investment_income: 50_000
net_investment_income_tax: 1_900

- name: Section 911 exclusion that leaves MAGI below the threshold
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 50_000
qualified_dividend_income: 50_000
tax_units:
tax_unit:
members: [person1]
foreign_earned_income_exclusion: 90_000
households:
household:
members: [person1]
state_code: TX
output:
# MAGI 100,000 + 90,000 = 190,000, below the 200,000 threshold.
niit_magi: 190_000
net_investment_income_tax: 0

- name: Section 911 exclusion where the MAGI excess limits the tax base
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 120_000
qualified_dividend_income: 50_000
tax_units:
tax_unit:
members: [person1]
foreign_earned_income_exclusion: 60_000
households:
household:
members: [person1]
state_code: TX
output:
# MAGI 170,000 + 60,000 = 230,000; 3.8% x min(50,000, 30,000) = 1,140.
niit_magi: 230_000
net_investment_income_tax: 1_140

- name: Section 911 exclusion lifts a joint return's MAGI over the threshold
period: 2025
input:
people:
head:
age: 45
is_tax_unit_head: true
employment_income: 150_000
qualified_dividend_income: 40_000
spouse:
age: 45
is_tax_unit_spouse: true
employment_income: 50_000
tax_units:
tax_unit:
members: [head, spouse]
foreign_earned_income_exclusion: 60_000
marital_units:
marital_unit:
members: [head, spouse]
households:
household:
members: [head, spouse]
state_code: TX
output:
# AGI 240,000 is below the 250,000 joint threshold; MAGI 300,000 is
# 50,000 above it. 3.8% x min(40,000, 50,000) = 1,520.
filing_status: JOINT
adjusted_gross_income: 240_000
niit_magi: 300_000
net_investment_income_tax: 1_520

- name: Section 911 exclusion on a separate return uses the 125,000 threshold
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 100_000
taxable_interest_income: 20_000
tax_units:
tax_unit:
members: [person1]
filing_status: SEPARATE
foreign_earned_income_exclusion: 30_000
households:
household:
members: [person1]
state_code: TX
output:
# MAGI 120,000 + 30,000 = 150,000; 3.8% x min(20,000, 25,000) = 760.
niit_magi: 150_000
net_investment_income_tax: 760

- name: An entered section 911 addition without housing amounts sets the tax
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 100_000
qualified_dividend_income: 50_000
tax_units:
tax_unit:
members: [person1]
# Form 2555 line 45 is 100,000, of which 30,000 is the housing
# exclusion. Section 1411(d) adds back the other 70,000.
foreign_earned_income_exclusion: 100_000
niit_magi_section_911_addition: 70_000
households:
household:
members: [person1]
state_code: TX
output:
# MAGI 150,000 + 70,000 = 220,000; 3.8% x min(50,000, 20,000) = 760.
# The default (the full 100,000) would give 1,900.
niit_magi: 220_000
net_investment_income_tax: 760
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,122 @@
output:
adjusted_gross_income: 160_000
niit_magi: 160_000

- name: The section 911(a)(1) exclusion raises MAGI by the excluded amount
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 150_000
qualified_dividend_income: 50_000
tax_units:
tax_unit:
members: [person1]
foreign_earned_income_exclusion: 100_000
households:
household:
members: [person1]
state_code: TX
output:
# 26 U.S.C. 1411(d); Form 8960 Line 13 MAGI Worksheet: line 1 AGI
# 200,000 plus line 2c 100,000.
adjusted_gross_income: 200_000
niit_magi_section_911_addition: 100_000
niit_magi: 300_000

- name: The section 911 addition and positive code H both raise MAGI
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 150_000
estate_income: 10_000
estate_income_net_investment_income_adjustment: 4_000
tax_units:
tax_unit:
members: [person1]
foreign_earned_income_exclusion: 20_000
households:
household:
members: [person1]
state_code: TX
output:
adjusted_gross_income: 160_000
niit_magi: 160_000 + 4_000 + 20_000

- name: An entered worksheet amount replaces the default, leaving out housing amounts
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 150_000
qualified_dividend_income: 50_000
tax_units:
tax_unit:
members: [person1]
# Form 2555 line 45 is 100,000: a 70,000 foreign earned income
# exclusion (line 42) and a 30,000 housing exclusion (line 36).
# Section 1411(d) adds back only the line 42 amount.
foreign_earned_income_exclusion: 100_000
niit_magi_section_911_addition: 70_000
households:
household:
members: [person1]
state_code: TX
output:
adjusted_gross_income: 200_000
niit_magi: 270_000

- name: A negative entered addition leaves MAGI at AGI
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 150_000
tax_units:
tax_unit:
members: [person1]
niit_magi_section_911_addition: -5_000
households:
household:
members: [person1]
state_code: TX
output:
# Section 1411(d) adds "the excess (if any)", never a negative amount.
niit_magi: 150_000

- name: An entered worksheet amount restores itemized deductions netted out of the exclusion
period: 2025
input:
people:
person1:
age: 45
is_tax_unit_head: true
employment_income: 150_000
qualified_dividend_income: 50_000
tax_units:
tax_unit:
members: [person1]
# Foreign Earned Income Tax Worksheet line 2c: a 100,000 foreign
# earned income exclusion (Form 2555 lines 42 and 45; no housing
# amounts and nothing on line 44) less 5,000 of itemized deductions
# disallowed because they relate to it (line 2b). Section 1411(d)(2)
# subtracts only deductions taken into account in computing AGI, so
# the addition is 100,000.
foreign_earned_income_exclusion: 95_000
niit_magi_section_911_addition: 100_000
households:
household:
members: [person1]
state_code: TX
output:
adjusted_gross_income: 200_000
niit_magi: 300_000
Loading
Loading