Melatonin Timing Calculator
Find your ideal melatonin dose and when to take it based on your weight, age, and sleep issue. Useful for shift workers, older adults, and anyone struggling to reset their sleep schedule.
Last updated: September 2026
Formula below · 1 source (Wikipedia) · Updated Sep 2026
Compare with similar
About this calculator
Melatonin is a hormone your brain naturally releases as darkness approaches, signaling that it's time to sleep. Supplemental melatonin can help shift your sleep timing or compensate for reduced natural production. This calculator gives a conservative starting dose: dose (mg) = clamp(0.5–5, bodyWeight / 70 + (shift work ? 2 : 0)), rounded to 0.1 mg. Melatonin dosing is not standardised and is not truly weight-based; studies show low doses (0.5–1 mg) are often as effective as higher ones for timing effects, and higher doses mainly add next-day grogginess. Older adults clear melatonin more slowly, so the calculator does not raise the dose with age; in Europe the licensed product for adults 55+ is 2 mg prolonged-release. Shift workers receive an additional 2 mg before their daytime sleep. The result is capped at 5 mg; start low, and talk to a doctor or pharmacist before using melatonin regularly, if you are pregnant, take other medicines (especially blood thinners, sedatives or diabetes medicines), or for children. Timing matters as much as dose — for sleep onset, take it 30–60 minutes before your target bedtime.
How to use
Example: A 35-year-old weighing 84 kg with jet lag (not shift work) wants to move bedtime earlier. Step 1 — base dose: 84 / 70 = 1.2 mg. Step 2 — shift-work adjustment: not applicable, so add 0. Step 3 — limits: 1.2 is between 0.5 and 5, so the suggested starting dose is 1.2 mg. Step 4 — timing: take it about 30–60 minutes before your target bedtime. A 70 kg shift worker gets 1 + 2 = 3 mg before daytime sleep. A 60-year-old weighing 70 kg gets 1 mg — older adults should not start higher.
Frequently asked questions
How long before bed should I take melatonin for it to be effective?
Melatonin typically takes 30 to 60 minutes to reach peak concentration in the blood, so taking it roughly 30–60 minutes before your target bedtime is ideal. Taking it too early can cause drowsiness at the wrong time, while taking it too late reduces its circadian-shifting effect. For gradually shifting a delayed sleep schedule, some research suggests taking it even earlier — up to 5–6 hours before desired sleep onset — at a very low dose (0.5 mg). Always start with the lowest effective dose and adjust based on your response.
What melatonin dose is safe for adults over 55?
Adults over 55 naturally produce significantly less melatonin, which is one reason sleep problems become more common with age. Research suggests that older adults may benefit from slightly higher doses, typically in the 1–3 mg range, compared to the 0.5–1 mg that is often sufficient for younger adults. This calculator reflects that by applying a 3× age multiplier for users over 55. However, even for older adults, it is advisable to start low (0.5–1 mg) and increase only if needed, as higher doses can cause next-day grogginess.
Does melatonin work differently for shift workers than for regular sleepers?
Yes — shift workers face ongoing circadian misalignment because their required sleep times conflict with their body's natural light-dark cycle. Melatonin can help signal sleep at unconventional hours, but shift workers generally need a somewhat higher dose and careful timing relative to their specific shift rotation. This calculator adds 2 mg for shift workers to account for stronger circadian resistance. Consistency is critical: taking melatonin at the same clock time each day you need to sleep helps re-anchor your internal clock more effectively than sporadic use.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.