Skip to content

Fix DC itemized deductions for section 68 and investment interest - #11292

Draft
MaxGhenis wants to merge 6 commits into
mainfrom
dc-itemized-2026-sec68
Draft

MaxGhenis wants to merge 6 commits into
mainfrom
dc-itemized-2026-sec68

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #11264
Fixes #11265

What and why

From 2026, DC applies section 68 to federal itemized deductions before the local 5% reduction. The calculation uses allowable investment interest and includes separately reported carryforwards. DC follows an explicit federal filing election. When the election is absent, DC infers it using the federal deductions with allowable interest. D.C. Code §47-1803.04

Congress set the federal reduction at 2/37 of the lesser of itemized deductions and taxable income above the start of the 37% bracket, measured before itemized deductions. The IRS directs affected filers to the worksheet before they enter the total on line 18. P.L. 119-21, §70111 · 2026 draft Schedule A

DC filers keep their investment interest deduction outside the 5% reduction from 2021. The Council carried the exclusion in former 47-1803.03(b-4)(2)(B)(ii) into 47-1803.04(c)(2)(B)(ii) for tax years from 2025. Archived D.C. Code · D.C. Law 26-189, §§7112–7113

For 2021 through 2025, Calculation F line g sets aside Schedule A lines 4, 9 and 15. Line 9 is allowable investment interest. The original examples use $30,000 for both expense and investment income. The added cases cover a binding cap, zero investment income, and expenses paid by a dependent. 2025 D-40 booklet, p. 20 · 2025 Form 4952, p. 1

Calculation choices

  1. Apply Calculation F to the federal total after the full section 68 reduction. Subtract federal SALT and add back real estate taxes before setting aside exempt deductions. Applying section 68 to DC items alone would give A2 $59,324.32. Under either reading, the extra $10,000 gift saves $922.30 in DC tax.
  2. Apply the federal reduction when the federal limitation and its OBBB rules are active. Baseline years 2021–2025 have no federal section 68 cut.
  3. The local reduction is limited to the nonexempt balance after the full federal cut. If the federal cut leaves less than the total of the exempt items, the full remaining DC base is exempt from the local reduction.
  4. Reconcile Schedule A interest with the allowable line 9 amount. A current-interest subtotal excludes a separately reported carryforward. For a reported Schedule A interest total with an undisclosed mortgage breakdown, treat the balance above allowable investment interest as mortgage interest. When a gross federal subtotal is supplied, the election calculation adjusts the interest it contains. Compute the federal section 68 cut on the corrected total, including federal SALT.

Under both the 2025 statute and Calculation F, filers start from federal itemized deductions and set aside investment interest. OTR's forms index lists tax year 2025 as its latest D-40 booklet. OTR individual income tax forms

The statute also excludes wagering losses. Calculation F line g omits Schedule A line 16 for 2021 through 2025. This PR follows the statute and records the worksheet conflict in source_conflicts/candidates.yaml.

Test plan

  • Preserve the original gift, investment-interest, and before-credit tax cases for 2025 and 2026.
  • Verify the investment-income cap, zero and negative expense cases, the joint return with a dependent, a separate carryforward with mortgage interest, a reported interest aggregate, a supplied gross federal subtotal, and both annual property classifications.
  • Verify that the $3,243.24 federal cut leaves $46,756.76 of DC deductions at and above the DC threshold.
  • Verify that $20,000 of deductible wagering losses remains exempt at $210,000 of DC AGI.
  • Pass 367 cases across 23 DC and section 68 YAML files on the branch and on a merge with main.

Related change and follow-up

The merge base is 094934a029cdc646d4db33583fe77031ac2f3403. Both this PR and #10806 edit dc_itemized_deductions.py and dc_deduction_joint.py. Keep one citation to D.C. Code §47-1803.04 when the changes land together.

Check DC Calculation F against the 2026 D-40 booklet

When OTR publishes the TY2026 booklet, check whether filers remove SALT before or after section 68.
Confirm how TY2026 Calculation F treats exempt amounts when section 68 leaves a DC base smaller than their pre-limit total.

axiom: TheAxiomFoundation/rulespec-us#1558 and TheAxiomFoundation/rulespec-us#1661 queued
These issues do not yet cover DC's use of a supplied federal election or inference from corrected Schedule A amounts, or applying the full federal section 68 reduction before DC's 5% reduction on the remaining nonexempt deductions.

🤖 Generated with Claude Code

Use the federal amount after section 68 for DC itemizers from 2026. Keep investment interest outside the 5% reduction as DC law requires.

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

codecov Bot commented Nov 29, 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 (3493377).
⚠️ Report is 366 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11292   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           24        27    +3     
  Branches         0         1    +1     
=========================================
+ Hits            24        27    +3     
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.

Use allowable investment interest in the DC deduction base and preserve the full federal section 68 reduction. Record the wagering loss exclusion under DC law.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
MaxGhenis and others added 4 commits November 30, 2026 17:10
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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

1 participant