Deductions & credits

You need to be very careful about the dates.  You have to have lived lived there 731 days of the past 5 years AS OF THE DATE YOU SELL, not as of today.  

When selling your homes that were owned before the marriage, you and your spouse have the option of using each of your individual $250,000 exclusions on the home you owned before the marriage.  So instead of using a joint $500,000 exclusion on one of the homes, your spouse would use her $250,000 exclusion when selling the home she owned before the marriage, and you would use your $250,000 exclusion when selling the home you owned before marriage.  (Assuming you meet all the other qualifications.)