Can I sell a losing stock, deduct the losses and then buy it back?

The act of selling losing stocks in order to deduct the losses is known as tax-loss harvesting and can be a very smart way to reduce your tax bill.