Investors & landlords

You can add those costs to the basis of the home when you sell it.  You cannot deduct them while you still own the property.  In your case, you will add the amount that is for the rented portion calculated by the percentage that is rented.