Have to wait 31 days to buy it back. You would do this to harvest losses so you could reduce your ordinary income up to 3000 or offset other gains. Just sell it, take the loss and immediately buy something similar. Sell s&p 500 at a loss, buy total market index.