Business & farm

you are on the right track. If your replacement shares are a wash, keep going applying the rule.

Your broker will calculate wash sales for you, and I spent a lot of time trying to understand what they did with my account  i.e selection of replacement shares.

In the end I just reported the wash sales as shown on my 1099-B.