When you sell a taxable asset—such as stocks, index funds (see our index fund guide), real estate, or cryptocurrency—for more than you paid for it, the profit is classified as a Capital Gain. How much tax you pay on that profit depends almost entirely on how long you owned the asset before selling.
This educational guide compares Short-Term Capital Gains vs Long-Term Capital Gains, tax-loss harvesting rules, and primary home sale capital gains tax exemptions.
Before selling assets, check our related guides on investment growth math, marginal vs effective tax rates, and net worth calculations.
Comparison: Short-Term vs Long-Term Capital Gains
Holding taxable investments for 366+ days qualifies your profits for preferential long-term capital gains tax rates (0%, 15%, or 20%) instead of ordinary income tax brackets.
| Feature | Short-Term Capital Gains | Long-Term Capital Gains |
|---|---|---|
| Holding Period | 1 Year or Less (≤ 365 Days) | More than 1 Year (> 365 Days) |
| Tax Rate Applied | Ordinary Income Tax Rates (10% to 37%) | Preferential Rates (0%, 15%, or 20%) |
| Primary Strategy | Day trading & short-term flipping | Buy-and-hold index fund investing |
| Tax Efficiency | Low (Heavy tax drag) | High (Significant tax savings) |
For research on investor capital gains tax brackets, visit the IRS Capital Gains Center or inspect Tax Foundation Capital Gains Studies.
Worked Example: Holding an Asset 366 Days Saves Thousands
Investor Purchase: 1,000 Shares of Stock at $20/share ($20,000 cost basis)
Investor Sale: 1,000 Shares of Stock at $50/share ($50,000 total value)
Realized Capital Profit = $50,000 - $20,000 = $30,000 Gain
Scenario A: Sold at Day 300 (Short-Term Gain)
Investor in 24% tax bracket pays ordinary income rate: $30,000 x 0.24 = $7,200 Tax Owed
Scenario B: Sold at Day 366 (Long-Term Gain)
Investor pays 15% preferential long-term rate: $30,000 x 0.15 = $4,500 Tax Owed
Simply waiting 66 extra days saves $2,700 in cold hard cash!
Primary Home Sale Exclusion (Section 121)
If you sell your primary residence, tax codes offer an immense capital gains tax exclusion:
- Single Taxpayers: Up to $250,000 of profit on your primary home is 100% tax-free.
- Married Filing Jointly: Up to $500,000 of home sale profit is 100% tax-free.
- Ownership Requirement: You must have owned and lived in the house as your primary residence for at least 2 out of the past 5 years.
Advanced Tax Strategies: Tax-Loss Harvesting and Wash-Sale Rules
Beyond simply holding assets past the 365-day threshold, sophisticated investors utilize tax-loss harvesting to minimize their overall annual capital gains exposure. Tax-loss harvesting is the practice of selling investments that are currently trading at a loss to offset realized capital gains from winning positions.
For example, if you realized a $10,000 long-term capital gain from selling stock A, but currently hold underperforming stock B with an unrealized loss of $4,000, selling stock B allows you to net your taxable capital gain down to just $6,000 ($10,000 gain minus $4,000 loss). If your net losses exceed your total capital gains for the calendar year, tax jurisdictions like the U.S. IRS allow you to deduct up to $3,000 of net capital losses against your ordinary active income, while carrying forward unused excess losses into future tax years indefinitely.
The IRS Wash-Sale Rule Explained
When attempting tax-loss harvesting, you must navigate the Wash-Sale Rule. Under tax regulations, if you sell a security at a loss and buy a "substantially identical" security within 30 days before or 30 days after the sale (a 61-day window), the tax loss is disallowed for the current tax year.
Instead of receiving an immediate tax deduction, the disallowed loss is added back into the cost basis of the newly repurchased asset. To comply with wash-sale laws while maintaining market exposure, investors often purchase an ETF or index fund in a similar asset class rather than the exact same individual company stock.
Capital Gains on Real Estate & Opportunity Zones
Real estate investments carry unique capital gains provisions. When selling commercial or residential rental properties, investors face depreciation recapture taxes in addition to standard capital gains. To defer capital gains taxes on investment real estate, investors frequently utilize Section 1031 Like-Kind Exchanges, which allow reinvesting proceeds from one property into another qualifying property without triggering an immediate tax liability.
Additionally, Qualified Opportunity Funds (QOFs) permit investors to roll over realized capital gains from stock or business sales into economically distressed communities, offering tax deferral and potential tax-free growth if held for 10+ years.
Sources & References
This article relies on verified financial standards and official policy frameworks. For official guidelines, consult:
Frequently asked questions
What is the Wash-Sale Rule in stock trading?
The Wash-Sale Rule disallows claiming a tax loss if you buy a "substantially identical" security within 30 days before or after selling an asset at a loss.
How much capital loss can you deduct against ordinary income?
If your capital losses exceed your capital gains, you can deduct up to $3,000 of net capital losses against your ordinary active income per year, rolling over any remaining losses to future tax years.
Helpful resources
Internal resources
- Active vs passive index fund guide
- Marginal vs effective tax rate
- How compound interest works
- Understanding net worth
- Browse all articles