Capital Gains Tax on Stocks: 2024-2025 Guide to Rates, Rules and Strategies

Commitment to Our Readers
GOBankingRates' editorial team is committed to bringing you unbiased reviews and information. We use data-driven methodologies to evaluate financial products and services - our reviews and ratings are not influenced by advertisers. You can read more about our editorial guidelines and our products and services review methodology.
20 Years
Helping You Live Richer
Reviewed
by Experts
Trusted by
Millions of Readers
When you buy stocks, you hope they go up in value so you can sell them at a higher price than you paid. That’s the whole idea, right? The good news is that you’ve made some money. The bad news is that the money you’ve made is taxable.
It’s called capital gains because it’s the gain you made on the capital you invested. Understanding how capital gains tax on stocks works can help you plan smarter and potentially reduce what you owe.
What Is Capital Gains Tax?
A capital gains tax will apply to stocks that you choose to sell. For instance, when you sell stocks for a higher price than you bought them, the profit is known as a capital gain.
Capital Gains Tax Example
If you buy a stock for $5,000 and later sell it for $7,000, you could owe capital gains tax on the $2,000 profit. Whether you pay — and how much — depends on your income and how long you held the stock before selling.
The Internal Revenue Service categorizes these gains into two types: short-term and long-term. This distinction is important because it directly influences the amount of tax you’ll owe.
Short-Term vs. Long-Term Capital Gains
Capital gains taxes are categorized as either short-term or long-term. The key difference between short-term and long-term capital gains lies in how long you’ve held the stocks before selling them.
Short-Term Capital Gains TaxÂ
- Applies to assets held one year or less before selling.
- Taxed at the same rate as ordinary income — 10% to 37%.
- It is a higher tax burden for those who are high-income earners.Â
Long-Term Capital Gain TaxÂ
- Long-term capital gains tax applies to assets held for more than one year before selling.Â
- Depending on your taxable income, the amount can be taxed at 0%,15% or 20%.Â
- Encourages long-term investing due to lower rates.Â
Capital Gains Tax Rates
Capital gains tax rates are based on how long you’ve held the asset and your taxable income. Knowing these rates can help investors understand their potential tax liabilities.
Here are the tax rates applied to short-term and long-term capital gains for different filing statuses in 2024 and 2025.
Short-Term Capital Gains Tax Rate
Short-term gains are taxed as ordinary income, ranging from 10% to 37% depending on the income.
The IRS website has access to charts to help guide you regarding short-term and long-term capital gains tax rates.Â
Long-Term Capital Gains Tax Rate
Long-term gains are taxed at 0%,15% or 20% depending on taxable income.Â
2024 Long-Term Capital Gains Tax Rates
Filing Status | 0% Tax Rate | 15% Tax Rate | 20% Tax Rate |
---|---|---|---|
Single | Up to $47,025 | $47,026 – $518,900 | Over $518,900 |
Married Filing Jointly | Up to $94,050 | $94,051 – $583,750 | Over $583,750 |
Married Filing Separately | Up to $47,025 | $47,026 – $291,850 | Over $291,850 |
Head of Household | Up to $63,000 | $63,001 – $551,350 | Over $551,350 |
This is how the threshold breakdown can be interpreted:
- Taxed at 0% rate: Single filers who earn under $47,025.Â
- Taxed at 15% rate: Most middle-income earners.Â
- Taxed at 20% rate: Single filers earning over $518,900.Â
2025 Long-Term Capital Gains Tax RatesÂ
Filing Status | 0% Tax Rate | 15% Tax Rate | 20% Tax Rate |
---|---|---|---|
Single | Up to $48,350 | $48,351 – $533,400 | Over $533,400 |
Married Filing Jointly | Up to $96,700 | $96,701 – $600,050 | Over $600,050 |
Married Filing Separately | Up to $48,350 | $48,351 – $300,000 | Over $300,000 |
Head of Household | Up to $64,750 | $64,751 – $566,700 | Over $566,700 |
How To Calculate Capital Gains Tax: 4-Step Guide
There are four steps to calculate your capital gains tax:Â
Step 1. Start With Your Cost Basis
This is the price you paid for your investment including any commissions or fees. In the case of mutual funds or some stocks, it may also include reinvested dividends.Â
- Consider the following example: You purchased stock for $5,000 and sold it for $7,500. The cost basis is what you paid for the stock, which is $5,000.Â
Step 2. Calculate Your Net Sales Proceeds
This is the net amount you received when selling your investment, after any fees or commissions.Â
- In the above scenario, the net sale proceeds are $7,500. That is the amount that you received from the sale.Â
Step 3. Subtract Your Cost Basis From Your Net Sales Proceeds
This gives you the dollar amount of your net taxable gain.
- If your net sales proceeds are $7,500 and your cost basis is $5,000, your capital gain is $2,500. ($7,500 – $5,000 = $2,500)
Step 4. Apply the Correct Capital Gains Tax Rate
This will vary depending on your income and the holding period of your investment, which will determine if it’s a long-term or short-term capital gain.
-  If your income places you in the 15% long-term capital gains tax bracket, you’ll owe $375 in taxes.
Offsetting Gains With Losses — Tax-Loss Harvesting
There are ways to make sure you pay as little as you can on capital gain taxes. One way is using tax-loss harvesting.
Tax-loss harvesting is when you decide to sell investments that have lost value to offset what gains you’ve made with other investments.Â
Here is how you should approach tax-loss harvesting:Â
- Step 1. Identify losing investments: Review your portfolio. Stocks currently at a loss can be sold to offset taxable gains.Â
- Step 2. Sell the losing investment: For instance, if you have $5,000 in gains, but have a $15,000 loss, you can eliminate your taxable gains.Â
- Step 3. Offset additional income: If your loss exceeds gains, up to $3,000 can reduce taxable income — $1,500 for married filing separately.Â
- Step 4. Carry over extra losses: If your loss is greater than $3,000, the remainder can be used in future tax years.
Final TakeÂ
If you’re paying capital gains tax on stocks, the good news is you’ve made sound investments in your financial portfolio. However, you still want to minimize your tax burden. Here are some strategies to lower your tax bill.Â
Key Takeaways to Minimize Capital Gains Tax on Stocks
- Hold stocks for more than one year. Avoid short-term capital gains tax rates by holding investments for more than a year before disposing of them.Â
- Use tax-loss harvesting. You should write off net losses in order to offset taxes on capital gains.Â
- Review your investments. Choosing tax-efficient investments, such as index funds or ETFs, can minimize capital gains distributions and associated taxes.
- Invest through retirement accounts. Certain investment accounts are not subject to capital gains taxes. Those accounts include 401(k)s and IRAs.Â
If you’re unsure how to minimize your capital gain taxes, consult a tax professional or use tax software to explore your best options.
FAQ
Here are the answers to some of the most frequently asked questions about capital gains tax on stocks.- How much is capital gains tax for stocks?
- The capital gains tax rate for stocks depends on how long you've held the stock and your income level.
- Short-term capital gains, or stocks held for one year or less: The tax rate matches your ordinary income tax rate, which ranges from 10% to 37%.
- Long-term capital gains, or stocks held for more than one year: The rates are lower, at 0%, 15% or 20%, depending on your taxable income.
- The capital gains tax rate for stocks depends on how long you've held the stock and your income level.
- How do I avoid capital gains tax when selling stock?
- While it's challenging to completely avoid capital gains tax, there are strategies to minimize it:
- Hold stocks for more than a year to qualify for the lower long-term capital gains tax rates.
- Utilize tax-loss harvesting to offset gains with losses from other investments.
- Invest through retirement accounts like IRAs or 401(k)s, where gains can grow tax-deferred or tax-free.
- Gift appreciated stocks to family members in lower tax brackets or donate them to charity.
- While it's challenging to completely avoid capital gains tax, there are strategies to minimize it:
- How much capital gains tax will I pay on shares?
- The amount of capital gains tax you'll pay on shares depends on the duration you've held the shares, your total taxable income and the profit you've made from selling the shares.
- For short-term gains, you'll pay tax according to your income tax bracket.
- For long-term gains, you'll pay 0%, 15% or 20%, based on your taxable income.
- The amount of capital gains tax you'll pay on shares depends on the duration you've held the shares, your total taxable income and the profit you've made from selling the shares.
- How long do you have to hold stock to avoid tax?
- To avoid the higher tax rates applied to short-term capital gains, you need to hold your stock for more than one year. This qualifies your gains for the lower long-term capital gains tax rates.
- However, completely avoiding tax on stock sales is not possible unless the stocks are held in tax-advantaged accounts like IRAs or 401(k)s, where different rules apply.
- How do I get zero capital gains tax?
- If your income is below the annual limits, you can pay 0% tax on your long-term capital gains.
John Csiszar, Daria Uhlig, Elizabeth Constantineau and Karen Doyle contributed to the reporting for this article.
Our in-house research team and on-site financial experts work together to create content that’s accurate, impartial, and up to date. We fact-check every single statistic, quote and fact using trusted primary resources to make sure the information we provide is correct. You can learn more about GOBankingRates’ processes and standards in our editorial policy.
- IRS. "Topic No. 409 Capital Gains and Losses."
- Legal Information Institute. "capital gains."
- Fidelity. "How to cut investment taxes."
- Charles Schwab. "How to Cut Your Tax Bill with Tax-Loss Harvesting."
- TurboTax. "A Guide to the Capital Gains Tax Rate: Short-term vs. Long-term Capital Gains Taxes."
- IRS. 2025. "HomeHelpTax topics Topic no. 409, Capital gains and losses Topic no. 409, Capital gains and losses."
- Peter G. Peterson Foundation. 2024. "How Does the Capital Gains Tax Work Now, and What Are Some Proposed Reforms?"
- Fidelity. 2024. "2024 and 2025 capital gains tax rates."