All articles
Supplements & nutraceuticals
11 min readUpdated 17 September 2026

Melatonin for Sleep: Does It Work? Sleep Hygiene and Other Options

What melatonin is, when it may help, how timing, dose and formulation matter, the Australian rules on buying it, and the sleep hygiene and other insomnia options to consider first.

Reviewed by Bryan Sim, B.Pharm, MPS, Compounding Pharmacist

If you have trouble falling asleep, staying asleep or waking feeling refreshed, you are not alone. Sleep problems are common, and there are many possible causes — from stress and irregular sleep schedules to caffeine, medications, medical conditions and sleep disorders.

One of the most commonly searched options for sleep is melatonin. But what is melatonin, does melatonin actually help you sleep, and what other options are available?

In this guide, we look at sleep hygiene, melatonin for sleep and other approaches to insomnia.

What is melatonin?

Melatonin is a hormone naturally produced by the body that plays an important role in regulating your sleep-wake cycle, also known as your circadian rhythm.

Melatonin levels normally increase in the evening as it becomes dark, helping signal to the body that it is approaching time for sleep. Levels then fall again towards the morning.

Artificial light, irregular sleep schedules, shift work, jet lag and exposure to bright screens late at night can all influence the body's normal sleep-wake rhythm.

Melatonin medicines contain a manufactured form of this hormone and may be used in certain circumstances to help regulate sleep timing.

Does melatonin help you sleep?

Melatonin is not quite the same as a traditional sleeping tablet.

Rather than simply "knocking you out", melatonin primarily acts on the body's internal clock. This means it may be more useful in some sleep problems than others.

Depending on the individual and the reason for their sleep difficulty, melatonin may be considered for problems involving sleep timing, jet lag or certain forms of insomnia.

However, difficulty sleeping can have many different causes. If someone is regularly waking because of pain, obstructive sleep apnoea, restless legs, anxiety, alcohol use or another underlying condition, simply taking melatonin may not address the underlying problem.

Healthdirect recommends discussing persistent sleep problems with a healthcare professional so the cause can be assessed.

How long does melatonin take to work?

One of the most common questions about melatonin is when to take it before bed.

The answer depends on why it is being used and the type of formulation. Immediate-release and modified-release formulations behave differently, and timing can also be important when melatonin is being used to shift the body's circadian rhythm.

For this reason, there isn't one timing or dose that is appropriate for everybody.

Healthdirect notes that melatonin may be taken before the intended bedtime, but the appropriate timing should be based on the reason it is being used and the advice supplied with the medicine or by a healthcare professional.

How much melatonin should I take?

There is no universal "best dose of melatonin for sleep".

The appropriate dose can depend on factors including:

  • the reason melatonin is being used
  • age
  • other medical conditions
  • other medicines being taken
  • whether an immediate-release or modified-release preparation is being used
  • the desired effect on sleep timing.

Importantly, more melatonin does not necessarily mean better sleep.

Taking an unnecessarily high dose may increase the chance of unwanted effects without providing additional benefit. A doctor or pharmacist can advise on an appropriate product, dose and timing for an individual's circumstances.

Immediate-release vs modified-release melatonin

Not all melatonin formulations are the same.

Immediate-release melatonin is designed to release melatonin relatively quickly after administration. Depending on the clinical situation, this may be considered when the main issue relates to falling asleep or adjusting sleep timing.

Modified-release or prolonged-release melatonin releases melatonin more gradually over several hours. This is intended to more closely reproduce the body's natural overnight melatonin profile.

Which formulation is appropriate depends on the person's sleep problem and should be discussed with their healthcare professional.

Can you buy melatonin over the counter in Australia?

Melatonin is regulated differently in Australia than in some overseas countries.

As of 2026, certain melatonin products can be supplied as pharmacist-only medicines in specific circumstances. These include certain modified-release products containing 2 mg or less for short-term primary insomnia in adults aged 55 years and older, and certain immediate-release products containing 5 mg or less for jet lag in adults.

Other melatonin products are prescription-only medicines.

This is one reason Australian consumers should be cautious when comparing local melatonin products with melatonin gummies and supplements advertised on overseas websites.

What about melatonin gummies bought online?

Melatonin gummies are widely advertised internationally, particularly through overseas websites and social media.

However, products purchased from overseas are not necessarily equivalent to medicines supplied through Australian pharmacies.

The Therapeutic Goods Administration has warned Australians about purchasing unapproved melatonin products online. Testing of imported products has identified concerns around whether the actual melatonin content matches the amount stated on the label.

For this reason, medicines should be obtained from reputable Australian sources and used with appropriate healthcare advice.

Can children take melatonin?

Sleep problems in children should be assessed differently from sleep problems in adults.

Although melatonin is prescribed for children in particular clinical circumstances, parents should not assume that an overseas melatonin gummy or supplement is suitable simply because it is marketed for children.

The TGA specifically advises against giving children melatonin products purchased from unverified overseas websites and recommends seeking medical advice for children experiencing persistent sleep problems.

Before melatonin: start with sleep hygiene

Whether or not medication is required, improving sleep hygiene is an important part of managing many sleep problems.

Sleep hygiene refers to the behaviours and environmental factors that promote consistent, good-quality sleep.

1. Keep your wake-up time consistent

Getting up at approximately the same time every day helps anchor your body's internal clock.

Sleeping several hours later on weekends can make falling asleep on Sunday night more difficult and can contribute to an irregular sleep rhythm.

2. Get daylight in the morning

Light is one of the strongest signals controlling circadian rhythm.

Getting outside and exposing your eyes to natural daylight during the morning helps tell your body that the day has begun and can support a more consistent sleep-wake cycle.

3. Dim the lights at night

Your evening environment should provide the opposite signal.

Reducing bright lighting and screen exposure as bedtime approaches can help support the body's natural transition towards sleep.

Healthdirect recommends developing a wind-down routine, dimming lights and reducing device use before bedtime.

4. Watch your caffeine intake

Coffee isn't the only source of caffeine.

Tea, energy drinks, pre-workout supplements, cola and even chocolate can contribute.

Caffeine can remain in the body for many hours, so someone who is particularly sensitive to caffeine may find that an afternoon coffee still affects their sleep that night.

5. Don't rely on alcohol to fall asleep

Alcohol can initially cause drowsiness, but that does not necessarily translate into good-quality sleep.

It can contribute to disrupted sleep later in the night and may worsen some sleep disorders.

6. Create a proper wind-down period

Going directly from work, gaming, social media or television to bed may make it harder to mentally switch off.

Try creating a predictable 30–60 minute routine before sleep.

That could include:

  • having a shower
  • reading
  • listening to quiet music
  • stretching
  • preparing for the following day
  • dimming the lights.

Over time, repeating the same routine can help create an association between these activities and sleep.

7. Keep your bedroom cool, dark and quiet

Your sleep environment matters.

Blackout blinds, comfortable bedding, reducing unwanted noise and keeping the bedroom at a comfortable temperature can all make sleep easier.

Healthdirect recommends a bedroom that is dark, quiet and comfortable.

8. Don't stay in bed fighting sleep

If you have been lying awake for a long period becoming increasingly frustrated, remaining in bed can sometimes reinforce the association between bed and being awake.

A commonly recommended behavioural strategy is to leave the bed temporarily, do something quiet in dim lighting, and return when you begin feeling sleepy again.

What if sleep hygiene isn't enough?

Sleep hygiene is important, but chronic insomnia is not always simply the result of "bad sleep habits".

If insomnia persists, additional treatment may be appropriate.

Cognitive behavioural therapy for insomnia

Cognitive behavioural therapy for insomnia, usually called CBT-I, is a structured treatment specifically designed for insomnia.

Rather than simply providing general sleep tips, CBT-I works on the behaviours and thought patterns that can perpetuate insomnia.

Techniques may include:

  • stimulus control
  • sleep scheduling or sleep restriction
  • relaxation strategies
  • addressing anxiety surrounding sleep
  • changing unhelpful beliefs about sleep.

CBT-based treatment is recommended as an important treatment option for persistent insomnia.

Melatonin

Melatonin may be appropriate for some people depending on their age, sleep pattern and reason for having difficulty sleeping.

It should not automatically be considered the answer to every type of insomnia, and the dose, timing and formulation can all matter.

Other sleeping medicines

There are also prescription medicines that doctors may use for insomnia in selected situations.

Different medicines work in different ways, and each has potential benefits, side effects and interactions. Some sleep medicines can also lead to tolerance, dependence, next-day drowsiness or impaired coordination.

They are therefore generally used after considering the underlying cause of the sleep problem and the individual's overall health and medication history.

Herbal and complementary sleep products

Products containing ingredients such as valerian, passionflower, lavender or chamomile are also commonly marketed for sleep.

The evidence supporting many complementary sleep products is mixed, and "natural" does not automatically mean free from side effects or medicine interactions.

Healthdirect recommends checking with a doctor or pharmacist before combining herbal sleep products with other medicines.

Why am I still tired even though I sleep for eight hours?

The number of hours you spend in bed is only part of the picture.

Persistent tiredness despite apparently adequate sleep may warrant further investigation.

Possible contributors include:

  • obstructive sleep apnoea
  • restless legs syndrome
  • frequent nighttime waking
  • an irregular circadian rhythm
  • alcohol
  • medicines
  • pain
  • stress or anxiety
  • other medical conditions.

This is particularly important if you snore heavily, wake gasping or choking, experience significant daytime sleepiness, or regularly struggle to stay awake while driving.

When should you see a doctor about poor sleep?

Consider speaking with a healthcare professional if:

  • insomnia continues for several weeks
  • your sleep problem is affecting work or daily functioning
  • you regularly feel excessively sleepy during the day
  • you snore heavily or stop breathing during sleep
  • you have persistent restless or uncomfortable legs at night
  • your sleep problem began after starting a medicine
  • you are regularly relying on medication or alcohol to sleep
  • you are considering melatonin for a child.

Finding the reason for the sleep problem is often more useful than simply trying increasingly strong sleep products.

Melatonin and sleep: the bottom line

Melatonin plays an important role in controlling the body's natural sleep-wake cycle, and melatonin medicines can be useful in selected circumstances.

However, good sleep usually starts with the fundamentals: a consistent sleep schedule, morning daylight, reduced evening light, appropriate caffeine use, regular exercise and a suitable sleeping environment.

For persistent insomnia, treatments such as CBT-I and medical assessment may be more important than simply adding a sleep supplement.

And if you are considering melatonin, remember that dose, timing and formulation all matter. Speak with your doctor or pharmacist about whether melatonin is appropriate for you rather than assuming that a higher dose or an overseas product will provide better sleep.

This article provides general educational information and is not a substitute for individual medical advice. Medicines should be used according to the advice of an appropriately qualified healthcare professional.

Frequently asked questions

Does melatonin help you sleep?

Melatonin acts on the body's internal clock rather than sedating you, so it may help with sleep timing, jet lag and certain forms of insomnia, but it may not fix sleep problems caused by pain, sleep apnoea, anxiety or other underlying conditions.

How much melatonin should I take?

There is no universal dose. It depends on why it is being used, age, other conditions and medicines, and whether an immediate-release or modified-release product is used. More is not necessarily better; a doctor or pharmacist can advise.

Can you buy melatonin over the counter in Australia?

As of 2026, certain modified-release products of 2 mg or less can be supplied by a pharmacist for short-term insomnia in adults aged 55 and over, and certain immediate-release products of 5 mg or less for jet lag in adults. Other melatonin products are prescription-only.

Are melatonin gummies from overseas websites safe?

The TGA has warned against buying unapproved melatonin products online. Testing of imported products has found the melatonin content may not match the label. Obtain medicines from reputable Australian sources.

Ready to talk to a compounding pharmacist?

Upload your prescription, or build a personalised supplement — every request is reviewed by a registered pharmacist before anything is made, and you only pay once it’s approved.

This article is general information and does not replace advice from your doctor or pharmacist about your individual circumstances.

Keep reading