The $250,000/$500,000 gain exclusion from tax applies only to one's principal residence and has ownership and use requirements.