This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

The happiest city in the United States is in the Bay Area, says one study. However, it may not be the city you think of. (Spoiler, it is not San Francisco or San Jose.)

Concord is named the “happiest” city in America, according to a study by HouseFresh. The city was also named the “smiliest” in the country.

For both categories, San Francisco cracked the top 20 with a ranking of 15th. No other California city cracked the top 20 in either the “happiest” or “smiliest” categories.

Concord recorded a happiness score of 79.14 out of 100. Data from the study found that 74.41% of people in Concord were smiling in their photos — the highest percentage in the nation.

Going 30 miles west, San Francisco had a happiness score of 62.13, and 58.54% of selfies taken in the city displayed a smile (smiliest score).

Other notable California cities’ happiness scores:

  • Sacramento (59.42)
  • San Diego (56.15)
  • Fresno (48.88)
  • Long Beach (44.5)
  • San Jose (46.35)
  • Los Angeles (42.57)

However, the study revealed California recorded the lowest happiness score of 38.37 out of 100. In contrast, Utah was named the happiest state with a score of 74.49.

Methodology

HouseFresh measured the “smiliest” cities by analyzing thousands of selfies taken in that city. They used Microsoft Azure’s Face API as a tool for facial recognition.

The cities were ranked by the percentage of people smiling out of the photos analyzed. A person would be considered smiling if their smile score was greater than 0.75. Here is how they determined a smile score.

The study said it analyzed images from each state’s Instagram page, along with the top 100 U.S. cities by population.

The data was last updated on Tuesday, Aug. 16. The full study can be viewed here.