Explainer

The Chemistry of Sleep: Melatonin and Adenosine

Biochemistry & the Chemistry of LifeBeginner6 min read
On this page
  1. Two systems control sleep
  2. Process S: adenosine and sleep pressure
  3. Process C: the circadian clock and melatonin
  4. Orexin: holding wakefulness steady
  5. Why screens at night matter
  6. Sleep medicines and other substances
  7. Jet lag and shift work
  8. Why we need sleep at all
  9. Key takeaways

Every night, you lose consciousness for hours, and every morning, you wake up again. Sleep feels like something that simply happens, but it’s controlled by chemistry: molecules that build up the longer you’re awake, hormones that rise in the dark, and signals from a clock in your brain that keeps time even in a windowless room. Understanding these molecules explains why coffee keeps you awake, why jet lag happens, and why scrolling on your phone at midnight makes it harder to fall asleep.

Two systems control sleep

Sleep researchers describe sleep with a two-process model:

  1. Process S (sleep pressure): the longer you’ve been awake, the stronger the drive to sleep. It builds up during the day and is cleared by sleep.
  2. Process C (circadian rhythm): a roughly 24-hour internal clock that makes you more alert at some times of day and sleepier at others, regardless of how long you’ve been awake.

You fall asleep most easily when sleep pressure is high and the circadian clock signals night. Each process has its own chemistry.

Process S: adenosine and sleep pressure

Where adenosine comes from

Your brain runs on ATP, the energy carrier made from respiration (see ATP: the cell’s energy currency). When ATP is used, it’s broken down to ADP and AMP, and eventually to adenosine: the adenine base attached to a ribose sugar.

The more active your brain is, the more ATP it uses, and the more adenosine accumulates in the fluid around nerve cells, especially in certain brain regions. So adenosine acts as a chemical record of how long and how hard your brain has been working.

What adenosine does

Adenosine binds to adenosine receptors (particularly the A1 and A2A types) on nerve cells. This:

  • inhibits neurons that promote wakefulness;
  • activates neurons in areas that promote sleep.

The result is sleep pressure, the growing heaviness you feel in the evening. During sleep, adenosine is cleared and recycled back into ATP, so you wake up refreshed. If you don’t sleep, adenosine keeps building, and sleep pressure becomes overwhelming.

How caffeine keeps you awake

Caffeine is a molecule with a shape similar to adenosine: both have a double-ring purine-like structure. Caffeine fits into adenosine receptors but doesn’t activate them. It’s an antagonist: it blocks adenosine from binding, so the sleep signal isn’t received. You feel alert even though adenosine is still building up. (For the similar logic with enzymes, see competitive vs non-competitive inhibition.)

Some caffeine facts:

  • Its half-life in adults is typically about 5 hours (it varies a lot between people, and it’s longer in pregnancy). So half the caffeine from a 4 pm coffee may still be in your body at 9 pm.
  • When caffeine wears off, the adenosine that accumulated in the meantime can bind all at once, causing the familiar “crash”.
  • Regular caffeine users develop tolerance: the brain makes more adenosine receptors to compensate, which is why stopping suddenly causes tiredness and headaches.

Process C: the circadian clock and melatonin

The master clock

A tiny region of the brain called the suprachiasmatic nucleus (SCN), in the hypothalamus, acts as the body’s master clock. Its cells contain a set of clock genes whose protein products build up and then switch off their own genes in a cycle lasting roughly 24 hours, a chemical feedback loop. The 2017 Nobel Prize in Physiology or Medicine was awarded for discovering this molecular mechanism.

The clock is naturally slightly out of step with 24 hours, so it must be reset each day, mainly by light. Special light-sensitive cells in the retina, containing a pigment called melanopsin that is most sensitive to blue light (around 480 nm), send signals directly to the SCN.

Melatonin: the hormone of darkness

The SCN controls the pineal gland, which makes melatonin:

  • Melatonin is made from serotonin in two steps (adding an acetyl group, then a methyl group), and serotonin is made from the amino acid tryptophan (see serotonin).
  • Production rises in the evening as it gets dark, peaks in the middle of the night, and falls in the morning.
  • Light suppresses it, especially blue light.

Melatonin doesn’t knock you out like a sleeping pill. It’s a timing signal: it tells the body that it’s night, lowering body temperature and helping to open the “sleep gate”. That’s why melatonin supplements can help with jet lag or shifting sleep times, but are less effective as general sleeping pills.

Cortisol: the morning signal

The stress hormone cortisol, a steroid (see steroids), follows the opposite rhythm: it’s lowest around midnight and rises sharply in the early morning, peaking shortly after waking. The rise helps mobilise glucose and prepares the body for activity.

Orexin: holding wakefulness steady

Orexin (also called hypocretin) is a pair of small peptides made by neurons in the hypothalamus. It stabilises wakefulness by activating wake-promoting brain regions. People who lose orexin neurons develop narcolepsy, falling asleep suddenly during the day. Newer sleep medicines work by blocking orexin receptors.

Why screens at night matter

Phone, tablet and computer screens emit a lot of blue light. Using them late in the evening:

  • suppresses melatonin release;
  • can shift the circadian clock later;
  • keeps the brain mentally stimulated.

Night modes that reduce blue light help somewhat, but reducing screen use before bed and keeping bedrooms dark are more effective.

Sleep medicines and other substances

  • Benzodiazepines and “Z-drugs” enhance the effect of GABA, the brain’s main inhibitory neurotransmitter, calming nerve activity (see neurotransmitters). They help people fall asleep but can cause dependence and don’t produce entirely natural sleep.
  • Older antihistamines cause drowsiness by blocking histamine, a wake-promoting neurotransmitter.
  • Alcohol makes people fall asleep faster but disrupts sleep later in the night, reducing its quality.
  • Orexin receptor antagonists are a newer class that reduce the brain’s wake signal.

Jet lag and shift work

Flying across time zones or working at night puts the circadian clock out of step with the local day. The clock can shift only by roughly one hour per day, so jet lag lasts several days. Timed exposure to bright light and, sometimes, carefully timed melatonin help the clock adjust faster.

Why we need sleep at all

Scientists are still working out exactly why sleep is essential, but chemistry is part of the answer. During deep sleep, the spaces between brain cells appear to widen, and cerebrospinal fluid flows through the brain more freely, helping to wash away waste products, including proteins linked to Alzheimer’s disease. Sleep also restores energy stores, supports the immune system and helps the brain consolidate memories, strengthening important connections between neurons. Long-term sleep shortage is linked to problems with blood glucose control, appetite hormones and mood, a reminder that sleep chemistry affects the whole body.

Key takeaways

  • Sleep is controlled by sleep pressure (process S) and the circadian clock (process C).
  • Adenosine, a breakdown product of ATP, builds up while you’re awake and promotes sleep; caffeine blocks adenosine receptors.
  • The suprachiasmatic nucleus keeps a roughly 24-hour rhythm, reset by blue light detected by melanopsin.
  • Melatonin, made from serotonin in the pineal gland, rises in darkness and signals night; cortisol rises in the morning.
  • Orexin stabilises wakefulness; sleep medicines act mainly on GABA, histamine or orexin. For the other brain messengers, see neurotransmitters.

Advertisement

More from this topic: Biochemistry & the Chemistry of Life