The Science of Why You Crave Comfort Food

4 minute read

In mid-July, I was visiting my hometown in Minnesota when I happened upon the unmistakable scent of something deep-fried. I was at a concert, and no matter how off-brand a dietary choice of corn dogs and cheese curds may be for a health writer, I went for it. How could I not? I spent two thoroughly enjoyable summers during college working at the Minnesota State Fair, and that experience continues to make corn-and-grease-dipped hot dogs not only appetizing but somehow irresistible, too.

Summer is the season for nostalgic eating: Hot days in the park call for a trip to the ice cream truck, concerts call for corn dogs, baseball games call for hotdogs and beer, ice-cold movie theaters call for popcorn. And it’s not just me. Researchers suggest that when we associate foods with happy memories, the effects are profound, impacting how good we think foods taste as well as how good those foods make us feel.

It makes intuitive sense that positive experiences with a given food could influence our craving for it later on, but recent research also suggests something else is at play, too: comfort foods remind us of our social ties, which means they may help us feel less lonesome when we feel isolated. In a recent July 2015 study, Jordan Troisi, an assistant professor of psychology at Sewanee, The University of The South, and his colleagues found that people with strong relationships preferred the taste of comfort food when they experienced feelings of social isolation.

“Comfort food seems to be something people associate very significantly with close relationships,” says Troisi. “This probably comes about by individuals coming to associate a particular food item with members of their family, social gatherings, and people taking care of them, which is why we see a lot of comfort foods [that are] traditional meals or things had at a party.”

Of course, what counts as comfort food is different person to person. When Troisi has asked people write about an experience they’ve had with a comfort food, essays have ranged from soup to kimchi. “It’s not just that ice cream, for instance, is really tasty. It’s that someone has developed a really significant meaning behind the idea of ice cream due to their relationships with others, and that’s what is triggering this effect,” he says.

Even the smell of a meaningful dish can elicit feelings of belonging, some research suggests. In a February 2015 study, Virginia Commonwealth University researcher Chelsea Reid and her colleagues had 160 people smell 12 different scents, including apple pie, cotton candy and baby powder and rate the extent to which the scent was familiar, arousing, autobiographically relevant, and the extent to which it elicited nostalgia. “Nostalgia can be evoked in different ways, but scents may be particularly likely to evoke nostalgia due to the strong link between scents and memory. The smell of pumpkin pie might bring all those holidays with family flooding back, or the smell of a familiar perfume might arouse memories with your partner,” says Reid.

Biologically speaking, scent and memory are closely tied. “Psychological research has demonstrated that smells are powerfully linked to memory, and to autobiographical memory in particular,” says Reid. “The olfactory bulb, which is involved in the sense of smell, is linked to areas in the brain associated with memory and emotional experiences.”

Humans have a fundamental need to belong, says Reid, and because nostalgia often centers around personal events involving people they care about, she sees the evocation of nostalgia as one way people can obtain a sense of belonging even when the people they are close to are not close by.

So while corn dogs in the summer may not be fine dining by any standard, for me, they trigger happy memories of summers long ago—and that’s a good thing. In moderation, of course.

See 15 Mouthwatering BBQ Photos

BBQ Road Trip
Smoked pork hot link with collard greens and mac and cheese at Jim 'N Nicks Bar-B-Q in Birmingham, Ala.Andrew Hetherington
BBQ Road Trip
Fried chicken at Husk in Charleston, S.C., named "Best New Restaurant in America" by Bon Appétit in 2011.Andrew Hetherington
BBQ Road Trip
Catfish with a selection of sides (including large lima beans, fresh green beans, collard greens, boiled cabbage, fresh mashed potatoes and brussels sprouts) from the daily cafeteria menu at Niki's West in Birmingham, Ala.Andrew Hetherington
BBQ Road Trip
Holeman & Finch Public House in Atlanta infamously serves only 24 burgers a night, at around 10 pm. Get there early; they almost always sell out.Andrew Hetherington
BBQ Road Trip
James Beard award-winning chef Sean Brock holding house-cured meat at McCrady's in Charleston, S.C.Andrew Hetherington
BBQ Road Trip
Whole pig ready to be butchered at Husk in Charleston, S.C.Andrew Hetherington
BBQ Road Trip
Smoked pork ribs with watermelon pickle at Cochon in New OrleansAndrew Hetherington
Menu display at Gus's Hot Dogs in Birmingham, Ala.Andrew Hetherington
BBQ Road Trip
Hot dog on the griddle at Gus's in Birmingham, Ala.Andrew Hetherington
BBQ Road Trip
The finished product at Gus's in Birmingham, Ala.Andrew Hetherington
BBQ Road Trip
All 24 burgers on the griddle at the same time at Holeman & Finch Public House in Atlanta.Andrew Hetherington
BBQ Road Trip
House-cured meat at Star Provisions in Atlanta.Andrew Hetherington
BBQ Road Trip
Bread for sandwiches and hamburgers at the soda fountain in Add Drug in Athens, Ga. The store is well known for the best-value lunch in town.Andrew Hetherington
BBQ Road Trip
Crawfish boil on the banks of the Mississippi in New Orleans with chefs Donald Link and Stephen Stryjewski of Cochon restaurant. The crawfish are cooked with lemons, garlic, and salt, then tossed with Old Bay and Cajun spices before being dumped on a plastic table for eating.Andrew Hetherington
BBQ Road Trip
Lemon meringue pie at Niki's West in Birmingham, Ala.Andrew Hetherington

Read next: 5 Foods That Taste Better Now Than They Will All Year

Listen to the most important stories of the day

More Must-Reads From TIME

Contact us at letters@time.com