Taxes on Selling Stock: What You Pay & How to Pay Less | The Motley Fool (2024)

A capital gain is any profit from the sale of a stock, and it has unique tax implications. Here's what you need to know about selling stock and the taxes you may have to pay.

If you sell stock for more than you originally paid for it, you may have to pay taxes on your profits.

Taxes on Selling Stock: What You Pay & How to Pay Less | The Motley Fool (1)

Image source: The Motley Fool

How to calculate profits from selling stock

How to calculate profits from selling stock

When you sell stock, you're responsible for paying taxes only on the profits -- not on the entire sale.

To determine profits, take your total proceeds and subtract your cost basis (also known as your tax basis), which consists of the amount you paid to buy the stock in the first place, plus any commissions or fees you paid to buy and sell the shares.

Cost basis = Price paid for stock + Commission and fees

Profits = Proceeds from sale - Cost basis

Example of how to calculate profits from a stock sale

Example of how to calculate profits from a stock sale

Let's say you bought 10 shares of stock in Company X for $10 each and paid $5 in transaction fees for the purchase. If you later sold all the stock for $150 total, paying another $5 in transaction fees for the sale, here's how you'd calculate your profits:

Cost basis = $100 (10 shares @ $10 each) + $10 (purchase and sale fees @ $5 each) = $110 profits = $150 - $110 = $40

So in this example, you'd pay taxes on the $40 in profits, not the entire $150 total sale price.

Now that you've determined your profits, you can calculate the tax you'll have to pay. The taxes you owe depend on your total income for the year and the length of time you held the shares.

Short-term and long-term capital gains taxes

Short-term and long-term capital gains taxes

Generally speaking, if you held your shares for one year or less, then profits from the sale will be taxed as short-term capital gains. If you held your shares for more than one year before selling them, the profits will be taxed at the lower long-term capital gains rate.

Definition Icon

Capital Gains Tax

The tax an investor pays on the profit made when an investment is sold.

Both short-term and long-term capital gains tax rates are determined by your overall taxable income. Your short-term capital gains are taxed at the same rate as your marginal tax rate (tax bracket). You can get an idea from the IRS of what your tax bracket might be for 2022 or 2023.

For the 2022 tax year (i.e., the taxes most individuals filed by April 17, 2023), long-term capital gains rates are either 0%, 15%, or 20%. Unlike past years, the break points for these levels don't correspond exactly to the breaks between tax brackets:

Data source: Internal Revenue Service Revenue Procedure document 2021-45. Figures represent taxable income, not just taxable capital gains.
Long-Term Capital Gains Tax RateSingle Filers (Taxable Income)Married Filing Jointly/Qualifying Surviving SpouseHead of HouseholdMarried Filing Separately
0%Up to $41,675Up to $83,350Up to $55,800Up to $41,675
15%$41,676-$459,750$83,351-$517,200$55,801-$488,500$41,676-$258,600
20%Over $459,750Over $517,200Over $488,500Over $258,600

Looking ahead to the 2023 tax year (i.e., the taxes most individuals will file by April 15, 2024), the three long-term capital gains rates of 0%, 15%, and 20% remain the same, but the brackets are adjusted slightly upward for inflation.

Data source: Internal Revenue Service Revenue Procedure Document 2022-38. Figures represent taxable income, not just taxable capital gains.
Long-Term Capital Gains Tax RateSingle Filers (Taxable Income)Married Filing Jointly/Qualifying Widow(er)Head of HouseholdMarried Filing Separately
0%Up to $44,625Up to $89,250Up to $59,750Up to $44,625
15%$44,626-$492,300$89,251-$553,850$59,751-$523,050$44,626-$276,900
20%Over $492,300Over $553,850Over $523,050Over $276,900

To calculate your tax liability for selling stock, first determine your profit. If you held the stock for less than a year, multiply by your marginal tax rate. If you held it for more than a year, multiply by the capital gains rate percentage in the table above.

But what if the profits from your long-term stock sales push your income to a higher bracket? This is sometimes known as the "bump zone." Since capital gains rates are marginal, like ordinary income tax rates, you'd pay the higher rate only on the capital gains that caused your income to exceed the threshold. Remember that capital gains are not limited only to stock sales; they impact any sales of investment assets, including real estate.

Example of long-term capital gains tax

Example of long-term capital gains tax

Let's say you and your spouse make $50,000 of ordinary taxable income in 2022, and you sell $150,000 worth of stock that you've held for more than a year. The gains on the sale total $100,000. You'll pay taxes on your ordinary income first and then pay a 0% capital gains rate on the first $33,350 in gains because that portion of your total income is below $83,350. The remaining $66,650 of gains are taxed at the 15% tax rate.

How to avoid paying taxes when you sell stock

How to avoid paying taxes when you sell stock

One way to avoid paying taxes on stock sales is to sell your shares at a loss. Although losing money certainly isn't ideal, losses you incur from selling stocks can be used to offset any profits you made from selling other stocks during the year. And, if your total capital losses exceed your total capital gains for the year, you can deduct as much as $3,000 of losses against your total income for the year. You can carry any additional losses into the following tax year.

However, you can't sell a bunch of shares at a loss to lower your tax bill and then turn around and buy them right back again. The IRS doesn't allow this kind of "wash sale" -- called by this term because the net effect on your assets is "a wash" -- to reduce your tax liability. If you repurchase the same or "substantially similar" stocks within 30 days of the initial sale, it counts as a "wash sale" and can't be deducted.

Of course, if you end the year in the 0% long-term capital gains bracket, you'll owe the government nothing on your stock sales. The only other way to avoid tax liability when you sell stock is to buy stocks in a tax-advantaged account. One way to avoid paying taxes on stock sales is to sell your shares at a loss. While losing money certainly isn't ideal, losses you incur from selling stocks can be used to offset any profits you made from selling other stocks during the year. And, if your total capital losses exceed your total capital gains for the year, you can deduct as much as $3,000 of losses against your total income for the year.

Using a tax-advantaged stock account

Using a tax-advantaged stock account

A tax-advantaged account is an investment account such as a 401(k), 403(b), or traditional IRA.

In these accounts, your contributions may be tax-deductible, but your qualified withdrawals will typically count as income. Roth accounts, on the other hand, are tax-free investment accounts. You can't get a tax deduction for contributing, but none of your qualified withdrawals will count as taxable income.

With any of these accounts, you will not be responsible for paying tax on capital gains -- or on dividends, for that matter -- so long as you keep the money in the account. The drawback is that these are retirement accounts, so you are generally expected to leave your money alone until you turn 59 1/2.

Related investing topics

Top 10 Stocks to Buy in May 2024Get a list of the best companies to buy and hold onto for the long haul.
Accounts That Earn Compounding InterestInterest compounds when interest payments also earn interest. Learn how to get compounding interest working for your portfolio.
What Is the Next Cryptocurrency to Explode in 2024?Learn about the leading cryptos that are next to explode this year.
11 Up-and-Coming Stocks to Invest InAn in-depth look at up-and-coming company stocks in the U.S. stock market this year. Here's what you need to know.

The Motley Fool has a disclosure policy.

Taxes on Selling Stock: What You Pay & How to Pay Less | The Motley Fool (2024)

FAQs

How do I pay less taxes when selling 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

How much tax do I pay when I sell stock? ›

Capital gains can be subject to either short-term tax rates or long-term tax rates. Short-term capital gains are taxed according to ordinary income tax brackets, which range from 10% to 37%. Long-term capital gains are taxed at 0%, 15%, or 20%.

How do I avoid capital gains on my taxes? ›

Use tax-advantaged accounts

Retirement accounts such as 401(k) plans, and individual retirement accounts offer tax-deferred investment. You don't pay income or capital gains taxes at all on the assets in the account. You'll just pay income taxes when you withdraw money from the account.

How to avoid capital gains tax on shares? ›

13 ways to pay less CGT
  1. 1) Use your CGT allowance. ...
  2. 2) Give money or assets to your spouse or civil partner. ...
  3. 3) Don't forget your losses. ...
  4. 4) Deduct your costs. ...
  5. 5) Increase your pension contributions. ...
  6. 6) Use your ISA allowance – each year. ...
  7. 7) Try Bed and ISA. ...
  8. 8) Donate to charity.

How do I reduce capital gains tax when selling shares? ›

Use the 12-month ownership discount

If you've owned your asset for at least 12 months, you will automatically receive a 50 per cent discount on any capital gains from the sale.

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

Whether you're 65 or 95, seniors must pay capital gains tax where it's due. This can be on the sale of real estate or other investments that have increased in value over their original purchase price, which is known as the “tax basis.”

How long do you have to hold a stock to avoid capital gains? ›

Generally, if you hold the asset for more than one year before you dispose of it, your capital gain or loss is long-term. If you hold it one year or less, your capital gain or loss is short-term.

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 loss can you write off? ›

No capital gains? Your claimed capital losses will come off your taxable income, reducing your tax bill. Your maximum net capital loss in any tax year is $3,000. The IRS limits your net loss to $3,000 (for individuals and married filing jointly) or $1,500 (for married filing separately).

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.

What is the 2 out of 5 year rule? ›

When selling a primary residence property, capital gains from the sale can be deducted from the seller's owed taxes if the seller has lived in the property themselves for at least 2 of the previous 5 years leading up to the sale. That is the 2-out-of-5-years rule, in short.

How do I pay less capital gains tax? ›

How to Minimize or Avoid Capital Gains Tax
  1. Invest for the 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 avoid paying taxes when I sell stock? ›

How to avoid taxes or pay less when selling stocks
  1. Think long term versus short term. Holding the shares long enough for the dividends to count as qualified might reduce your tax bill. ...
  2. Look into tax-loss harvesting. ...
  3. Hold the shares inside an IRA, a 401(k) or other tax-advantaged account. ...
  4. Call in a pro.
May 3, 2024

Does selling stock count as income? ›

When you sell an investment for a profit, the amount earned is likely to be taxable. The amount that you pay in taxes is based on the capital gains tax rate. Typically, you'll either pay short-term or long-term capital gains tax rates depending on your holding period for the investment.

What can I offset against capital gains tax? ›

Allowable deductions for capital gains
  • The acquisition and creation of the asset concerned.
  • Where incurred as incidental costs of acquiring an asset.
  • For enhancement of the asset.
  • To establish, preserve or defend title to or rights over the asset.
  • They are incurred as the incidental costs of disposal of the asset.

How do you sell stocks to save taxes? ›

Individual taxpayers do not have to pay income tax on long-term capital gains (LTCG) up to Rs 1 lakh earned on the sale of equity shares or equity-oriented mutual funds. Gains from selling of equity shares and equity oriented MFs is considered long-term if it is sold after holding for 12 months or more.

Can I reinvest my capital gains to avoid 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.

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

To correctly arrive at your net capital gain or loss, capital gains and losses are classified as long-term or short-term. Generally, if you hold the asset for more than one year before you dispose of it, your capital gain or loss is long-term. If you hold it one year or less, your capital gain or loss is short-term.

Is it better to sell stock at a loss for tax purposes? ›

Realized capital losses from stocks can be used to reduce your tax bill. You can use capital losses to offset capital gains during a tax year, allowing you to remove some income from your tax return.

Top Articles
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 5388

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.