Skip to content

The model can move one spouse's Schedule C loss to the other spouse when the owner also has a profit in the other SSTB category #10920

Open

Description

@MaxGhenis

On a joint return, the model splits the tax unit's business loss deduction between the spouses in loss_ald_person. It finds each spouse's own Schedule C loss in total_self_employment_income, which adds self_employment_income and sstb_self_employment_income before it looks for a loss. For the return's own totals, irs_gross_income counts each category's profit on its own and limited_business_loss deducts each category's loss on its own. So when one spouse has a profit in one category and a loss in the other, the model counts the profit in that spouse's gross income and the whole loss in the return's deduction. When the profit covers the loss, the model finds no loss of that spouse's own, and filer_share divides the deduction equally between the spouses, or in proportion to the spouses' other losses when they have some. When the profit falls short, the model finds only the difference, and that smaller amount shrinks the owner's share whenever the other spouse also has losses.

For example, take a married couple filing jointly in Delaware for 2023. The head runs a non-SSTB business with a $10,000 profit and an SSTB business with a $5,000 loss, and the spouse earns $30,000 in wages. In the last column, we set loss_ald_person to each spouse's own loss.

Head, spouse Model Each spouse's own loss
loss_ald_person $2,500, $2,500 $5,000, $0
adjusted_gross_income_person $7,146.76, $27,500 $4,646.76, $30,000
Delaware income tax $852.00 (combined separate) $955.65 (joint)
Virginia income tax, same couple $579.34 $605.00

The return's federal AGI stays at $34,646.76 and its federal income tax at $601.74 under both splits. Only the per-person columns move, and with them the state results that read them. If the head instead has a single $5,000 non-SSTB profit, the same net income, the model gives AGIs of $4,646.76 and $30,000 and Delaware tax of $955.65.

If the spouse also has a $2,000 rental loss, the model puts all $7,000 of the return's business loss in the spouse's column, so the per-person AGIs come to $9,646.76 and $23,000. With each spouse's own loss they come to $4,646.76 and $28,000, and Delaware tax comes to $844.65, against the model's $629.47.

If the head's non-SSTB business earns $3,000 instead of $10,000, the model finds a $2,000 loss of the head's own. With no loss for the spouse, it gives the head the whole $5,000 deduction. With the spouse's $2,000 rental loss, it splits the $7,000 deduction into $3,500 and $3,500, where each spouse's own losses come to $5,000 and $2,000.

The model moves a loss away from its owner only when one person has self_employment_income and sstb_self_employment_income of opposite signs, and a state's tax moves only where its formulas read the per-person columns. When both of the head's categories show losses, such as $3,000 and $2,000, the model gives the head the whole $5,000. None of the 166,321 person records in the default dataset has amounts in both categories, so the defect reaches only household calculations that set both.

What the rules say

The head files a Schedule C for each business, so both results, and the loss, belong to the head. In its 2023 Instructions for Schedule C, the IRS tells an owner of more than one business to "complete a separate Schedule C for each business."

Delaware lets married couples file combined separate returns (Filing Status 4). In its 2023 resident instructions, Delaware tells spouses filing separately, "You must each report your own income, losses, and deductions". Delaware printed the same sentence in its 2022 and 2025 instructions. On the Line 1 worksheet on the next page, each spouse enters their own "Business income or (loss)".

Code

The model's Delaware formulas start each spouse's Delaware AGI from their federal AGI in de_pre_exclusions_agi.py#L12 and pick the cheaper filing status in de_files_separately.py#L26-L28. The Virginia formula in va_agi_person.py#L15 also starts from each spouse's federal AGI. Formulas in DC, Illinois, Kentucky, Minnesota, Montana, Ohio, Utah and West Virginia, Medicaid's per-person MAGI and 42 state withholding formulas also read adjusted_gross_income_person, above_the_line_deductions_person or loss_ald_person. For this couple, Kentucky's tax stays at $1,290.90 because ky_federal_agi.py#L49-L59 rebuilds each spouse's loss by owner. Montana's stays at $665.67 because mt_loss_ald_reallocation.py#L34-L37 divides the loss equally through 2023. DC's tax stays at $277.87 and Ohio's at $0 under both splits. Open PR #10015 builds Missouri's per-spouse federal AGI by owner and leaves loss_ald_person unchanged.

Reproduction

from policyengine_us import Simulation

def household(state, own_losses=None):
    head = {"age": {2023: 40}, "self_employment_income": {2023: 10_000},
            "sstb_self_employment_income": {2023: -5_000}}
    spouse = {"age": {2023: 40}, "employment_income": {2023: 30_000}}
    if own_losses:
        head["loss_ald_person"] = {2023: own_losses[0]}
        spouse["loss_ald_person"] = {2023: own_losses[1]}
    return {
        "people": {"head": head, "spouse": spouse},
        "tax_units": {"tu": {"members": ["head", "spouse"]}},
        "households": {"h": {"members": ["head", "spouse"],
                             "state_code": {2023: state}}},
    }

for label, own in [("model", None), ("each spouse's own loss", (5_000, 0))]:
    sim = Simulation(situation=household("DE", own))
    print(label)
    for v in ["adjusted_gross_income_person", "adjusted_gross_income",
              "income_tax", "de_income_tax"]:
        print(f"  {v}: {[round(float(x), 2) for x in sim.calculate(v, 2023)]}")

At 045d1ae, this prints:

model
  adjusted_gross_income_person: [7146.76, 27500.0]
  adjusted_gross_income: [34646.76]
  income_tax: [601.74]
  de_income_tax: [852.0]
each spouse's own loss
  adjusted_gross_income_person: [4646.76, 30000.0]
  adjusted_gross_income: [34646.76]
  income_tax: [601.74]
  de_income_tax: [955.65]

Fix

List self_employment_income and sstb_self_employment_income in BUSINESS_INCOME_SOURCES in place of total_self_employment_income, as limited_business_loss and ky_federal_agi already do. With that list, loss_ald_person finds the head's $5,000 SSTB loss and no loss for the spouse, so it gives the head the whole deduction, the split in the last column above. In both rental-loss cases it gives the head $5,000 and the spouse $2,000.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions