Selling Stock: How Capital Gains are Taxed | The Motley Fool (2024)

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

Selling Stock: How Capital Gains are Taxed | The Motley Fool (1)

Image source: The Motley Fool

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.

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

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

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.

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 will file 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 Household Married 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 Rate Single 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

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

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.

Related investing topics

What Are Fractional Shares?You don't have to buy a whole share -- fractional shares let investors just buy a piece.
How to Use Compounding Interest AccountsQuite simply, this is when interest earns interest. How do you get it working for your portfolio?
How to Find Investment IdeasNew ideas are the way to make money in the markets. Find inspiration here.
What to Invest In: Use Your Money to Make MoneySo where should you invest? We've got the options covered.

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.

The Motley Fool has a disclosure policy.

Selling Stock: How Capital Gains are Taxed | The Motley Fool (2024)

FAQs

Do you pay capital gains tax when you sell stock? ›

If you sell stocks for a profit, you'll likely have to pay capital gains taxes. Generally, any profit you make on the sale of a stock is taxable at either 0%, 15% or 20% if you held the shares for more than a year, or at your ordinary tax rate if you held the shares for a year or less.

How do I sell stock and avoid capital gains tax? ›

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.
Apr 20, 2023

How much will I be taxed if I sell my stock? ›

These gains are taxed at a rate equal to the rate you're taxed on your ordinary income such as wages and taxable interest income. These rates range from 10% to 37% in 2022 and depend on your taxable income.

How is capital gains tax calculated on stocks? ›

Your taxable capital gain is generally equal to the value that you receive when you sell or exchange a capital asset minus your "basis" in the asset. Your basis is generally what you paid for the asset. Sometimes this is an easy calculation – if you paid $10 for stock and sold it for $100, your capital gain is $90.

Do I have to pay capital gains tax immediately? ›

You only pay the capital gains tax after you sell an asset. Let's say you bought your home 2 years ago and it's increased in value by $10,000. You don't need to pay the tax until you sell the home.

How do I offset capital gains tax? ›

Use capital losses to offset gains.

Say you own two stocks, one worth 10% more than you paid for it, while the other is worth 5% less. If you sold both stocks, the loss on the one would reduce the capital gains tax that you would owe on the other.

How long do you have to keep 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.

Do I pay capital gains if I sell a stock and reinvest? ›

You are liable for Capital Gains Tax on any profit from the sale. The fact that you reinvested the proceeds in another mutual fund has no bearing on your tax liability for this sale.

What is capital gains tax on 200000? ›

= $
Single TaxpayerMarried Filing JointlyCapital Gain Tax Rate
$0 – $44,625$0 – $89,2500%
$44,626 – $200,000$89,251 – $250,00015%
$200,001 – $492,300$250,001 – $553,85015%
$492,301+$553,851+20%
Jan 11, 2023

When I sell stocks when do I pay taxes? ›

Stock profits are not taxable until a stock is sold and the gains are realized. Capital gains are taxed differently depending on how long you owned a stock before you sold it. Long-term capital gains apply to stocks you've held for more than a year.

Does selling stocks count as earned income? ›

Selling a Stock and Earning a Capital Gain

Subtract the amount you paid for the shares from the amount you sold them for. The difference is your capital gain . For example, if you bought 10 shares of ABC Company's stock for $1,000, then sold them a year later for $1,500, you'd have earned a capital gain of $500.

Should I sell my stocks at a loss for tax purposes? ›

Don't sell your losers just to get the tax break

Don't become overzealous as you scour your portfolio for investments to harvest for tax losses. The purpose of investing in stocks is to achieve long-term growth that beats the returns produced by other assets (like bonds, CDs, money market funds and savings accounts).

What is capital gains tax on $50 000? ›

Capital gains tax rate – 2022 thresholds
RateSingleMarried Filing Jointly
0%Up to $41,675Up to $83,350
15%$41,675 to $459,750$83,350 to $517,200
20%Over $459,750Over $517,200

Is it better to pay capital gains now or later? ›

If you have winners in your portfolio, conventional wisdom says to delay collecting your capital gains as long as possible. Doing so allows you to defer paying capital gains taxes—plus, waiting could reduce the amount of tax you ultimately owe if you find yourself in a lower bracket when you do sell.

What is the one time capital gains exemption? ›

Key Takeaways. You can sell your primary residence and be exempt from capital gains taxes on the first $250,000 if you are single and $500,000 if married filing jointly.

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

1. Hold onto taxable assets for the long term. 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 capital gains added to your total income and puts you in higher tax bracket? ›

Long-term capital gains cannot push you into a higher income tax bracket. Only short-term capital gains can accomplish that, because those gains are taxed as ordinary income. So any short-term capital gains are added to your income for the year.

Do I have to report stocks if I lost money? ›

If you experienced capital gains or losses, you must report them using Form 8949 when you file taxes. Selling an asset, even at a loss, has crucial tax implications, so the IRS requires you to report it. You'll receive information about your investments from your broker or bank on Forms 1099-B or 1099-S.

What is the stock 7 year rule? ›

Assuming long-term market returns stay more or less the same, the Rule of 72 tells us that you should be able to double your money every 7.2 years. So, after 7.2 years have passed, you'll have $200,000; after 14.4 years, $400,000; after 21.6 years, $800,000; and after 28.8 years, $1.6 million.

What happens if you don't report capital gains from stocks? ›

If you fail to report the gain, the IRS will become immediately suspicious. While the IRS may simply identify and correct a small loss and ding you for the difference, a larger missing capital gain could set off the alarms.

What is the most tax friendly state? ›

MoneyGeek's analysis found that Wyoming is the most tax-friendly state in America, followed by Nevada, Tennessee, Florida and Alaska. States that received a grade of A all share something in common: no state income tax. Washington and South Dakota — which both received a B — also have no state income tax.

How does the IRS know if you have capital gains? ›

Whether your small business focuses on real estate or sold unneeded property during the tax year, a copy of form 1099-S, which is sent to both you and the IRS by the closing attorney or real estate official, reports the gross proceeds from the sale.

Should I reinvest dividends and capital gains or just capital gains? ›

As long as a company continues to thrive and your portfolio is well balanced, reinvesting dividends will benefit you more than taking the cash will. But when a company is struggling or when your portfolio becomes unbalanced, taking the cash and investing the money elsewhere may make more sense.

What is the capital gains tax rate for 2023? ›

Long-term capital gains tax rates for the 2023 tax year

In 2023, individual filers won't pay any capital gains tax if their total taxable income is $44,625 or less. The rate jumps to 15 percent on capital gains, if their income is $44,626 to $492,300. Above that income level the rate climbs to 20 percent.

Is capital gains 15% or 20%? ›

Capital gains taxes are progressive, similar to income taxes. Short-term capital gains are taxed according to the relevant federal tax rate. Long-term capital gains are subject to 0%, 15% or 20%, depending on your taxable income. According to the IRS, most people pay no more than 15% on their long-term capital gains.

What is the capital gains tax on $45000? ›

If you are single and make a $45,000 capital gain on top of your $40,000 in ordinary income, your long-term capital gains tax bracket is 15%. You will then pay $6,750 ($45,000 x 0.15) in taxes on this gain.

What are the capital gains taxes on $1000000? ›

California imposes an additional 1% tax on taxable income over $1 million, making the maximum rate 13.3% over $1 million.

Will capital gains affect my Social Security? ›

No. Income that comes from something other than work, such as pensions, annuities, investment income, interest, IRA and 401(k) distributions, and capital gains is not counted toward the earnings limit and will not affect your benefit.

How much stock loss can you write off on your taxes? ›

If your net losses in your taxable investment accounts exceed your net gains for the year, you will have no reportable income from your security sales. You may then write off up to $3,000 worth of net losses against other forms of income such as wages or taxable dividends and interest for the year.

How do you avoid the wash sale rule? ›

To avoid a wash sale, the investor can wait more than 30 days from the sale to purchase an identical or substantially-identical investment or invest in exchange-traded or mutual funds with similar investments to the one sold.

What happens if you sell a stock but don't withdraw money? ›

Even if you don't take the money out, you'll still owe taxes when you sell a stock for more than what you originally paid for it. When tax time rolls around, you'll need to report those capital gains on your tax return.

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

Short-Term or Long-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.

Can you cash out stocks at any time? ›

Keep in mind that after you sell stocks, you must wait for the trade to settle before you can withdraw money from your brokerage account. This typically takes two business days.

What happens when you sell a stock? ›

When you sell the stock, you'll either receive a gain or a loss on your investment. The money from the sale of the stock, including your principal investment and any gains if you sold it for more, should be in your account and settled within two business days. 1 You'll need to report sales of stock on your tax return.

Do you have to report stocks on taxes if you lost money? ›

If you experienced capital gains or losses, you must report them using Form 8949 when you file taxes. Selling an asset, even at a loss, has crucial tax implications, so the IRS requires you to report it. You'll receive information about your investments from your broker or bank on Forms 1099-B or 1099-S.

Who pays 20% capital gains tax? ›

Long-term capital gains tax rates for the 2023 tax year

In 2023, individual filers won't pay any capital gains tax if their total taxable income is $44,625 or less. The rate jumps to 15 percent on capital gains, if their income is $44,626 to $492,300. Above that income level the rate climbs to 20 percent.

How do you avoid taxes when cashing out stocks? ›

How to Reduce Capital Gains Tax On Stocks
  1. Control Your Asset Location.
  2. Consider Donating Appreciated Stock.
  3. Use Tax-Loss Harvesting.
  4. Try Qualified Opportunity Funds.
  5. Know Your Tax Brackets (And Use Them to Your Advantage)
  6. Add Stock Into Your Estate Plan.
  7. Realize Capital Gains With A Unified Strategy.
Apr 3, 2023

Should I take all my money out of stocks? ›

Should you pull out of the stock market? Ideally, you don't want to impulsively pull your money out of the market when there is a crisis or sudden volatility. While a down market can be unnerving, and the desire to put your money into safe investments is understandable, this can actually expose you to more risk.

Should I move my stocks to cash? ›

While holding or moving to cash might feel good mentally and help avoid short-term stock market volatility, it is unlikely to be wise over the long term. Once you cash out a stock that's dropped in price, you move from a paper loss to an actual loss.

What to do with money after selling stocks? ›

The proceeds from the stock sale will be deposited into your brokerage account or sent to you in the form of a check. The amount of money you receive will depend on the price you sell the stock and any fees or commissions charged by the brokerage firm.

What happens when you sell a stock and no one buys it? ›

When there are no buyers, you can't sell your shares—you'll be stuck with them until there is some buying interest from other investors. A buyer could pop in a few seconds, or it could take minutes, days, or even weeks in the case of very thinly traded stocks.

Top Articles
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 6154

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.