The 10 best and worst big cities in the US to call home — how did yours rank?

With the variety of restaurants, career opportunities and entertainment venues, it’s no surprise that big cities continue to get bigger and more popular.

» RELATED: Atlanta among cities with highest quality of life in world ranking

In fact, according to the U.S. Census, large urban centers are growing at nearly twice the rate recorded at the turn of the 21st century.

But with big city life comes pollution, higher cost of living and a lot of compromising.

» RELATED: Do you live in one of Georgia's 10 best suburbs?

To determine which big U.S. cities are worth calling home, analysts at personal finance site WalletHub compared the 62 largest cities in the country across give key dimensions: affordability, economy, education/health, quality of life and safety.

They used 50 relevant metrics to measure each city’s dimension score, such as housing cost, unemployment rate, quality of public school system, walkability, attractions and crime rate.

» RELATED: Two Georgia cities named the best cities in the South

Data came from a variety of sources, including the U.S. Census, Federal Bureau of Investigation, Centers for Disease Control and Prevention and more.

Of the 62 largest U.S. cities, the best big city to live in, according to WalletHub, is Virginia Beach, Virginia.

Virginia Beach scored in the top seven in affordability, education/health and safety.

» RELATED: Atlanta named one of the best cities for millennials in America

Atlanta, which came in at No. 27 on the list, ranked ninth for highest quality of life.

In March, a global ranking also deemed Atlanta one of the best cities in the world for quality of life.

The metro also ranked fourth for most restaurants per capita.

» RELATED: Atlanta named one of America’s ‘Tech 25’ — the nation’s top 25 cities in tech

Here’s how Atlanta scored across each key dimension:

Affordability: 34th

Economy: 42nd

Education/health: 41st

Quality of life: 9th

Safety: 47th

Detroit, Michigan, ranked dead last overall — and last in the best economy category.

Here are the 10 best big cities to live in, according to WalletHub:

  1. Virginia Beach, Virginia
  2. Seattle, Washington
  3. Pittsburgh, Pennsylvania
  4. San Diego, California
  5. Colorado Springs, Colorado
  6. Austin, Texas
  7. Minneapolis, Minnesota
  8. Las Vegas, Nevada
  9. Denver, Colorado
  10. San Jose, California

» RELATED: Do you live in one of the happiest cities in America?

And the 10 worst:

  1. Detroit, Michigan
  2. Memphis, Tennessee
  3. St. Louis, Missouri
  4. Baltimore, Maryland
  5. Fresno, California
  6. Indianapolis, Indiana
  7. Long Beach, California
  8. Santa Ana, California
  9. Miami, Florida
  10. Cleveland, Ohio

Don’t see your city on the list? See the full ranking at WalletHub.com.