Investors & landlords

The mortgage cost has nothing to with it.  You can deduct (1) mortgage interest, (2) real estate taxes, (3) insurance (4) utilities, and (5) depreciation (a full year of depreciation would be the purchase price divided by 39 years).

If you only rent out half of it, then you can only deduct half of those expenses.