I am planning to move to Texas early 2018. If I lease my Ca principal residence for 9 months, while waiting for my new home in Texas to be built, and then sell the Ca house 9 months later, will I pay Texas capital gain tax or California capital gain tax? I anticipate to make a huge capital gain tax on ca residence (approx. $700,000) and I can only shelter $250,000 as a single tax filer.