High-earning residents are growing in numbers, and many are fleeing to states that are easy on taxes, according to a new study.

And by far, the top state they are moving to is Florida. The Sunshine State gained 40,134 high-income households and lost only 12,567 in 2021, according to a recent study by SmartAsset, which examined the inflow and outflow of tax filers making at least $200,000 in each state between 2020 and 2021. SmartAsset said high-earning American households grew to 8.68 million in 2021, up from 8.57 million a year earlier.

Last year’s study by SmartAsset also showed that Florida dominated with a gain of 32,019 high-earning households and a loss of 11,756.

Texas held the second spot for the second year with the highest net inflow of high earners in 2021. The state had 22,751 households that earned at least $200,000 moved in but it also saw 13,743 moved out.

Both Florida and Texas are among the nine states that do not have a state income tax. Two others, Tennessee and Nevada, are among the top 10 states where high earners flocked. Tennessee, which ranked sixth had an inflow of 7,353 and an outflow of 3,436, and Nevada, which ranked seventh, had  5,576 high earners moved in and 2,791 moved out.

Following Florida and Texas are North Carolina, with an inflow of 11,437 and outflow of 5,991; Arizona  with 9,763 moving in and 5,200 leaving the state; and South Carolina rounded out the top five with a gain of 7,312 high earners and a loss of 2,802.

While those with a high income found Florida and Texas most attractive, they ran away from California and New York in droves. Those two states top the list with losses of more than 45,000 and 31,000 high earners, respectively. SmartAsset noted that the net outflow of California’s high earners in 2021 was 27,341, a 42% increase over the previous year’s outflow. The Golden State’s net loss of 19,229 was also nearly 8,000 more than that of New York’s, the study showed.

Illinois, Massachusetts and New Jersey ranked third, fourth and fifth, respectively, for the largest net outflows of high-earning households in 2021. Virginia, Maryland and Minnesota followed.

And while migration from these states was high, SmartAsset pointed out that they still stand out as having some of the nation’s highest percentages of high-earning households. “In fact, at least 7.2% of the tax base in each of these states earn $200,000 or more per year,” the study said.

It’s also worth noting that Massachusetts, New Jersey and Connecticut are the only three states with some of the richest tax filers. More than 10% of filers in these states earn more than $200,000 per year.

Also noteworthy is that high  earners in Washington, D.C., fled the state at a faster rate than any other state. The nation’s capital lost a net total of 2,009 high-earning households between 2020 and 2021.

SmartAsset further noted that the states that are seeing the fastest growth in the $200,000 tax base as a percentage of their overall population in 2021 are Idaho, Florida and Montana.