Home / Helpful Guides / CA Form 540 Line by Line
CALIFORNIA TAX

California Form 540: Resident Income Tax Return — Line by Line

Form 540 is the California resident income tax return. If you lived in California for all 12 months of the tax year, this is your return. It starts where your federal 1040 leaves off, then applies California’s own adjustments, deductions, tax rates, and credits. This page walks through every major section of the form so you know exactly what each line is doing — and where California’s rules split from federal. Line numbers below match the 2024 Form 540 (filed in 2025) and the 2025 form, which carry the same line layout.

This page links to our full Form 540 section-by-section series. Each subpage covers that area in detail — what goes there, where the numbers come from, common mistakes, and how it all connects.

What Form 540 Is and Who Files It

California has three personal income tax returns: the 540 (full-year residents), the 540NR (part-year and nonresidents), and the 540 2EZ (simplified version with income limits). Most people living and working in California file the standard 540.

You’re a full-year resident if California was your domicile for the entire tax year — or if you were physically present in the state for more than nine months, even if you didn’t consider it “home.” California’s definition of residency is broader than most states, and the Franchise Tax Board doesn’t shy away from asserting it. If you split time between California and another state, that’s a 540NR situation, not a 540.

The 540 doesn’t exist in a vacuum. It’s built on top of your federal return. Your federal adjusted gross income (AGI) flows directly onto line 13, and from there California makes its own modifications. So you can’t file your 540 until your federal 1040 is done — or at least drafted far enough to have a final AGI number.

One thing worth knowing up front: California does not conform to every federal tax provision. Some deductions the IRS allows, the FTB doesn’t. Some income the IRS excludes, California taxes. That’s what Schedule CA (540) is for, and we’ll get into it below.

Filing Status, Dependent Box, and Exemption Credits (Lines 1–11)

Lines 1 through 5 on Form 540 ask for your filing status. California recognizes the same five statuses as the IRS — single, married/RDP filing jointly, married/RDP filing separately, head of household, and qualifying surviving spouse/RDP. Your California filing status almost always matches your federal one, but there’s a wrinkle for registered domestic partners: California treats them as married for state tax purposes, even though federal status might differ.

Line 6 is the box you check if someone else can claim you (or your spouse/RDP) as a dependent. Lines 7 through 10 build the exemption-credit count: line 7 is the personal exemption (1 if you’re single, 2 if filing jointly), line 8 is the visually impaired exemption, line 9 is the senior exemption (you or spouse 65+), and line 10 lists each dependent. Line 11 then dollarizes the count using the current personal exemption credit amount and the dependent exemption credit amount, and the total transfers down to line 32.

For 2024 returns, the personal exemption credit is $149 and the dependent exemption credit is $461 per dependent (these adjust each year for inflation). California still has the exemption credit system the federal return zeroed out under TCJA — the TCJA $0 personal exemption never applied to California, and it won’t even after the federal exemption is permanent under OBBBA. The exemption credits don’t reduce taxable income. They reduce tax dollar-for-dollar at line 32.

Income (Lines 12–17)

Here’s where your federal return and your California return start talking to each other.

  • Line 12 — State wages from your federal Form W-2, box 16. This is California-specific wage reporting (which can differ from federal box 1 wages because of how California treats things like 401(k) contributions vs. HSA contributions).
  • Line 13 — Federal adjusted gross income from federal Form 1040 or 1040-SR, line 11. Copied directly. California doesn’t recalculate your gross income from scratch. It takes the federal number and then adjusts.
  • Line 14 — California adjustments – subtractions from Schedule CA (540), Part I, line 27, column B. This pulls income California excludes that the feds taxed (Social Security being the big one).
  • Line 15 — Line 13 minus line 14.
  • Line 16 — California adjustments – additions from Schedule CA (540), Part I, line 27, column C. This pulls income California taxes that the feds excluded (HSA contributions, out-of-state muni interest).
  • Line 17 — California adjusted gross income — line 15 plus line 16.

If your income is entirely from a W-2 job in California with no unusual items, lines 14 and 16 might both be zero. But if you have out-of-state bond interest, HSA contributions, Social Security income, or stock option differences, you’ll have numbers on those lines. More on that in the next section.

California Adjustments — Schedule CA (540)

Schedule CA is the bridge between your federal return and your California return. It’s where you identify every place California’s tax law differs from the IRC, and it’s one of the more tedious parts of a California return because there are a lot of differences.

Common Additions (Income California Taxes That the Feds Don’t) — Flow to Form 540 Line 16

Out-of-state municipal bond interest. If you hold muni bonds from New York, Texas, or any state other than California, the interest is tax-free on your federal return but taxable on your California return. Only bonds issued by California or its municipalities get the state exemption. We see this catch people off guard every year — especially clients who moved from the East Coast and kept their old bond portfolio.

HSA contributions. California doesn’t recognize Health Savings Accounts. Contributions you deducted on your federal return get added back on Schedule CA. The HSA earnings are taxable too. This is one of those areas where California flat-out refused to conform, and it creates extra recordkeeping if you have an HSA.

Stock option timing differences. California’s sourcing rules for stock options and RSUs don’t always match federal treatment, especially if you earned the equity in one state and exercised it in another. The allocation formulas on Schedule CA can get complicated quickly.

For a full walkthrough of every addition and how to handle each one, see our Schedule CA additions guide.

Common Subtractions (Income California Exempts That the Feds Tax) — Flow to Form 540 Line 14

Social Security benefits. California doesn’t tax Social Security income. Period. If you reported Social Security on your federal return, you subtract the full amount on Schedule CA. This is one of the few genuinely taxpayer-friendly California rules.

Military pay for active-duty service. Pay earned by active-duty military members while stationed outside California is subtracted on Schedule CA.

California lottery winnings. Winnings from the California State Lottery are exempt from state income tax (though not from federal). If you had lottery winnings included in your federal AGI, subtract them here.

The full list of additions and subtractions runs several pages. Schedule CA mirrors the federal 1040 line by line, so every line on the 1040 has a corresponding adjustment opportunity on the CA. Our Schedule CA subtractions guide covers each one in detail.

Deduction and Taxable Income (Lines 18–19)

After California AGI, you take either the standard deduction or itemized deductions on line 18. California’s standard deduction for 2024 is $5,540 for single filers and $11,080 for married filing jointly (it indexes annually — 2025 amounts are $5,706 and $11,412). That’s well below the federal amounts, which is why more California filers end up itemizing at the state level than at the federal level.

If you itemize, you compute your California itemized deductions on Schedule CA (540), Part II, line 30, and that number flows to line 18 instead of the standard deduction. California doesn’t conform to all federal itemized deduction rules. The biggest difference: the federal return is bound by the $40,000 SALT cap, but California doesn’t cap state and local taxes the same way — you can’t deduct California income tax against itself, but property and certain other taxes still flow through with their own limitations.

There’s no separate “qualified business income deduction” on California’s return either. The federal Section 199A deduction doesn’t exist for California purposes, which means pass-through business owners get a larger taxable income number on their 540 than on their 1040.

Line 19 — Taxable income is line 17 minus line 18, floored at zero. This is the number that goes into the tax tables.

Tax Calculation (Lines 31–35)

California’s income tax rates are progressive and steep. The brackets range from 1% on the first few thousand dollars of taxable income up to 12.3% on income over about $700,000 (for single filers). And then there’s the extra 1% mental health services tax on taxable income exceeding $1,000,000 — captured separately on line 62 below. The combined top marginal rate hits 13.3%, the highest state income tax rate in the country.

Unlike the federal system, California does not give preferential treatment to long-term capital gains. Gains that get taxed at 15% or 20% on your federal return are taxed at your ordinary rate in California. For high-income clients — especially those in Los Angeles with significant investment income — this is the single biggest California tax hit. A $500,000 long-term capital gain that’s taxed at 20% federally is taxed at 13.3% in California. There’s no discount.

  • Line 31 — Tax from the tax table or rate schedule (or the FTB 3800 / 3803 child-tax forms when applicable).
  • Line 32 — Exemption credits transferred from line 11. If your federal AGI exceeds about $244,857 (single) the exemption credit phases down per the worksheet in the instructions.
  • Line 33 — Line 31 minus line 32 (floored at zero).
  • Line 34 — Tax from Schedule G-1 (lump-sum distribution) or Form FTB 5870A (accumulation distribution).
  • Line 35 — Line 33 plus line 34 — your tax before credits.

Special Credits (Lines 40–48)

Credits reduce your tax dollar for dollar, which makes them more valuable than deductions. California offers several that don’t exist at the federal level. Note that the refundable credits (CalEITC, YCTC, FYTC) live in the payments section on lines 75–77, not here.

  • Line 40 — Nonrefundable child and dependent care expenses credit. California’s version of the federal credit, computed on Form FTB 3506.
  • Lines 43 and 44 — “Enter credit name and code”. This is where most California-specific nonrefundable credits flow in via a credit code. The big one for business owners: the PTE elective tax credit (code 242), computed on Form FTB 3804-CR. If you’re a partner or S-corp shareholder whose entity made the California pass-through entity tax election, you claim your share of the PTE tax paid here. This is one of the workarounds California created after the SALT cap, and it’s worth real money for owners of profitable pass-through businesses. The other state tax credit (OSTC, code 187), the joint custody credit, and the dependent parent credit also flow through here.
  • Line 45 — More than two credits. If you’re claiming three or more named credits, you attach Schedule P (540) and put the total here.
  • Line 46 — Nonrefundable renter’s credit. A small credit for California residents who rent their primary home and meet income limits. It’s $60 for single filers and $120 for joint filers. Not life-changing money, but it’s free and a lot of people forget to claim it.
  • Line 47 — Total credits — adds line 40 through line 46.
  • Line 48 — Line 35 minus line 47, floored at zero.

Other Taxes (Lines 61–64)

This block adds back the taxes that don’t go through the bracket calculation:

  • Line 61 — Alternative Minimum Tax from Schedule P (540).
  • Line 62 — Mental Health Services Tax — the 1% additional tax on taxable income over $1,000,000. This is what pushes the top marginal rate from 12.3% to 13.3%.
  • Line 63 — Other taxes and credit recapture — catch-all for things like the IRC §72(t) early-distribution penalty (where California treatment differs from federal), accumulation distribution tax, and the recapture of certain credits.
  • Line 64 — Total tax — adds line 48, line 61, line 62, and line 63.

Heads up on excess SDI: California eliminated the taxable wage limit for State Disability Insurance starting in 2024, so the old “excess SDI/VPDI withheld” line was removed from Form 540 — line 74 is now reserved for future use. If you had multiple employers and each one withheld SDI, the excess is no longer recoverable on the personal income tax return. Direct any over-withholding inquiries to the EDD instead.

Payments and Refundable Credits (Lines 71–78)

This is where you reconcile what you owe with what you’ve already paid:

Use Tax, ISR Penalty, and the Final Reconciliation (Lines 91–115)

Line 91 — Use tax. California’s way of collecting sales tax on out-of-state purchases where the seller didn’t charge California tax. “Do not leave blank” — enter zero if you don’t owe any. Most people either use the lookup table estimate based on AGI or report actual purchases.

Line 92 — Individual Shared Responsibility (ISR) Penalty. California’s individual mandate penalty for not having qualifying health coverage. Most filers check the “full-year coverage” box and the line is zero, but anyone with a coverage gap calculates the penalty here.

Lines 93 through 96 reconcile payments against use tax and the ISR penalty. Line 97 — Overpaid tax appears if line 95 exceeds line 64. Line 98 is what you want applied to next year’s estimated tax. Line 99 is the overpayment available this year. Line 100 — Tax due appears if line 95 is less than line 64.

Lines 110 totals voluntary contributions (the long list of charity boxes — California Seniors Special Fund, Alzheimer’s Disease, sea otters, and so on). Line 111 — Amount you owe is the bottom-line check (line 94 + line 96 + line 100 + line 110). Line 112 picks up interest, late-return penalties, and late-payment penalties. Line 113 — Underpayment of estimated tax from Form FTB 5805 or 5805F. Line 114 — Total amount due. Line 115 — Refund or no amount due if you’re getting money back. California supports direct deposit (lines 116 and 117) and lets you split the refund between up to two accounts.

One thing to watch: California’s refund can take noticeably longer than the federal refund. The FTB processes returns on a different timeline than the IRS, and if your return triggers a manual review, the wait can stretch to several months.

California Quirks Worth Knowing

No capital gains preference. We mentioned this above, but it’s worth repeating because it’s the single most expensive difference between California and the federal system for high-income taxpayers. Long-term capital gains are taxed as ordinary income. Full stop. For more on this, see our California capital gains tax guide.

Community property rules. California is a community property state. If you’re married filing separately, you generally split community income 50/50 between spouses — regardless of who actually earned it. This applies to wages, business income, and investment income from community assets. It makes MFS returns in California more complicated than in common-law states, and it catches people off guard during divorce proceedings.

The PTE election. The pass-through entity elective tax is now a permanent fixture of California’s tax code (AB 150). It’s the closest thing to a legal workaround for the federal SALT cap. If you own a share of an S-corp or partnership doing business in California, this election should be on your radar every year.

Residency audits. California is one of the most aggressive states for residency audits. If you leave California and claim nonresident status, the FTB will look at your phone records, credit card statements, medical providers, and social media posts. The burden of proof is on you to show you left. This matters for the 540 because filing a 540 (resident return) is straightforward — it’s when you stop filing one that the FTB starts asking questions.

If you’re comparing California’s approach with another major state, our NY IT-201 line-by-line guide walks through New York’s equivalent form.

Frequently Asked Questions

Do I have to file a California Form 540 if I work remotely for an out-of-state company?

If you are a California resident, you have to file Form 540 regardless of where your employer is based. California taxes its residents on all income from all sources worldwide, so it does not matter whether the company that pays you is headquartered in Texas, Delaware, or another country. If your domicile is in California — meaning you live here, your driver’s license is here, you vote here, your kids go to school here — then every dollar you earn goes on your California return.

Where remote workers get confused is when they assume California follows a “source state” model like some other states. It does not, at least not for residents. California’s rule is simple: residents owe tax on everything. The source-state rules only apply to nonresidents who earn income from California sources. So if you lived in Nevada and worked remotely for a California company, Nevada would not tax you (no state income tax), and California would only tax you if your work was performed in California or generated California-source income. But flip that around — you live in California and work for a Nevada company — and California taxes all of it.

The practical question most remote workers run into is whether they also owe tax to the state where the employer is located. That depends on the other state’s rules. Some states, like New York, have a “convenience of the employer” doctrine that taxes nonresident remote workers if their employer has an office in the state and the remote arrangement is for the employee’s convenience rather than the employer’s necessity. If you live in California and work remotely for a New York company, New York might try to tax that income too. In that situation, you would claim a credit on your California return (Schedule S, Other State Tax Credit) for the taxes paid to New York, so you are not double-taxed.

Here is a dollar example. Suppose you earn $120,000 working remotely from your apartment in San Francisco for a company based in Austin, Texas. Texas has no income tax, so there is nothing to worry about on the Texas side. Your $120,000 goes on your Form 540 as wages. After the California standard deduction of $5,540 (single filer, 2024), your taxable income is about $114,460. Using California’s graduated rates, your state tax would be roughly $7,200. No credit for taxes paid to another state because Texas does not have an income tax.

Now suppose the same scenario but the company is in New York instead of Texas, and New York asserts the convenience-of-the-employer rule and taxes $120,000 of your income. You might pay around $6,500 to New York. On your California Form 540, you would claim a credit of up to $6,500 via Schedule S, reducing your California liability to about $700. You end up paying roughly the same total — California just gives you credit for what you already paid elsewhere.

A few things that do not change this obligation: the fact that you never set foot in California’s FTB office, the fact that your employer does not withhold California tax (many out-of-state employers don’t), or the fact that you might spend a few weeks working from a different state on vacation. If you are a California resident, you file Form 540. Period. If your employer is not withholding California tax, you need to make quarterly estimated payments using Form 540-ES to avoid an underpayment penalty at year-end.

If you are genuinely planning to leave California and work remotely from another state, the date you establish domicile in the new state is the date your California filing obligation changes. From that point forward you would be a nonresident (or part-year resident if you left mid-year) and would file Form 540NR for the partial year. But California’s Franchise Tax Board is aggressive about auditing departures — they look at where your spouse lives, where your kids attend school, where you are registered to vote, where your financial advisors are located, and where you spend the most days. Moving your laptop to a co-working space in Boise is not enough to escape California’s tax jurisdiction if everything else still ties you to the state.

What’s the difference between Form 540 and Form 540NR?

Form 540 is the California resident income tax return. Form 540NR is the nonresident or part-year resident return. Which one you file depends entirely on your residency status during the tax year — not on where your income came from.

If you lived in California for the entire calendar year (January 1 through December 31), you file Form 540. It reports all of your income from everywhere — California wages, out-of-state rental income, foreign dividends, everything. California residents are taxed on worldwide income, so the 540 captures it all. The form uses California’s graduated rate schedule, which tops out at 13.3 percent on taxable income over about $1 million (for single filers). You apply the standard deduction or itemized deductions, claim any California credits you qualify for, and arrive at your tax liability.

If you lived in California for only part of the year — say you moved from Oregon to Los Angeles on June 1 — you file Form 540NR as a part-year resident. And if you never lived in California at all but earned California-source income (maybe you own rental property in Sacramento or performed consulting work in San Francisco for two weeks), you also file Form 540NR as a nonresident. The 540NR works differently from the 540 because it includes an income allocation schedule. You report your total income from all sources, but then you calculate the ratio of California-source income to total income, and you pay California tax only on the California-source portion.

Here is a concrete example. You lived in Washington State from January through August (earning $70,000 in wages) and moved to California on September 1 (earning $40,000 in wages from September through December at a California job, plus $5,000 in interest income during the year). Your total income is $115,000. On the 540NR, you would report the full $115,000 as federal AGI, but your California-source income would be $40,000 in California wages plus the portion of interest income attributable to the period you lived in California (roughly 4/12 of $5,000, or $1,667). So your California-source income is about $41,667. You calculate the tax on $115,000 (to set the rate), then multiply that tax by the ratio $41,667 / $115,000 (about 36.2 percent). That gives you the actual California tax owed.

The 540NR is also where you handle California’s “safe harbor” rules for part-year residents. If you moved out of California mid-year, the FTB wants proof you actually left. They look at the same domicile factors — where you vote, where your bank is, where your doctors are, where you spend the most nights. If you moved out on paper but spent 200 days in California that year, they might reclassify you as a full-year resident and force you onto the 540.

Another difference: certain deductions and credits work differently on the 540NR. The renter’s credit, for example, is only available to full-year residents on the 540 — part-year residents and nonresidents cannot claim it. The California Earned Income Tax Credit is available on both forms, but for part-year residents on the 540NR, the earned income must be from California sources. Some credits like the child and dependent care credit are prorated based on the ratio of California income to total income.

If you are unsure which form to use, the Franchise Tax Board’s filing requirements page walks through a flowchart: Did you live in California all year? File 540. Did you live in California part of the year? File 540NR. Did you never live in California but have California income? File 540NR. The only gray area is the “safe harbor” situation where someone claims to have left California but the FTB disagrees. In that case, you might file a 540NR and later be audited and told to refile on the 540 — along with penalties and interest for the underpayment. Having clear documentation of your departure date (lease termination, utility shutoff, updated federal return address, new state driver’s license) protects you if the FTB comes asking.

Does California tax Social Security benefits?

No. California does not tax Social Security benefits. This is one of the few areas where California gives taxpayers a break compared to the federal return. If you receive Social Security retirement benefits, disability benefits (SSDI), or survivor benefits, none of that income appears on your California Form 540.

On your federal return, up to 85 percent of your Social Security benefits can be taxable depending on your “combined income” (adjusted gross income + nontaxable interest + half of your Social Security benefits). If your combined income exceeds $25,000 as a single filer or $32,000 as a married couple filing jointly, the IRS starts taxing a portion of your benefits. At higher income levels, up to 85 percent of benefits become taxable. So a retiree collecting $24,000 a year in Social Security with $50,000 in other income might have $20,400 of that $24,000 included in their federal taxable income.

California ignores all of that. When you fill out your Form 540, you start with your federal adjusted gross income on line 13, and then on line 14 you make California-specific subtractions. One of those subtractions removes any Social Security income that was included in your federal AGI. The entry goes on Schedule CA (540), Part I, Section B, line 6a. You enter the amount of Social Security benefits that were taxable on your federal return, and California subtracts it from your state income. The result is that your California AGI is lower than your federal AGI by exactly the amount of federally taxable Social Security benefits.

This matters more than people realize. Consider a married couple, both retired, with the following income: $36,000 in Social Security benefits, $25,000 from a traditional IRA distribution, $15,000 in pension income, and $8,000 in interest and dividends. Their total income is $84,000. On the federal return, about $30,600 of the Social Security would be taxable (85 percent of $36,000). So their federal AGI would be about $78,600. On their California return, they subtract that $30,600, bringing their California AGI down to about $48,000. After the standard deduction ($11,080 for MFJ in 2024), their California taxable income would be around $36,920, resulting in a state tax of roughly $850. Without the Social Security exclusion, their California tax would be closer to $2,100. That is a savings of about $1,250 per year.

This is one reason California is more tax-friendly for retirees than people assume. Yes, the top marginal rate is 13.3 percent, but if your primary income is Social Security, the effective rate can be very low. A retiree living solely on $30,000 in Social Security benefits would owe zero California income tax — their California AGI would be $0 after the subtraction. Compare that to states like Minnesota, West Virginia, or Montana, which do tax Social Security benefits (with varying exemptions), and California actually comes out ahead for lower-income retirees.

There is one catch that confuses people: Supplemental Security Income (SSI) is different from Social Security benefits. SSI is a need-based program for elderly, blind, or disabled individuals with very low income and assets. SSI is not taxable on either your federal return or your California return, so there is nothing to subtract — it never showed up as income in the first place. California actually supplements the federal SSI payment with its own State Supplementary Payment (SSP), and that is also not taxable.

Railroad Retirement benefits follow a split rule. Tier I Railroad Retirement benefits are treated like Social Security for both federal and California purposes — California does not tax them. Tier II benefits, however, are treated like pension income and are fully taxable on both your federal and California returns. If you receive Railroad Retirement, check your Form RRB-1099 and Form RRB-1099-R to see which tier each payment falls under.

One more thing: just because California does not tax Social Security does not mean your Social Security is irrelevant to your California return. If you have other income items that depend on your AGI — like the California Earned Income Tax Credit, the renter’s credit, or the senior head of household credit — your California AGI (which excludes Social Security) is the number that counts. This can actually help you qualify for credits you would not get if Social Security were included in your state income.

Why is my California tax bill so much higher than my federal bill on capital gains?

The reason your California tax on capital gains is higher than your federal tax comes down to one big difference: California does not have a preferential rate for long-term capital gains. The federal government taxes long-term capital gains (assets held more than one year) at 0, 15, or 20 percent depending on your income, while short-term gains are taxed at ordinary income rates up to 37 percent. California makes no such distinction — all capital gains, whether short-term or long-term, are taxed as ordinary income at rates up to 13.3 percent.

At first glance, California’s top rate of 13.3 percent looks lower than the federal top rate of 20 percent for long-term gains. But remember, the federal long-term capital gains rate is a separate, lower rate schedule. Most taxpayers pay 15 percent federally on long-term gains. In California, those same gains are stacked on top of your other income and taxed at whatever marginal rate you fall into — which for many Californians earning above $68,350 (single) is 9.3 percent, and it climbs from there. If you add in the federal 3.8 percent Net Investment Income Tax (NIIT) that applies to taxpayers with modified AGI above $200,000 (single) or $250,000 (married filing jointly), the combined federal-plus-California rate on long-term gains can exceed 30 percent.

Let me walk through a real example. Suppose you are a single filer with $150,000 in wages and you sell stock for a $100,000 long-term capital gain. On your federal return, the $100,000 gain is taxed at the 15 percent long-term rate — that is $15,000 in federal capital gains tax. On your California return, that $100,000 gain is added to your $150,000 in wages, giving you total California income of $250,000. After the standard deduction, you are in the 9.3 percent bracket, and a good chunk of the gain falls in that bracket. Your California tax on the capital gain portion is roughly $9,300. Combine that with the $15,000 federal tax and you have paid $24,300 in income tax on a $100,000 gain — an effective combined rate of 24.3 percent.

If you are in an even higher bracket — say $600,000 in total income — the California rate on the marginal dollar hits 12.3 percent, plus the 1 percent Mental Health Services Tax surcharge on income above $1 million (if applicable). At the federal level, you would be in the 20 percent long-term gains bracket plus the 3.8 percent NIIT. That is a combined marginal rate of 37.1 percent on long-term capital gains. Compare that to a state like Texas or Florida with no income tax, where the same gain would face only the 23.8 percent federal rate. The California premium is about 13 percentage points.

This hits Californians especially hard in a few scenarios. Selling a home where the gain exceeds the Section 121 exclusion ($250,000 for single filers, $500,000 for married filing jointly) is a common one. If you bought a Bay Area house in 2005 for $600,000 and sell it in 2025 for $1.8 million, your gain is $1.2 million. After the $500,000 exclusion (married), the taxable gain is $700,000. Federally, that might cost about $140,000 in capital gains tax (20 percent plus NIIT). California would add roughly $80,000 on top at the 11-to-12 percent range. That is $220,000 in combined tax on the home sale.

Stock options and RSU vesting at tech companies is another area where this bites. When RSUs vest, the spread is treated as ordinary income on both federal and California returns — no capital gains discount. But if you hold the shares after vesting and sell later at a gain, that gain is long-term capital gains federally (if held over a year) but still ordinary income in California. So the second layer of gain gets hit at California ordinary rates too.

There is no workaround for this within the Form 540 itself. California does not offer a capital gains exclusion, a capital gains credit, or any preferential rate for investment income. The only planning strategies are general ones: tax-loss harvesting to offset gains with losses, holding assets in tax-advantaged accounts (Roth IRAs, 401(k)s) where California cannot touch the gains, or donating appreciated assets to charity (you get a deduction for the fair market value and avoid realizing the gain on both federal and state returns). Some high-income Californians also time asset sales for years when their income is lower, or consider moving out of California before a large liquidity event — though the FTB will scrutinize the timing of any such move.

Can I deduct my HSA contributions on my California return?

No, you cannot deduct HSA (Health Savings Account) contributions on your California return. This is one of the most well-known disconnects between federal and California tax law. The IRS allows you to deduct HSA contributions on Form 1040 (line 13) as an above-the-line deduction, reducing your federal AGI. California does not recognize HSAs at all — the state treats your HSA as if it does not exist for tax purposes.

What this means in practice is that when you transfer your federal AGI to your California Form 540, you need to add back the HSA deduction you claimed federally. This adjustment happens on Schedule CA (540), Part I, Section B, line 13. You enter the HSA deduction amount as a California addition, which increases your California AGI above your federal AGI. In effect, California taxes you on the contributions you made to the HSA as if you had never put them there.

But it gets worse. California also does not recognize the tax-free growth inside the HSA. On your federal return, the interest and capital gains earned within the HSA are completely tax-free — you never report them. California wants you to report that investment income. If your HSA earned $400 in interest and $200 in capital gains during the year, you need to add $600 to your California income on Schedule CA. Most HSA custodians do not send you a California-specific tax form for this, so you have to track it yourself or get the information from your HSA account statements.

And the third layer: when you withdraw money from the HSA for qualified medical expenses, the withdrawal is tax-free federally. California does not tax the withdrawal itself (since it already taxed the contributions going in), but the treatment of the investment earnings on withdrawal depends on whether those earnings were already reported as California income. If you have been properly adding the HSA earnings to your California return each year, the withdrawals of those earnings should not be taxed again. If you have not been reporting the earnings — and many people do not, because it is easy to miss — you could face a confusing reconciliation if the FTB ever audits you.

Here is a dollar-amount example. Suppose you are a single filer with a high-deductible health plan and you contribute the maximum $4,150 to your HSA in 2024. Your employer also contributes $1,000, for a total of $5,150 going into the account. Federally, you deduct $4,150 (your portion), and the employer’s $1,000 is excluded from your income through payroll. On your California return, you add back the $4,150 deduction and the $1,000 employer contribution (since California does not recognize the exclusion for employer HSA contributions either). That is $5,150 added to your California income. If you are in the 9.3 percent California bracket, that costs you an extra $479 in state tax compared to what you would owe if California recognized HSAs.

Over a career, this adds up significantly. If you max out an HSA for 20 years and invest the balance, a Californian might pay $15,000 to $25,000 more in state income tax over that period than someone in a state that conforms to the federal HSA rules — which is most other states. Only California and New Jersey completely disregard HSAs for state tax purposes. (Alabama and a couple of other states have quirks, but California and New Jersey are the worth mentioning holdouts.)

Some people wonder whether it is still worth contributing to an HSA if they live in California. The answer is almost always yes. The federal tax savings — a deduction at your marginal federal rate (22 percent, 24 percent, 32 percent, etc.) plus avoiding FICA taxes on payroll-deducted contributions (7.65 percent) — easily outweigh the California cost. A person in the 24 percent federal bracket and 9.3 percent California bracket saves about 31.65 percent federally (24 percent income tax plus 7.65 percent FICA) and loses 9.3 percent to California, for a net benefit of about 22.35 percent on every dollar contributed. Plus the investment growth is still federal-tax-free, which matters a lot over decades.

The record-keeping burden is the real annoyance. You (or your tax preparer) need to track HSA contributions, employer contributions, and annual investment earnings separately for California purposes. If you use tax software like TurboTax or H&R Block, the California return module usually handles the contribution add-back automatically, but the investment earnings inside the HSA often need to be entered manually. Keep your HSA statements handy at tax time so the California adjustments are accurate. If you have had an HSA for years and never made the California adjustments, it may be worth amending recent returns before the FTB catches the omission during an audit.

Sources & References

  • California Form 540 (PDF) (ftb.ca.gov)
  • California Form 540 Instructions and Tax Booklet (ftb.ca.gov)
  • Schedule CA (540) Instructions — California Adjustments (ftb.ca.gov)
  • California Standard and Itemized Deductions (ftb.ca.gov)
  • California Earned Income Tax Credit (CalEITC) (ftb.ca.gov)
  • Young Child Tax Credit (ftb.ca.gov)
  • Mental Health Services Tax (ftb.ca.gov)
  • California Residency Status and Domicile (ftb.ca.gov)
  • California Estimated Tax Payments (ftb.ca.gov)
  • IRS Form 1040 — U.S. Individual Income Tax Return (irs.gov)
  • IRS Topic 551 — Standard Deduction (irs.gov)
  • 26 U.S.C. §1 — Tax Imposed, Including Capital Gains Rates (law.cornell.edu)
  • 26 U.S.C. §164 — Taxes / SALT Deduction (law.cornell.edu)
  • 26 U.S.C. §199A — Qualified Business Income Deduction (law.cornell.edu)

Need help with your tax return?

Start with a fee estimate, or request a consultation if you’re ready to engage.

Estimate Your Fee

Request a Consultation

Need help with your tax return?

Start with a fee estimate, or request a consultation if you’re ready to engage.

Estimate Your Fee   Request a Consultation

Contact Us