A married couple can exclude up to $500,000 (single $200,000) of home sale capital gains. There is a provision in the IRS guidelines for a partial exclusion of capital gains if you have sold the home prior to meeting the 2-year requirement if you moved due to unforeseen circumstances such as health issues or a relocation.