If the sale occurs before the year the divorce is final, taxpayer and ex-spouse can each exclude the first $250,000 of gain from taxable income. The capital gains exclusion applies only to the "principal residence," which is defined as a home in which the taxpayer lived for at least two of the five years prior to the sale. A vacation house doesn't count.
Additional Information: