
Thinking about selling stocks, bonds, mutual funds, or other investments? Before you make a move, it’s essential to understand the tax consequences. The IRS treats profits from investment sales as capital gains, and how these gains are taxed can significantly impact your overall return. Let’s break it down together—how capital gains taxes work, how to calculate your gain or loss, and strategies to help you keep more of your money.
What Are Capital Gains and How Are They Taxed?
A capital gain happens when you sell an asset—like stocks, bonds, real estate, or mutual funds—for more than what you paid for it (plus certain costs). The IRS generally splits capital gains into two categories based on how long you’ve held the asset:
- Short-term capital gains: Held for one year or less, taxed at your ordinary income tax rate (10% to 37% in 2026, depending on your income).
- Long-term capital gains: Held for more than one year, taxed at lower rates—0%, 15%, or 20%, depending on your income and filing status.
Example: If you bought shares in January 2024 and sold them in March 2024, your gain would be short-term. But if you sold them in February 2025, your gain would be long-term.
Here’s a quick look at the 2025 long-term capital gains tax brackets:
| Filing Status | 0% Rate Up To | 15% Rate Up To | 20% Rate Above |
| Single | $48,350 | $533,400 | $533,400 |
| Married Filing Jointly | $96,700 | $600,050 | $600,050 |
| Head of Household | $64,750 | $566,700 | $566,700 |
Special Cases and Higher Rates
Not all assets are taxed the same way. Here are a few exceptions:
- Collectibles (art, coins, precious metals): Taxed up to 28%.
- Depreciated real estate: Unrecaptured Section 1250 gain may be taxed up to 25%.
How to Calculate Your Capital Gain or Loss
To figure out your capital gain or loss, subtract your adjusted basis (what you paid, plus certain costs) from the amount you realized on the sale (sale price minus selling expenses).
Example:
- You bought 100 shares for $2,000.
- Sold them for $3,000, paying $50 in commissions.
Calculation:
- Amount realized: $3,000 – $50 = $2,950
- Adjusted basis: $2,000
- Capital gain: $2,950 – $2,000 = $950
If you sell for less than your adjusted basis, you have a capital loss.
What If You Have a Loss?
Capital losses can offset capital gains. If your losses exceed your gains, you can deduct up to $3,000 ($1,500 if married filing separately) of the excess loss against your ordinary income. Any leftover loss can be carried forward to future years.
Strategies to Minimize Capital Gains Taxes
Here are some smart moves to reduce your tax bill:
- Hold Investments for More Than One Year
Long-term gains are taxed at lower rates. If you’re close to the one-year mark, consider waiting to sell.
- Offset Gains with Losses (Tax-Loss Harvesting)
Sell underperforming investments to realize losses and offset gains. Just watch out for the “wash sale” rule, which disallows a loss if you buy a similar security within 30 days before or after the sale.
- Mind the Net Investment Income Tax (NIIT)
If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you may owe an extra 3.8% tax on net investment income, including capital gains.
- Use Tax-Advantaged Accounts
Selling investments inside an IRA, Roth IRA, or 401(k) doesn’t trigger capital gains taxes. Maximize contributions to these accounts to shelter growth from taxes.
- Time Your Sales
If you expect lower income in a future year, wait to sell appreciated assets when you’re in a lower tax bracket.
- Donate Appreciated Assets
Donate investments that have increased in value to a qualified charity or Donor Advised Fund (DAF). If held for 1 year or more you may deduct the full fair market value and avoid capital gains tax on the appreciation.
- Gift Appreciated Assets to Family Members
Reduce your family’s tax bill by gifting appreciated assets to relatives in lower tax brackets. Be mindful of “kiddie tax” rules, which may tax a child’s unearned income at the parents’ rate.
- Utilize Step-Up in Basis at Death
Heirs generally receive a “step-up” in basis for inherited assets, resetting the basis to the asset’s fair market value at the date of death. This can eliminate capital gains tax on appreciation during your lifetime.
- Invest in Opportunity Zones
Reinvest gains into Qualified Opportunity Funds to defer and potentially reduce capital gains taxes. Additional benefits may apply if you hold the investment long enough.
Common Mistakes to Avoid
- Forgetting reinvested dividends: Include the cost of reinvested dividends in your basis.
- Overlooking mutual fund distributions: These are taxable even if you don’t sell your shares.
- Ignoring state taxes: Many states tax capital gains, sometimes at different rates than federal taxes.
When to Consult a Tax Professional
While many can handle basic investment sales, consider consulting a pro if you:
- Have complex investments (real estate, private equity, cryptocurrency).
- Are planning large transactions that could push you into a higher tax bracket.
- Need help with tax-loss harvesting or charitable giving.
- Have inherited assets or are planning your estate.
Final Thoughts
Understanding the tax implications of selling investments is key to making smarter financial decisions. By planning ahead and using these strategies, you can minimize your tax liability and maximize your after-tax returns. Keep detailed records of your investment activity, and don’t hesitate to seek professional advice for personalized guidance.