As the saying goes, there are only three things that matter in real estate: location, location, location. That’s because home prices and rental rates across the U.S. are based on supply and demand, according to WalletHub.

The personal finance website studied 300 U.S. cities to find which offer the most potential for residential real estate investment.

WalletHub looked at 22 indicators to come up with its final ranking, which relied heavily on each market's housing market attractiveness and economic strength.

"Our data set ranges from median home-price appreciation to home sales turnover rate to job growth," the report stated. 

To determine the best places to buy property, WalletHub compared cities of varying sizes according to two key factors: “Real Estate Market,” which comprises a variety of indicators tied to housing market strength, and “Affordability & Economic Environment,” which has to do wtih an area's housing affordability and general economic strength.

The follwing, in ascending order, are WalletHub’s top 10 best residential real estate markets:

10.  Denton, Texas

Located in the Dallas-Fort Worth metroplex in North Texas, Denton’s website says the city offers urban amenities with a small town vibe. Denton ranks 23rd in affordability and economic environment and ninth in the strength of its housing market.