← All Resources

Capital Gains Tax Explained: Short-Term vs Long-Term, Tax-Loss Harvesting, and How to Keep More of Your Investment Profits

✍️
By Derek Jordan, BA Business Marketing  ·  Updated May 2026  ·  Reviewed for accuracy
📅 Updated May 2026 ⏱ 13 min read 🧮 Capital Gains Calculator

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.

Short-Term vs. Long-Term Capital Gains

Holding PeriodTax RateHow 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: Turning Losses Into Savings

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.

Real Estate Capital Gains

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.

Net Investment Income Tax (NIIT)

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.

Strategies to Minimize Capital Gains Tax

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.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?
Short-term (held less than 1 year) is taxed at ordinary income rates (10–37%). Long-term (held 1+ years) gets preferential rates of 0%, 15%, or 20% based on income. One extra day of holding can save 15–20% in tax.
What is tax-loss harvesting?
Selling investments at a loss to offset gains. Losses offset gains dollar-for-dollar, plus $3,000/year against ordinary income. Unused losses carry forward indefinitely. Watch the wash sale rule: no repurchasing substantially identical securities within 30 days.
Do I pay capital gains on my home sale?
Most homeowners pay zero. You can exclude $250K ($500K married) if you owned and lived in the home 2 of the last 5 years. Investment properties don’t qualify but can use 1031 exchanges.
What is the 0% capital gains bracket?
Taxable income up to $47,025 single ($94,050 MFJ) pays 0% on long-term gains. Especially valuable in low-income years or early retirement for strategic gain harvesting.
How do I minimize capital gains tax?
Hold 1+ year for long-term rates, harvest losses annually, use tax-advantaged accounts for high-turnover investments, donate appreciated securities to charity, time sales to low-income years, and use specific identification for partial sales.

Run Your Numbers

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

← Back to all resources
📚 Sources: [1] IRS — Topic 409: Capital Gains and Losses [2] IRS — Publication 550: Investment Income and Expenses [3] Tax Policy Center — Capital Gains Taxation [4] SEC — Capital Losses and Tax Planning