Moving in will create a very small period of time when the main residence exemption is satisfied. May be worthwhile considering the 6 month overlap allowed if the former home is sold so you can move out asap.
The total capital gain must be apportioned on a time basis so that the exempt %...