Skip to content

Brain Chemistry

Melatonin Is a Clock, Not a Sleeping Pill

Melatonin does not knock you out. It marks biological night, and a signal given at the wrong time can nudge your clock the wrong way. Here is what it actually does, and what the products that touch it can and cannot do.

Originally published August 31, 2026

Last reviewed August 31, 2026

Clinical review: Fady Boules, PMHNP-BC

Melatonin does not switch sleep on. It is a timed hormone signal that marks biological night, and the same dose can help one night and do nothing the next because timing, not amount, decides what it does.

Part 10 of the Brain Chemistry series. New here? Start with Your Brain Is Not a Gas Tank, the short orientation that explains the four questions every article in this series answers.

What to know

  • Melatonin is a hormone that marks biological night. It is not a knockout drug, and taking more does not make the signal stronger.
  • It acts mainly through two receptors, MT1 and MT2. Where and when they are activated changes what happens.
  • Timing decides the result. A signal given at the wrong point in your body clock’s cycle can fail to help or even shift your clock in the wrong direction.
  • U.S. melatonin supplements are not preapproved for safety and effectiveness the way prescription drugs are. Testing of sampled gummies has found real differences between the label and the contents.
  • Ramelteon and tasimelteon are prescription drugs with specific, different, FDA-approved uses. They are not interchangeable with supplements or with each other.
  • No blood or saliva test can measure melatonin activity in your brain well enough to diagnose a sleep problem or choose a medicine.

The short answer

Melatonin is a hormone made mainly by the pineal gland, a small structure deep in the brain. It is released into the blood at night, under the control of the brain’s master clock. Light reaching the eyes can suppress or shift that release.

Melatonin acts mainly on two receptors, MT1 and MT2. MT1 helps change activity in the master clock itself. MT2 is more closely tied to shifting the clock’s timing. That split is a useful teaching shorthand, not a hard rule, since both receptors show up in several tissues and their effects overlap.

Supplements and two prescription drugs, ramelteon and tasimelteon, all act on this same receptor pair. But they are not the same product. Ramelteon is FDA-approved for adults who have trouble falling asleep.1 Tasimelteon has narrower, specific uses tied to circadian timing problems and one genetic syndrome.2 None of them are interchangeable with each other or with an over-the-counter gummy.

Here is the part worth remembering: more melatonin is not automatically a stronger or better signal. A dose given at the wrong point in your body clock’s cycle can do little, or can nudge the clock in a direction you did not want. Timing is the variable that matters, not milligrams.

There is also a quality problem worth knowing before you buy anything. U.S. melatonin supplements are regulated as dietary supplements, not as drugs, so they are not preapproved for safety and effectiveness before they reach a shelf. When researchers tested sampled U.S. melatonin gummies, they found real mismatches between what the label said and what was actually in the product.5

Melatonin is a timing signal, and timing changes what the same signal does. The two receptors, the products that share them, and why a supplement that helped proves nothing about what was missing. Tap the image to read it full size.
## How melatonin marks biological night

Melatonin starts in the same chemical family as serotonin. Tryptophan, an amino acid, becomes serotonin. Inside cells of the pineal gland, an enzyme called AANAT converts serotonin into an intermediate step, and a second enzyme called ASMT finishes the job, producing melatonin.

That shared starting material can be confusing. Melatonin is not a form of serotonin, and an SSRI does not turn into a melatonin medicine. Sharing a pathway does not make two signals interchangeable.

The brain’s master clock, called the suprachiasmatic nucleus, or SCN, sits in the hypothalamus and receives light information directly from the retina. Through a chain of nerve signals, it tells the pineal gland when to release melatonin. Under ordinary conditions, melatonin stays low during the biological day, rises in the evening, stays elevated through much of biological night, and falls again toward morning.

A useful way to picture it: melatonin works more like a timestamp on a nightly message than a switch that forces sleep. The SCN decides when to send the message. Melatonin then reaches MT1 and MT2 receptors and helps mark biological night or nudge the clock’s timing. But a timestamp does not force sleep by itself. Sleep pressure, light, other brain chemicals, stress, pain, and medications all still matter.

Meet MT1 and MT2

Receptor or targetWhat it does, where it matters, and why you might care
MT1What it does: Usually quiets activity in the brain’s master clock.
Where it matters: The SCN, the retina, and blood vessels.
Why you might care: Helps signal biological night and may support falling asleep, though its exact contribution is still being worked out.
MT2What it does: Cell-specific signaling, often quieting activity.
Where it matters: The SCN, retina, pancreas, and blood vessels.
Why you might care: The receptor most closely tied to shifting the clock’s timing; it also has roles outside the brain that are not fully mapped to sleep.
AANAT and ASMT (synthesis enzymes)What it does: Build melatonin from serotonin, step by step, inside pineal cells.
Where it matters: The pineal gland.
Why you might care: Explains why melatonin rises only at night on its own schedule; no medicine targets these enzymes directly.
CYP1A2 (liver enzyme)What it does: Breaks down melatonin, ramelteon, and tasimelteon in the liver.
Where it matters: The liver.
Why you might care: Fluvoxamine strongly blocks this enzyme, which is why it is contraindicated with ramelteon.

One receptor family does not mean one simple job. MT1 and MT2 sit in the SCN and in tissues far from it, and the outcome depends on which receptor is reached, when, and what the clock was already doing.

Why timing decides everything

This is the central point of this whole article: with melatonin, when matters more than how much.

Scientists describe this with something called a phase-response curve, which maps how a timed signal moves the body clock. Melatonin given at one point in your biological cycle can shift the clock earlier. The same amount given at a different point can shift it later, or barely move it at all. The exact same dose can produce a different result depending on when you take it relative to your own clock.

This is why this article does not give a universal clock-time schedule or a phase-shifting plan. There is no single “take it at 9 p.m.” rule that works for everyone, because the right timing depends on where a person’s internal clock currently sits, not on the time on the wall. A clinician who works with circadian timing can help figure out what fits a specific situation. Guessing at timing on your own is a common way this signal ends up working against you instead of for you.

What each product actually touches

MedicineWhat it does directly, used for, and main tradeoffs
Melatonin (dietary supplement)What it does directly: Activates MT1 and MT2; actual content varies by product.
Used for: Sleep or circadian support, sold over the counter.
Main tradeoffs: Not preapproved for safety and effectiveness like a drug; testing has found label-content mismatches; risk of accidental child ingestion.
Ramelteon (Rozerem)What it does directly: Activates MT1 and MT2.
Used for: Adults with insomnia marked by trouble falling asleep.
Main tradeoffs: Contraindicated with fluvoxamine; rare but serious anaphylaxis or angioedema; sleepiness, complex sleep-related behaviors.
Tasimelteon (Hetlioz), capsuleWhat it does directly: Activates MT1 and MT2.
Used for: Non-24-hour sleep-wake disorder in adults; nighttime sleep disturbance in Smith-Magenis syndrome, age 16 and older.
Main tradeoffs: Sleepiness, liver-enzyme changes, interactions through liver enzymes CYP1A2 and CYP3A4.
Tasimelteon (Hetlioz LQ), oral suspensionWhat it does directly: Activates MT1 and MT2.
Used for: Nighttime sleep disturbance in Smith-Magenis syndrome, ages 3 to 15.
Main tradeoffs: Same drug as the capsule but a different formulation; the two are not substituted for each other.
AgomelatineWhat it does directly: Activates MT1 and MT2, plus blocks a serotonin receptor.
Used for: Used as an antidepressant in some countries outside the United States.
Main tradeoffs: Not FDA-approved in the United States; a workable mechanism does not by itself mean U.S. approval.

Sharing MT1 and MT2 does not make these products interchangeable. A supplement is not the same thing as a sleep-onset drug or a circadian-timing drug, and purity, evidence, and approved use all differ between them.

The supplement quality problem

Over-the-counter access does not mean risk-free. In the United States, melatonin is sold as a dietary supplement, which means it does not go through the same preapproval process for safety and effectiveness that a prescription drug goes through before it reaches a shelf.

That gap has shown up in testing. When researchers assayed a sample of U.S. melatonin gummies, they found real differences between what the label claimed and what the product actually contained.5 A bottle’s label is a starting point, not a guarantee.

There is also a child-safety problem tied to this same product category. National poison-center surveillance found a large rise in reported pediatric melatonin ingestions between 2012 and 2021.6 That rise in reports does not tell you the risk from any single dose or product, but it is a clear signal that these products need the same careful storage as any other medicine, not casual treatment because they are sold next to vitamins.

Ramelteon and tasimelteon are prescription drugs and go through the FDA approval process, but they carry their own specific warnings. Ramelteon is contraindicated in anyone taking fluvoxamine, because fluvoxamine strongly blocks the liver enzyme that breaks ramelteon down, which can raise its levels in the body.1 Ramelteon has also been linked to rare but serious anaphylaxis and angioedema, meaning sudden swelling of the face, tongue, or throat that can affect breathing.1

Can melatonin be measured?

Yes, but the question has to be precise.

Dim-light melatonin onset, or DLMO, uses several saliva or blood samples collected under controlled dim light to estimate when a person’s internal melatonin rise begins.11 Sleep and circadian specialty centers sometimes use it for a specific timing problem. It is not a simple home test. Bright light, late sampling, and the exact assay used can all change the estimate, and one small 2024 trial found no clear advantage to measuring DLMO over using an estimated schedule when both approaches were paired with timed melatonin and behavior changes.12 That does not make DLMO useless. It shows that whether it adds value depends on the specific decision being made.

A urine test for a melatonin breakdown product can help researchers track a rhythm over time, but it is not a direct brain measurement.

A single saliva, blood, or urine sample, taken without any of that careful timing and context, cannot diagnose a psychiatric condition, an insomnia problem, or a treatment need. Genetic testing does not measure a current melatonin level either. It may describe how a person metabolizes certain drugs, which is a different question entirely.

Which symptoms need a call, and which need urgent help

Track and mention at your next visit: mild headache, unusual dreams, dizziness, daytime sleepiness, or a change in sleep timing. Note the product, the dose, the timing, and your light exposure around it.

Call the prescriber or pharmacist promptly: next-day impairment or worse sleep that does not settle, repeated falls, new confusion, or a clear mood or behavior change. If you or someone you know had swelling after taking ramelteon in the past, that needs review with a clinician before any further exposure to the drug.

Call Poison Control at 1-800-222-1222 for an unsupervised child’s ingestion of melatonin, a medication mix-up, an unknown amount taken, or any concerning symptoms after a dose. Do not wait for symptoms to start before calling.

Call 911 now for loss of consciousness, a seizure, severe confusion, trouble breathing, or collapse. After taking ramelteon, swelling of the tongue or throat, a throat that feels like it is closing, or trouble breathing can signal anaphylaxis or angioedema and needs emergency care immediately. For a suicidal or mental health crisis, call or text 988. If danger is immediate, call 911.

Bring your full product list, including supplements, to every visit. This matters even more in pregnancy, breastfeeding, childhood, older age, liver disease, or if you take other sedating medicines, alcohol, or cannabis.

What to ask your prescriber

These are conversation starters, not instructions.

  • Is this mainly a trouble-falling-asleep problem, a circadian-timing problem, or something else?
  • What does the product you’re suggesting bind to directly, and which effects come from that?
  • Is the goal to fall asleep more easily, to shift my sleep timing, or something else?
  • Because timing matters so much here, how should I think about when to take it?
  • Does this interact with fluvoxamine, other sedating medicines, alcohol, or cannabis?
  • Would measuring my melatonin timing actually change the plan, or is that unnecessary here?
  • What should I watch for that would mean I should call before the next visit?
  • What should I do if I miss a dose?

Bottom line

Melatonin is a timed signal, not a sedative, and a response to it does not prove your brain was short on melatonin to begin with. Your brain is not a gas tank that runs low or full on any one chemical, and melatonin is a clear example of why. What decides whether melatonin helps is timing, product quality, and the specific sleep problem at hand, not how many milligrams are on the bottle. Bring the exact product, its timing, and your light exposure to a clinician instead of guessing at a schedule on your own.

Two related signals worth knowing: adenosine builds the sleep pressure melatonin’s timing works alongside, and orexin is the wake signal that some of the same insomnia medicines target from the other direction.

Frequently asked questions

Does trouble falling asleep mean my melatonin is low?

No. Sleep timing, anxiety, pain, breathing problems, restless legs, medications, substance use, depression, and your sleep environment can all affect how easily you fall asleep.

If melatonin works for me, does that prove I was deficient?

No. A timed signal can shift your clock or support sleep onset without replacing something that was actually missing.

Is melatonin the same thing as ramelteon?

No. Both activate MT1 and MT2, but they differ in purity, formulation, evidence, regulation, and approved use.

Why does the same dose help one night and not another?

The result depends on your biological phase at the time and your recent light exposure. Sleep pressure, meal timing, product content, illness, alcohol, cannabis, and other medicines can also change the result.

Are gummies safe just because they are sold over the counter?

Not automatically. Testing of U.S. products has found label mismatches, and pediatric ingestion reports have risen sharply.56 Store them like any other medicine.

Does genetic testing show my melatonin level?

No. A genetic result may describe a metabolic variant related to how you process certain drugs. It does not measure your current melatonin secretion or your circadian timing.

Is tasimelteon the same medicine for adults and children?

It is the same drug in two different forms with different approved uses by age. The capsule covers Non-24 in adults and Smith-Magenis syndrome nighttime sleep disturbance at age 16 and older.2 The oral suspension covers Smith-Magenis syndrome nighttime sleep disturbance in children ages 3 to 15.2 The two forms are not swapped for each other.

References

1. DailyMed. ROZEREM (ramelteon) prescribing information, accessed August 31, 2026. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=9de82310-70e8-47b9-b1fc-6c6848b99455

2. DailyMed. HETLIOZ and HETLIOZ LQ (tasimelteon) prescribing information, revised January 2024, accessed August 31, 2026. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=ca4a9b63-708e-49e9-8f9b-010625443b90

3. Lockley SW, et al. Tasimelteon for non-24-hour sleep-wake disorder in totally blind people. Lancet. 2015. PMID: 26466871

4. Sletten TL, et al. Melatonin with behavioral sleep-wake scheduling for delayed sleep-wake phase disorder. PLoS Medicine. 2018. PMID: 29912983

5. Cohen PA, et al. Quantity of melatonin and CBD in U.S. gummies. JAMA. 2023. PMID: 37097362

6. CDC. Pediatric Melatonin Ingestions, 2012–2021. MMWR. https://www.cdc.gov/mmwr/volumes/71/wr/mm7122a1.htm

7. FDA. Questions and Answers on Dietary Supplements, accessed August 31, 2026. https://www.fda.gov/food/information-consumers-using-dietary-supplements/questions-and-answers-dietary-supplements

8. FDA. Rozerem original approval letter. NDA 021782, approved July 22, 2005. https://www.accessdata.fda.gov/drugsatfda_docs/nda/2005/021782s000_Rozerem_approv.pdf

9. FDA. Hetlioz capsule original approval letter. NDA 205677, approved January 31, 2014. https://www.accessdata.fda.gov/drugsatfda_docs/appletter/2014/205677Orig1s000ltr.pdf

10. FDA. Hetlioz LQ oral suspension approval letter. NDA 214517, approved December 1, 2020. https://www.accessdata.fda.gov/drugsatfda_docs/appletter/2020/214517Orig1s000ltr.pdf

11. Dim-light melatonin onset methods review. PMID: 36180672

12. Small 2024 trial comparing measured versus estimated DLMO timing with behavioral scheduling. PMID: 38445651


This article is general education. It is not a diagnosis or a treatment plan. Do not start, stop, or change a medicine or supplement because of something you read here. Review every prescription, supplement, and substance with your prescriber or pharmacist.

If you or someone you know is in crisis

  • Call 911 or go to your nearest emergency room for any life-threatening emergency.
  • 988 Suicide & Crisis Lifeline — call or text 988, available 24/7. En español: marque 988 y oprima 2. Veterans: 988 and press 1, or text 838255.
  • Crisis Text Line — text HOME to 741741.
  • The Trevor Project (crisis support for LGBTQ+ young people) — call 1-866-488-7386, or text START to 678-678.
  • National Sexual Assault Hotline (RAINN) — call 1-800-656-HOPE (4673) or text HOPE to 64673; free, confidential, 24/7. Online chat at RAINN.org/hotline.
  • National Domestic Violence Hotline — call 1-800-799-SAFE (7233) or text START to 88788; 24/7, help in 200+ languages. Online chat at TheHotline.org. If your phone or computer may be monitored, calling from a safer device is an option.
  • Riverside CountyInland SoCal Crisis Helpline 951-686-HELP (4357), 24/7 (Inland SoCal United Way / 211+, in partnership with RUHS-BH); Community Access, Referral, Evaluation and Support (CARES) Line 800-499-3008, 24/7.
  • San Bernardino CountyAccess Unit (Behavioral Health Helpline) 888-743-1478, 24/7; Mobile Crisis/CCRT 800-398-0018 (24/7, all ages) or text 909-420-0560. Arrowhead Regional Medical Center (ARMC) has a dedicated walk-in adolescent psychiatric ER (ages 13–17).
  • Children under 13 — call 911 for immediate danger, contact your county's mobile crisis team (they respond to all ages), or go to the nearest pediatric emergency room.
  • California Peer-Run Warm Line (non-crisis — someone to talk to) — call or text 1-855-600-WARM (9276); daytime and evening hours, not a 24/7 line.
  • NP Fady (non-emergency) — for routine scheduling or questions, call (909) 707-6261. This line is not monitored for emergencies.