Melatonin Dosage Calculator

How much melatonin should you actually take tonight?

Enter your age, body weight, and sleep goal to get a recommended starting melatonin dose and timing window. The result reflects current general guidance for adults and children — not a prescription.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Melatonin does not knock you out — it signals your brain that darkness has arrived. Think of it as a dimmer switch on your arousal system, not an off button. Your body already produces melatonin naturally, starting about two hours before your habitual sleep time, rising steeply, and fading by morning. Taking a supplement adds to that signal, either reinforcing it when your natural production is low or nudging it earlier or later to shift your sleep window.

The calculation here works in two phases. First, it establishes a base dose from your age and goal: adults get goal-adjusted recommendations, children get a weight-based calculation anchored at 0.05 mg per kilogram with a ceiling of 3 mg, and adults over 65 start at 0.5 mg because their bodies clear the hormone more slowly. Second, it adjusts for your reported sensitivity — if you have previously felt groggy the next day, that is a strong signal your personal threshold is below the standard range.

Timing is calculated from your bedtime minus an offset. For general sleep onset, 60 minutes is the standard window — enough time for the supplement to absorb and begin influencing your central body clock. For jet lag and shift work, 30 minutes is sufficient because those scenarios involve a rhythm shift, not just sedation. The goal of the tool is to give you the lowest effective dose at the right moment, not the highest dose you can tolerate.

When To Use This
Right tool, right situation

This calculator is appropriate when you want to start melatonin and have no guidance from a prescriber, when you are adjusting an existing dose that is not working, when you are calculating a safe starting dose for a child, or when you are preparing for a flight across multiple time zones. It covers the most common use cases accurately.

Do not rely on this tool if you are taking prescription sleep medications, antidepressants with serotonergic activity, blood thinners, or immunosuppressants — melatonin interacts with all of these in ways that require professional review. The tool also does not account for underlying sleep disorders such as sleep apnea, restless leg syndrome, or circadian rhythm disorder, where melatonin is either ineffective or needs specialist dosing.

The result is also less reliable for chronic nightly use. Melatonin is well-supported for short-term use — one to four weeks — but the data on long-term nightly supplementation, particularly for children, is thin. If you find yourself taking melatonin every night for more than a month without improvement, a sleep specialist is more useful than a higher dose.

Common Mistakes
Why results sometimes look wrong

The most common mistake is taking the dose on the pharmacy label rather than the lowest effective dose. Supplement manufacturers sell 5 mg and 10 mg tablets because they are the same price to produce and look more potent. In practice, a 10 mg dose delivers roughly 20 times the physiological signal your body produces on its own at peak — the excess does not improve sleep and leaves a residue that can impair alertness the following morning.

A second mistake is taking melatonin at the wrong time. People who cannot fall asleep often take it the moment they get into bed, which is already past the ideal window. If your goal is 11 PM sleep onset, you need to have taken melatonin by 10 PM — meaning you have to think ahead, not react to sleeplessness. Taking it too late compresses the absorption window and reduces effectiveness.

A third mistake specific to jet lag is using melatonin in the direction that feels natural rather than the direction that corrects the problem. Traveling east requires you to fall asleep earlier than usual at the destination. Taking melatonin at home-time bedtime rather than destination bedtime extends jet lag rather than resolving it. The tool asks for your goal specifically to avoid this — the dose and timing differ meaningfully depending on whether you are drifting or correcting.

The Math
Worked examples and deeper derivation

The dose calculation follows three branches depending on age. For children under 18, the formula is: dose (mg) = body weight (kg) x 0.05, rounded to the nearest 0.25 mg, with a hard ceiling of 3 mg. For adults between 18 and 64, the base dose is set by sleep goal: 0.5 mg for general onset and early waking, 2 mg for jet lag, and 3 mg for shift work — these reflect ranges used in most published studies. For adults 65 and over, the base is always 0.5 mg regardless of goal.

The sensitivity multiplier applies after the base is set. Reported next-day grogginess triggers a 0.5x reduction on the starting dose and a 0.75x cap on the high end of the range, then re-rounds to the nearest 0.25 mg. This is a conservative heuristic, not a pharmacokinetic formula — individual clearance rates vary too much to model precisely from weight alone.

Timing offset subtracts minutes from your bedtime: 60 minutes for sleep onset and early waking, 30 minutes for jet lag and shift work. The output time is computed in 24-hour total-minutes arithmetic and converted back to 12-hour display format. If no bedtime is entered, the tool returns a generic 60-minute instruction instead.

Adult trying melatonin for the first time
Age 31, 160 lbs, goal: fall asleep faster, no prior melatonin use, bedtime 11 PM
Result: 0.5 mg taken at 10:00 PM. Most first-time users take 5-10 mg because that is what pharmacy shelves stock — but research consistently finds 0.5 mg triggers the same response at a fraction of the dose. Starting low lets you confirm efficacy without blunting your body's sensitivity.
Parent calculating dose for a 7-year-old
Age 7, 55 lbs, goal: fall asleep faster, first time, bedtime 8:30 PM
Result: approximately 1.25 mg (weight-based). The calculator flags this as a pediatric estimate and recommends confirming with a pediatrician. Children's melatonin gummies often come in 1 mg or 2.5 mg — choosing the 1 mg option aligns with the low end of the range and is the safer starting point.
Traveler crossing 6 time zones eastward
Age 45, 185 lbs, goal: jet lag recovery, previously felt groggy, bedtime 10 PM destination time
Result: 1.0 mg taken at 9:30 PM destination time (30-minute lead for jet lag). Jet lag dosing is about timing more than dose — taking melatonin at the destination bedtime resets your internal clock faster than just trying to sleep. Sensitive users dropping to 1 mg often find they feel sharper the next morning without losing the phase-shifting benefit.
Expert Unlock
The thing most explanations skip

The weight-based pediatric formula used here (0.05 mg/kg) assumes linear dose-response scaling, which holds reasonably well between 20 and 80 lbs but likely breaks down at the extremes. Very small children have immature hepatic clearance, meaning even a low dose may persist longer than the formula suggests. The 3 mg ceiling is a practical guard, not a pharmacologically derived maximum — it reflects the highest dose used in pediatric studies, not a toxicity threshold. For shift-work dosing in adults, the real variable the formula cannot capture is your current circadian phase — the same 3 mg dose taken six hours apart produces opposite phase-shifting effects depending on where you are in your body clock cycle.

What dose of melatonin should I actually start with?

Is 10 mg of melatonin too much?
For most adults, 10 mg is far above what is needed to trigger sleep onset. General guidance places the effective range for sleep onset between 0.5 mg and 3 mg — higher doses increase the risk of next-day grogginess, vivid dreams, and headaches without improving sleep quality. Pharmacy shelves stock 5-10 mg doses because they are popular, not because they are optimal.
How long before bed should I take melatonin?
Take melatonin 30 to 60 minutes before your target sleep time. General sleep onset works best with a 60-minute window; jet lag and shift-work adjustments can use 30 minutes. Taking it too early — more than 90 minutes before bed — can shift your rhythm in an unintended direction.
Can children take melatonin, and what is the right dose for kids?
Children can take melatonin for short-term sleep issues, but dosing should be weight-based and kept low. A general starting point is 0.05 mg per kilogram of body weight, with a ceiling of 3 mg regardless of size. Children under 3 should not take melatonin without direct medical supervision. Long-term nightly use in children is not well studied.

Need something this doesn't cover?

Suggest a tool — we'll build it →