If you sell your home, you can lower your taxable capital gain by the amount of your selling costs—including real estate agent commissions, title insurance, legal fees, advertising costs, administrative costs, escrow fees, and inspection fees.