(NEXSTAR) – Where you live has a big impact on how long you live, a recent analysis of major U.S. metro areas finds.

While people born in Bridgeport, Connecticut, can expect to live around 83 years on average, natives of Jackson, Mississippi, have lives that are 8.6 years shorter, according to a MoneyGeek report.

The report analyzed 119 metro areas with populations of 250,000 or more using data from the University of Wisconsin Population Health Institute’s county health rankings. Researchers found the coastal lifestyle appears to be good for longevity: 6 of the top 10 metros for life expectancy are in California or Florida.

The Bay Area ranks No. 2 in the nation for life expectancy, with an average of 82.9 years old. Just barely behind it is the Los Angeles metro area, with an average life expectancy of 82.8.

The San Diego metro area also ranked in the top 10.

This study isn’t the first to connect location with longevity. Researchers at Stanford and MIT found that moving to the Northeast, California, and parts of Florida even after age 65 could grow people’s remaining life expectancy by as much as 5 percent.

Researchers found “the areas with the least favorable effects on life expectancy are concentrated in the deep South and Southwest.”

Those results are echoed in MoneyGeek’s analysis, where the bulk of metro areas with the lowest life expectancies are in southern states, and those with the longest life expectancies were largely in coastal states.

See the 10 metro areas with the longest life expectancies in the chart below. The age refers to the average life expectancy at birth for people born in the metro area.

RankMetro areaAvg. life expectancy
1Bridgeport-Stamford-Norwalk, CT83.0
2San Francisco-Oakland-Berkeley, CA82.9
3Los Angeles-Long Beach-Anaheim, CA82.8
4New York-Newark-Jersey City, NY-NJ-PA82.6
5Urban Honolulu, HI82.5
6Miami-Fort Lauderdale-Pompano Beach, FL82.5
7Cape Coral-Fort Myers, FL82.5
8San Diego-Chula Vista-Carlsbad, CA82.2
9North Port-Sarasota-Bradenton, FL81.9
10Denver-Aurora-Lakewood, CO81.8

Another California city with long life expectancies is Sacramento, with an average of 81.5 years. Bakersfield ranked in the middle at 77.5 years.

Meanwhile, the cities with the worst life expectancies were:

  1. Jackson, MS
  2. Mobile, AL
  3. Birmingham-Hoover, AL
  4. Montgomery, AL
  5. Beaumont-Port Arthur, TX

See the full ranking of all 120 metro areas analyzed here.