How to Avoid Capital Gains Tax on Stocks (7 Tricks You Need to Know) (2024)

We receive compensation from the products and services mentioned in this story, but the opinions are the author's own. Compensation may impact where offers appear. We have not included all available products or offers. Learn more about how we make money and our editorial policies.

Capital gains are incurred when shares of a stock are sold for more than you paid for them. The exact taxes on these gains will depend upon how long the shares were held.

Understanding how capital gains taxes work can help you manage the tax bill incurred from stock sales, which is a smart money move when you’re trying to build wealth. When investing money you should always understand how it could be taxed.

Here’s how capital gains tax works with taxes, and how you might avoid a big capital gains tax bill.

In this article

  • What are capital gains taxes?
  • How capital gains on stocks are taxed
  • How to avoid capital gains taxes on stocks
  • FAQs
  • Bottom line

What are capital gains taxes?

Capital gains as they pertain to stocks occur when an investor sells shares of an individual stock, a stock mutual fund, or a stock ETF for more than they originally paid for the investment. For example, if you buy 100 shares of a stock at $25 per share and later sell them for $40 per share you will have realized a capital gain of $15 per share or $1,500 total on the 100 shares.

ETFs and mutual funds can also incur capital gains realized from the sales of the stocks held within the mutual fund or ETF.

The Internal Revenue Service defines capital gains as either short-term or long-term:

  • Short-term capital gains: Capital gains on stocks that are held for less than one year are taxed at your ordinary income tax rate. There is no different treatment for tax purposes.
  • Long-term capital gains: If the shares are held for at least one year, the capital gain is considered to be long-term. This means the gain is taxed at the long-term capital gains tax rate, which is lower than the ordinary income tax rates for many investors.

Note: Capital gains on stocks are taxed differently than capital gains on a home sale.

How capital gains on stocks are taxed

The federal tax rates on long-term capital gains vary a bit based on your filing status and your adjusted gross income (AGI). Here are the long-term capital gains rates for both the 2023 and 2024 tax years for the various tax filing statuses.

The first column indicates the percentage of tax that will be applied to your capital gains. Columns two through five indicate your filing status and income level.

Tax year 2023

Capital gains tax rateAGI – Single filersAGI – Married filing jointlyAGI – Head of householdAGI – Married filing separately
0%$0 - $44,625$0 - $89,250$0 - $59,750$0 - $44,625
15%$44,626 - $492,300$89,251 - $553,850$59,751 - $523,050$44,626 - $276,900
20%$492,301 or more$553,851 or more$523,051 or more$276,901 or more

Tax year 2024

Capital gains tax rateAGI – Single filersAGI – Married filing jointlyAGI – Head of householdAGI – Married filing separately
0%$0 - $47,025$0 - $94,050$0 - $63,000$0 - $47,025
15%$47,025 - $518,900$94,050 - $583,750$63,000 - $551,350$47,025 - $291,850
20%$518,900 or more$583,750 or more$551,350 or more$291,850 or more

In addition to these rates, there is an additional capital gains tax for higher-income investors called the net investment income tax rate. This rule adds 3.8% to the capital gains tax for investors over certain income thresholds.

For tax year 2024, you will owe net investment income tax if your annual income (measured as modified adjusted gross income or MAGI) is above the following thresholds:

  • Single or head of household: $200,000
  • Married couple filing jointly: $250,000
  • Married couple filing separately: $125,000

7 methods to avoid capital gains taxes on stocks

Managing the tax impact when investing in stocks is always a good idea. However, tax considerations should simply be a part of the process and not the driver of your investing decisions. That said, there are many ways to minimize or avoid the capital gains taxes on stocks.

1. Work your tax bracket

While long-term capital gains are taxed at a lower rate, realizing these capital gains can push you into a higher overalltax bracket, as the capital gains will count as a part of your AGI. If you are close to the upper end of your regular federal income tax bracket, it might be smart to defer selling stocks until a later time or to consider bunching some deductions into the current year. This would keep those earnings from being taxed at a higher rate.

2. Use tax-loss harvesting

Tax-loss harvesting is an effective tool whereby an investor intentionally sells stocks, mutual funds, ETFs, or other securities held in a taxable investment account at a loss. Tax losses can be used in several ways including to offset the impact of capital gains from the sale of other stocks.

Capital losses are used to offset capital gains as follows:

  • Long-term losses offset long-term gains
  • Short-term losses offset short-term gains

Any excess losses of either type are used to offset additional capital gains first. Then, to the extent that your losses exceed your gains for the year, up to $3,000 may be used to offset other taxable income. Additional losses can be carried over to use in subsequent tax years.

A key point is to ensure that you avoid a wash sale when using tax-loss harvesting. The wash sale rule says an investor cannot purchase shares of identical or substantially identical security 30 days before or within 30 days after selling a stock or other security for a loss. Essentially this creates a 61-day window around the date of the sale.

For example, if you plan to sell shares of IBM stock at a loss, you must refrain from buying shares of IBM during that 61-day span. Similarly, if you sell shares of the Vanguard S&P 500 ETF at a loss and then buy another ETF that tracks the same index, that might be considered “substantially identical.”

Violating the wash sale rule would eliminate your ability to use the tax loss against capital gains or other income for that year. This rule also extends to purchases in accounts other than your taxable account, such as an IRA. If you have questions about what constitutes a wash sale, it's best to consult your financial advisor.

Many of the top robo-advisorslike Wealthfront automate tax-loss harvesting, making it simple even for novice investors.

Paid Non-Client Promotion

FinanceBuzz doesn’t invest its money with this provider, but they are our referral partner. We get paid by them only if you click to them from our website and take a qualifying action (for example, opening an account.)


3. Donate stocks to charity

Donating shares of stock to a charity offers two potential tax benefits:

  1. You will not be liable for taxes on any capital gains due to the increased value of the shares.
  2. The market value of the shares on the day they are donated to the charity can be used as a tax deduction if you are eligible to itemize deductions on your tax return. Your total itemized deduction needs to exceed the amount of the standard deduction for the current tax year and your filing status to be eligible.

4. Buy and hold qualified small business stocks

Qualified small business stock refers to shares issued by a qualified small business as defined by the IRS. This tax break is meant to provide an incentive for investing in these smaller companies. If the stock qualifies under IRS section 1202, up to $10 million in capital gains may be excluded from your income.

Depending on when the shares were acquired, between 50% and 100% of your capital gains may not be subject to taxes. It's best to consult with a tax professional knowledgeable in this area to be sure.

5. Reinvest in an Opportunity Fund

An opportunity zone is an economically distressed area that offers preferential tax treatment to investors under the Opportunity Act. This was a part of the Tax Cuts and Jobs Act passed in late 2017.

Investors who take their capital gains and reinvest them into real estate or businesses located in an opportunity zone can defer or reduce the taxes on these reinvested capital gains. The IRS allows the deferral of these gains through December 31, 2026, unless the investment in the opportunity zone is sold before that date.

6. Hold onto it until you die

This might sound morbid, but if you hold your stocks until your death, you will never have to pay any capital gains taxes during your lifetime. In some cases, your heirs may also be exempt from capital gains taxes due to the ability to claim a step-up in the cost basis of the inherited stock.The cost basis is the cost of the investment, including any commissions or transaction fees incurred.

A step-up in basis means adjusting the cost basis to the current value of the investment as of the owner’s date of death. For investments that have appreciated in value, this can eliminate some or all of the capital gains taxes that would have been incurred based on the investment’s original cost basis. For highly appreciated stocks, this can eliminate capital gains should your heirs decide to sell the stocks, potentially saving them a lot in taxes.

7. Use tax-advantaged retirement accounts

If stocks are held in a tax-advantaged retirement account like an IRA, any capital gains from the sale of stocks in the account will not be subject to capital gains taxes in the year the capital gains are realized.

In the case of a traditional IRA account, the gains will simply go into the overall account balance that won’t be subject to taxes until you take distributions in retirement. In the case of a Roth IRA, the capital gains will be part of the account balance that can be withdrawn tax-free as long as certain conditions are met. This tax-free growth is one reason many people opt for a Roth IRA.

You can open a retirement account using one of our picks for the best investment apps, such as Stash1 or Public.

Paid Non-Client Promotion

FinanceBuzz doesn’t invest its money with this provider, but they are our referral partner. We get paid by them only if you click to them from our website and take a qualifying action (for example, opening an account.)


Get the only IRA with a 1% match on retirement contributions

Robinhood Benefits

  • Get a 1% match on your eligible retirement contributions
  • No traditional employer needed to get the 1% match
  • Open a Roth IRA or a traditional IRA
  • Receive a one-time custom-recommended portfolio
  • Build your own investment plan
  • No commission-fees (other fees may apply)

Get started

FAQs

How long do you need to hold a stock to avoid capital gains tax?

If you sell shares of stock for a price greater than the amount you paid for the shares, you will be subject to capital gains no matter how long you have owned the shares. If you’ve held the shares for less than one year, the gains will be considered short-term.

If the holding period has been at least a year, they will be considered long-term. The advantage of paying long-term capital gains taxes is that the rates are lower than short-term capital gains taxes for most taxpayers.

Do I pay taxes on stocks I don't sell?

If you don’t sell shares of stock that you own, there are no capital gains taxes due, even if the shares increase in value. If you hold the stocks until you die, they would pass to your heirs, who may or may not owe taxes on the inheritance.

If the stock pays a dividend, these payments would be taxable to you while holding the shares, but this is not a capital gains tax.

What happens if you don't report stocks on taxes?

You typically don’t have to report that you own shares of a stock on your taxes. You do have to report any income earned from those shares whether from capital gains due to the sale of the shares or from dividends earned while holding the shares.

Failure to report this income and pay the appropriate federal or state taxes could be a crime. Brokerage firms will directly report the proceeds from the sale of stock to the IRS. The company issuing the dividend will also report this income to the IRS. If these amounts are not reflected on your tax return, this could be a red flag for the IRS.


Bottom line

Investing in the stock market can be a solid wealth-building tool for some investors. But it’s important to understand how stocks can be taxed and to take those tax implications into account in your financial planning.

Incurring capital gains means that you have sold shares of a stock for more than you paid for it, but proper tax planning can help manage your tax liability. If you have questions about your specific tax situation, you might consider speaking with a tax advisor.

FinanceBuzz is not an investment advisor. This content is for informational purposes only, you should not construe any such information as legal, tax, investment, financial, or other advice.

See if You Can Retire Early

Smart Asset Benefits

  • Get matched with fiduciary financial advisors
  • Advisors are vetted and certified fiduciaries
  • Take the mystery out of retirement planning
  • Their matching tool is free

Take the quiz

Paid Non-Client Promotion

FinanceBuzz doesn’t invest its money with this provider, but they are our referral partner. We get paid by them only if you click to them from our website and take a qualifying action (for example, opening an account.)

How to Avoid Capital Gains Tax on Stocks (7 Tricks You Need to Know) (2024)

FAQs

What is a simple trick for avoiding capital gains tax? ›

Consider your holding period. The easiest way to lower capital gains taxes is to simply hold taxable assets for one year or longer to benefit from the long-term capital gains tax rate.

Is there a way to avoid capital gains tax on stocks? ›

9 Ways to Avoid Capital Gains Taxes on Stocks
  1. Invest for the Long Term. ...
  2. Contribute to Your Retirement Accounts. ...
  3. Pick Your Cost Basis. ...
  4. Lower Your Tax Bracket. ...
  5. Harvest Losses to Offset Gains. ...
  6. Move to a Tax-Friendly State. ...
  7. Donate Stock to Charity. ...
  8. Invest in an Opportunity Zone.
Mar 6, 2024

Do you have to pay capital gains after age 70? ›

The IRS allows no specific tax exemptions for senior citizens, either when it comes to income or capital gains. The closest you can come is contributing to a Roth IRA or Roth 401(k) with after-tax dollars, allowing you to withdraw money without paying taxes.

Can you avoid capital gains tax on stocks by reinvesting? ›

You and other investors who want to avoid paying tax on stocks that have appreciated, will “sell” (in actuality contribute) and reinvest, through a swap. This process involves swapping your appreciated shares for a diversified portfolio of stocks of equivalent value, effectively deferring capital gains tax.

Are there any loopholes for capital gains tax? ›

A few options to legally avoid paying capital gains tax on investment property include buying your property with a retirement account, converting the property from an investment property to a primary residence, utilizing tax harvesting, and using Section 1031 of the IRS code for deferring taxes.

How do I get zero capital gains tax? ›

For the 2024 tax-filing season, the 0% rate on long-term capital gains – any asset held for longer than a year – can be applied to taxable income of $44,625 or less for single filers and $89,250 or less for married couples filing jointly.

What is the 6 year rule for capital gains tax? ›

Here's how it works: Taxpayers can claim a full capital gains tax exemption for their principal place of residence (PPOR). They also can claim this exemption for up to six years if they move out of their PPOR and then rent it out. There are some qualifying conditions for leaving your principal place of residence.

How much stock can you sell without paying taxes? ›

Capital Gains Tax
Long-Term Capital Gains Tax RateSingle Filers (Taxable Income)Head of Household
0%Up to $44,625Up to $59,750
15%$44,626-$492,300$59,751-$523,050
20%Over $492,300Over $523,050

How to take profits from stocks without selling? ›

How To Make Money In Stock Market Without Selling Your Shares?
  1. Using the demat value of the shares as margin for trading. ...
  2. Getting a loan against your shares (LAS) ...
  3. Creating cash-futures arbitrage to earn the spread. ...
  4. Sell higher options to keep reducing your cost of holding the stock. ...
  5. Consider stock lending of these shares.

What is the one time capital gains exemption? ›

Avoiding capital gains tax on your primary residence

You can sell your primary residence and avoid paying capital gains taxes on the first $250,000 of your profits if your tax-filing status is single, and up to $500,000 if married and filing jointly. The exemption is only available once every two years.

At what age is there no capital gains tax? ›

For individuals over 65, capital gains tax applies at 0% for long-term gains on assets held over a year and 15% for short-term gains under a year. Despite age, the IRS determines tax based on asset sale profits, with no special breaks for those 65 and older.

At what income do you not pay capital gains? ›

For the 2024 tax year, individual filers won't pay any capital gains tax if their total taxable income is $47,025 or less. The rate jumps to 15 percent on capital gains, if their income is $47,026 to $518,900. Above that income level the rate climbs to 20 percent.

How to not pay capital gains tax on stocks? ›

How to Minimize or Avoid Capital Gains Tax
  1. Invest for the Long Term. You will pay the lowest capital gains tax rate if you find great companies and hold their stock long-term. ...
  2. Take Advantage of Tax-Deferred Retirement Plans. ...
  3. Use Capital Losses to Offset Gains. ...
  4. Watch Your Holding Periods. ...
  5. Pick Your Cost Basis.

How do I reinvest without paying capital gains? ›

You might be able to defer capital gains by buying another home. As long as you sell your first investment property and apply your profits to the purchase of a new investment property within 180 days, you can defer taxes. You might have to place your funds in an escrow account to qualify.

How can I minimize my capital gains tax? ›

By placing investments with higher growth potential in tax-advantaged accounts, like IRAs or 401(k)s, and lower growth potential investments in taxable accounts, you can potentially minimize your capital gains tax liability. Another important strategy is adopting a long-term perspective on investments.

Where should I put money to avoid capital gains tax? ›

Investments held for less than a year are taxed at the higher, short-term capital gain rate. To limit capital gains taxes, you can invest for the long-term, use tax-advantaged retirement accounts, and offset capital gains with capital losses.

How do rich people avoid capital gains? ›

Wealthy family borrows against its assets' growing value and uses the newly available cash to live off or invest in other assets, like rental properties. The family does NOT owe taxes on its asset-leveraged loans because the government doesn't tax borrowed money.

How to avoid capital gains tax after selling a house? ›

You will avoid capital gains tax if your profit on the sale is less than $250,000 (for single filers) or $500,000 (if you're married and filing jointly), provided it has been your primary residence for at least two of the past five years.

How do I reinvest capital gains without paying taxes? ›

Reinvest in new property

The like-kind (aka "1031") exchange is a popular way to bypass capital gains taxes on investment property sales. With this transaction, you sell an investment property and buy another one of similar value. By doing so, you can defer owing capital gains taxes on the first property.

Top Articles
Saving or investing for short-term goals
30% ruling pension The Netherlands
AMC Theatre - Rent A Private Theatre (Up to 20 Guests) From $99+ (Select Theaters)
Kem Minnick Playboy
55Th And Kedzie Elite Staffing
Television Archive News Search Service
Wisconsin Women's Volleyball Team Leaked Pictures
What Are the Best Cal State Schools? | BestColleges
Robot or human?
Chase Bank Operating Hours
Kristine Leahy Spouse
Crazybowie_15 tit*
Celsius Energy Drink Wo Kaufen
Moe Gangat Age
Gt Transfer Equivalency
Nichole Monskey
Regular Clear vs Low Iron Glass for Shower Doors
Thayer Rasmussen Cause Of Death
How Many Cc's Is A 96 Cubic Inch Engine
Nonne's Italian Restaurant And Sports Bar Port Orange Photos
Dump Trucks in Netherlands for sale - used and new - TrucksNL
Where to Find Scavs in Customs in Escape from Tarkov
Kirksey's Mortuary - Birmingham - Alabama - Funeral Homes | Tribute Archive
Decosmo Industrial Auctions
Lakers Game Summary
Sussyclassroom
Scream Queens Parents Guide
The Tower and Major Arcana Tarot Combinations: What They Mean - Eclectic Witchcraft
‘The Boogeyman’ Review: A Minor But Effectively Nerve-Jangling Stephen King Adaptation
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
Talk To Me Showtimes Near Marcus Valley Grand Cinema
Breckiehill Shower Cucumber
Telegram Voyeur
Ocala Craigslist Com
Everything You Need to Know About Ñ in Spanish | FluentU Spanish Blog
Ghid depunere declarație unică
Halsted Bus Tracker
Davita Salary
Kids and Adult Dinosaur Costume
Craigslist Greencastle
Pp503063
Best GoMovies Alternatives
Doublelist Paducah Ky
How To Get To Ultra Space Pixelmon
Youravon Com Mi Cuenta
Sc Pick 3 Past 30 Days Midday
Clock Batteries Perhaps Crossword Clue
Vt Craiglist
Southern Blotting: Principle, Steps, Applications | Microbe Online
Haunted Mansion Showtimes Near The Grand 14 - Ambassador
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5692

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.