Use total capital loss carryover to offset gains of sale of a rental property?
I have two questions:
1) I have a big capital loss carryover from 2017 plus more stock losses in 2018. Normally I am not allowed to use more than $3K for capital loss in a given year. But I sold a house for a significant gain. Can I apply the total capital loss (both the carryover from 2017 and the loss incurred in 2018) against the gain on the sale of the house?
2) If answer to (1) is yes, does it change in any way if the house was a rental property? Meaning it was not my primary residence and I had rented it out prior to sale. Does it in any way prevent me from using the capital losses to offset the gains?