Investors & landlords

Yes ... ALL stock sales during the tax year are netted against each other on the Sch D and if you have more losses than gains then up to $3000 of capital loss can be used to offset ordinary income on the tax return and the unused balance carries forward to next year and the process repeats itself until all the loss is used up.   Just beware you cannot repurchase any of the losers  within a 30 day window (before and after the sale) or you will trigger an unwanted wash sale.