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/alaska-pfd-comparison-documentation.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Document automatic Alaska PFD and energy relief calculations, person-level overrides, and the 2022 payment split.
1 change: 1 addition & 0 deletions changelog.d/california-municipal-bond-interest.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add an optional California out-of-state municipal bond interest input for nondependent filers and document the zero-addback default.
1 change: 1 addition & 0 deletions changelog.d/state-income-tax-before-rebates.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add state income tax rebate adjustments and a pre-rebate comparison output that preserves ordinary credits and existing tax calculations.
1 change: 1 addition & 0 deletions changelog.d/tax-unit-role-documentation.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify tax-unit dependent and spouse inference for callers and add explicit-role regression examples.
1 change: 1 addition & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ parts:
chapters:
- file: validation/taxsim
- file: validation/state-rebates
- file: validation/alaska-pfd
- caption: Usage
chapters:
- file: usage/microsimulation
Expand Down
5 changes: 4 additions & 1 deletion docs/gov/states/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
States administer tax and benefit programs, which we show here.

See [state rebate attribution](../../validation/state-rebates.md) for the
eligibility years and credit aggregation paths of one-time state rebates.
eligibility years and credit aggregation paths of one-time state rebates, and
for the pre-rebate comparison output. See
[Alaska Permanent Fund Dividend inputs and overrides](../../validation/alaska-pfd.md)
for Alaska comparisons.
65 changes: 65 additions & 0 deletions docs/validation/alaska-pfd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Alaska Permanent Fund Dividend in model comparisons

PolicyEngine automatically calculates `ak_permanent_fund_dividend` and
`ak_energy_relief` for each person whose household is in Alaska. These amounts
are calculated benefits, rather than imputed income or fixed default inputs.
Current Alaska residence is an eligibility proxy: the model does not check an
application, prior-year residence, or actual receipt. Supplying wages and other
known income does not disable either calculation.

The regular PFD is included in federal gross income for nondependent people.
A dependent child's PFD is not automatically added to the parent's adjusted
gross income (AGI). Tax-unit membership alone does not determine dependent
status; supply explicit roles or dependent status when constructing a household.
The regular dividend appears on [2022 Schedule 1, line
8g](https://www.irs.gov/pub/irs-prior/f1040s1--2022.pdf#page=1).

## Override calculated payments

Supply either variable as an input on the person to replace its calculated
amount. To exclude both transfers from a controlled comparison, set both to zero
for **every person**. Overriding only `ak_permanent_fund_dividend` leaves energy
relief in place. Overriding only tax-unit AGI leaves the underlying person income
and benefit amounts unchanged.

This complete situation retains Alaska residence while excluding both payments:

```yaml
people:
person:
age: {2022: 40}
employment_income: {2022: 50000}
ak_permanent_fund_dividend: {2022: 0}
ak_energy_relief: {2022: 0}
tax_units:
tax_unit:
members: [person]
households:
household:
members: [person]
state_code: {2022: AK}
```

With only the two payment inputs removed, this person's calculated 2022 regular
PFD is \$2,622, energy relief is \$662, and federal AGI is \$52,622. With both inputs
set to zero as above, federal AGI is \$50,000.

## The 2022 regular dividend and energy relief split

Alaska paid \$3,284 in total: \$2,621.81 of regular PFD and \$662.19 of supplemental
energy relief. PolicyEngine rounds these 2022 components to \$2,622 and \$662,
respectively. Putting the full \$3,284 in `ak_permanent_fund_dividend` would mix
the components and increase the modeled taxable amount. The split is described
in [Alaska DOR's February 17, 2023
release](https://dor.alaska.gov/docs/default-source/press-releases/2023_02_17-dor-response-to-irs-guidance-on-2022-pfd.pdf#page=1).

The model excludes the separate energy payment from federal gross income. For
2022, this follows [IRS IR-2023-23, including its Alaska
footnote](https://www.irs.gov/newsroom/irs-issues-guidance-on-state-tax-payments-to-help-taxpayers):
the IRS said it would not challenge exclusion of the supplemental energy
payment, while the regular PFD remained taxable. This was a 2022 administrative
nonchallenge policy, rather than a statutory determination for every recipient.
An exclusion under IRC 139 depends on a qualifying disaster and the connection
between the payment and that disaster; see [Notice 2023-56, section
3.04](https://www.irs.gov/pub/irs-drop/n-23-56.pdf#page=6). This model convention
does not establish those facts or extend the 2022 IRS policy to other years.
100 changes: 100 additions & 0 deletions docs/validation/state-rebates.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,103 @@ for checking the dated aggregation path and applied liability cap.
The [TAXSIM validation comparison](taxsim.md#how-agreement-is-measured) includes
a rebate-adjusted metric. Its limitations and each program's aggregation path
matter when reconciling that metric with the reported state income tax.

## Pre-rebate comparison output

Two tax-unit outputs restore one-time rebates to state income tax for
comparison with models that report them separately:

```text
state_income_tax_before_one_time_rebates
= state_income_tax + state_income_tax_rebate_adjustment
```

`state_income_tax_rebate_adjustment` sums the state variables in the
[rebate registry](https://github.com/PolicyEngine/policyengine-us/blob/main/policyengine_us/parameters/gov/states/household/state_income_tax_rebate_adjustments.yaml).
Each restores only the registered rebate amounts that actually reduced that
year's modeled state tax. The comparison liability keeps ordinary credits,
including refundable credits such as state EITCs, so it can be negative.
Neither output changes `state_income_tax`, existing credit totals, or
household net income.

### Scope rule

The registry lists a payment when both of these hold:

1. **The model treats it as one-time.** The state's dated credit list or the
payment's amount gate limits it to named eligibility years. Standing
statutes set up some of these payments, such as Massachusetts Chapter 62F
and Indiana's $125 automatic taxpayer refund, and each paid out in one
modeled year. Temporary credits that aren't rebate or refund payments, such
as Arkansas's 2022–2023 inflationary relief credit, stay in liability.
2. **The model credits it against that year's state income tax,** through
the state's dated credit list or, for Montana, directly in
`mt_refundable_credits`.

Payments with no end year in the model stay in the comparison liability, even
when they return surplus revenue. That covers Colorado's residual TABOR sales
tax refund (`co_sales_tax_refund`) and Oregon's kicker (`or_kicker`), so the
output restores neither. Only the 2021 list includes Colorado Cash Back
(`co_tabor_cash_back`), so the output restores it. Ordinary recurring credits
also stay in liability.

Under this rule the registry covers every payment in the inventory above
except Colorado's sales tax refund, plus these payments modeled through
refundable credits that the inventory does not list:

| Payment and raw variable(s) | Eligibility year in the dated credit list | Aggregation |
|---|---|---|
| Maine affordability payment: `me_affordability_payment` | 2025 only | R: `me_refundable_credits`, per eligible head or spouse. Legally a direct payment; the model assumes full-year residence and doesn't model the filing deadline. |
| Delaware relief rebate: `de_relief_rebate` | 2020 only | R: `de_refundable_credits`, per modeled head or spouse. |
| Idaho rebates: `id_2022_rebate`, `id_special_season_rebate` | 2020 only in the current model | R: the 2020 list includes both and the 2021 list removes them. Their standalone formulas persist. |
| Indiana automatic refund: `in_automatic_refund_rebate` | 2020 only | R: `in_refundable_credits`. The model leaves out the separate $200 credit on the 2022 return for certain Social Security recipients. |
| New York supplemental EITC payment: `ny_supplemental_eitc` | 2021 only, through its amount gate | R: `ny_refundable_credits`. The dated list includes it from 2019, and its match is zero outside 2021. |
| New York additional Empire State child credit payment: `ny_additional_ctc` | 2021 and 2023 | R: `ny_refundable_credits`. |

A raw rebate amount enters the adjustment only in years when the state's
dated credit list includes it, so a positive standalone amount in another
year contributes zero.

### How the adjustment is computed

This is an additive reconciliation with filing choices and other credit
bases held fixed. It does not rerun taxes with the rebates removed.

- **Refundable rebates** restore the registered amounts in the year's
refundable-credit list.
- **Massachusetts** Chapter 62F uses liability after other refundable
credits, including premium pay, as its base. The adjustment restores the
included amounts and keeps that calculated 62F base.
- **Montana's** separate-versus-joint filing election is determined before
its 2021 rebate, by model assumption, and the comparison keeps it.
- **Virginia's** rebate is nonrefundable. With before-credit tax `T`, other
applied nonrefundable credits `C`, rebate `R` and spouse adjustment `S`,
the adjustment is `max(T - C - S, 0) - max(T - C - R - S, 0)`. A calculated
`va_rebate` is already limited to tax after the spouse adjustment and
refundable credits, including the refundable EITC, so the adjustment equals
it. The formula differs only when a caller supplies a larger `va_rebate`.
- **South Carolina's** rebate is already limited to liability remaining
after other credits.

If a caller overrides an aggregate credit total or final tax directly, it must
also supply a consistent adjustment; the model cannot infer the rebate share
of an arbitrary total.

### Differences from the TAXSIM dashboard

The dashboard's "Within 1%, net of rebates" column adds a PolicyEngine rebate
amount computed by policyengine-taxsim from its own rebate list. That list is
not this registry, so the column is not a test of
`state_income_tax_before_one_time_rebates`. At the time of writing they differ
for:

- **Oregon:** policyengine-taxsim includes `or_kicker`, because PolicyEngine
credits the kicker on the return year while TAXSIM reports it for the base
year. This output leaves the kicker in liability under the scope rule.
- **Massachusetts premium pay** and the **Maine affordability payment:** this
registry includes them; policyengine-taxsim's list does not.

Both measures restore Colorado Cash Back and leave out Colorado's sales tax
refund. Both also keep New York's inflation refund, supplemental EITC payment
and additional Empire State child credit payment out of the comparison
liability.
20 changes: 19 additions & 1 deletion docs/validation/taxsim.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,25 @@ The table below is loaded from the results the dashboard publishes, so it always
Each test compares PolicyEngine with TAXSIM for one record at a time, separately for federal income tax and state income tax. A cell in the table is the share of records that pass.

- **Within 1% of income** (the dashboard's default view): the two amounts differ by less than 1% of the record's gross income. Gross income here is wages, self-employment income, interest, dividends, other property income, non-property income, pensions and unemployment compensation, plus short- and long-term capital gains when positive and 85% of Social Security benefits. Records with zero or negative gross income use the \$15 test instead.
- **Within 1%, net of rebates** (state only): the same test applied to state income tax plus one-time state rebates on both sides. It is meant to remove a timing difference: TAXSIM counts a rebate in the year it is paid and PolicyEngine in the tax year it relates to. It is not exact, because TAXSIM also reports some rebates that its state tax does not reflect (Virginia's in 2022 and 2025, for example), so this column can be lower than the plain 1% column. See [state rebate attribution](state-rebates.md) for the eligibility-year convention, inventory, and guidance on restoring only rebates that actually reduced the reported tax.
- **Within 1%, net of rebates** (state only): the same test applied to state income tax plus one-time state rebates on both sides. It is meant to remove a timing difference: TAXSIM counts a rebate in the year it is paid and PolicyEngine in the tax year it relates to. It is not exact, because TAXSIM also reports some rebates that its state tax does not reflect (Virginia's in 2022 and 2025, for example), so this column can be lower than the plain 1% column. See [state rebate attribution](state-rebates.md) for the eligibility-year convention, inventory, and guidance on restoring only rebates that actually reduced the reported tax. The column's PolicyEngine rebate amount comes from policyengine-taxsim's own rebate list, not from the model's `state_income_tax_before_one_time_rebates` output; the [state rebate page](state-rebates.md#differences-from-the-taxsim-dashboard) lists where the two differ.
- **Within \$15**: the two amounts differ by \$15 or less.

These rules are implemented in `match_flags` in [`scripts/refresh_dashboard.py`](https://github.com/PolicyEngine/policyengine-taxsim/blob/main/scripts/refresh_dashboard.py). Each year's published summary records the commit and script hash that produced it.

## Constructing comparison inputs

Supply `is_tax_unit_dependent` for dependents or complete `tax_unit_role_input`
roles for all members. Tax-unit membership and a `filing_status` input alone do
not prevent an adult member from being inferred as a spouse.

For California, `tax_exempt_interest_income` has no issuer-state split by
itself. The default treats it all as California-source for the state addback.
Supply the other-state portion as `ca_out_of_state_municipal_bond_interest`
on each person, and include that portion in `tax_exempt_interest_income` too.
Only nondependent members' amounts enter the filer's California AGI; a parent
election to report a dependent's interest is not inferred. The new input
defaults to zero and does not change federal AGI.

Alaska residence automatically calculates the regular PFD and any energy relief,
even when other income is supplied. See [Alaska PFD comparisons](alaska-pfd.md)
for per-person overrides and the separate 2022 taxable and energy components.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
description: >-
The pre-rebate state income tax comparison output restores these state
adjustments. Each covers a rebate or refund payment that the model credits
against state income tax only in named eligibility years. Payments with no
end year in the model, such as Colorado's residual TABOR sales tax refund and
Oregon's kicker, stay in liability, as do ordinary credits, including
temporary ones. Standing statutes set up some registered payments, such as
the Massachusetts Chapter 62F refund and Indiana's $125 automatic taxpayer
refund, and each paid out in one modeled year. Dated credit lists and amount
gates decide whether a registered payment counts in a given year.
values:
0000-01-01:
- az_income_tax_rebate_adjustment
- co_income_tax_rebate_adjustment
- ct_income_tax_rebate_adjustment
- de_income_tax_rebate_adjustment
- ga_income_tax_rebate_adjustment
- hi_income_tax_rebate_adjustment
- id_income_tax_rebate_adjustment
- il_income_tax_rebate_adjustment
- in_income_tax_rebate_adjustment
- ma_income_tax_rebate_adjustment
- me_income_tax_rebate_adjustment
- mt_income_tax_rebate_adjustment
- nm_income_tax_rebate_adjustment
- ny_income_tax_rebate_adjustment
- ri_income_tax_rebate_adjustment
- sc_income_tax_rebate_adjustment
- va_income_tax_rebate_adjustment
metadata:
unit: list
period: year
label: State income tax rebate adjustments
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# FTB Publication 1001: 2023 page 7 and 2025 page 8, Non-California bonds.
# CA AGI equals federal AGI plus the interest from other states' bonds.
- name: California bonds have no addback without an out-of-state amount in 2023
period: 2023
input:
state_code: CA
age: 40
employment_income: 100_000
tax_exempt_interest_income: 50_000
output:
ca_out_of_state_municipal_bond_interest: 0
adjusted_gross_income: 100_000
ca_additions: 0
ca_agi: 100_000

- name: Mixed holdings add only the out-of-state share in 2023
period: 2023
input:
state_code: CA
age: 40
employment_income: 100_000
tax_exempt_interest_income: 50_000
ca_out_of_state_municipal_bond_interest: 12_500
output:
adjusted_gross_income: 100_000
ca_additions: 12_500
ca_agi: 112_500

- name: All other-state municipal bond interest is added back in 2023
period: 2023
input:
state_code: CA
age: 40
employment_income: 100_000
tax_exempt_interest_income: 50_000
ca_out_of_state_municipal_bond_interest: 50_000
output:
adjusted_gross_income: 100_000
ca_additions: 50_000
ca_agi: 150_000

- name: California bonds have no addback with an explicit zero in 2025
period: 2025
input:
state_code: CA
age: 40
employment_income: 100_000
tax_exempt_interest_income: 50_000
ca_out_of_state_municipal_bond_interest: 0
output:
adjusted_gross_income: 100_000
ca_additions: 0
ca_agi: 100_000

- name: Mixed holdings add only the out-of-state share in 2025
period: 2025
input:
state_code: CA
age: 40
employment_income: 100_000
tax_exempt_interest_income: 50_000
ca_out_of_state_municipal_bond_interest: 12_500
output:
adjusted_gross_income: 100_000
ca_additions: 12_500
ca_agi: 112_500

- name: All other-state municipal bond interest is added back in 2025
period: 2025
input:
state_code: CA
age: 40
employment_income: 100_000
tax_exempt_interest_income: 50_000
ca_out_of_state_municipal_bond_interest: 50_000
output:
adjusted_gross_income: 100_000
ca_additions: 50_000
ca_agi: 150_000

- name: Tax unit sums each member's out-of-state interest alongside other additions
period: 2025
input:
people:
head:
age: 40
employment_income: 60_000
tax_exempt_interest_income: 20_000
ca_out_of_state_municipal_bond_interest: 5_000
spouse:
age: 40
employment_income: 40_000
tax_exempt_interest_income: 30_000
ca_out_of_state_municipal_bond_interest: 7_500
tax_units:
tax_unit:
members: [head, spouse]
filing_status: JOINT
ca_other_additions: 1_000
households:
household:
members: [head, spouse]
state_code: CA
output:
adjusted_gross_income: 100_000
ca_additions: 13_500
ca_agi: 113_500

# FTB 3803 instructions, sections A and C: reporting a child's interest on
# the parent's California return requires an election. None is supplied here.
# https://www.ftb.ca.gov/forms/2025/2025-3803-instructions.html
- name: A dependent's own interest does not enter the parent's California AGI
period: 2025
input:
people:
parent:
age: 40
employment_income: 100_000
tax_exempt_interest_income: 50_000
ca_out_of_state_municipal_bond_interest: 12_500
child:
age: 18
is_tax_unit_dependent: true
tax_exempt_interest_income: 10_000
ca_out_of_state_municipal_bond_interest: 7_500
tax_units:
tax_unit:
members: [parent, child]
filing_status: SINGLE
households:
household:
members: [parent, child]
state_code: CA
output:
adjusted_gross_income: 100_000
ca_additions: 12_500
ca_agi: 112_500
Loading
Loading