What is capital gains tax?
A capital gain arises when you sell a capital asset — stock, real estate, cryptocurrency, or collectibles — for more than your cost basis. Capital gains are one of the most tax-advantaged forms of income in the US tax code: long-term gains face rates far below ordinary income rates, which is why the holding period matters so much.
Short-term vs long-term capital gains tax rates for 2026
Assets held one year or less produce short-term gains, taxed at your ordinary income marginal rate — up to 37%. Assets held more than one year (sold after the one-year anniversary of the purchase date) produce long-term gains, taxed at preferential rates of 0%, 15%, or 20%.
For 2026 (IRS Rev. Proc. 2025-32), the long-term rates are:
- 0%: Taxable income up to $49,450 (single) or $98,900 (MFJ)
- 15%: Up to $545,500 (single) or $613,700 (MFJ)
- 20%: Above those thresholds
Capital gains are stacked on top of ordinary income. Your ordinary income fills the lower brackets first; gains are taxed at the rate applicable to the portion of income that falls into each bracket.
What is the 3.8% net investment income tax?
The 3.8% NIIT under IRC § 1411 applies to investment income — including capital gains — for taxpayers with modified AGI above $200,000 (single) or $250,000 (MFJ). These thresholds are not inflation-adjusted, so a growing number of taxpayers now owe it. The effective maximum federal rate on long-term gains is therefore 23.8% (20% + 3.8%).
Do states tax capital gains?
Most states tax capital gains as ordinary income at full state rates. California imposes up to 13.3% regardless of holding period. New York taxes gains at up to 10.9% plus any NYC surcharge. Massachusetts taxes short-term gains at 8.5%, long-term gains at 5% and long-term collectibles at 12% after a 50% deduction, plus a 4% surtax on very high incomes. Washington has a 7% capital gains excise on long-term gains above its standard deduction ($290,000 for 2026), and under SB 5813 (2025) an additional 2.9% applies to taxable Washington gains above $1,000,000 — a 9.9% top tier. A handful of states (for example AR, AZ, HI, MT, ND, NM, SC, VT, WI) give long-term gains a partial exclusion or lower rate; this calculator models Montana's rates and flags the others as approximate.
How is cryptocurrency taxed?
Crypto is treated as property under IRS Notice 2014-21. Every sale, exchange, or use of crypto is a taxable event. Short-term crypto gains are ordinary income; long-term gains qualify for the 0%/15%/20% rates. Unlike stocks, the wash-sale rule does not currently apply to crypto — you can sell at a loss and repurchase immediately, claiming the loss.
Capital gains tax on collectibles and real estate
Collectibles — art, antiques, coins, gems, precious metals held outside a qualified fund — are taxed at a maximum 28% federal rate on long-term gains. Real estate gains attributable to depreciation recapture (unrecaptured § 1250 gain) are taxed at a maximum of 25%. The remainder is taxed at standard long-term rates. Select the correct asset type in this calculator so the applicable rate caps are applied.
How do capital losses offset gains?
Net capital losses first offset capital gains. Losses exceeding gains may offset up to $3,000 of ordinary income per year ($1,500 if married filing separately, per IRC § 1211(b)). Any remaining losses carry forward indefinitely to future tax years. Enter your Schedule D carryforward in the Advanced options to see the correct net gain and tax estimate.
How to use the capital gains tax calculator
Enter cost basis and sale price as totals, plus acquisition and sale dates. The calculator determines whether the gain is short-term or long-term and shows the holding period. Select asset type, enter your ordinary income and filing status, choose your state. Results update in real time — no submit button needed.