Hal_Al
Level 15

Deductions & credits

It probably doesn't matter.  If you sold the house and moved because of a job change, you are still allowed an exclusion of the capital gain, even if you did not meet the 2 year rule.  The Maximum exclusion ($500,000 married) is reduced for the time shortage.  So,  if you lived in the house 20 months, your maximum exclusion is 20/24 x $500,000 = $416,667.

 

That said, your old home is still you primary home until you establish a new primary home (or the old home is sold, whichever comes first).  If you had only temporary living arrangements (e.g. hotels)  April -July 2018, at the new job location,  then your old home was still your primary home, during that period.