It’s not hard to imagine that where you live could determine your level of happiness, but some folks get really serious about figuring out which factors about a place really affect your day-to-day outlook on life. The website Zippia.com recently took a look at census data to see which New Hampshire town is the happiest, and you’ll want to pack your bags and move to the coast once you see the winner.

Zippia determined that there are seven factors that affect happiness: level of education, home ownership, employment, a short commute to work, a family, a low cost of living, and a decent income.

Nicholas Erwin/flickr

The study checked out the statistics for those seven factors, looking at all 24 towns in New Hampshire that had at least 2,000 residents. The winner?

Nicholas Erwin/flickr

The pretty coastal town of Hampton! The town of around 15,000 residents was Zippia’s winner, and the number one choice for places to live in the state if you want to be happy.

Gail Frederick/flickr

Zippia used data from the 2010-2014 American Community Survey, and found that 36 percent of residents have at least a Bachelor’s degree.

San Diego City College/flickr

Money certainly isn’t everything, but studies have found that those with an income over $70,000 typically feel more stable, less stressed, and happier overall. With a median household income of $78,706, folks in Hampton are doing pretty well.

Wendy Nelson/flickr

With an unemployment rate of less than 3 percent, Hamptonites don’t seem to be missing out when it comes to job stability. And on average, it takes just 27 minutes for Hampton residents to get to work.

Aaron Yoo/flickr

Home ownership helps people feel stable and committed to their community, and in Hampton about 67% of people own their homes. 58% of residents are married.

Doug Kerr/flickr

Zippia didn’t look at factors like natural beauty when it compiled its data, but we can’t help but feel that the scenic beauty here in Hampton has something to do with people’s overall good moods.

Bernadette/Tripadvisor

And really, there’s just nothing like a day at the beach to make you feel great.

ChrissyD64/Tripadvisor

Are you ready to pack your bags and move to Hampton?

Nicholas Erwin/flickr

What do you think about this study? Do you agree that Hampton is the happiest place in the Granite State? Tell us your thoughts in the comments!

Nicholas Erwin/flickr

Gail Frederick/flickr

San Diego City College/flickr

Wendy Nelson/flickr

Aaron Yoo/flickr

Doug Kerr/flickr

Bernadette/Tripadvisor

ChrissyD64/Tripadvisor

Want to see all 10 of Zippia’s list of happiest places in live in New Hampshire? Check out our article here.

OnlyInYourState may earn compensation through affiliate links in this article.