Paying capital gains tax on selling a house depends on different factors, but still, there are ways …