Sleep Calculator
Plan your sleep schedules based on estimated sleep cycles and general age-based guidance. Calculate bedtime from wake-up target, wake-up options from bedtime, or total sleep duration privately. All processing happens locally in your browser.
Sleep Parameters
Configure schedules based on estimated sleep boundaries. Calculations run locally.
Calculated Schedules
Suggested schedules are estimates based on your parameters.
Enter a time and select Calculate to view possible sleep schedules.
This calculator provides general sleep-schedule estimates. It does not measure sleep stages, sleep quality, or medical conditions.
What Is a Sleep Calculator?
A sleep calculator helps you plan a bedtime, wake-up time, or total sleep period. You enter a clock time, and the calculator adds or subtracts an estimated sleep duration and the time you expect to need before falling asleep.
The calculator can also show schedules based on an estimated sleep-cycle length. These cycle results are planning options, not measurements of your actual sleep stages.
Use the results to compare possible schedules. Do not treat one calculated time as a perfect or medically required bedtime.
The Best Way to Use a Sleep Calculator
Start with the total amount of sleep you are trying to allow. Then use the estimated cycle options as a second way to compare nearby bedtimes or wake-up times.
- Select your age group. This lets the calculator compare the schedule with general daily sleep guidance.
- Choose a realistic total duration. Do not choose a very short schedule only because it ends near an estimated cycle boundary.
- Add time to fall asleep. Getting into bed is not always the same as falling asleep.
- Review the date. A bedtime and wake-up time often fall on different calendar days.
- Use cycle timing only as an estimate. Actual sleep cycles are not fixed clock blocks.
Sleep Calculator Formulas
The calculator uses simple time addition and subtraction. You can also calculate the main results manually.
Bedtime = Wake-up time − Planned sleep − Fall-asleep estimate
Wake-up time = Bedtime + Fall-asleep estimate + Planned sleep
Estimated sleep = Time in bed − Fall-asleep estimate
Planned sleep = Estimated cycle length × Number of cycles
These formulas do not account for time spent awake later during the night. The calculated sleep duration is therefore an estimate.
How to Calculate a Bedtime
Use the Wake-Up Time mode when you know when you must get up and want to calculate possible bedtimes.
Example: You need to wake up at 7:00 AM. You select five estimated cycles of 90 minutes and allow 15 minutes to fall asleep.
- Calculate the planned sleep:
5 × 90 minutes = 450 minutes. - Convert 450 minutes:
7 hours 30 minutes. - Add the fall-asleep estimate:
7 hours 30 minutes + 15 minutes = 7 hours 45 minutes. - Count backward from 7:00 AM:
7:00 AM − 7 hours 45 minutes = 11:15 PM.
How to Calculate a Wake-Up Time
Use the Bedtime mode when you know when you plan to get into bed and want to calculate possible wake-up times.
Example: You plan to go to bed at 10:30 PM. You allow 15 minutes to fall asleep and select six estimated cycles of 90 minutes.
- Add the fall-asleep estimate:
10:30 PM + 15 minutes = 10:45 PM. - Calculate the planned sleep:
6 × 90 minutes = 9 hours. - Add the planned sleep:
10:45 PM + 9 hours = 7:45 AM.
How to Calculate Sleep Duration
Sleep Duration mode finds the time between a bedtime and a wake-up time. It can show both time in bed and estimated sleep time.
Example: You go to bed at 11:00 PM and wake at 7:00 AM.
- Time in bed:
8 hours. - Fall-asleep estimate:
15 minutes. - Estimated sleep:
7 hours 45 minutes.
If you were awake during the night, the calculator cannot detect or subtract that time. Its result is based only on the values you enter.
Time in Bed
The full period between getting into bed and getting up.
Estimated Sleep Time
Time in bed minus the selected fall-asleep estimate.
How the Sleep Now Option Works
Sleep Now mode uses the current time shown by your device. It adds the selected fall-asleep estimate and then calculates possible wake-up times.
For example, if the current time is 11:00 PM, the fall-asleep estimate is 15 minutes, and the planned sleep is 7 hours 30 minutes, the calculated wake-up time is 6:45 AM the next day.
The result uses the local date and time from the browser. It does not know when you actually put the device down or fall asleep.
What Is a Sleep Cycle?
During sleep, people move through non-REM and REM phases. The pattern repeats several times during a normal sleep period.
The National Heart, Lung, and Blood Institute explains that the cycle commonly starts over every 80 to 100 minutes, and that people usually have about four to six cycles per night.
The amount of time spent in each stage changes during the night. Deep sleep is usually more common earlier, while REM sleep is usually more common later.
Why the Default Is 90 Minutes
Ninety minutes sits near the middle of the commonly described 80-to-100-minute cycle range, so it is useful as a simple starting value.
It should not be treated as your exact cycle length. A person's cycles can differ from one another during the same night, and cycle patterns can change with age and other factors.
The Advanced Settings section lets you change the estimate. Changing it only changes the schedule calculation; it does not measure your real sleep cycle.
How Many Cycles Should You Select?
The number of cycles is only one part of the schedule. Always review the total calculated sleep time.
| Cycle Setting | At 90 Minutes Each | How to Read It |
|---|---|---|
| 4 estimated cycles | 6 hours | A short schedule for many age groups. Do not choose it only because the clock time is convenient. |
| 5 estimated cycles | 7 hours 30 minutes | A planning option that may fit some adult schedules. |
| 6 estimated cycles | 9 hours | A longer option that may fit teens, some adults, and other age-based ranges. |
The table does not prescribe how much you personally need. Compare the total duration with general age guidance and your own needs.
General Sleep Guidance by Age
The amount of daily sleep commonly recommended changes with age. Some ranges for young children include naps.
| Age Group | General Daily Sleep | Note |
|---|---|---|
| Newborn: 0–3 months | 14–17 hours | Daily total |
| Infant: 4–12 months | 12–16 hours | Includes naps |
| Toddler: 1–2 years | 11–14 hours | Includes naps |
| Preschool: 3–5 years | 10–13 hours | Includes naps |
| School age: 6–12 years | 9–12 hours | Daily total |
| Teen: 13–17 years | 8–10 hours | Daily total |
| Adult: 18–60 years | 7 or more hours | General daily minimum |
| Adult: 61–64 years | 7–9 hours | Daily total |
| Adult: 65 years and older | 7–8 hours | Daily total |
Source: CDC, About Sleep. Source reviewed for this page in July 2026.
These ranges are general guidance, not a personal prescription. Sleep needs can vary, and duration alone does not describe sleep quality.
Sleep Duration and Sleep Quality Are Different
A calculator can estimate how much time is available for sleep. It cannot tell whether that sleep is uninterrupted or refreshing.
Two people may both allow eight hours for sleep but have different experiences because of waking during the night, noise, health conditions, schedules, stress, or other factors.
The CDC describes quality sleep as uninterrupted and refreshing. Signs of poor sleep quality can include trouble falling asleep, waking repeatedly, or feeling tired even after allowing enough time for sleep.
Examples of Sleep Calculations
| Question | Settings | Manual Calculation | Result |
|---|---|---|---|
| What time should I go to bed? | Wake at 7:00 AM, 5 × 90-minute cycles, 15 minutes to fall asleep | 7:00 AM − 7h 30m − 15m |
11:15 PM |
| What time should I wake up? | Bed at 10:30 PM, 6 × 90-minute cycles, 15 minutes to fall asleep | 10:30 PM + 15m + 9h |
7:45 AM |
| How long is my sleep period? | Bed at 11:00 PM, wake at 7:00 AM, 15 minutes to fall asleep | 8h time in bed − 15m |
7h 45m estimated sleep |
| What if the cycle estimate is 85 minutes? | 5 cycles, 15 minutes to fall asleep | 5 × 85m + 15m |
7h 20m from bedtime to wake-up |
Common Sleep-Schedule Mistakes
- Treating every cycle as exactly 90 minutes: real cycle length can vary during the night.
- Choosing too little total sleep: a convenient cycle boundary does not make a short schedule sufficient.
- Ignoring time needed to fall asleep: bedtime and sleep-start time are not always the same.
- Counting all time in bed as sleep: the calculator cannot know how long you were awake.
- Ignoring the calendar day: an overnight calculation may end tomorrow or on another selected date.
- Assuming a cycle result predicts sleep quality: clock time cannot measure interruptions or sleep stages.
- Using adult guidance for children: sleep ranges differ by age, and some child ranges include naps.
- Changing schedules greatly from day to day: regular bedtime and wake-up times can support a more consistent routine.
- Using the calculator as a diagnosis: it cannot identify insomnia, sleep apnea, or another condition.
Midnight, Dates, and Clock Changes
The calculator should treat a morning wake-up time as the next day when it follows an evening bedtime.
For example, 11:00 PM to 7:00 AM is an eight-hour period that crosses midnight. The result should not be shown as a negative duration.
Local daylight-saving changes can also affect an overnight schedule. On a clock-change night, the difference between displayed clock times may not match the actual elapsed duration. Check the result date and any clock-change notice shown by the tool.
Simple Sleep-Schedule Planning Tips
- Try to keep a similar bedtime and wake-up time each day.
- Plan enough total sleep before comparing estimated cycle options.
- Allow time to prepare for sleep instead of treating bedtime as the last active minute of the day.
- Check whether naps are included in the guidance for a child's age group.
- Keep the original wake-up requirement visible when comparing several bedtime options.
- Review how you feel over time instead of judging a schedule from one night.
When to Speak With a Healthcare Professional
This calculator cannot assess a sleep disorder. Speak with a healthcare professional if you regularly have trouble falling asleep or staying asleep, feel unusually tired during the day, snore with pauses in breathing, or have concerns about your sleep.
Browser Processing and Schedule Data
Sleep-time calculations are designed to run in the browser. Exact bedtimes, wake-up times, selected dates, local time, timezone, and copied schedules should not be included in analytics events.
The page may still load normal website resources or analytics. Do not describe the entire webpage as having no network activity.
Sources Used for This Guide
Related Calculator Tools
Common Sleep Calculator Use Cases
This planning tool supports several different scheduling use cases:
- Shift work adjustments: Plan daytime sleep hours and rest times between shifts.
- Jet lag recovery: Shift your bedtime gradually using estimated cycles when traveling.
- Consistent routines: Set consistent daily schedules to support healthy sleep hygiene.
Privacy and Device-Local Processing
To ensure total privacy, all sleep calculations, inputs, and selected times are processed locally inside your browser memory. No private schedule parameters are ever sent to analytics or remote servers.