New York City may be one of the most popular places to live in New York state, but that doesn't make it the best place in the state to buy a home. It's not even close — literally.
The No. 1 place to buy a home in the Empire State is Bethlehem, a town of roughly 35,000 in Albany County that's about three hours away from, and 150 miles north of, New York City, according to financial website GOBankingRates, which conducted a study to find "the best place to buy a home in every state based on the quality of the area and what sort of value you can expect based on the local housing market."
The study used data from real-estate websites Zillow and AreaVibes and focused on five metrics: livability (measuring factors such as amenities, employment and education); median home listing price; median home value; home value forecast (gauging the "return you can expect on your money"); and buyer-seller index (a score that determines "whether the current market favors people looking for housing or looking to sell" relative to other towns in the same metro).
Here's how Bethlehem ranks:
Based on the most recent data from Zillow, here's what buyers can expect to pay:
"Buying in Bethlehem is projected to give you one of the best one-year returns on your money at 9.6 percent," says GOBankingRates.
"And if you're younger and looking in the Empire State, you might need alternatives to the Big Apple, one of the worst cities for millennials looking to buy homes."
The median listing price for a home in New York City is $829,000 and the median home value is $681,500. Meanwhile, only 5 percent of millennials looking to buy a home this year said they plan to spend $500,000 or more, according to a survey from Clever Real Estate.
Housing costs in Bethlehem are also more reasonable than in the northern New Jersey areas around the Big Apple. In Hoboken, the median home value is nearly $720,000. In Jersey City, it's more than $480,000.
While home values in Bethlehem dropped by 0.5 percent over the past year, Zillow calls the housing market "hot" and forecasts a 5.6 percent rise in the next year.
In short, there are real benefits to being open-minded about location, if that's possible, GOBankingRates points out: "Although most of the decisions you have to make about where you live are out of your control, when you do have the flexibility to expand your search, it's important to remember that finding the best market can often mean getting more house for your dollar."
If you're looking to buy a home, experts suggest you first make sure you're ready to transition from renting. And no matter where you may decide to settle down, living within your means and employing common-sense budgeting tactics can help you save in the long run.
Like this story? Subscribe to CNBC Make It on YouTube!