Deductions & credits

Ok you are married.  Are you filing a Joint return?  Then the amount you can exclude is 500,000.  What is your gain (not proceeds)
Sales price - your cost + improvements?
When did you buy it and when did you sell it?