Can I sell a stock and buy another immediately without paying taxes?

Asked by: Franco Conn  |  Last update: March 29, 2026
Score: 4.5/5 (2 votes)

You generally can't sell a stock for a profit and immediately buy another in a taxable account without incurring capital gains tax on the sale, as reinvesting doesn't eliminate the tax event; however, you can avoid immediate taxes by trading within a tax-advantaged account (like a Roth IRA or 401(k)), or by using strategies like exchanging appreciated stock for a diversified fund in an exchange fund, though these have specific rules. The key is that selling for a gain creates a taxable event unless it's in a retirement account or a specific tax-deferred structure.

Do you have to pay taxes if you sell stock and reinvest?

Does reinvesting reduce capital gains? Real estate investors can employ certain tax strategies to potentially defer gains on the sale of a property. But with stocks, reinvesting your gains does not reduce the federal income taxes you may owe.

How soon can you repurchase a stock after selling it?

You can buy a stock immediately after selling it if you made a profit, but if you sold at a loss, you must wait 31 days to repurchase the same or a substantially identical stock to claim the tax deduction, thanks to the IRS wash sale rule; otherwise, the loss is disallowed, and you'll need to wait 31 days after the sale to buy back to avoid the rule's restrictions. 

How to sell stocks and avoid taxes?

You can't completely avoid taxes on stock sales in a regular brokerage account unless you have losses to offset gains, but you can defer or eliminate them using tax-advantaged accounts (like Roth IRAs for tax-free withdrawals), selling stocks held over a year (long-term gains are taxed lower), donating appreciated stock to charity, using tax-loss harvesting to offset gains, or by selling within your income bracket's 0% capital gains rate (often for lower-income retirees). 

Is there a way to move money from one stock to another without paying taxes?

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.

Can I Sell Stock And Reinvest Without Paying Capital Gains? - BusinessGuide360.com

28 related questions found

What is the 7% sell rule?

The 7% sell rule is a stock trading strategy where you automatically sell a stock if it drops 7% below your purchase price to limit losses and protect capital, popularized by William O'Neil's CAN SLIM method, acting as a disciplined stop-loss to avoid emotional decisions and significant drawdowns. It helps traders stay in the game by preventing single losing trades from wiping out their account, balancing the risk-reward by cutting losers quickly while aiming to let winners run.
 

Do you pay capital gains if you sell and buy another?

A 1031 exchange, named after Section 1031 of the Internal Revenue Code, allows investors to defer capital gains taxes when they sell an investment property and reinvest the proceeds into another “like-kind” property.

How much capital gains do I pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains (held over a year) if you're in a typical income bracket, totaling $15,000; however, if it's a short-term gain (held a year or less), it's taxed as regular income, potentially 22% or higher, making it $22,000 or more, depending on your total income and filing status. The exact tax depends heavily on your filing status (Single, Married Filing Jointly) and other taxable income. 

How do the rich avoid taxes on stocks?

Wealthy family buys stocks, bonds, real estate, art, or other high-value assets. It strategically holds on to these assets and allows them to grow in value. The family won't owe income tax on the growth in the assets' value unless it sells them and makes a profit.

Can I sell a stock and immediately buy another?

The answer is you can buy and sell stocks the same day as many times as you'd like. In fact, this is among the most popular approaches to investing, and it's known more formally as day trading.

What is the 3-5-7 rule in stocks?

The 3-5-7 rule in stock trading is a risk management framework: never risk more than 3% of capital on one trade, keep total open position risk under 5%, and aim for at least a 7% profit on winning trades or a favorable risk-reward ratio, helping traders stay disciplined, preserve capital, and build consistency.
 

How much do I need to invest in stocks to make $1000 a month?

To earn $1,000 a month from stocks, you'll generally need a portfolio of $200,000 to $400,000, depending on the average dividend yield (e.g., a 4% yield needs $300k, while a higher 6.5% yield needs around $185k). The exact amount depends on your chosen strategy (dividend stocks/ETFs vs. growth) and your risk tolerance, with higher yields often coming with higher risk. 

Do I have to pay capital gains tax immediately after selling stock?

Capital gains tax is typically reported and paid when you file your federal income tax return, due in April each year for individuals. There aren't any rules that require you to pay what you owe at the time you sell the asset.

How much time do you have to reinvest to avoid capital gains?

Reinvestment in Similar Properties

Known as a 1031 exchange, as long as you snag another similar property within 180 days, you can push off those taxes.

How to sell shares without paying tax?

You can't completely avoid taxes on stock sales in a regular brokerage account unless you have losses to offset gains, but you can defer or eliminate them using tax-advantaged accounts (like Roth IRAs for tax-free withdrawals), selling stocks held over a year (long-term gains are taxed lower), donating appreciated stock to charity, using tax-loss harvesting to offset gains, or by selling within your income bracket's 0% capital gains rate (often for lower-income retirees). 

What is a simple trick for avoiding capital gains tax?

A simple way to avoid capital gains tax is to hold investments for over a year to qualify for lower long-term rates, or to use tax-loss harvesting by selling losing investments to offset gains. For real estate, donating appreciated property to charity or leaving it to heirs (who get a "step-up in basis") are effective strategies, while gifting to individuals transfers the cost basis. 

What is the 6 year rule for capital gains?

The "6-year rule" for Capital Gains Tax (CGT) in Australia lets you treat a former main residence as if it's still your primary home for up to six years after you move out and start renting it out, potentially making any capital gain during that period tax-free. You must have lived in the property initially, can only claim it for one property at a time, and the exemption resets if you move back in, allowing for multiple uses. It's a common strategy for "rentvesters" or those temporarily relocating for work, but requires careful record-keeping.
 

Is capital gains tax 15% or 20%?

Capital gains tax is 0%, 15%, or 20% for long-term gains (assets held over a year), depending on your income and filing status, with 15% being common, but some high earners hit 20%. Short-term gains (assets held a year or less) are taxed at your ordinary income tax rate, which can go higher. Exceptions like collectibles (art/coins) can be taxed up to 28%.
 

How to avoid taxes on sold 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.

How much capital gains tax will I pay on $200,000?

For a $200,000 long-term capital gain in 2025 (for single filers), most of it falls into the 15% bracket, resulting in about $27,000 in federal tax, but the exact amount depends on your total taxable income and filing status, with some potentially taxed at 0% or 20%, plus the possibility of an extra 3.8% Net Investment Income Tax (NIIT) if your income is high enough. 

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

To avoid higher short-term capital gains tax rates (which are taxed as ordinary income), you need to hold stocks for more than one year (over 12 months) before selling for a profit to qualify for the lower, more favorable long-term capital gains tax rates. Holding for a year or less results in short-term gains, taxed as regular income, potentially up to 37%; holding longer shifts profits to lower long-term rates (0%, 15%, or 20%). 

What happens if I sell stock at a gain and then buy it back?

For example, the wash sale rule doesn't apply if you sell stock or securities for a gain. So, if you profit from the sale of stock or securities, you can repurchase the same stock or securities right away without any penalty.

Is there a loophole around capital gains tax?

Yes, there are legal strategies, sometimes called "loopholes," to defer, reduce, or avoid capital gains taxes, including the "step-up in basis" at death, tax-advantaged retirement accounts, 1031 like-kind exchanges for real estate, primary home sale exclusions, and using certain investment vehicles like ETFs, all allowed under current tax law to minimize taxes on appreciated assets, though rules and availability vary. 

What is the 20% rule for capital gains?

The "20% rule" for capital gains refers to the highest federal long-term capital gains tax rate for most individuals, applying to profits from assets held over a year when their taxable income exceeds high-income thresholds, usually above $490,000 for single filers and $500,000 for married couples. This 20% rate is part of tiered long-term capital gains rates (0%, 15%, 20%) that are generally lower than ordinary income tax rates, with lower earners qualifying for 0% or 15%.