The sale and repurchase of stocks or securities within a short period of time is a practice known to the IRS as a Wash Sale. Under the IRS’s rules you cannot claim a loss for tax purposes, if you sell stock at a loss and purchase substantially identical stock within 30 days before or after the sale.