as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
is there a reverse wash sale rule?
user
yes, the newly bought shares will have a long-term holding period, regardless of when you sell them.  in addition, it's only a wash sale if you sold the first shares for a loss; it's not a wash sale if you sold them for a gain. wikipedia mentions this: when a wash sale occurs, the holding period for the replacement stock includes the period you held the stock you sold. example: you've held shares of xyz for 10 years. you sell it at a loss but then buy it back within the wash sale period. when you sell the replacement stock, your gain or loss will be long-term — no matter how soon you sell it. charles schwab also mentions this: here's a quick example of a wash sale. on 9/30/xx, you buy 500 shares of abc at $10 per share. one year later the stock price starts to drop, and you sell all your shares at $9 per share on 10/4/xy. two days later, on 10/6, abc bottoms out at $8 and you buy 500 shares again. this series of trades triggers a wash sale. the holding period of the original shares will be added to the holding period of the replacement shares, effectively leaving you with a long-term position.
assistant