Larry Belardi and Bobbie LaPorte are longtime San Francisco residents, but they are planning to leave California for Nevada next year.

A turning point was the federal tax overhaul that Congress passed in late 2017. The law made it costlier to own a house in many high-price, high-tax areas, reshaping the economics of homeownership in those slices of the U.S.

Two...