California does tax out-of-state capital gains, but only if you are a California resident when the gain is realized. Residents pay California tax on capital gains from assets located anywhere in the world, at ordinary income rates that top out at 13.3%.1Franchise Tax Board. Capital Gains and Losses Nonresidents generally owe nothing to California on gains from out-of-state assets. Part-year residents pay on whatever they realized while the state considered them a resident. Your residency status on the day of the sale is what controls the outcome, which is why the analysis almost always starts there.
Residency Is What Decides It
California draws a legal line between domicile and residency, and the Franchise Tax Board applies both concepts when deciding whether you owe tax on income from outside the state.
Domicile Versus Residency
Domicile is the place you intend to return to, even when you are away. You can only have one at a time. The FTB looks at objective evidence to locate it: where your family lives, where your bank accounts and vehicles are, where you hold professional licenses. Telling the FTB you moved means little if every other tie still points to California.
Residency is broader. Under Revenue and Taxation Code Section 17014, California treats you as a resident if you are in the state for anything other than a temporary or transitory purpose, or if you are domiciled in California but temporarily away.2California Legislative Information. California Revenue and Taxation Code 17014 – Resident Definition That second prong catches people. If California is still your domicile and you spend a year abroad or working remotely from another state, the FTB can still treat you as a resident for the full year, and tax your capital gains accordingly.
The Nine-Month Presumption
Spend more than nine months of a tax year in California and the state presumes you are a resident. You can rebut it by proving your presence was temporary or transitory, but the burden falls on you.3California Legislative Information. California Revenue and Taxation Code 17016 – Presumption of Residency Expect the FTB to look at voter registration, driver’s license records, property ownership, and professional affiliations before accepting a rebuttal.
The 546-Day Safe Harbor
If you leave California under an employment-related contract and stay out of the state for at least 546 consecutive days, the safe harbor treats you as a nonresident for that period. Brief return visits totaling no more than 45 days in any calendar year won’t break the streak, and a spouse who accompanies you qualifies too.2California Legislative Information. California Revenue and Taxation Code 17014 – Resident Definition
Two things kill the safe harbor. It does not apply if you earn more than $200,000 in intangible income (stocks, bonds, or similar assets) during any year the contract is in effect. It also does not apply if the primary purpose of the absence is to avoid California income tax. The $200,000 cap is measured for each spouse separately, so one spouse can lose the safe harbor while the other keeps it.
Nonresidents
A nonresident is someone domiciled outside California who did not trigger the nine-month presumption. Nonresidents pay California tax only on income from California sources.4Franchise Tax Board. Part-year Resident and Nonresident
How the Tax Applies Once Residency Is Set
California does not offer a reduced rate for long-term capital gains. Every dollar is taxed as ordinary income at your marginal rate, which reaches 13.3% — the standard 12.3% top bracket plus a 1% Mental Health Services Tax on taxable income above $1 million.1Franchise Tax Board. Capital Gains and Losses
Full-Year Residents
A full-year California resident pays California tax on 100% of their capital gains, wherever the asset sits and wherever the transaction closes.4Franchise Tax Board. Part-year Resident and Nonresident Stock sold through a New York brokerage, a rental flipped in Texas, cryptocurrency cashed out on an overseas exchange — California claims the right to tax all of it.
Nonresidents
Nonresidents only owe California tax on gains from California-sourced assets. Selling stock in a California-headquartered company doesn’t count. What matters is where you live, not where the company is based. If you are domiciled in Nevada and sell shares through any brokerage, that gain is sourced to Nevada.5Franchise Tax Board. FTB Pub. 1100 – Taxation of Nonresidents and Individuals Who Change Residency The main exceptions are California real estate and interests in a California business, which generate California-source income no matter where the seller lives.
Part-Year Residents
Part-year residents face the messiest calculation. Any capital gain realized while you were a California resident is taxed in full, regardless of the asset’s location. Gains realized after you leave (or before you arrived) are only taxable if they meet the California-source rules.4Franchise Tax Board. Part-year Resident and Nonresident The exact date of the sale relative to your residency change controls the outcome. Timing a large sale by even a few days can shift the tax result significantly.
Which Out-of-State Gains California Can Actually Reach
Source rules matter most for nonresidents and part-year residents. They determine which gains California can tax and which it cannot.
Intangible Assets
Gains from stocks, bonds, mutual funds, and cryptocurrency are sourced to the taxpayer’s state of residence at the time of sale. A nonresident who sells shares of any company — including one headquartered in San Francisco — owes nothing to California on that gain.5Franchise Tax Board. FTB Pub. 1100 – Taxation of Nonresidents and Individuals Who Change Residency The flip side is just as important: a California resident selling stock in a company based anywhere else still owes California tax on the entire gain.
Real Property
Gains from real estate are always sourced to where the property sits. This is the rule that creates the most common double-taxation scenario. A California resident who sells a rental property in Arizona owes tax to Arizona because the property is there, and to California because the seller is a resident. The other-state tax credit exists specifically to keep this from becoming a full second tax bill.
Business Assets and Pass-Through Entities
When a nonresident sells assets used in a California trade or business, the gain is apportioned to California using a formula based on the business’s property, payroll, and sales within the state. The portion attributable to California operations is taxable.
Gains flowing through partnerships or S-corporations keep their character as they pass to the individual owner. A nonresident partner in a partnership that sells California real estate owes California tax on their share of that gain, even if they never set foot in the state. What matters is the entity’s California activity, not the partner’s location.
Selling a Home in Another State
California conforms to the federal exclusion under IRC Section 121, which lets you exclude up to $250,000 in gain ($500,000 for married couples filing jointly) when you sell your primary residence.6Franchise Tax Board. Income From the Sale of Your Home You must have owned the home and used it as your primary residence for at least two of the five years before the sale. The two years do not have to be consecutive, and the exclusion is only available once every two years.
Because California follows the federal rule with no geographic restriction, the exclusion applies to a primary residence sold in any state. A California resident who sells a primary home in Oregon and meets the ownership and use requirements can exclude the gain from both federal and California taxes, up to the applicable limit.6Franchise Tax Board. Income From the Sale of Your Home Gain above the exclusion threshold is taxed as ordinary income at your California marginal rate.
Credit for Taxes Paid to Another State
The other-state tax credit is how California residents avoid paying two states in full on the same gain. It comes into play most often when you sell real property located in another state: that state taxes the gain because the property is there, and California taxes it because you live here.
The credit equals the lesser of two amounts: the tax you actually paid to the other state, or the California tax attributable to that same income.7Franchise Tax Board. 2025 Instructions for Schedule S – Other State Tax Credit If the other state’s rate on the gain is higher than California’s, you absorb the difference. California will not subsidize another state’s higher rate.
The credit only applies when the other state taxes income based on source. Because intangible gains like stock sales are sourced to your state of residence, no other state will typically be taxing the same gain, and no credit is available. In practice the credit almost always involves real property sales or income from out-of-state businesses.
To claim it, file California Schedule S with Form 540 and attach a copy of the return you filed with the other state.7Franchise Tax Board. 2025 Instructions for Schedule S – Other State Tax Credit The taxes paid to the other state don’t have to fall in the same calendar year as the California tax, as long as they relate to the same transaction.
Installment Sales When You Move
Installment sales create their own problem because payments stretch across tax years and your residency can change in between. The rule depends on the type of asset.
For real property, source follows location. If you sold California real property on an installment basis and later moved to Texas, every installment payment you receive in Texas is still California-source income and still taxable by California.5Franchise Tax Board. FTB Pub. 1100 – Taxation of Nonresidents and Individuals Who Change Residency
Intangibles work differently. Installment gains from selling stock or similar property are sourced to your state of residence at the time of the original sale. If you were a California resident when the sale closed, moving away later doesn’t change the sourcing — those future payments remain California-source income.
The reverse also traps people. If you were a nonresident when you sold intangible property on installment terms and later move to California, those payments become taxable by California once you arrive, because a resident is taxed on all income regardless of source.5Franchise Tax Board. FTB Pub. 1100 – Taxation of Nonresidents and Individuals Who Change Residency Anyone considering a move into California with outstanding installment receivables should factor this into the timing.
Trading a California Property for an Out-of-State One
A Section 1031 like-kind exchange lets you defer capital gains tax when you swap one investment property for another. When California real property is exchanged for property outside the state, the FTB imposes an ongoing reporting duty that surprises many taxpayers.
You must file Form FTB 3840 in the year of the exchange and every subsequent year until the deferred California-source gain is finally recognized, meaning until you sell the replacement property in a taxable transaction.8Franchise Tax Board. Reporting Like-Kind Exchanges The obligation applies whenever California real property is exchanged for property in another state and any portion of the gain goes unrecognized. Even if you later leave California and have no other filing requirement, you still submit Form 3840.
If you exchange the replacement property for yet another property, the filing follows the chain. You drop the old property from the form, attach a statement explaining the transaction, and add the new replacement property to a fresh Form 3840.8Franchise Tax Board. Reporting Like-Kind Exchanges
Skipping the filings is expensive. The FTB can issue a Notice of Proposed Assessment treating the entire deferred gain as recognized in the year of the original exchange, plus penalties and interest.9Franchise Tax Board. 2025 Instructions for Form FTB 3840 California Like-Kind Exchanges Miss the paperwork and the deferral can be unwound.