Learn
Capital Gains Tax Explained: 2026 Short-Term vs Long-Term Rates
Capital gains tax applies when you sell investments for a profit. Here's how short-term and long-term rates differ, how to minimize your tax bill.
Start with the core idea
This guide is built for first-pass understanding. Start with the key terms, then use the framework in your own money workflow.
Capital gains tax is the price you pay for making money on your investments. Whether you sold stocks, real estate, or crypto, the IRS wants a cut of your profit. Understanding how capital gains work, and the difference between short-term and long-term rates — can save you thousands of dollars every year.
What Is Capital Gains Tax and How Is It Calculated?
Capital gains tax is the tax you owe on the profit from selling an asset (stocks, real estate, crypto, etc.) for more than you paid. Short-term capital gains (assets held one year or less) are taxed as ordinary income at rates up to 37%. Long-term capital gains (assets held more than one year) receive preferential rates of 0%, 15%, or 20% depending on your taxable income. High earners may also owe the 3.8% Net Investment Income Tax, bringing the top effective rate to 23.8%.
What Is a Capital Gain?
A capital gain is the profit you make when you sell an asset for more than you paid for it. If you bought shares of a company at $50 and sold them at $80, your capital gain is $30 per share. Simple enough. But the tax you owe on that gain depends on two things: how long you held the asset and how much total income you earned that year.
Capital gains only apply when you realizethe gain, meaning you actually sell the asset. If your portfolio is up 40% but you haven't sold anything, you don't owe capital gains tax. That unrealized gain is just a number on a screen until you hit the sell button. The IRS Topic 409 covers capital gains and losses in detail.
Short-Term vs. Long-Term Capital Gains
The IRS draws a hard line at one year. If you held an asset for one year or less before selling, any profit is a short-term capital gain. If you held it for more than one year, it's a long-term capital gain. This distinction matters because the tax rates are very different.
| Feature | Short-Term Capital Gains | Long-Term Capital Gains |
|---|---|---|
| Holding period | 1 year or less | More than 1 year |
| Tax rates | 10-37% (ordinary income rates) | 0%, 15%, or 20% |
| NIIT surcharge | +3.8% if income exceeds threshold | +3.8% if income exceeds threshold |
| Top effective rate | 40.8% | 23.8% |
| Best for | N/A — avoid when possible | Buy-and-hold investors |
| Applies to | Stocks, crypto, real estate, collectibles | Stocks, crypto, real estate, collectibles |
2026 Long-Term Capital Gains Tax Rates
Long-term capital gains rates depend on your taxable income and filing status. Under the Tax Cuts and Jobs Act (TCJA), which has been recently extended, these preferential rates continue to apply. Here are the 2026 thresholds:
| Rate | Single | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $48,350 | Up to $96,700 | Up to $64,750 |
| 15% | $48,351 – $533,400 | $96,701 – $600,050 | $64,751 – $566,700 |
| 20% | Over $533,400 | Over $600,050 | Over $566,700 |
The 3.8% Net Investment Income Tax (NIIT) kicks in for single filers earning over $200,000 or married couples over $250,000, potentially bringing the top effective rate on long-term gains to 23.8%. These NIIT thresholds are not adjusted for inflation; they have remained the same since the tax was introduced in 2013, meaning more taxpayers are affected each year. Check the IRS inflation adjustments for the latest capital gains thresholds.
How to Calculate Your Capital Gain
The formula is straightforward:
Capital Gain = Sale Price – Cost Basis – Selling Fees
Your cost basis is what you originally paid for the asset, including any purchase commissions or fees. If you bought 100 shares at $50 each with a $10 commission, your cost basis is $5,010. If you later sold those shares for $8,000 with a $10 fee, your capital gain is $8,000 – $5,010 – $10 = $2,980.
Things get more complicated when you buy the same stock at different times and prices. That's where cost basis methods come in; FIFO (first in, first out), specific identification, and average cost. Your brokerage typically defaults to FIFO, but specific identification lets you choose which shares to sell, potentially minimizing your tax bill. All realized gains and losses are reported on IRS Form 8949 and Schedule D. Your brokerage — such as Fidelity — will also send you a 1099-B form summarizing your realized gains and losses for the year.
The Wash Sale Rule
The IRS doesn't let you sell an investment at a loss just to claim the tax deduction and then immediately buy it back. The wash sale ruledisallows a loss if you purchase a "substantially identical" security within 30 days before or after the sale. The full rule is covered in IRS Publication 550.
If you trigger a wash sale, the disallowed loss gets added to the cost basis of the replacement shares. You don't lose the deduction forever; it's deferred until you eventually sell the replacement shares without triggering another wash sale.
Watch out for automatic dividend reinvestment plans (DRIPs). If you sell a stock at a loss but your DRIP buys more shares within the 30-day window, you've triggered a wash sale. Cryptocurrency is generally treated differently for federal tax purposes, so check the current crypto-specific rules before assuming the stock wash sale framework applies.
Netting Gains and Losses
At tax time, your gains and losses go through a netting process. Here's how it works:
- Net your short-term gains against short-term losses to get a net short-term result.
- Net your long-term gains against long-term losses to get a net long-term result.
- If one category shows a net gain and the other shows a net loss, they offset each other.
This ordering matters because short-term gains are taxed at higher rates. If you have $10,000 in short-term gains and $8,000 in long-term losses, the losses offset the higher-taxed gains first, saving you more money than if it worked the other way around.
The $3,000 Capital Loss Deduction
If your total capital losses exceed your total capital gains for the year, you can deduct up to $3,000 of the excess loss against your ordinary income ($1,500 if married filing separately). Any remaining losses carry forward to future years indefinitely.
Say you had $2,000 in gains and $12,000 in losses. Your net loss is $10,000. You deduct $3,000 this year and carry forward $7,000. Next year, you can use that carryforward to offset gains or deduct another $3,000; whichever applies.
Capital Gains on Your Home
When you sell your primary residence, you may qualify for a significant exclusion under Section 121. Single filers can exclude up to $250,000 in gains, and married couples filing jointly can exclude up to $500,000. To qualify, you must have owned and lived in the home for at least two of the five years before the sale.
This exclusion is one of the most generous tax breaks available. If you bought a house for $300,000 and sold it for $700,000, your $400,000 gain is completely tax-free as a married couple. You don't even need to report it on your tax return if the gain is below the exclusion amount.
Investment properties and second homes don't qualify for this exclusion. Gains on those are fully taxable, though you can defer them using a 1031 exchange for investment real estate.
Capital Gains on Collectibles and Special Assets
Not all long-term capital gains qualify for the preferential 0/15/20% rates. Certain asset types have their own rates. If you trade options contracts, the tax treatment depends on whether you held the underlying position long-term and whether the options expired or were exercised.
| Asset Type | Long-Term Rate | Notes |
|---|---|---|
| Stocks, bonds, ETFs, mutual funds | 0/15/20% | Standard preferential rates |
| Cryptocurrency | 0/15/20% | Treated as property by IRS |
| Real estate | 0/15/20% + 25% recapture | Depreciation recapture taxed at 25% |
| Collectibles (art, coins, wine) | 28% max | Higher rate than standard capital gains |
| Qualified Small Business Stock (QSBS) | 0% (up to $10M) | Section 1202 exclusion, 5-year hold |
Strategies to Minimize Capital Gains Tax
There are several legitimate strategies to reduce your capital gains tax bill:
- Hold for over a year: The simplest strategy. Patience alone can cut your tax rate from 37% to 15% on the same gain.
- Tax-loss harvesting: Sell losing investments to offset gains. Just watch out for wash sales. (If your losses exceed gains, you can also deduct up to $3,000 against ordinary income — even if you take the standard deduction.) See our tax-loss harvesting guide for a full walkthrough.
- Use tax-advantaged accounts: Gains inside a Roth IRA or 401(k) are tax-free or tax-deferred. Prioritize high-growth investments in these accounts.
- Donate appreciated assets: Donating stock that has appreciated avoids capital gains tax entirely, and you get a deduction for the full market value.
- Harvest gains at 0%: If your income is low enough to qualify for the 0% rate, you can sell investments and pay zero capital gains tax. Retirees in low-income years often use this strategy.
- Specific share identification: Sell your highest-cost-basis shares first to minimize the taxable gain. Contact your brokerage to enable specific lot identification.
- 1031 exchanges for real estate: Defer gains on investment property by exchanging into another property.
- Qualified Opportunity Zones: Invest capital gains into a Qualified Opportunity Fund to defer and potentially reduce your tax liability.
Capital Gains and Estimated Tax Payments
If you realize significant capital gains during the year, you may need to make quarterly estimated tax payments to avoid an underpayment penalty. The IRS expects you to pay taxes as you earn income, not just at year-end. If your capital gains push your total tax liability more than $1,000 above your withholding, you could owe a penalty.
W-2 employees can increase their W-4 withholding to cover expected capital gains instead of making separate estimated payments. The IRS treats all withholding as paid evenly throughout the year, which can help you avoid underpayment penalties even on gains realized late in the year.
How Clarity Helps You Track Capital Gains
One of the biggest mistakes investors make is ignoring capital gains until tax season. By then, it's too late to do anything about it. Clarity gives you a real-time view of your realized and unrealized gains across all your accounts, so you can make tax-smart decisions before December 31st — not after.
Keeping track of your cost basis across multiple brokerages, crypto exchanges, and investment accounts is genuinely difficult without a tool. When you connect your accounts in Clarity, your cost basis and holding periods are tracked automatically, and you can spot tax-lot and holding-period issues before year-end.
Put it into practice
See realized gains, unrealized gains, and cost basis in one place
Capital gains planning is only useful if you can see the full picture before year-end. Clarity gives you a consolidated view across brokerages and crypto accounts so you can make tax-aware sell decisions while there is still time to act.
- Track cost basis across connected investment accounts
- See short-term versus long-term exposure before selling
- Export tax-ready gain and loss data when you need it
What to Do Next
Start by understanding where you stand right now. Review your brokerage statements for any realized gains this year. Check whether your gains are short-term or long-term. If you have losing positions, consider whether tax-loss harvesting makes sense before year-end.
Connect your investment accounts to Clarity to get a consolidated view of your gains, losses, and cost basis across every account. The earlier you start tracking, the more opportunities you'll have to minimize your tax bill legally.
Last reviewed: March 12, 2026. Primary sources: IRS Topic 409, IRS Publication 550, and IRS Form 8949.
This article is for educational purposes and does not constitute tax advice. Consult a CPA or tax advisor for guidance specific to your situation.
Core Clarity paths
If this page solved part of the problem, these are the main category pages that connect the rest of the product and knowledge system.
Money tracking
Start here if the reader needs one place for spending, net worth, investing, and crypto.
For investors
Use this when the real job is portfolio visibility, tax workflow, and all-account context.
Track everything
Best fit when the pain is scattered accounts across banks, brokerages, exchanges, and wallets.
Net worth tracker
Route readers here when they care most about net worth, allocation, and portfolio visibility.
Spending tracker
Route readers here when they need transaction visibility, recurring charges, and cash-flow control.
Frequently Asked Questions
What is the difference between short-term and long-term capital gains?
Short-term capital gains (assets held under 1 year) are taxed at your ordinary income rate — up to 37%. Long-term capital gains (assets held over 1 year) are taxed at preferential rates: 0%, 15%, or 20% depending on your income. Holding for at least one year before selling can save you significant taxes.
How do I calculate capital gains?
Capital gain = sale price minus cost basis (what you paid plus commissions). If you bought stock at $50 and sold at $80, your capital gain is $30 per share. Your cost basis method (FIFO, specific identification) matters — specific identification lets you sell highest-cost lots first to minimize gains.
Is there a capital gains tax on a primary residence?
Yes, but with a large exemption. Single filers can exclude up to $250,000 in gains, and married couples up to $500,000, on the sale of a primary residence they've lived in for at least 2 of the past 5 years. Most homeowners pay zero capital gains tax on their home sale.
Citations
Legacy source context
Undated
View source
Try this workflow
Use this with your real data
Apply this concept with live balances, transactions, and portfolio data — not a static spreadsheet.
Next best pages
Graph: 9 outgoing / 22 incoming
blog · explains · 95%
Short-Term vs Long-Term: The $47K Difference Nobody Calculates
Sell a stock at 11 months: 37% tax. Sell at 13 months: 20%. On a $275K gain, that two-month difference costs $47,000. Most investors don't track holding periods. They should.
blog · explains · 95%
When to Exercise Stock Options: A Decision Framework for Startup Employees
The tax implications of exercising stock options at the wrong time can cost more than the options are worth. A framework covering ISOs vs NSOs, AMT, 83(b) elections, and post-IPO strategy.
blog · explains · 95%
Tax-Loss Harvesting in Practice: When It Saves Money and When It Doesn't
Tax-loss harvesting can save thousands in a bad year and almost nothing in a good one. Here's when it creates real savings, when it merely defers taxes, and when it can hurt you.
blog · explains · 84%
Crypto Tax Season Is a Mess. Here's How We Track Cost Basis Across 50+ Exchanges.
Every crypto sale, swap, and airdrop is taxable. Clarity connects to 50+ exchanges and on-chain data to compute cost basis using FIFO, HIFO, or specific identification — automatically.
blog · explains · 84%
Your Tax Dashboard: How Clarity Replaces the Freelancer Spreadsheet
Freelancers waste 12 hours a year reconciling tax spreadsheets. Clarity's tax dashboard tracks income, deductions, SE tax, and quarterly estimates in real time — no manual entry.
learn · related-concept · 76%
Crypto Tax Guide 2026: Rules, Reporting, and Common Mistakes
Every crypto sale, swap, and spend is a taxable event. Here's a comprehensive guide to crypto taxes — what's taxable, how to report, and mistakes to avoid.