Investors & landlords

When your short-term gains or losses plus your long-term gains or losses result in a loss when added together, you have an overall loss that can be deducted against your other income.

 

If you don't want to sell in order to have capital gain, then you can defer the loss to use in a year when you do have gains.  There is no limit on the amount of years that the loss can be deferred.