🌐
Kiplinger
kiplinger.com › home › taxes
The Wash Sale Rule: What It Is and How to Avoid It | Kiplinger
July 18, 2022 - As a result, many people opt to sell securities at a loss to reduce taxable gains, a technique commonly known as ... However, the IRS doesn’t like investors to use "manufactured" losses to claim tax breaks. If you sell a stock at a loss and quickly buy it back or keep investing in it after buying it back, the IRS generally won’t allow you to write off the loss on your federal tax return.
🌐
The Motley Fool
fool.com › terms › s › stock-wash-sale-rule
Wash-Sale Rule: What It Is and How to Avoid | The Motley Fool
July 17, 2025 - That is, if you sell stock for a gain and buy it right back, you must still report the entire gain.
🌐
Reddit
reddit.com › r/investing › selling a profitable stock to offset a loss and buying it back immediately
r/investing on Reddit: Selling a profitable stock to offset a loss and buying it back immediately
November 1, 2024 -

I can’t seem to find the answer to this question and was hoping someone here would know. I have a stock that is doing terribly and I’m going to sell it for a rather large loss. I have another stock that is doing fantastically. If I sell the stock that is doing great, I will realize a gain that is just about equal to the loss that I will experience in the stock that is terrible. Can I sell the stock that is doing well just to realize the profit so that I can write it off against the loss, and then buy the great stock back just about immediately? I have no intention of buying the losing stock back so it won’t trigger a wash sale.

🌐
TurboTax
turbotax.intuit.com › tax-tips › investments-and-taxes › wash-sale-rule-what-is-it-how-does-it-work-and-more › c5ANd7xnJ
Wash Sale Rule: What Is It, How Does It Work, and More - TurboTax Tax Tips & Videos
You might not get the price you want on the substantially identical assets, but at least you’ll retain the ability to offset gains or ordinary income with your loss. Second, avoid purchasing substantially identical stock or securities after generating a loss. If you want to make another purchase within the 61-day period, find something that is different from the stock or securities you sold. Remember that the assets you sell can be similar to the assets you buy without violating the wash sale rule.
🌐
Charles Schwab
schwab.com › learn › story › primer-on-wash-sales
Wash-Sale Rule: How It Works & What to Know | Charles Schwab
As a result, the $200 loss is disallowed as a deduction on your current-year tax return and added to the cost basis of the repurchased stock. That bumps the cost basis of your $600 of replacement stock up to $800, so if you later sell that stock for $1,000, your taxable gains will be $200 instead of $400.
🌐
Bogleheads.org
bogleheads.org › board index › us investors › investing - theory, news & general
Selling at a gain: Buying back in and cost basis adjustment.. - Bogleheads.org
Yes. Tax gain harvesting is NOT a wash sale, even if you avoid a loss. So selling at $110 from a $100 buy in, making the $10, and then buying back in at $90 means you have a actual (hopefully long term) capital gain of $10 to report, and a share with a cost-basis of $90.
🌐
Quora
quora.com › Can-you-sell-a-stock-for-a-gain-and-then-buy-it-back-What-is-the-30-day-rule-of-buying-selling-stock
Can you sell a stock for a gain and then buy it back? What is the 30-day rule of buying & selling stock? - Quora
Answer (1 of 24): The “wash-sale" rule (aka, the 30-day rule) is an obscure tax technicality that seems to generate major anxiety, way out of proportion to its piddling effect. First, it has no bearing on investment. You can buy and sell whatever you want, whenever you want, provided you can pay...
🌐
Fidelity
fidelity.com › learning-center › personal-finance › wash-sales-rules-tax
Wash-Sale Rules | Avoid this tax pitfall | Fidelity
August 28, 2025 - The wash-sale rule keeps investors from selling at a loss, buying the same (or "substantially identical") investment back within a 61-day window and claiming the tax benefit. It applies to most of the investments you could hold in a typical ...
Find elsewhere
🌐
Reddit
reddit.com › r/tax › tax gain harvesting ? selling stock before year end -- when can i buy stock back?
r/tax on Reddit: Tax gain harvesting ? Selling stock before year end -- when can I buy stock back?
October 11, 2023 -

My question is very similar to this question, but with several add-on questions.

I have an income of <$30000 this year. I intend to sell my stock to minimize my capital gains tax by selling before end of year.

However, my question is now when can I buy it back? I read some answers say immediately (within this year)? So then capital gains is just calculated with the income of when you sell? Is there a time component I should consider?

Thanks!

🌐
TurboTax Community
ttlc.intuit.com › community › investments-and-rental-properties › discussion › i-sold-stock-for-a-gain-and-then-bought-the-same-stock-at-a-lower-price-on-the-same-day › 00 › 2706998
I sold stock for a gain and then bought the same stock at a lower price on the same day
April 18, 2022 - IRS does not care that you purchased identical shares unless you had a loss. You had a gain. ... You sold a stock at a profit of $865. You repurchased the same stock and number of shares · You are correct this is not a wash sale. If you did not sell the new batch of shares you will owe tax on the $865 gain.
🌐
Accounting Insights
accountinginsights.org › can-you-buy-back-stocks-after-selling-at-a-gain
Can You Buy Back Stocks After Selling at a Gain? - Accounting Insights
January 29, 2025 - Tax implications play a critical role in the decision to repurchase stocks after selling them at a gain.
🌐
Investopedia
investopedia.com › terms › w › washsale.asp
Wash Sale: Definition, How It Works, and Purpose
September 19, 2025 - Tax-loss harvesting can inadvertently lead to wash sales if not carefully managed. Tax-loss harvesting is the strategy of selling securities at a loss to offset a capital gains tax liability elsewhere and then buying back a replacement security ...
Top answer
1 of 6
26

Is it better to realize the loss and buy back in at the lower price or just hold it?

I'm not a big fan of hypothetical questions. It depends on what you're trying to optimize for, i.e. taxes or total return. Most investment advisors would tell you "don't let the tax tail wag the investment dog."

There's an opportunity cost to selling with the intent to buy back in at a lower price. What if it recovers as quickly as it dropped? What if it drops further?

Time in the market generally beats timing the market. If you liked the stock at $150 and intend to hold it indefinitely, you should love it at $100 and consider buying more instead of selling.


Adding my comment to the answer:

You can't realistically assume that you're selling and buying at the same price.

Even if you did, what's the point? If you're selling/buying near instantaneously the loss will be disallowed due to the wash sale rule, which prohibits selling an investment for a loss and replacing it with the same or a "substantially identical" investment 30 days before or after the sale.

If you wait long enough, it's virtually impossible to buy back in at the same price. At a minimum, you're crossing the bid-ask spread.

2 of 6
16

If you're asking about taxes, you'd need to specify a country. If you're in the US (based on your profile), you'd have a wash sale unless you bought the shares back more than 30 days later in which case you wouldn't be allowed to deduct the capital loss. So in the US, unless you want to exit the position and stay out for more than 30 days before buying the shares back, you're better off holding the shares.

If you are willing to stay out of the position for more than 30 days, then it can be reduced to a math problem. But you'd need to make guesses about things like what the capital gains tax rate will be when you sell, what discount rate to apply to get the present value of future cash flows, etc. And if you're thinking of holding the shares until you die, potentially you'd never owe capital gains tax...

Top answer
1 of 3
3

This almost sounds like tax gain harvesting (which is similar to, but less talked about that, tax loss harvesting), where you sell shares at a profit while in a low (or 0!) tax bracket to minimize the tax you owe, and re-buy at the higher price to reset the basis so that a future sale will have a smaller gain (or even a loss), minimizing potential tax impact.

My trouble with your approach is that converting long-term gains to short-term gains is usually (or always, unless there's a special case I'm missing) undesirable. Long-term gains get preferential tax treatment; the 3 rates are 0%, 15%, and 20%, and the rate is always lower than the rate on ordinary income (which is the rate applied to short-term gains).

Let's look at an example (based on 2022 numbers): you are a Single person earning $40,000 per year, and you have $1,000 in long-term capital gains, which last year was only $500 in gains (also long term). If you sell and realize these gains this year, your income is $41,000, which means these long-term gains are taxed at 0%. Alternately, if you sold and rebought last year, your $500 gain was taxed at 0%, but when you sell now, your new $500 gain is taxed as ordinary income (12%).

2 of 3
2

The purpose of the wash sale rule is to prevent tax loss harvesting, which defers (not eliminates) the tax benefits of losses. Technically you can also have tax gain harvesting if you expect your capital gains rate to be higher in the future, or have losses that you are willing to use to offset those gains.

As of now there is no rule against tax gain harvesting, since it benefits you somewhat but does not hurt the government. They are typically more concerned about deferring taxes than what rate you end up paying. In other words, the rules are geared towards getting tax money sooner, even if it means you get the benefit of a lower rate.

Note that it would be very unusual for long-term rates to be higher than short-term rates in different tax years, but it is plausible for you to have lower short- or long-term rates now than in the future since they are based on ordinary income brackets. So if you have an unusually low income year you might actually employ tax gain harvesting to take advantage of lower gains rates now.

Also note that wash sales are not illegal, they just defer the tax break until you ultimately close your position. You can still sell at a loss and immediately buy back, you just don't get the immediate tax benefit.

🌐
Financeband
financeband.com › home › investing › can you sell a stock for a gain and then buy it back?
Can you sell a stock for a gain and then buy it back?
Stock Sold for a Profit You can buy the shares back the next day if you want and it will not change the tax consequences of selling the shares. An investor can always sell stocks and buy them back at any time.
🌐
Zacks
finance.zacks.com › investing › investing for beginners › 30 day rule of buying & selling stock
30 Day Rule of Buying & Selling Stock | Finance - Zacks
March 6, 2019 - Capital losses are credited against ... the amount of your regular taxable income. The wash sale rule prevents you from selling shares of stock and buying the stock right back just so you can take a loss that you can write off ...