Expenses that can be offset against capital gains tax include transaction costs such as real estate agent commissions, legal fees, and title insurance. Home improvements that increase the cost basis of the property can also be used to offset capital gains.