Selling a rental property / passive loss carryover

Hi There,

I sold a rental property this year. I have not lived in the property for over 10 years so I will be subject to capital gains tax. It is my understanding that I can use passive losses accrued during my ownership of the rental property to offset the capital gains of the sale. Is this correct? Are there limitations I should be aware of? 

 

Thanks

John