Skip to content

Fix federal, Oregon, and Hawaii non-itemizer charitable deductions - #11313

Draft
MaxGhenis wants to merge 6 commits into
mainfrom
or-170p-standard-deduction
Draft

MaxGhenis wants to merge 6 commits into
mainfrom
or-170p-standard-deduction

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Agent-written for Max, by a Codex cloud task and Claude Code for Max Ghenis; no person has reviewed it yet.

What and why

Oregon uses the federal section 170(p) amount for eligible federal non-itemizers who take Oregon’s standard deduction in 2021 and from 2026. In 2021, Oregon compares the standard and itemized deduction lines before applying code 363. Linked spouses filing separately in 2021 both itemize if either spouse’s itemized amount meets or exceeds their standard deduction, or if either spouse cannot take the standard deduction. From 2026, Oregon compares itemized deductions with the standard deduction plus eligible charity. When both linked spouses can take the standard deduction, their common election uses the combined deductions. Oregon itemizers claim their eligible gifts through Schedule OR-A. 2021 Publication OR-17, pages 17, 70 and 95

  • Under the reading in Oregon taxable income leaves out the charitable deduction for non-itemizers (26 U.S.C. 170(p)) in 2021 and from 2026 #11279, Oregon starts from federal taxable income under ORS 316.012(2) and 316.048. Under ORS 316.695(1), Oregon adds back the federal standard or itemized deduction and applies the Oregon deduction. The official Oregon Legislature copies still need direct verification. ORS chapter 316 · Oregon Laws 2026 chapter 142
  • Federal non-itemizers deduct section 170(p) under section 63(b)(4). Federal itemizers exclude that amount under section 63(d)(2). A federal itemizer who takes Oregon’s standard deduction gets zero under section 170(p). Oregon adds back their federal itemized deduction and applies its own standard deduction. 26 U.S.C. 63, 2024 edition
  • The Department of Revenue limits 2021 subtraction code 363 to federal non-itemizers. Its note for Oregon itemizers directs them to Schedule OR-A. 2021 Publication OR-17, page 70
  • Congress capped the deduction at $300, or $600 for a joint return, in 2021. P.L. 119-21 § 70424 raises those caps to $1,000 and $2,000 for tax years beginning after 2025. The federal helper counts eligible current-year cash gifts by the filer and a spouse on a joint return. The model also limits the deduction to 100% of the nonnegative federal contribution base in 2021 under the temporary election and 60% from 2026. Section 170(p) excludes the itemized floor and carryovers. 26 U.S.C. 170, 2024 edition · P.L. 119-21
  • Hawaii computes its non-itemizer amount using the applicable cash ceiling and Hawaii AGI.
  • The 2026 line follows the statutory reading pending the 2026 return forms. The Legislative Revenue Office counted the deduction as a revenue loss through Oregon’s rolling connection to federal taxable income. LRO Report #3-25

Oregon reads tax_unit_itemizes. The joint election in #11157 sets that input in each branch. Oregon uses the federal charity calculation for gift eligibility. Its inputs cannot distinguish gifts to supporting organizations and donor-advised funds, which taxpayers exclude under section 170(p).

A caller can set tax_unit_itemizes or charitable_deduction_for_non_itemizers directly. In 2021 and from 2026, Oregon treats a negative charity override as zero and adds a positive override when a federal non-itemizer takes Oregon’s standard deduction. A reform of gov.irs.deductions.itemized.charity.non_itemizers_amount reaches Oregon. Multnomah County’s Preschool for All tax reads Oregon taxable income, so the change reaches residents above the county tax’s thresholds.

Test plan

  • Pass the formula and household regressions with a $0.10 absolute margin.
  • Pass the Oregon, Hawaii and federal YAML checks and the override branch tests.
  • Pass the source-conflict guard for the 2021 final instructions and 2026 draft instructions. Cover Oregon’s 2021 deduction comparison, the federal election gate, and overrides in years without a section 170(p) deduction.
  • Pass Ruff format and lint checks on the formula.
  • Add a changelog fragment.
Case Calculation Expected
F1 max(1,000, 2,910 + 1,000) $3,910
F2 max(1,000, 2,910 + 0) for a federal itemizer $2,910
F3 max(6,000, 2,910 + 1,000) $6,000
F4 max(3,500, 2,910 + 1,000) $3,910
H1 max(1,000 − 0.005 × 75,000, 2,910 + 1,000) $3,910
H2 max(2,000 − 0.005 × 150,000, 5,820 + 2,000) $7,820
H5 2,350 + min(300, 500), since 2,350 > 500 before code 363 $2,650
H6 4,700 + min(600, 1,000), since 4,700 > 1,000 before code 363 $5,300
H7 max(1,000, 2,835 + 0) in 2025 $2,835

The H5 and H6 federal itemized totals include the gift and model-estimated Oregon withholding. They total $4,412.375 and $9,287.375, below the respective federal standard deductions plus charity of $12,850 and $25,700. 2021 Form 1040 · 2021 Publication OR-17, page 142

H3 and H4 check model integration with the existing withholding-based Oregon amounts. They use the existing federal standard deductions of $16,100 and $32,200. The 12% brackets run to $50,400 and $100,800, followed by 22%. The checks use the existing Oregon standard deductions, rates and brackets, $8,750 federal-tax subtraction cap, and $263 exemption credit. Final annual-return amounts remain open. IRS Rev. Proc. 2025-32 · Oregon 2026 withholding formulas, page 6

  • H3. Federal taxable income falls from $58,900 to $57,900. Federal tax falls from $7,670 to $1,240 + $4,560 + $7,500 × 22% = $7,450. Oregon taxable income is $75,000 − $7,450 − $3,910 = $63,640. Oregon tax is $4,550 × 4.75% + $6,850 × 6.75% + $52,240 × 8.75% − $263 = $4,986.50.
  • H4. Federal tax is $2,480 + $9,120 + $15,000 × 22% = $14,900, above Oregon’s $8,750 cap. Oregon taxable income is $150,000 − $8,750 − $7,820 = $133,430. Oregon tax is $9,100 × 4.75% + $13,700 × 6.75% + $110,630 × 8.75% − $526 = $10,511.125. The 2026 kicker rate is zero.

Follow-up

Confirm Oregon’s 2026 standard deductions and exemption credit
Compare the $2,910 and $5,820 deductions and $263 withholding allowance with the $2,900 and $5,800 deductions and $260 credit in OR-ESTIMATE. Withholding formulas, page 6 · OR-ESTIMATE, page 3
Use the final Form OR-40 instructions to confirm the amounts for annual returns.

axiom: needed

🤖 Generated with Claude Code

Apply the federal charitable deduction to the Oregon standard deduction when the filer takes the federal standard deduction.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8999568) to head (cf3aa34).
⚠️ Report is 376 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11313   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           24        13   -11     
=========================================
- Hits            24        13   -11     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

MaxGhenis and others added 2 commits November 30, 2026 11:40
Count the federal non-itemizer charitable deduction for the filer and a
joint spouse only, apply the 60% contribution-base ceiling from 2026, give
linked separate Oregon returns one election, add the deduction only with a
positive Oregon standard deduction, and floor a negative override at zero.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis MaxGhenis changed the title Subtract the federal charitable deduction for non-itemizers from Oregon taxable income Fix federal non-itemizer charitable deductions and apply them in Oregon Nov 30, 2026
Apply the 2021 cash ceiling and use Hawaii adjusted gross income for Hawaii's deduction. Count minor filers' own gifts and apply Oregon's 2021 deduction comparison and statutory years.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
@MaxGhenis MaxGhenis changed the title Fix federal non-itemizer charitable deductions and apply them in Oregon Fix federal, Oregon, and Hawaii non-itemizer charitable deductions Dec 1, 2026
MaxGhenis and others added 2 commits December 1, 2026 06:53
policyengine_us/variables/gov/states/hi/tax/income/deductions/hi_deductions.py uses the effective Hawaii election and applies the Hawaii AGI charity limit.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant