The correct answer is this - live in the home two out of five years.
The seller must live in a principal residence for at least two out of five years and may not receive more than $250,000 if single or $500,000 if married. This way, he or she will be excluded from paying capital gains tax on a principal residence.