If your total costs are more than the sale price of your property, you can only offset the excess against net income from another property sale. Any remaining deductions can only be used in a future year when you have income from another property sale.