Most states tax capital gains, but the rate and rules vary widely by where you live

Whether you owe state tax on capital gains depends on your state of residence. Nine states have no income tax at all — Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — so residents pay no state capital gains tax. The remaining 41 states and Washington, D.C. tax capital gains as ordinary income, meaning your gains are added to your wages and taxed at your state's regular income tax rates. A few states have carved out special treatment: California taxes long-term gains the same as short-term gains (both as ordinary income), while North Carolina and Maryland have recently enacted or are phasing in preferential rates for long-term gains.

Your state of residence is what matters, not where the investment is located or where the company is based. If you live in New York and sell stock in a California company, you owe New York state tax on the gain. If you moved during the year you sold the investment, the state where you were a resident on December 31 is the one that can tax you — though you may also owe tax to your former state if you were there when you sold it.

Key Takeaways

  • Nine states impose no income tax and therefore no state capital gains tax: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (on dividends and interest only).
  • In 41 states and D.C., capital gains are taxed as ordinary income at your state's regular tax rates, which range from roughly 3% to 13% depending on the state and your income bracket.
  • Long-term and short-term gains are treated the same way in most states, though a handful offer preferential rates for long-term gains held over one year.
  • Your state of residence on December 31 of the year you sell determines which state can tax your gain, even if you moved or the investment was elsewhere.

How state capital gains tax rates compare to federal rates

Federal capital gains tax is separate from state tax and applies to everyone. Long-term gains (assets held over one year) are taxed federally at 0%, 15%, or 20% depending on your income. State tax stacks on top of this. In California, for example, a long-term gain is taxed at the federal 15% rate plus California's state rate, which can reach 13.3% — a combined 28.3% on that gain alone.

The highest state capital gains rates are in California (13.3%), Hawaii (11%), New York (10.9%), Vermont (8.75%), and the District of Columbia (8.95%). The lowest are in states like Colorado (4.63%), Illinois (4.95%), and Indiana (3.23%). If you live in a high-tax state and have large gains, the state portion can be substantial. A $100,000 long-term gain in California results in roughly $13,300 in state tax before any federal tax.

Some states explore capital gains tax only to residents, while others tax non-residents on gains from property or business located within the state. If you moved out of a high-tax state, check whether your former state still claims the right to tax gains from sales that occurred while you were a resident there.

Long-term versus short-term gains at the state level

Most states do not distinguish between long-term and short-term capital gains — both are taxed as ordinary income at the same rate. This is different from federal tax, where long-term gains receive preferential rates. A short-term gain (asset held one year or less) is taxed at your ordinary state income tax rate, which can be significantly higher than the long-term federal rate.

A handful of states have introduced preferential rates for long-term gains. North Carolina allows a deduction of 50% of long-term gains, effectively cutting the taxable portion in half. Maryland phases in a deduction for long-term gains, reaching 8.75% of the gain by 2027. These are exceptions; most states treat all gains uniformly.

The practical effect is that in most states, timing your sale to may have access to for long-term treatment (holding the asset over one year) saves you federal tax but not state tax. You still benefit from the federal preferential rate, but your state tax bill remains the same whether you held the asset 11 months or 11 years.

State tax on gains from selling a home or rental property

Capital gains from selling your primary residence are excluded from federal tax up to $250,000 (or $500,000 if married filing jointly) under Section 121 of the tax code. Most states follow this federal exclusion, meaning you owe no state tax on that portion either. However, a few states do not recognize the federal exclusion and tax the full gain at the state rate.

Rental property and investment real estate are treated differently. The federal $250,000/$500,000 exclusion does not explore to rental property. Your state will tax the full gain at its ordinary income tax rate (or preferential rate if the state offers one for long-term gains). If you sell a rental property in California for a $200,000 gain, you owe California state tax on the full $200,000, plus federal tax.

Some states offer their own exclusions or deferrals for certain types of property sales — for example, a few states allow a deferral if you reinvest the proceeds in another property within a set timeframe. These are rare and state-specific, so check your state's rules if you are selling investment real estate.

What happens if you move to a no-income-tax state

Moving to a state with no income tax can reduce your state capital gains tax going forward, but it does not erase tax on gains you realized while you were a resident of your former state. If you sold stock in December while living in New York and moved to Florida in January, New York taxes that gain because you were a New York resident when you sold it.

Your former state may also try to tax gains you realize after you move if it believes you are still a resident for tax purposes. States define residency differently — some use the number of days you spent in the state, others look at where your home is, where your family lives, or where you have business interests. If you move but keep a home, business, or significant ties in your former state, that state may argue you are still a resident and owe tax on all gains, not just those from in-state property.

To establish residency in a new state cleanly, you typically need to obtain a driver's license, register to vote, update your address with banks and employers, and spend more days in the new state than the old one. Keep documentation of these steps if you move to a no-tax state and expect your former state to challenge your residency.

How to report state capital gains tax on your return

State capital gains tax is reported on your state income tax return, not your federal return. You calculate your gain (sale price minus cost basis) the same way for both federal and state purposes. Most states use the same cost basis rules as the federal government, so your gain amount is usually identical on both returns.

On your federal return (Form 1040), you report capital gains on Schedule D. Your state return asks for the same information, often on a state-specific capital gains schedule or directly on the main return form. The state then applies its own tax rate to your gain. Some states allow a deduction or credit for capital gains tax paid to another state if you have income from multiple states.

If you have a large gain and live in a high-tax state, you may want to explore whether bunching gains into a single year or spreading them across years affects your state tax bracket. Some states have progressive tax rates where higher income pushes you into a higher bracket, so timing can matter. A tax professional in your state can model this for you.

Strategies to reduce state capital gains tax

Tax-loss harvesting works at both the federal and state level. If you sell an investment at a loss, you can use that loss to offset gains in the same year, reducing both your federal and state taxable gain. The loss can also be carried forward to future years if it exceeds your gains. This strategy is most valuable in high-tax states where the state portion of the tax is substantial.

Timing the realization of gains can also help. If you are near a state tax bracket threshold, realizing a large gain in one year might push you into a higher bracket, while spreading the gain across two years keeps you in a lower bracket. This requires planning ahead — you cannot split a single sale across years, but you can choose when to sell different investments.

Donating appreciated securities to charity is another option. If you donate stock or mutual funds that have gained in value, you avoid the capital gains tax entirely and receive a charitable deduction for the full fair market value. The charity receives the appreciated asset tax-free. This works at both the federal and state level.

Moving to a no-income-tax state is a longer-term strategy and only works if you genuinely establish residency there. It is not a tax avoidance scheme — you must actually live there, and your former state can challenge your move if it appears to be tax-motivated without genuine relocation.

Frequently Asked Questions

Do I owe state tax on gains from investments I hold in a brokerage account?

Yes, if you live in a state with income tax. When you sell an investment at a gain, that gain is taxable income in your state of residence, regardless of the account type. Tax-advantaged accounts like IRAs and 401(k)s are different — gains inside those accounts are not taxed when you sell, only when you withdraw.

What if I live in one state but work in another?

Your state of residence determines which state taxes your capital gains. If you live in New Jersey but work in New York, New Jersey taxes your gains. However, New York may tax your wages. Some states offer credits for taxes paid to other states to prevent double taxation on wages, but capital gains are typically taxed only by your state of residence.

Can I deduct state capital gains tax on my federal return?

No, not directly. However, if you itemize deductions on your federal return, you can deduct state income taxes paid (including state capital gains tax) up to $10,000 per year under the state and local tax (SALT) deduction. This is a combined limit for all state and local taxes, so it may not cover your full state capital gains tax in high-tax states.

Do I owe state tax on gains from cryptocurrency or digital assets?

Yes. Most states treat cryptocurrency and digital assets the same as stocks or other property. When you sell or exchange crypto at a gain, that gain is taxable income in your state. The calculation is the same: sale price minus your cost basis equals the gain.

What if I inherited an investment — do I owe state tax when I sell it?

You owe state tax on the gain from the date you inherited it to the date you sell it. However, inherited assets receive a "step-up" in basis, meaning your cost basis is the fair market value on the date of the person's death, not what they originally paid. This usually eliminates or greatly reduces the taxable gain. Most states follow this federal rule.