google:
"Taxpayers may exclude up to $250,000 of capital gain (or $500,000 if filing jointly) on the sale of a principle residence. This exclusion from gross income may be taken any number of times, provided the home was the filer's primary residence for an aggregate of at least 2 of the previous 5 years."