Skip to content

Commit 0a0f6b4

Browse files
MaxGhenisclaude
andcommitted
Add partnership_se_income to SE tax base
- Add partnership_se_income variable for general partners' distributive share of partnership trade/business income from Schedule K-1 Box 14 - Include partnership_se_income in taxable_self_employment_income - Remove s_corp_self_employment_income (S-corp distributions are not subject to SE tax per 26 USC 1402(a)) This correctly implements the SE tax base per 26 USC 1402(a): - Schedule C net profit (self_employment_income) - Schedule F net profit (farm_income) - General partners' K-1 Box 14 income (partnership_se_income) Requires policyengine-us-data PR #481 for the data source. Fixes #5273 Closes #7238 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a44d228 commit 0a0f6b4

4 files changed

Lines changed: 33 additions & 6 deletions

File tree

changelog_entry.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
- bump: minor
22
changes:
3+
added:
4+
- partnership_se_income variable for general partners' SE income from Schedule K-1 Box 14, now included in taxable_self_employment_income per 26 USC 1402(a).
35
removed:
4-
- s_corp_self_employment_income variable. S-corp distributions are not subject to self-employment tax per 26 USC 1402(a).
6+
- s_corp_self_employment_income variable. S-corp distributions are not subject to self-employment tax.

policyengine_us/tests/policy/baseline/gov/irs/self_employment/taxable_self_employment_income.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,24 @@
2424
output:
2525
taxable_self_employment_income: 0
2626

27-
- name: S-corp and partnership income is not subject to SE tax per 26 USC 1402.
27+
- name: S-corp and general partnership distributions not subject to SE tax.
2828
period: 2024
2929
input:
3030
self_employment_income: 50_000
3131
partnership_s_corp_income: 100_000
3232
output:
3333
# Only the $50k self-employment income is subject to SE tax.
34-
# The $100k partnership/S-corp income passes through for income tax
35-
# but is not self-employment income.
34+
# The $100k partnership/S-corp distributions pass through for income tax
35+
# but are not self-employment income (S-corp never, partnership only via K-1 Box 14).
3636
# 50_000 * (1 - 0.5 * 0.153) = 50_000 * 0.9235 = 46_175
3737
taxable_self_employment_income: 46_175
38+
39+
- name: Partnership SE income from K-1 Box 14 is subject to SE tax.
40+
period: 2024
41+
input:
42+
self_employment_income: 50_000
43+
partnership_se_income: 30_000
44+
output:
45+
# Both Schedule C ($50k) and K-1 Box 14 ($30k) are subject to SE tax.
46+
# 80_000 * (1 - 0.5 * 0.153) = 80_000 * 0.9235 = 73_880
47+
taxable_self_employment_income: 73_880

policyengine_us/variables/gov/irs/tax/self_employment/taxable_self_employment_income.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ class taxable_self_employment_income(Variable):
1010
reference = "https://www.law.cornell.edu/uscode/text/26/1402#a"
1111

1212
def formula(person, period, parameters):
13-
# Per 26 USC 1402(a), SE income includes Schedule C and Schedule F income.
14-
# S-corp distributions and partnership income are excluded here.
13+
# Per 26 USC 1402(a), SE income includes:
14+
# - Schedule C net profit (self_employment_income)
15+
# - Schedule F net profit (farm_income)
16+
# - General partners' distributive share (partnership_se_income from K-1 Box 14)
17+
# S-corp distributions are NOT subject to SE tax.
1518
SEI_SOURCES = [
1619
"self_employment_income",
1720
"farm_income",
21+
"partnership_se_income",
1822
]
1923
gross_sei = add(person, period, SEI_SOURCES)
2024
p = parameters(period).gov.irs
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from policyengine_us.model_api import *
2+
3+
4+
class partnership_se_income(Variable):
5+
value_type = float
6+
entity = Person
7+
label = "Partnership self-employment income"
8+
definition_period = YEAR
9+
documentation = "Partnership income subject to self-employment tax from Schedule K-1 Box 14. Only general partners' distributive share of trade/business income is included per 26 USC 1402(a)(13)."
10+
unit = USD
11+
reference = "https://www.law.cornell.edu/uscode/text/26/1402#a_13"

0 commit comments

Comments
 (0)