Sleep Calculator

Find bedtimes and wake-up times that line up with your sleep cycles.

Sleep Calculator tool

I want to
minutes
minutes
—
Best times (5 or 6 cycles)
—
Sleep you will get

About the Sleep Calculator

Waking at the end of a sleep cycle tends to feel easier than being woken from deep sleep. This sleep calculator counts back whole cycles of about 90 minutes, plus around 15 minutes to fall asleep, from the time you need to wake up: for a 6:00 alarm, good bedtimes are 22:15 for five cycles or 20:45 for six. It works forwards from a bedtime too. Cycle lengths vary between people, so treat the times as a guide.

Sleep runs in cycles of light sleep, deep sleep and REM sleep that last roughly 90 minutes on average (individual cycles range from about 70 to 120 minutes). The calculator works backward from your wake time by multiples of 90 minutes, then subtracts the minutes you take to fall asleep: bedtime = wake time − cycles × 90 minutes − time to fall asleep. Five or six cycles, 7.5 to 9 hours, suit most adults.

Example: to wake at 7:00 AM and allowing 15 minutes to fall asleep, the best bedtimes are 9:45 PM (six cycles, 9 hours of sleep), 11:15 PM (five cycles, 7.5 hours), 12:45 AM (four cycles, 6 hours) or 2:15 AM (three cycles, 4.5 hours). Adults are generally advised to get 7 to 9 hours, so the first two are the ones to aim for.

Cycle length varies between people and through the night, so treat the times as a guide, and see a doctor about persistent insomnia, snoring with pauses in breathing, or daytime sleepiness; this is not medical advice. Plan a fasting schedule around sleep with the intermittent fasting calculator, add up time with the time calculator, and convert clock formats with the military time converter.

How to use the Sleep Calculator

  1. Choose what you knowPick I need to wake up at, or I am going to bed at.
  2. Enter the timeSet your wake-up time or your bedtime.
  3. Set how long you take to fall asleep15 minutes is typical; adjust if you know yours.
  4. Pick a timeChoose one of the suggested times, ideally with five or six cycles.

Sleep Calculator features

  • Bedtimes for a set wake-up time
  • Wake-up times for a set bedtime
  • Based on 90-minute sleep cycles
  • Adjustable time to fall asleep
  • Shows hours of sleep and number of cycles
  • 12-hour and 24-hour clock times
  • Works offline in your browser

Common uses

  • Planning bedtime before an early start
  • Setting an alarm after a late night
  • Adjusting to a new school or work schedule
  • Planning naps of one or two cycles
  • Reducing morning grogginess

Sleep in practice: early starts, naps, light and caffeine, heat and when to see a doctor

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Sleep affects mood, concentration, appetite, immunity and long-term health, yet it is often the first thing cut when life is busy. Timing bedtimes around sleep cycles can help you wake more easily, but habits during the day and the bedroom environment matter just as much. This guide works through an early wake-up for Fajr, covers naps, light, caffeine, heat and Ramadan, gives sleep needs by age and lists signs that need a doctor's attention.

A worked example: waking for Fajr

Someone who needs to wake at 5:15 am for Fajr in winter, and wants five full sleep cycles of about 90 minutes, needs 7.5 hours of sleep. Counting back from 5:15 gives 9:45 pm, and allowing about 15 minutes to fall asleep suggests going to bed around 9:30 pm. In summer, when Fajr is much earlier, many people split their sleep, adding a short nap in the afternoon to make up the total.

Naps and qailulah

A short midday nap, known in many Muslim households as qailulah, is a long tradition in hot climates. Naps of about 10 to 20 minutes improve alertness without leaving you groggy, while longer naps may lead to deep sleep and grogginess on waking. Napping late in the afternoon can make it harder to fall asleep at night.

Light and screens

Light is the strongest signal for the body clock. Bright light in the morning helps you feel alert and sleep better at night, while bright screens and lights late in the evening can delay sleepiness. Dimming lights an hour before bed and keeping phones out of reach at night help many people fall asleep faster.

Caffeine

Caffeine has a half-life of about five hours in many adults, so half of the caffeine from an afternoon cup of tea or coffee may still be in your body at bedtime. People sensitive to caffeine often sleep better if they avoid it after early afternoon. Energy drinks and some soft drinks contain caffeine too.

Heat and power cuts

Hot nights make sleep lighter and more broken, and power cuts can stop fans and air conditioning. Keeping the bedroom shaded during the day, using a fan on a UPS, sleeping in light cotton and taking a lukewarm shower before bed can help. Staying hydrated during the evening also reduces night-time discomfort.

Sleep in Ramadan

Waking for suhoor splits the night's sleep, and late iftar meals and evening prayers can shorten it further. Going to bed soon after Isha and Taraweeh where possible, keeping suhoor simple so you can return to sleep quickly and adding a short nap during the day help maintain total sleep through the month.

How much sleep is enough?

Sleep experts generally recommend at least seven hours a night for adults, about eight to ten hours for teenagers and nine to twelve hours for children aged six to twelve. Teenagers' body clocks naturally shift later, which is why they often struggle with early school starts. Needs vary between individuals, and how you feel during the day is a useful guide.

When to see a doctor

Speak to a doctor if you snore loudly and someone notices pauses in your breathing, if you feel very sleepy during the day despite enough time in bed, if insomnia lasts for weeks, or if you have unusual movements or behaviour during sleep. Sleep apnoea, in particular, is common, often undiagnosed and treatable.

Common mistakes

  • Using weekends to catch up on large amounts of lost sleep.
  • Drinking tea or coffee late in the day.
  • Scrolling on a phone in bed.
  • Ignoring loud snoring and daytime sleepiness.

Related tools

To plan eating windows around sleep, use Intermittent Fasting Calculator. To set a wake-up alarm, try Online Alarm Clock, and to check prayer times, Prayer Times Calculator.

Shift work

Night shifts and rotating schedules disrupt the body clock, which can affect sleep, appetite and long-term health. Shift workers often sleep better by keeping the bedroom completely dark, using earplugs, keeping a consistent sleep time on working days and getting bright light at the start of a shift. A short nap before a night shift can help alertness.

Children's bedtimes

Children sleep better with a consistent bedtime routine: a bath, a story and lights out at the same time each night. Screens in the bedroom are linked with later bedtimes and shorter sleep. Late dinners and visits often push children's bedtimes back, so keeping the routine on school nights helps protect their sleep.

A comfortable bedroom

A cool, dark and quiet bedroom supports deep sleep. Blackout curtains, a fan or white noise to mask street sounds and a comfortable mattress and pillow all help. Keeping the bed for sleep, rather than for work or long hours on the phone, strengthens the link between bed and sleep.

Limits

Sleep cycle length varies between people and through the night, so the suggested times are a guide. This is not medical advice.

Frequently asked questions

How long is a sleep cycle?

About 90 minutes on average, with a range of roughly 70 to 120 minutes. Each cycle moves through light sleep, deep sleep and REM sleep, and later cycles contain more REM.

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

With 15 minutes to fall asleep, 9:45 PM gives six full cycles (9 hours) and 11:15 PM gives five cycles (7.5 hours). Either lets you wake near the end of a cycle.

How many hours of sleep do adults need?

Most adults need 7 to 9 hours a night. Teenagers need 8 to 10 hours and school-age children 9 to 12, according to sleep medicine guidelines.

Why do I feel tired after waking from a long sleep?

Waking from deep sleep causes sleep inertia, a groggy feeling that can last up to 30 minutes. Irregular bedtimes, alcohol and poor sleep quality can also leave you tired.

How long should a nap be?

A 10 to 20 minute nap gives a boost without grogginess. A 90-minute nap completes a full cycle. Naps of 30 to 60 minutes are more likely to end in deep sleep and leave you groggy.

Does it matter what time I go to bed?

Consistency matters most: going to bed and waking at similar times every day, including weekends, keeps your body clock steady and improves sleep quality. Very late bedtimes can also cut sleep short if your wake time is fixed.

When should I see a doctor about sleep?

See a doctor if you regularly take more than 30 minutes to fall asleep, wake often, snore loudly with pauses in breathing, or feel very sleepy during the day despite enough time in bed.