Sale of house

Can the cost of improvements to the house that we sold be deducted from the total profits?