Every time you sell an investment, real estate, or asset for more than you paid, you owe capital gains tax on the profit. But the rate you pay depends entirely on how long you held the asset — and the difference between short-term and long-term rates can mean paying 37% vs. 0–20%. Understanding these rules is one of the most impactful tax optimization strategies available to investors.
| Holding Period | Tax Rate | How It Works |
|---|---|---|
| Short-term (< 1 year) | 10–37% (ordinary income rates) | Taxed at your regular income tax bracket |
| Long-term (≥ 1 year) | 0%, 15%, or 20% | Preferential rates based on taxable income |
The one-year mark is measured from the day after purchase to the sale date. Selling on day 365 is short-term; selling on day 366 is long-term. This single day can change your tax rate by 15–20 percentage points.
For 2025, the 0% long-term capital gains bracket applies to taxable income up to $47,025 for single filers ($94,050 married filing jointly). This means couples with taxable income below $94,050 can sell long-term investments and pay zero federal tax on the gains. This is especially valuable in early retirement years when income is low, or for strategic harvesting of gains in low-income years. The 15% rate applies up to $518,900 (single) / $583,750 (MFJ), and the 20% rate applies above those thresholds.
Tax-loss harvesting is the strategy of selling investments at a loss to offset gains. Capital losses offset capital gains dollar-for-dollar, and up to $3,000 in net losses can be deducted against ordinary income each year. Unused losses carry forward indefinitely.
Example: You sold Stock A for a $10,000 long-term gain (owing $1,500 at 15%). You also hold Stock B with a $7,000 unrealized loss. By selling Stock B, you reduce your taxable gain to $3,000 and owe only $450 — saving $1,050. You then reinvest in a similar (but not identical) investment to maintain your portfolio allocation.
The wash sale rule: You cannot sell a security at a loss and buy a “substantially identical” security within 30 days before or after the sale. If you do, the loss is disallowed. To harvest losses while staying invested, sell the losing position and immediately buy a similar but not identical fund (e.g., sell a total US stock market fund and buy an S&P 500 fund). Read our Investing Guide for more on tax-efficient portfolio management.
Home sales have a powerful exclusion: you can exclude up to $250,000 in gains ($500,000 for married couples) if you owned and lived in the home as your primary residence for at least 2 of the last 5 years. This means most homeowners pay zero capital gains tax on their home sale. Investment properties do not qualify for this exclusion but can use 1031 exchanges to defer gains by reinvesting in another property. Use the Capital Gains Calculator to estimate your tax liability on any sale.
High earners face an additional 3.8% Net Investment Income Tax on the lesser of net investment income or MAGI above $200,000 (single) / $250,000 (MFJ). This effectively creates a top long-term capital gains rate of 23.8% (20% + 3.8%). This tax applies to capital gains, dividends, interest, rental income, and royalties. Read our Tax Brackets Guide for the complete picture.
Hold investments for at least one year to qualify for long-term rates. Harvest losses to offset gains each year. Use tax-advantaged accounts (401k, IRA, Roth IRA) for investments with high turnover or short-term trading. Donate appreciated securities directly to charity to avoid gains entirely while getting a full fair-market-value deduction. Time sales to low-income years when the 0% bracket applies. Use specific identification when selling partial positions to sell the highest-cost-basis shares first.
Estimate your capital gains tax liability and plan your selling strategy. Use the free Capital Gains Calculator to run scenarios — no signup required.
Related tools: Tax Bracket Calculator · Stock Profit Calculator · Dividend Calculator · Compound Interest Calculator · Retirement Calculator · ROI Calculator