Sleep calculator: what time should I go to bed?

Tell it when you need to wake up. It works out when to be in bed, when to start winding down and your last coffee of the day, and shows what weekend lie-ins do to your body clock.

How to use it

  1. Enter the time you need to wake up, or the time you’re going to bed
  2. Pick your age group and how long you usually take to fall asleep
  3. See your bedtime, when to wind down and your last coffee; add your weekend wake-up to check your rhythm

How much sleep you need

Sleep needs change with age. These are the ranges sleep experts recommend, from the American Academy of Sleep Medicine and the National Sleep Foundation. Most adults do best on 7 to 9 hours, and a few people are fine a little outside the range.

AgeSleep a night
6 to 129 to 12 hours
13 to 178 to 10 hours
18 to 647 to 9 hours
65 and over7 to 8 hours

Bedtimes for common wake-up times

For an adult aiming for 8 hours who takes about 15 minutes to fall asleep. The calculator changes these for your age and how long you take to drop off.

Wake up atIn bed byStart winding down
5:30 AM9:15 PM8:15 PM
6:00 AM9:45 PM8:45 PM
6:30 AM10:15 PM9:15 PM
7:00 AM10:45 PM9:45 PM
7:30 AM11:15 PM10:15 PM
8:00 AM11:45 PM10:45 PM

A worked example

Maria needs to be up at 6:30 for work. She feels best on about eight hours, and it usually takes her twenty minutes to fall asleep. So she needs to be in bed by 10:10 PM.

Her wind-down starts an hour earlier, at 9:10: phone on the charger, main lights off, a warm shower and a book. Her last coffee is at about 1:10 PM, because caffeine is still working hours later.

What about sleep cycles?

You may have read that sleep comes in 90-minute cycles, so you should time your alarm to the end of one. There is something to it: waking from deep sleep feels worse than waking from light sleep. But real cycles vary from about 70 to 120 minutes, from person to person and through the night, so no calculator can time them exactly.

The calculator shows cycle-based times as a guide. What matters far more is getting enough sleep, at about the same times every day.

Your last coffee

Caffeine stays in the body for hours: about half of it is still there five to six hours later. A 2023 review of studies found that coffee should be stopped about 8 to 9 hours before bed to avoid losing sleep. If you’re in bed at 10:30, that means a last coffee around 2 PM. Tea, cola, energy drinks and dark chocolate count too.

Alcohol is worth a thought as well. It can help you drop off, but it breaks up sleep later in the night. Finishing it about three hours before bed helps.

Weekend lie-ins and your body clock

Sleeping in two or three hours on weekends shifts your body clock, a bit like flying across time zones every Friday and back every Monday. Researcher Till Roenneberg calls it social jet lag. It is part of why Monday mornings feel so hard.

Try to keep weekend wake-ups within about an hour of weekdays. If you need to catch up, an earlier night works better than a late morning. For more, read how to fall asleep faster.

Questions people ask

What time should I go to bed if I wake up at 6 AM?

For 8 hours of sleep, be asleep by 10 PM, so in bed by about 9:45 if you take 15 minutes to fall asleep. For 7 hours, in bed by about 10:45.

Is 6 hours of sleep enough?

For most adults, no. A few people do well on less, but studies find that regularly sleeping under 7 hours is linked with poorer mood, focus and health. If you feel fine on 6 hours, it’s often because you’ve got used to feeling tired.

Does it matter what time I go to sleep if I get 8 hours?

Yes, somewhat. Sleep at regular times, roughly in step with daylight, tends to be better quality. Going to bed and getting up at about the same time every day matters more than any exact hour.

How long should it take to fall asleep?

Usually 10 to 20 minutes. Falling asleep the moment your head touches the pillow can mean you’re short of sleep. Lying awake for more than half an hour most nights is worth a look; our guide on falling asleep faster has ideas.

When should I see a doctor about sleep?

If you snore loudly, stop breathing or gasp in your sleep, or feel very sleepy in the day despite enough hours, ask a doctor about sleep apnea. Trouble sleeping at least three nights a week for three months is also worth raising: insomnia can be treated well, often without pills.

Is this medical advice?

No. It is general information based on public sleep guidelines. For your own health, talk to a doctor.

Guides that go with it

More free tools