No. Under federal law, you can typically avoid capital gains tax when selling your home if you owned and lived in the house for at least two of the past five years. However, if your profit exceeds $250,000 (if you're single) or $500,000 (if you're married and file a joint tax return), you may have to pay capital gains tax on a portion of your proceeds.