My wife and I file jointly and our primary residence is in CO where we jointly own the home. I have a second home in CA that my brother and I purchased for my parents and that home does not include my wife as owner, just brother and I. Both homes have been purchased more than 5 years (CA home for 20 and CO for 5 yrs)
I plan on moving there for most of the year to help my parents who are very old for the next 2-3 years. They will likely stay in the home for no more than 2-3 years, we haven't figured it out exactly. When we sell that home in CA, I want to avoid paying the capital gains tax but because I am married and filing jointly with my wife, I don't know if the IRS will allow me to identify primary residence as CA and wife in CO for the same year.
Thanks and appreciate and help.