To all the single ladies: Consider San Francisco.

The City by the Bay is the no. 1 best city for singles in search of love, according to a newly released study from personal finance site WalletHub. Rounding out the top five are Atlanta, Los Angeles, Denver and San Diego; New York sneaks in at no. 20. About 110.6 million Americans — or roughly 45% of U.S. adults — were unmarried in 2016, according to the Census Bureau.

Meanwhile, residents of South Burlington, Vt., Brownsville, Texas, Pembroke Pines, Fla., Hialeah, Fla., and Warwick, R.I. could be looking for love in a hopeless place: The five cities sat at the very bottom of the 182-city ranking.

Also read: This is exactly the point in a relationship when you must share your credit score, savings and more

The site examined 32 indicators in the realms of economics, dating opportunities, and fun and recreation — including restaurant meal costs, average cocktail price, movie costs, unemployment rate, nightlife options per capita, walkability, weather, share of single population and online dating opportunities.

Detroit, Mich., Burlington, Vt., Rochester, N.Y., Wilmington, Del., and Cleveland, Ohio boast the highest percentage of singles, according to the study; West Valley City, Utah, Manchester, N.H., Austin, Texas, San Diego, Calif., and Santa Ana, Calif., had the highest singles gender balance. Gilbert, Ariz., offered the most opportunities for online dating.

Also read: After a breakup, who gets the stuff?

The most nightlife options per capita went to a four-way tie among New York, Las Vegas, San Francisco and Orlando. Restaurant meals were cheapest in Garden Grove, Calif., San Antonio, Texas, Laredo, Texas, San Bernardino, Calif., Shreveport, La., and Sioux Falls, S.D.

And beer and wine were cheapest, on average, in six Arizona cities that tied for first: Phoenix, Mesa, Chandler, Glendale, Scottsdale and Peoria.