Investors & landlords

if you have both net short term and long term gains the ordinary losses will first offset net short-term gains and any excess of ordinary losses will then offset long-term gains and qualified dividends.