Skip to content
Fraily

The Science of Friendship

Endorphins: The Biochemical Glue of Friendship

β-endorphins are the central neurochemical mechanism behind the formation and maintenance of friendships. These endogenous opioids are 20–100 times more potent than morphine— yet unlike synthetic opiates, they are not addictive. They explain why friendship feels so good — and why loneliness hurts so much.

By Fraily EditorialReading time approx. 9 minutes

What Are Endorphins?

β-endorphins are neurotransmitters of the opioid system that bind to μ-opioid receptors (MOR) throughout the brain. These receptors regulate physical and emotional stress. Their activation produces feelings of warmth, calm, relaxation, trust, and connectedness— states that philosophers might call raw feels.

Originally, endorphin release is triggered by social touch — through specialized C-tactile nerve fibers that respond only to slow, gentle stroking at about 3 cm/second. Humans have developed substitute mechanisms: laughing, singing, dancing, and group sports activate the endorphin system without direct body contact.

The Brain Opioid Theory

Machin and Dunbar (2011) formulated the Brain Opioid Theory of Social Attachment: while oxytocin primarily facilitates entry into social interaction, endorphins cement the actual bond.

Keverne et al. (1989) showed experimentally that morphine reduces grooming desire in monkeys, while naloxone (an opioid antagonist) increases it. The brain actively seeks the endorphin release that comes from social interaction — and reduces the need when it is artificially satisfied.

A study on group rowing confirmed the effect in humans: people rowing in a group released more endorphins than when rowing alone — at the same level of physical exertion. The social component amplifies the biochemical effect.

Endorphins vs. Oxytocin

A large-scale study of 33 single-nucleotide polymorphisms across the six most important social neurohormones produced a surprising result (Pearce et al., 2017): the genes OPRM1(μ-opioid receptor) and DRD2 (dopamine D2 receptor) are more strongly associated with social disposition and network size than oxytocin receptor genes.

Oxytocin receptors, by contrast, play a primary role in romantic relationships. For friendships, endorphins are the more important mechanism. People with low MOR density in key brain regions show an avoidant attachment style and typically have smaller social networks.

How Do You Activate Endorphins?

Six activities are especially effective at activating the endorphin system — all have a social component:

  1. Laughing together— one of the most powerful endorphin triggers
  2. Singing together— choral singing measurably increases endorphin release
  3. Dancing together— a combination of movement and social synchronization
  4. Group sports— group activities in particular amplify the effect
  5. Eating together— the oldest social ritual
  6. Physical touch— hugs, pats on the back, handshakes

More on this in our article about activities that strengthen friendships.

Endorphins and the Immune System

The health effects of β-endorphins work through two pathways (Dunbar, 2025): first, they directly elevate mood and act as a natural antidepressant. Second, they activate the immune system, particularly natural killer cells that fight viruses and certain cancer cells.

Indirectly, they create — through the formation of deep friendship bonds — a network of people who offer support when needed. The connection between friendship and health is therefore not only psychological but biochemically mediated.

A notable side finding: Johnson and Dunbar (2016) found that individual baseline pain tolerance correlates with the size of one’s close circle of friends. People with more close friends have a higher endorphin baseline — and are therefore more pain-resistant.

Limitations of the Research

Much of the experimental evidence comes from animal studies or small human samples. The immune effects have been demonstrated mostly in vitro — the clinical relevance during natural social activation requires further research. Whether the genetic variants in OPRM1 and DRD2 operate the same way across cultures remains unclear.

Frequently Asked Questions

What are endorphins and how do they work?
β-endorphins are the body’s own opioids, 20–100 times more potent than morphine. They bind to μ-opioid receptors in the brain and produce feelings of warmth, calm, relaxation, trust, and connectedness. Unlike synthetic opiates, they do not cause physical dependence.
Are friendships addictive?
No. Although β-endorphins activate the opioid system, there is no physiological dependence and no habituation. The feeling of connectedness persists with repeated social interaction — it does not weaken.
How can I boost endorphins naturally?
Through social activities that involve the body: laughing together, singing, dancing, group sports, hugging. Originally, endorphin release was triggered by physical touch (grooming). Humans have developed substitute mechanisms that work without direct body contact.
Are endorphins more important for friendship than oxytocin?
For friendship, yes. Studies show that OPRM1 (μ-opioid receptor) and DRD2 (dopamine D2 receptor) are more strongly associated with social disposition and network size than oxytocin receptor genes. Oxytocin plays a primary role in romantic relationships (Pearce et al., 2017).

Sources

  1. Dunbar, R. I. M. (2025). Why friendship and loneliness affect our health. Annals of the New York Academy of Sciences, 1545, 52–65.
  2. Machin, A. J. & Dunbar, R. I. M. (2011). The brain opioid theory of social attachment. Behaviour, 148, 985–1025.
  3. Pearce, E., Wlodarski, R., Machin, A. & Dunbar, R. I. M. (2017). Variation in the β-endorphin, oxytocin, and dopamine receptor genes. PNAS, 114, 5300–5305.
  4. Keverne, E. B., Martensz, N. D. & Tuite, B. (1989). Beta-endorphin concentrations in CSF of monkeys. Psychoneuroendocrinology, 14, 155–161.
  5. Johnson, K. V.-A. & Dunbar, R. I. M. (2016). Pain tolerance predicts human social network size. Scientific Reports, 6, 25267.