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

Asked by: Ernestine Gerlach  |  Last update: February 21, 2026
Score: 4.5/5 (20 votes)

Buying additional stock shares with the proceeds from a stock sale will not eliminate or reduce capital gains taxes. However, if you reinvest the gain into a QOF (Qualified Opportunity Fund), you can defer the payment of capital gains taxes while you are invested in an eligible fund.

Can I sell a stock and buy 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.

Do you pay taxes on stocks if you sell and immediately reinvest?

Yes, you will have to pay tax on stock gains even if you reinvest. However, how much you will have to pay can vary, depending on how long you've held the stock, and your income level. You can also participate in tax-loss harvesting by selling other stocks in your portfolio at a loss to offset your total tax burden.

How do I avoid taxes after selling stocks?

We'll start with the easiest and work our way down to the more strategy-intensive options:
  1. Donate stock to charity.
  2. Hold stock shares for more than one year.
  3. Invest in retirement accounts.
  4. Pass it on in your estate plans.
  5. Sell stocks when you're in a lower tax bracket.

Can I sell a stock and immediately buy it back?

Yes you can repurchase the stock with a gain immediately, provided you have the settled funds to do so. It's called tax gain harvesting.

Taxes on Stocks Explained for Beginners that Know NOTHING About Taxes

21 related questions found

Can I buy stock immediately after selling?

You can buy and sell the same stock as often as you like, provided that you operate within the restrictions imposed by FINRA on pattern day trading and that your broker allows it.

What is the 30 day rule?

The 30-day savings rule is a simple strategy to cut down on overspending. It works like this: When you're tempted to make an impulse purchase, you commit to waiting 30 days before going through with it. Of course, at the end of those 30 days, you may decide that you do, in fact, want to make the purchase.

What is a simple trick for avoiding capital gains tax?

An easy and impactful way to reduce your capital gains taxes is to 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 on assets while they remain in the account.

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

By investing in eligible low-income and distressed communities, you can defer taxes and potentially avoid capital gains tax on stocks altogether. To qualify, you must invest unrealized gains within 180 days of a stock sale into an eligible opportunity fund, then hold the investment for at least 10 years.

How much stock loss can you write off?

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). You can reduce any amount of taxable capital gains as long as you have gross losses to offset them.

How do I reinvest capital gains without paying taxes?

To avoid paying capital gains taxes (and depreciation recapture), you can reinvest in a "like-kind" asset with a sales price of at least $500,000. The IRS allows virtually any commercial real estate property to qualify as 'like-kind” as long as you hold it for investment purposes.

How to sell stock immediately?

KEVIN: A market order is your go-to when you want to get out of a trade as quickly as possible during standard market hours. Generally, they execute immediately, but remember, the trade-off here is price. You will receive the current price, which could be different from the last bid you saw.

Do you pay taxes on stocks immediately?

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.

Do I get taxed if I sell a stock then reinvest it?

The IRS considers any dividends you receive as taxable income, whether you reinvest them or not.

At what age do you not pay capital gains?

Current tax law does not allow you to take a capital gains tax break based on your age. In the past, the IRS granted people over the age of 55 a tax exemption for home sales, though this exclusion was eliminated in 1997 in favor of the expanded exemption for all homeowners.

Why is my capital loss limited to $3,000?

However, if you had significant capital losses during a tax year, the most you could deduct from your ordinary income is just $3,000. Any additional losses would roll over to subsequent tax years. The issue is that $3,000 loss limit was established back in 1978 and hasn't been updated since.

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.

Can I sell a stock and buy it back the same day?

So, if you profit from the sale of stock or securities, you can repurchase the same stock or securities right away without any penalty. The wash sale rule also doesn't apply to: sales and trades of commodity futures contracts or foreign currencies.

What is a wash sale in stocks?

A wash sale happens when you sell a security at a loss and buy a “substantially identical” security within 30 days before or after the sale. The wash-sale rule prevents taxpayers from deducting paper losses without significantly changing their market position.

How do I legally not pay 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 billionaires avoid capital gains tax?

Families like the Waltons, Kochs, and Mars can avoid capital gains taxes forever by holding onto assets without selling, borrowing against their assets for income, and using the stepped-up basis loophole at inheritance.

How much stock can you sell without paying taxes?

Capital gains tax rates

A capital gains rate of 0% applies if your taxable income is less than or equal to: $47,025 for single and married filing separately; $94,050 for married filing jointly and qualifying surviving spouse; and. $63,000 for head of household.

What is the 9o day rule?

The 90/180-day rule states that any foreign national who enters the Schengen zone (any country within the area) can stay for up to 90 days within any 180 days. At first glance, it seems a very simple rule, but it's often misunderstood, and many people overstay it, resulting in them facing penalties.

What is the 45 days rule?

Section 43B(h) requires big businesses to pay their dues to MSMEs within the given time period: 15 days without an agreement and 45 days from the date the agreement was signed. This means that MSMEs will receive their payments on time, which is very important for their cash flow, sustainability, and growth.

What is the 30 minutes a day rule?

I call it the 30 minute rule. The rule is as follows: When planning your day, use increments of 30 minutes for whatever key tasks you set yourself to accomplish that day. Use 30 minutes as your smallest unit of measurement, even if you estimate a task will take less time.