If i live in florida and sell a rental house in california do i pay california tax

I own property in both states and, can change my residence to either ca. or fl. i'm trying to find the best location to lesson my tax burden