Short answer: Fix your wake-up time first and move it earlier gradually, by no more than about an hour a day. Get daylight soon after waking, keep evenings dim, and don't sleep in at weekends. Your body clock shifts later easily but earlier only slowly, so a messed-up schedule takes days to fix, not one night. Skip the all-nighter: there is no evidence it resets anything.
This article summarises research for general information. It is not medical advice.
Why it takes days, not one night
Your sleep timing follows a body clock, and that clock moves more easily later than earlier. Studies of travellers found people naturally adjusted by about 92 minutes a day after flying west (shifting later) but only about 57 minutes a day after flying east (shifting earlier). Even with well-timed light, sleep researchers plan for about 1.5 hours a day earlier at most, and they advise moving a schedule earlier by no more than 1 hour a day. That is why going to bed three hours early tonight usually ends in lying awake.
Step 1: Anchor your wake time
Pick the time you need to get up and keep it every day, including weekends. Wake time alone moves the clock: in 14 adults, two weeks of waking 3 hours later shifted their evening melatonin rise 2.4 hours later, mostly because of the morning light that comes with waking. The NHS's advice for sleep problems starts the same way: get up at the same time every day and don't sleep in after a bad night.
If your current wake time is far from your goal, move it earlier in steps of up to an hour a day, and let your bedtime follow as you get sleepy earlier. Our sleep calculator can help you plan bedtimes for a given wake time.
Step 2: Get bright light in the morning
Light shifts the clock in opposite directions depending on when you get it. In a lab study of 21 adults, bright light late in the night and in the morning moved the clock earlier by up to 2 hours, while light earlier in the night moved it later by up to 3.6 hours. Morning light is your main tool for moving earlier.
It does not take long. In 50 adults moving their schedule earlier, a single 30-minute session of bright light after waking produced about 75% of the shift from 2 hours of bright light. The researchers recommend going outside into daylight rather than using a lamp, as early after waking as you can.
Step 3: Keep evenings dim
Ordinary room light matters at night. In a lab study of 23 adults, about 100 lux, typical dim room lighting, produced roughly half the clock delay of very bright light and cut melatonin by about half. Reading on a light-emitting e-reader before bed delayed the clock and made people sleepier the next morning compared with a printed book. Dim the lights and screens in the last hours before bed. See whether blue light affects sleep.
Step 4: Don't undo it at the weekend
Sleeping in pushes the clock back. In teenagers aged 15–17, a typical weekend of going to bed 1.5 hours later and getting up 3 hours later delayed their evening melatonin rise by about 45 minutes between Friday and Sunday, even with morning light. In a lab study of young adults, weekend catch-up sleep did not prevent the body clock delay or the drop in insulin sensitivity when short weekday nights resumed. Read can you catch up on sleep?
Step 5: Time caffeine and exercise
- Caffeine: in a small study of 5 adults, a double espresso's worth of caffeine 3 hours before bed delayed the body clock by about 40 minutes. See how late you can drink coffee.
- Exercise: in 99 adults, exercise at 7 am or in the early afternoon moved the clock earlier, while exercise between 7 pm and 10 pm moved it later. A meta-analysis of 23 studies found evening exercise does not generally harm sleep, except possibly vigorous exercise ending within an hour of bedtime.
What about melatonin?
Melatonin acts mainly as a timing signal, not a sleeping pill. In studies, it shifted the clock most when taken in the afternoon or early evening, several hours before the body's own melatonin rises, and a low dose of 0.5 mg worked as well as 3 mg when timed correctly. Taken at the wrong time, it can push the clock later. The evidence is limited: the American Academy of Sleep Medicine gives only a weak recommendation for timed melatonin in adults with delayed sleep-wake phase disorder. Supplements are also unreliable: in a test of 31 products, actual content ranged from 83% below to 478% above the label. In the UK melatonin is prescription-only. Talk to a doctor or pharmacist before using it.
Why an all-nighter is a bad idea
No study shows that staying up all night resets your schedule. Light during the night can push the clock later, and after 17–19 hours without sleep, performance on some tests was as poor as at a blood alcohol level of 0.05%. You end up exhausted, with a body clock that may have moved the wrong way.
When it may be a sleep disorder
If you sleep normally when you can choose your hours but can never fall asleep or wake as early as you need to, it may be delayed sleep-wake phase disorder. It is the most common body-clock disorder, estimated at around 1% of adults and 3.3% of teenagers. The NIH says symptoms lasting 3 months or more may point to a circadian rhythm disorder. The NHS advises seeing a GP if changing your habits has not helped, if trouble sleeping has lasted months, or if it is making daily life hard to cope with.
Make the wake time stick
Everything in this plan starts with getting up at the same time, especially on the first days when you feel groggy. MathWake is an iPhone alarm that keeps ringing until you finish a short mission, like a math problem, so you can't switch it off and drift back to sleep. Its sleep tracker also shows how your bedtimes and wake times line up over the week. See also how to wake up early.
Keep your new wake time
MathWake rings even on silent and only stops after you solve a quick mission, so the plan survives the groggy first mornings.
Download MathWake for iPhoneFrequently asked questions
How long does it take to fix a sleep schedule?
Usually several days to a couple of weeks. The body clock shifts earlier slowly, and researchers advise moving a schedule earlier by no more than about an hour a day.
Should I pull an all-nighter to reset my sleep schedule?
No. There is no evidence it works, light during the night can push your clock later, and 17–19 hours without sleep impairs performance about as much as a 0.05% blood alcohol level.
What is the fastest way to fix a sleep schedule?
Keep a fixed wake time every day, get bright daylight soon after waking, keep evenings dim and avoid sleeping in at the weekend. Morning light is the strongest tool for moving earlier.
Does melatonin help fix a sleep schedule?
It can shift the body clock when taken several hours before bedtime, but the evidence is limited and supplement doses are unreliable. In the UK it is prescription-only. Ask a doctor or pharmacist first.