Capital Gains Tax Explained: How Investment Profits Are Taxed in the United States
Capital gains tax is levied on the profit from selling an asset that has increased in value. Whether you are selling stocks, real estate, cryptocurrency, or a business, understanding how capital gains are taxed can save you thousands of dollars through informed timing and strategic planning. The US tax code draws a critical distinction between short-term and long-term capital gains, with dramatically different tax rates that make the holding period one of the most consequential factors in investment returns.
Short-Term vs Long-Term Capital Gains
The IRS defines the holding period threshold at one year. Assets held for one year or less generate short-term capital gains, which are taxed at your ordinary income tax rate (10% to 37% depending on your bracket). Assets held for more than one year generate long-term capital gains, which are taxed at preferential rates of 0%, 15%, or 20%. This differential is enormous: on a $50,000 gain, a taxpayer in the 32% bracket would owe $16,000 in short-term tax but only $7,500 in long-term tax — a difference of $8,500 simply by holding the investment for one additional day beyond the one-year mark.
2025 Long-Term Capital Gains Brackets
0%: Taxable income up to $48,350
15%: $48,351 – $533,400
20%: Over $533,400
Married Filing Jointly:
0%: Taxable income up to $96,700
15%: $96,701 – $600,050
20%: Over $600,050
Head of Household:
0%: Taxable income up to $64,750
15%: $64,751 – $566,700
20%: Over $566,700
+ 3.8% NIIT if MAGI exceeds $200K (single) or $250K (MFJ)
The 0% rate is particularly powerful for strategic tax planning. A married couple with $80,000 in taxable income (after deductions) could realize up to $16,700 in long-term capital gains completely tax-free, because their total taxable income including gains would stay below the $96,700 threshold. This is an exceptional opportunity for retirees or taxpayers with lower-income years.
The Net Investment Income Tax (NIIT)
High earners face an additional 3.8% surtax on investment income under the Net Investment Income Tax, enacted as part of the Affordable Care Act. The NIIT applies when modified adjusted gross income (MAGI) exceeds $200,000 for single filers or $250,000 for married couples filing jointly. It covers capital gains, dividends, interest, rental income, and other passive investment income. Importantly, these thresholds are not adjusted for inflation, meaning more taxpayers fall under NIIT each year as incomes rise. The maximum effective federal rate on long-term capital gains is therefore 23.8% (20% + 3.8% NIIT).
Real Estate Capital Gains
Real estate sales have special rules. If you sell your primary residence, you can exclude up to $250,000 of gain ($500,000 for married couples filing jointly) under the Section 121 exclusion, provided you owned and lived in the home for at least 2 of the last 5 years. This is one of the most valuable tax breaks in the entire code. A couple who bought a home for $300,000 and sells it for $750,000 would exclude the entire $450,000 gain from taxation. Investment properties do not qualify for this exclusion but may benefit from a 1031 like-kind exchange, which allows deferring capital gains tax by reinvesting proceeds into a similar property.
Cryptocurrency Capital Gains
The IRS treats cryptocurrency as property, meaning every sale, swap, or use for purchases triggers a capital gain or loss event. Short-term crypto gains (held under one year) are taxed as ordinary income, while long-term gains benefit from the preferential 0%/15%/20% rates. Crypto-to-crypto trades (e.g., converting Bitcoin to Ethereum) are taxable events — you must calculate the gain on the crypto you disposed of. The complexities of tracking cost basis across multiple wallets, exchanges, and DeFi protocols make crypto tax compliance particularly challenging. Tax software like CoinTracker or Koinly can help automate this process.
Capital Losses: Your Tax Offset Tool
Capital losses are the mirror image of capital gains and serve as a powerful tax planning tool. Losses first offset gains of the same type (short-term losses offset short-term gains; long-term losses offset long-term gains). Any remaining net losses then offset gains of the opposite type. If net losses still exceed net gains after this netting process, you can deduct up to $3,000 ($1,500 for married filing separately) against ordinary income per year. Any unused losses carry forward indefinitely to future tax years — they never expire. Strategic loss harvesting near year-end is one of the most reliable ways to reduce your overall tax burden.