When selling a house, there are situations in which a seller can incur a tax liability.