By Hermina Drah

Updated: 16 April 2024 & medically reviewed by Dr. David Miles

Melatonin, a hormone naturally present in the body, regulates sleep patterns, but supplementation of it can also help in treating chronic pain, irregular menstrual cycles, and depression. With age, melatonin levels can drop and light exposure at night blocks the production of melatonin in the brain, leading to irregular sleep patterns.

Melatonin dietary supplements can help increase sleep quality and regulate circadian rhythms. Here is everything you need to know about melatonin, including the safety precautions.

Melatonin: What is it and how does it affect sleep?

What is Melatonin?

Melatonin, a hormone created by the brain's pineal gland (a tiny, pea-sized gland crucial to the human endocrine system) plays a critical part in sleep regulation and other bodily functions. Namely, it helps manage the 24-hour internal clock or the timing of circadian rhythms. When exposed to darkness, melatonin levels naturally rise, facilitating sleep. 

On the flip side, during daylight, melatonin levels decrease to promote wakefulness.

Beyond light exposure during the night, there are a few things that can decrease natural melatonin levels.

  • Advanced age: Melatonin production declines as you age, making it difficult to fall asleep naturally for older individuals.[6]

  • Jet lag and shift work: Travelers and flight crew can experience disruption in natural circadian rhythms, leading to a fall in melatonin production.[6]

  • Alcohol and caffeine consumption: If you drink coffee or alcohol during the evening, you might find falling asleep more challenging. That's because caffeine and alcohol reduce melatonin production and affect dopamine production.[2] 

If you suffer from poor melatonin production or struggle to sleep naturally, melatonin supplements may prove a useful alternative to other sleeping aids such as benzodiazepines or sleeping pills.

How Does Melatonin Work?

Over-the-counter melatonin works by adding to the natural melatonin your brain is already producing. Melatonin supplements are lab-created, and they're usually available as oral capsules or tablets.

Melatonin tablets or capsules don’t directly induce sleep. Instead, it supplements the body’s naturally occurring melatonin which increases in the evening. Supplementation is used to support sleep quality for people dealing with jet lag and irregular sleep schedules due to school, work, or other sleep problems and insomnia.[1]

Melatonin is effective for some conditions such as disruptions of the circadian rhythm in the blind. This is because blind individuals are unable to perceive light, and therefore cannot distinguish night and day. Naturally, this leads to the disruption of melatonin cycles and disturbances in circadian rhythms. [3]

Natural melatonin supplements can also regulate menstrual cycles. Based on the findings of a study dealing with PMS and PMDD-related symptoms and melatonin, the hormone restores reproductive hormone balance, and stage-2 sleep, and reduces anxiety and depressive mood.[10]

When Should I Take Melatonin?

The perfect time to take melatonin supplements depends on your needs and goals.

It is generally recommended to take melatonin one to two hours before bedtime. This timing allows your body enough time to absorb the supplement, ensuring it works effectively. The normal adult dosage of melatonin is between 1 to 5 mg, depending on individual needs. Most melatonin supplements take effect in around 20 to 40 minutes post-ingestion.[8]

Is Melatonin Safe?

Yes, melatonin supplements are generally safe. However, adhering to the proper dosages and usage guidelines is important.

When Should I Not Take Melatonin?

Keep in mind that melatonin supplements aren't suitable for everyone. 

  • People with allergic reactions to melatonin supplements: Melatonin is not recommended for people who have previously experienced allergic reactions to the medication.

  • People with autoimmune conditions: Patients with lupus, multiple sclerosis (MS), and rheumatoid arthritis mustn't take melatonin supplements.[7] 

Melatonin can interact with certain prescription medications, including those for preventing seizures, managing diabetes, and controlling blood pressure.

  • Possibly unsafe for pregnant and breastfeeding women: While Johns Hopkins Medicine advises against melatonin supplement use for pregnant or breastfeeding women, a 2022 study found that melatonin supplements caused no harm to the baby. [9]

Talk to a doctor before using melatonin to determine whether these supplements are a good choice for you.

Side Effects of Melatonin

Some individuals might experience side effects of melatonin supplements such as; 

  • Drowsiness

  • Dizziness

  • Nausea

  • Headaches

In rare cases, people taking melatonin may experience severe side effects, including;

  • Mild tremors

  • Depression

  • Confusion

Melatonin FAQs

Is Melatonin Safe to Give to Children?

Yes, evidence shows that when used correctly with the appropriate dose for age and medical expert approval and guidance, melatonin supplements are safe for children. [4]

However, children younger than three should not take melatonin supplements for sleep problems.

Do I Need a Prescription for Melatonin?

In the United States, you can buy melatonin over the counter as a dietary supplement. In other countries, melatonin is labeled as a drug and you can only get it with a prescription.