Here are the best real estate markets right now, according to WalletHub study

FILE-A For Sale sign is seen in front of a home. (Photo by Justin Sullivan/Getty Images)

Purchasing a home involves many things for prospective buyers to consider from housing affordability to the stability of a city’s job market.

And whether you're actively searching for a home or in the planning stages, WalletHub has a ranking of the best real estate markets nationwide. 

WalletHub determined the best real estate markets for their report comparing 300 cities of varied sizes using two categories, "real estate market" and "affordability and economic environment."

RELATED: This small Ohio town is the hottest ZIP code for home sales; see the list

The personal finance website then assessed those categories using 17 metrics which are graded on a 100-point scale, with a score of 100 defining the healthiest market, and then determined each city’s average using the 17 metrics to calculate its overall score and used the resulting scores to rank the cities. 

Each city in the ranking is characterized based on the size of its population. A large city has more than 300,000 residents, a midsized city has 150,000 to 300,000 residents, and a small city has less than 150,000 residents. 

The list features four cities in Texas and three in North Carolina ranked in the top 10. 

Best real estate markets

  1. McKinney, Texas
  2. Frisco, Texas
  3. Cary, North Carolina
  4. Nashville, Tennessee
  5. Durham, North Carolina
  6. Gilbert, Arizona
  7. Charlotte, North Carolina
  8. Denton, Texas
  9. Allen, Texas
  10. Port St. Lucie, Florida

WalletHub’s full list of best real estate markets can be viewed here