If you want to sell and repurchase a “substantially similar” asset and avoid falling foul of wash sale rules, you must wait at least 31 days. In the eyes of the IRS, this is long enough to make any book losses real and exposes you to risks that may potentially offset any benefits from taxable income deductions.