Capital gains tax is a tax on the profit you make when selling capital assets like stocks, real estate, or collectibles. The rate you pay depends entirely on how long you held the asset before selling. Short-term capital gains apply to assets held one year or less and are taxed as ordinary income at rates up to 37%. Long-term capital gains apply to assets held more than one year and enjoy preferential rates of just 0%, 15%, or 20%.
The difference between these two rates can cost you thousands of dollars in extra taxes. I have seen investors lose 20% or more of their profits simply because they sold a day too early. Understanding these rules helps you keep more of what you earn and make smarter decisions about when to sell.
In this guide, I will explain exactly how capital gains tax works, show you the complete tax rate tables for 2026, walk through real examples with dollar amounts, and share strategies to legally minimize your tax burden.
Table of Contents
What Is Capital Gains Tax?
Capital gains tax is the federal tax you pay on the profit from selling a capital asset. According to the IRS, a capital asset includes almost everything you own and use for personal or investment purposes. This includes stocks, bonds, mutual funds, real estate, cryptocurrency, precious metals, artwork, and collectibles.
The tax only applies when you realize a gain. That means you must actually sell the asset for more than you paid. Unrealized gains, which are paper profits on investments you still hold, are not taxed. You can hold a stock that doubled in value for decades without paying a penny in capital gains tax until you sell it.
What Qualifies as a Capital Asset?
Most property you own qualifies as a capital asset. Here are the common categories that trigger capital gains tax when sold at a profit:
- Stocks, bonds, and mutual funds
- Real estate including investment property and second homes
- Cryptocurrency and digital assets
- Gold, silver, and other precious metals
- Artwork, antiques, and collectibles
- Vehicles including cars, boats, and airplanes
- Business assets and equipment
Not everything qualifies. Inventory held for sale to customers, depreciable business property, and certain intellectual property receive different tax treatment. Your primary residence receives special treatment with the home sale exclusion, which I will cover later in this guide.
Understanding Cost Basis
Your cost basis is what you paid for an asset, including commissions, fees, and certain improvements. This forms the foundation of your capital gains calculation. When you sell, your gain equals the sale price minus your adjusted basis.
For example, if you bought 100 shares of stock for $5,000 and paid a $10 commission, your basis is $5,010. If you sell those shares for $7,000 with another $10 commission, your net sale price is $6,990. Your capital gain is $6,990 minus $5,010, which equals $1,980.
Understanding the Holding Period: The One-Year Rule
The holding period is the length of time you own an asset before selling it. This period determines whether your gain is short-term or long-term, and therefore what tax rate applies. The IRS uses your trade dates, not settlement dates, to calculate this period.
If you buy a stock on January 15, 2026 and sell it on January 15 the following year, you have held it for exactly one year. That sale generates short-term capital gains because you did not hold it for more than one year. To qualify for long-term treatment, you must sell on January 16 or later.
This one-day difference can cost you thousands. An investor in the 32% tax bracket who realizes a $50,000 gain would pay $16,000 in taxes on a short-term gain but only $7,500 if they waited one more day for long-term treatment. That single day costs $8,500 in extra taxes.
How to Calculate Your Holding Period?
The holding period begins on the day after you acquire the asset and includes the day you dispose of it. For stocks and securities, use the trade date shown on your brokerage confirmation, not the settlement date. For real estate, use the closing date on your deed.
Special rules apply in certain situations. If you acquire property by gift, your holding period includes the time the donor held it. Inherited property automatically receives long-term treatment regardless of how long you held it. If you exercise stock options, the holding period begins on the exercise date, not the grant date.
Short-Term Capital Gains Tax Rates
Short-term capital gains are profits from selling assets you held for one year or less. The IRS taxes these gains as ordinary income, which means they are added to your wages, salary, and other regular income and taxed at the same marginal rates.
This treatment can be punishing for high earners. If you are in the top tax bracket, you will pay 37% federal tax on short-term gains plus the 3.8% Net Investment Income Tax, for a combined rate of 40.8% before state taxes. A $100,000 short-term gain could generate over $40,000 in federal taxes alone.
2025 Short-Term Capital Gains Tax Rates
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 10% | $0 – $11,925 | $0 – $23,850 | $0 – $17,000 |
| 12% | $11,926 – $48,475 | $23,851 – $96,950 | $17,001 – $64,850 |
| 22% | $48,476 – $103,350 | $96,951 – $206,700 | $64,851 – $103,350 |
| 24% | $103,351 – $197,300 | $206,701 – $394,600 | $103,351 – $197,300 |
| 32% | $197,301 – $250,525 | $394,601 – $501,050 | $197,301 – $250,500 |
| 35% | $250,526 – $626,350 | $501,051 – $751,600 | $250,501 – $626,350 |
| 37% | Over $626,350 | Over $751,600 | Over $626,350 |
2026 Short-Term Capital Gains Tax Rates
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 10% | $0 – $12,100 | $0 – $24,200 | $0 – $17,250 |
| 12% | $12,101 – $49,150 | $24,201 – $98,300 | $17,251 – $65,700 |
| 22% | $49,151 – $104,750 | $98,301 – $209,500 | $65,701 – $104,750 |
| 24% | $104,751 – $199,650 | $209,501 – $399,300 | $104,751 – $199,650 |
| 32% | $199,651 – $253,350 | $399,301 – $506,700 | $199,651 – $253,350 |
| 35% | $253,351 – $635,700 | $506,701 – $760,000 | $253,351 – $635,700 |
| 37% | Over $635,700 | Over $760,000 | Over $635,700 |
Long-Term Capital Gains Tax Rates
Long-term capital gains are profits from selling assets you held for more than one year. These gains receive preferential tax treatment with rates significantly lower than ordinary income brackets. The long-term rates are 0%, 15%, or 20% depending on your taxable income.
The 0% rate is one of the most powerful tax benefits available. If your taxable income falls below certain thresholds, you pay absolutely no federal tax on your long-term capital gains. This creates opportunities for strategic tax planning, especially in years with lower income or during retirement.
2025 Long-Term Capital Gains Tax Rates
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | $0 – $48,350 | $0 – $96,700 | $0 – $64,750 |
| 15% | $48,351 – $533,400 | $96,701 – $533,400 | $64,751 – $533,400 |
| 20% | Over $533,400 | Over $533,400 | Over $533,400 |
2026 Long-Term Capital Gains Tax Rates
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | $0 – $49,100 | $0 – $98,200 | $0 – $65,700 |
| 15% | $49,101 – $541,400 | $98,201 – $541,400 | $65,701 – $541,400 |
| 20% | Over $541,400 | Over $541,400 | Over $541,400 |
Short-Term vs Long-Term Capital Gains: Key Differences
You pay more taxes on short-term capital gains than long-term capital gains. Short-term gains are taxed as ordinary income at rates up to 37%, while long-term gains receive preferential rates of only 0%, 15%, or 20%. This difference can mean paying nearly double the tax rate on the same amount of profit.
| Factor | Short-Term Capital Gains | Long-Term Capital Gains |
|---|---|---|
| Holding Period | 1 year or less | More than 1 year |
| Tax Treatment | Taxed as ordinary income | Preferential capital gains rates |
| Tax Rates | 10% to 37% | 0%, 15%, or 20% |
| Maximum Rate | 37% (40.8% with NIIT) | 20% (23.8% with NIIT) |
| Impact on MAGI | Increases ordinary income | Separate calculation |
Real Dollar Impact Example
Consider an investor in the 24% federal tax bracket who sells stock for a $50,000 profit. If they held the stock for 11 months, they pay short-term rates. Their federal tax would be $50,000 times 24%, which equals $12,000.
If the same investor held the stock for 13 months, the gain qualifies for long-term treatment. Assuming they remain in the 15% long-term bracket, their federal tax would be $50,000 times 15%, which equals $7,500. Waiting just two extra months saves $4,500 in federal taxes.
For high earners in the 37% bracket, the savings are even more dramatic. A $100,000 short-term gain generates $37,000 in federal taxes. The same gain held long-term would be taxed at 20%, generating only $20,000 in federal taxes. The difference is $17,000 for holding just over a year.
Net Investment Income Tax: The Additional 3.8%
The Net Investment Income Tax (NIIT) adds an extra 3.8% tax on certain investment income for high earners. This tax applies in addition to your regular capital gains rates, potentially bringing your total federal rate to 23.8% on long-term gains or 40.8% on short-term gains.
The NIIT applies to investment income including capital gains, dividends, interest, rental income, and passive business income. It only triggers when your modified adjusted gross income (MAGI) exceeds specific thresholds based on your filing status.
NIIT Income Thresholds
| Filing Status | 2025 Threshold | 2026 Threshold |
|---|---|---|
| Single | $200,000 | $203,000 |
| Married Filing Jointly | $250,000 | $254,000 |
| Married Filing Separately | $125,000 | $127,000 |
| Head of Household | $200,000 | $203,000 |
The tax applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. For example, if you are single with $250,000 in MAGI and $50,000 of that is capital gains, you pay 3.8% on $50,000 because your MAGI exceeds the $200,000 threshold by exactly $50,000.
State Capital Gains Taxes
Federal capital gains taxes are only part of the story. Most states also tax capital gains, and their treatment varies dramatically. Some states tax capital gains as ordinary income, some offer special rates, and a few impose no income tax at all.
States With No Capital Gains Tax
Nine states do not tax capital gains because they have no state income tax. These are Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire. If you live in one of these states, you only pay federal capital gains taxes.
States With Special Capital Gains Treatment
Some states offer special exclusions or lower rates for capital gains. Arkansas excludes a portion of capital gains from taxation. Montana provides a special lower rate for certain capital gains. Arizona and New Mexico offer deductions for a percentage of capital gains.
California taxes capital gains as ordinary income and has some of the highest state tax rates, reaching up to 13.3%. New York taxes capital gains as ordinary income with rates up to 10.9%. Massachusetts taxes short-term gains at 12% but long-term gains at 5%.
Combined Federal and State Example
A California investor in the top federal bracket with a $100,000 short-term capital gain faces significant tax liability. The federal tax at 37% equals $37,000. The NIIT adds 3.8% or $3,800. California state tax at 13.3% adds another $13,300. The total tax burden reaches $54,100, leaving the investor with less than half the profit.
The same gain held long-term would be taxed at 20% federal ($20,000), 3.8% NIIT ($3,800), and 13.3% California ($13,300) for a total of $37,100. Holding the asset for more than one year saves this investor $17,000 in taxes.
Special Exceptions and Higher Tax Rates
While most capital assets follow the standard short-term and long-term rate structure, certain assets receive special treatment. Some get higher rates, others qualify for exclusions, and a few have complex calculations involving multiple tax rates.
Collectibles: The 28% Flat Rate
Gains from selling collectibles are taxed at a maximum rate of 28%, regardless of your income level. This applies to art, antiques, stamps, coins, precious metals (with exceptions for certain bullion), gems, historical objects, and alcoholic beverages held for investment.
The 28% rate acts as a cap, not a floor. If your ordinary income tax rate is lower than 28%, you pay that lower rate. But if you are in the 32%, 35%, or 37% brackets, you still pay only 28% on collectible gains. The NIIT can still add 3.8% on top for high earners.
Qualified Small Business Stock (QSBS)
Section 1202 of the tax code provides a significant exclusion for gains from qualified small business stock. If you hold QSBS for more than five years, you can exclude up to 100% of the gain from federal taxation, subject to certain limits.
To qualify, the stock must be originally issued by a C corporation with gross assets of $50 million or less at the time of issuance. The corporation must use at least 80% of its assets in an active qualified trade or business. The exclusion is capped at the greater of $10 million or 10 times your basis in the stock.
Depreciation Recapture on Real Estate
When you sell investment real estate, part of your gain may be taxed at a special 25% rate due to depreciation recapture. This applies to the amount of gain attributable to depreciation deductions you claimed during ownership.
For example, if you claimed $100,000 in depreciation on a rental property over the years, the first $100,000 of gain is taxed at 25% rather than the long-term capital gains rate. Any additional gain beyond the depreciation recapture is taxed at the standard long-term rates of 0%, 15%, or 20%.
Home Sale Exclusion
The sale of your primary residence receives special treatment. If you owned and used the home as your primary residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain if single or $500,000 if married filing jointly.
This exclusion applies to capital gains above your cost basis. If you bought your home for $300,000 and sell it for $550,000, your gain is $250,000. As a single filer, you would owe no capital gains tax because the entire gain falls within the exclusion limit.
How to Calculate Your Capital Gains Tax: Real Examples
Calculating your capital gains tax involves several steps. You must determine your holding period, calculate your gain, identify your tax bracket, and apply the appropriate rate. Let me walk through two detailed examples to show how this works in practice.
Example 1: Short-Term Stock Sale
Sarah is a single filer with $85,000 in annual salary. She bought 500 shares of stock for $20,000 on March 1, 2026. She sold all 500 shares for $35,000 on February 1 the following year. She held the stock for 11 months, so this is a short-term gain.
Her capital gain is $35,000 minus $20,000, which equals $15,000. Because this is a short-term gain, it is added to her ordinary income. Her total taxable income becomes $100,000, placing her in the 22% tax bracket. Her capital gains tax is $15,000 times 22%, which equals $3,300.
Example 2: Long-Term Stock Sale
Michael is married filing jointly with $120,000 in combined income. He bought 200 shares of stock for $30,000 on January 15, 2026. He sold the shares for $55,000 on March 20 the following year. He held the stock for 14 months, qualifying for long-term treatment.
His capital gain is $55,000 minus $30,000, which equals $25,000. With his income plus the gain totaling $145,000, he falls within the 15% long-term capital gains bracket for married couples. His capital gains tax is $25,000 times 15%, which equals $3,750.
If Michael had sold just two months earlier, his $25,000 gain would have been short-term and taxed at his ordinary income rate of 22%. The tax would have been $5,500. By waiting past the one-year mark, he saved $1,750 in taxes.
Strategies to Minimize Capital Gains Tax
Understanding the tax rules creates opportunities to legally reduce your tax burden. Several strategies can help you minimize or even eliminate capital gains taxes on your investments.
1. Hold Assets for More Than One Year
The simplest strategy is patience. Before selling any appreciated asset, check your holding period. If you are approaching the one-year mark, consider waiting a few weeks to qualify for long-term rates. The tax savings often outweigh any risk of price decline.
2. Use Tax-Loss Harvesting
Tax-loss harvesting involves selling investments at a loss to offset gains from other sales. If you have $20,000 in gains and $15,000 in losses, you only pay tax on $5,000 of net gains. You can deduct up to $3,000 of excess losses against ordinary income each year, carrying forward additional losses to future years.
Be careful of the wash sale rule. If you sell a security at a loss and buy the same or substantially identical security within 30 days before or after the sale, you cannot deduct the loss. The disallowed loss is added to the basis of the new shares.
3. Maximize Tax-Advantaged Accounts
Hold investments in tax-advantaged accounts like 401(k)s, IRAs, and HSAs. Traditional accounts defer taxes until withdrawal, while Roth accounts eliminate taxes entirely on qualified distributions. You can buy and sell within these accounts without triggering capital gains tax.
4. Time Your Sales Strategically
Consider spreading large gains across multiple tax years to stay in lower brackets. If realizing a $100,000 gain would push you into the 20% long-term rate, selling half in December and half in January might keep you in the 15% bracket for both years.
5. Donate Appreciated Assets to Charity
Instead of selling appreciated stock and donating cash, donate the stock directly. You receive a charitable deduction for the full fair market value and never pay capital gains tax on the appreciation. This strategy works especially well for assets with large unrealized gains.
6. Use Qualified Opportunity Zones
Investing in Qualified Opportunity Zones (QOZs) can defer and potentially reduce capital gains taxes. If you invest your gain in a QOZ fund within 180 days of the sale, you defer the tax until the earlier of the investment sale or December 31, 2026. Holding the QOZ investment for at least 10 years eliminates capital gains tax on the new investment.
Common Mistakes to Avoid
Even experienced investors make costly mistakes with capital gains. Avoid these common errors to keep more of your investment profits.
Violating the Wash Sale Rule
The wash sale rule prohibits claiming a loss if you repurchase the same or substantially identical security within 30 days before or after the sale. Many investors accidentally trigger this by selling for a loss in a taxable account while continuing to buy in their 401(k) or IRA. Track all your accounts when tax-loss harvesting.
Forgetting About State Taxes
Federal capital gains planning is only half the equation. High-tax states like California, New York, and New Jersey can add 10% or more to your total tax rate. When calculating the true cost of selling, include both federal and state taxes.
Incorrect Cost Basis Calculations
Reinvested dividends increase your cost basis but are often overlooked. If you bought a mutual fund for $10,000 and reinvested $2,000 in dividends over the years, your basis is $12,000, not $10,000. Failing to account for reinvested dividends results in overpaying taxes.
Missing the One-Year Threshold
One of the most expensive mistakes is selling just before qualifying for long-term rates. If you bought on January 15, 2026, selling on January 15 the following year results in short-term treatment. You must sell on January 16 or later for long-term rates. Always verify your trade dates, not just the calendar.
Frequently Asked Questions
Do you pay more taxes on short-term or long-term capital gains?
You pay more taxes on short-term capital gains. Short-term gains are taxed as ordinary income at rates from 10% to 37%. Long-term gains receive preferential rates of only 0%, 15%, or 20%. High earners may also pay an additional 3.8% Net Investment Income Tax on top of these rates.
What is the 20% rule for capital gains?
The 20% rule refers to the maximum long-term capital gains tax rate for high-income earners. Single filers with taxable income over $533,400 in 2025 ($541,400 in 2026) and married couples filing jointly with income over $533,400 in 2025 ($541,400 in 2026) pay 20% on long-term capital gains. The 20% rate only applies to the portion of gains above these thresholds.
How much capital gains tax will I pay on $300,000?
The tax on $300,000 in capital gains depends on your holding period, income, and filing status. For long-term gains, a married couple filing jointly with $150,000 in other income would pay 15% on the first $383,400 of gains and 20% on the remaining amount, totaling approximately $51,300 in federal taxes. Short-term gains would be taxed at ordinary income rates up to 37%, potentially exceeding $111,000 in federal taxes plus state taxes.
How to avoid 20% capital gains tax?
You can avoid the 20% capital gains tax by keeping your taxable income below the threshold. For 2025, this means keeping income below $533,400 for all filing statuses. Strategies include spreading gains across multiple tax years, maximizing deductions, contributing to retirement accounts to reduce taxable income, and using tax-loss harvesting to offset gains. Some taxpayers may qualify for the 0% rate if their taxable income is low enough.
How long is long-term capital gains?
Long-term capital gains status requires holding an asset for more than one year. The IRS counts the holding period from the day after you acquire the asset through the date you sell it. If you buy on January 15, 2025, you must sell on January 16, 2026 or later to qualify for long-term treatment. Selling exactly one year later results in short-term gains taxed as ordinary income.
Do I have to pay capital gains tax immediately?
You pay capital gains tax when you file your tax return for the year in which the sale occurred. If you sell an asset in March 2026, you report the gain on your 2026 tax return due in April 2027. There is no requirement to pay the tax immediately upon sale, though you may need to make estimated tax payments if the gain is large enough to trigger underpayment penalties.
What tax forms do I need for capital gains?
You report capital gains on Form 8949 and Schedule D of your Form 1040. Form 8949 lists each transaction with details including description, dates acquired and sold, proceeds, cost basis, and gain or loss. Schedule D summarizes the totals from Form 8949 and calculates your net capital gain or loss. Your brokerage will provide Form 1099-B showing your transactions, but you are responsible for accurate reporting.
How do capital gains affect my tax bracket?
Short-term capital gains are added to your ordinary income and can push you into higher tax brackets. Long-term capital gains have their own separate rate brackets and do not affect your ordinary income bracket. However, long-term gains do count toward your adjusted gross income, which can affect eligibility for certain tax credits, deductions, and the 3.8% Net Investment Income Tax threshold.
Conclusion
Understanding capital gains tax is essential for every investor. The difference between short-term and long-term rates can mean keeping thousands of extra dollars in your pocket. Short-term gains are taxed as ordinary income at rates up to 37%, while long-term gains enjoy preferential rates of just 0%, 15%, or 20%.
The one-year holding period threshold is strict. Selling just one day early can cost you 17% or more in additional taxes. Always verify your trade dates before selling appreciated assets. When possible, hold investments for more than one year to qualify for long-term treatment.
Strategies like tax-loss harvesting, using tax-advantaged accounts, and timing your sales across tax years can further reduce your tax burden. Special rules apply to collectibles, small business stock, and real estate, so understand how these affect your specific situation.
Tax laws change frequently, and individual circumstances vary. The information in this guide reflects the tax rates for 2026, but consult a qualified tax professional for advice tailored to your specific situation. With proper planning, you can legally minimize your capital gains tax and keep more of your investment profits.