Repository navigation
Conversation
…ction California does not apply IRC 163(h)(3)(F) (R&TC 17225(b)), so it keeps the $1,000,000 home acquisition and $100,000 home equity debt limits. Compute them with 2017 Pub. 936 Table 1 and use the result in place of the federal mortgage interest in California itemized deductions. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
MaxGhenis
left a comment
There was a problem hiding this comment.
Agent review for Max, written by Claude Code for Max Ghenis.
Thanks for this. California's nonconformity to the TCJA mortgage limits is a real gap, and the parameters match the FTB and Pub. 936 amounts. A Codex cloud task reviewed b1245c3 (GPT-6.2 Sol at Extra High effort; chat https://chatgpt.com/local/6b0c7b93-0aec-83ea-828c-c346055e5026). Its four P1 findings are below, each with a household case from that review.
1. A dependent's interest enters the filer's deduction. home_mortgage_interest_tax_unit sums every member of the unit. A 2025 head of household pays $30,000 on a $900,000 qualifying mortgage, and a dependent pays $10,000 of their own interest. The filer should deduct $30,000; this head gives $40,000. The merge base already overstated it at $33,333.33.
2. One spouse's gross interest hides the other's supplied deduction. The return at the end of ca_mortgage_interest_deduction.py picks per unit: where(gross_interest > 0, gross_interest * deductible_share, federal_deduction). Joint filers with $20,000 in deductible_mortgage_interest for one spouse and $10,000 in home_mortgage_interest for the other should deduct $30,000. This head gives $10,000, while the merge base gives $20,000.
3. The Schedule CA swap assumes the federal subtotal was built from its parts. In ca_itemized_deductions_pre_limitation.py (about :47-53), a 2025 filer has a $900,000 recent loan and $45,000 of interest. They supply a $35,500 federal subtotal that is already net of a $2,000 Form 8396 credit reduction. California should allow $45,000 of interest. The new variable does, but the subtotal comes to $43,000, because it subtracts a separately computed $37,500 federal component from the supplied $35,500. Both ca_itemized_deductions and the AMT limitation restore read this subtotal.
4. The description's "never below federal" claim does not hold. Table 1 line 11 rounds the share to three places, and the federal code does not. For the review's separate filer with $150 million of debt, California gives $12,000 and federal gives $12,001. The California result follows the worksheet, so the fix is to the description.
Smaller points:
- Negative balances or a prior-year refund entered as negative interest can move the result. Floor them, or document the convention.
- The balance and origination-year inputs leave two worksheet assumptions unstated: which balance (the average or the year-end one) and how a 1987 origination before or after October 13 is treated. Please document both.
- The fair-market-value limit on equity debt and the AMT add-back for equity debt not used for the home are disclosed as not modeled. Each changes regular tax or AMTI in the review's cases, so a follow-up issue would help.
- The description still has
Fixes #<issue>, and the changelog fragment reads "Apply" where the guide asks for the past tense.
The branch also conflicts with main.
Title: Apply California's pre-TCJA mortgage debt limits to the interest deduction
Fixes #
What and why
California does not apply IRC 163(h)(3)(F) (R&TC 17225(b); 2025 Schedule CA (540) instructions, Part II line 8). It keeps the $1,000,000 home acquisition and $100,000 home equity debt limits ($500,000 / $50,000 MFS), however recent the debt. PolicyEngine took California's mortgage interest from the federal
interest_deduction, so a CA itemizer with more than $750,000 of debt was under-deducted.gov.states.ca.tax.income.deductions.itemized.interest.home_acquisition_debt_limitand.home_equity_debt_limit, by filing status, from 2018.ca_mortgage_interest_deductionfollows 2017 Pub. 936 Table 1:_debt_by_vintagehelper) has no dollar limit but reduces the acquisition limit (lines 3–6).home_mortgage_interest_tax_unit). When no gross interest is reported, it keeps a directly supplied federaldeductible_mortgage_interest.ca_itemized_deductions_pre_limitationswaps the federaldeductible_mortgage_interestfor it. This mirrors how it already swaps investment interest for FTB 3526.The California amount is never below the federal amount for the same debt. Both limits use the same vintages, and California's limit is at least the federal one plus the home equity allowance. Only California itemized deductions change; nothing federal does.
Not modelled, as in #9950: the fair-market-value limit on home equity debt, and home equity debt not used to buy, build or improve the home. Neither has an input.
Test plan
ca_mortgage_interest_deduction.yaml, 11 cases. Expected values are worked by hand from 2017 Pub. 936 Table 1 and the federal limits in 163(h)(3)(F); none is copied from model output. The cases cover:ca_itemized_deductions_pre_limitation.policyengine_us/tests/policy/baseline/gov/states/caviatest_batched.py --mode per-subdir --workers 1: 876 passed in 8 batches.partners/analytics_coverage/signatures/federal.yaml,spm_unit_spm_threshold_housing_portion.yaml,policybench_ira.yaml): 29 passed, partner expectations unchanged.policyengine_us/tests/code_health: 288 passed.make formatchangelog.d/axiom: needed