Looking to make a quick buck flipping houses? You may want to consider doing so in another state.

A new study from Morta.com analyzed a wide range of housing market data to determine which states are best and worst suited for flipping houses, a common practice in which developers buy, renovate and quickly resell homes to make a profit.

“Property flippers must prioritize highly liquid markets with a steady and consistent buyer demand to keep inventory moving. To this end, they want a market with a large population of home buyers continuously bolstered by positive domestic migration,” wrote Alyssa Castillo of Morta.com.

“Ideally, the state must have a low entry price point, and properties must be affordable to typical home buyers. Property taxes, transfer fees, and remodeling costs must be minimal, while the potential for capital appreciation should be high,” she continued.

Researchers analyzed eight key metrics of a positive environment for flipping houses, including home sales per 100,000 people, metro price-to-income ratio, estimated median transfer tax, estimated median property tax, five-year sale price change, median property price, net domestic migration rate and average remodeling cost.

Each individual metric was then converted to a standardize 0-100 score, with all metrics then weighted and summed to generate an overall score for each state.

New York ranked 46th out of 50 with an overall score of 48.61, making it the fifth-worst state in the nation for those looking to flip houses at a profit.

The Empire State’s low ranking can be attributed to various factors, including an estimated median property tax of $7,257.60 and an average remodeling cost $64,889, both of which were the second-highest in the country.

Additionally, New York had the fourth slowest-moving real estate market in the country, with 61.18 home sales per 100,000 people.

“The high costs of renovating and holding property, which erode any potential returns, and the below-par market liquidity make New York one of the least attractive states for house flippers,” Castillo wrote.

The only states found to have worse house-flipping conditions were New Jersey, Massachusetts, California and Hawaii, which ranked 47th, 48th, 49th and 50th, respectively.

On the other end of the spectrum, Maine was found to be the best state in the country for flipping houses, followed by South Carolina, Missouri, Tennessee and North Carolina, in that order.