I am working and living in CA, while my wife is working and living in MA. My wife tried to file the joint tax return last year, but noticed that we were taxed from CA and MA using our combined income. That costs more than filing separately, so we filed separately the previous year. We would like to try to file jointly this year, but are not sure how to prevent the same issue.