Browser-Based ToolLocal ProcessingNo File Upload

Sleep Calculator

Find when to go to bed or wake up, calculate your sleep duration, and compare estimated sleep-cycle schedules.

Sleep Parameters

Configure schedules based on estimated sleep boundaries. Calculations run locally.

What time must you wake up?Select target hours and minutes.
Age GroupOptional. Selected ranges are matched against results.

Suggested Bedtimes

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.

Sleep calculations run in your browser. Entered times are not required to be uploaded for calculation.

What is a sleep calculator?

A sleep calculator is a time-planning tool that calculates when you should go to bed or wake up based on target schedules, sleep duration, and estimated sleep cycles. Instead of guessing alarm times, you enter your target clock time, and the calculator works backward or forward to display practical bedtime and wake-up options.

The calculator includes four dedicated modes: Wake-Up Time (calculates bedtime from your morning alarm), Bedtime (projects wake-up times from when you sleep), Sleep Duration (measures total hours between bedtime and wake-up), and Sleep Now (calculates wake-up options starting from your device's current clock time).

How to calculate bedtime from a wake-up time

To calculate when to go to bed for a fixed morning wake-up time, subtract your planned sleep duration and your estimated fall-asleep time (sleep latency) from your target wake-up alarm:

Bedtime = Target Wake-Up Time − Planned Sleep Duration − Fall-Asleep Time

Example: Wake up at 7:00 AM with 7 hours 30 minutes of sleep

  • Target Wake-Up Time = 7:00 AM
  • Planned Sleep Duration = 7 hours 30 minutes (5 estimated 90-minute cycles)
  • Fall-Asleep Estimate = 15 minutes
  • Total Time in Bed Needed = 7 hours 30 minutes + 15 minutes = 7 hours 45 minutes
  • Bedtime Calculation = 7:00 AM − 7 hours 45 minutes = 11:15 PM (previous evening)

Result: Get into bed at 11:15 PM to allow 15 minutes to fall asleep and achieve 7 hours 30 minutes of sleep before 7:00 AM.

How to calculate wake-up time from a bedtime

When you know what time you plan to get into bed, you can project forward to find wake-up times that allow for completed sleep cycles:

Wake-Up Time = Planned Bedtime + Fall-Asleep Time + Planned Sleep Duration

Example: Go to bed at 10:30 PM aiming for 9 hours of sleep

  • Planned Bedtime = 10:30 PM
  • Fall-Asleep Estimate = 15 minutes (estimated sleep onset at 10:45 PM)
  • Planned Sleep Duration = 9 hours (6 estimated 90-minute cycles)
  • Wake-Up Calculation = 10:45 PM + 9 hours = 7:45 AM (next morning)

Result: Setting an alarm for 7:45 AM provides 9 hours of sleep after falling asleep at 10:45 PM.

How to calculate sleep duration

Sleep Duration mode measures the elapsed time between your bedtime and wake-up time, differentiating between total time spent in bed and estimated sleep time:

Total Time in Bed = Wake-Up Time − Bedtime
Estimated Sleep Time = Total Time in Bed − Fall-Asleep Time

Example: Bed at 11:00 PM and wake at 7:00 AM

  • Bedtime = 11:00 PM
  • Wake-Up Time = 7:00 AM
  • Total Time in Bed = 8 hours 0 minutes
  • Fall-Asleep Estimate = 15 minutes
  • Estimated Sleep Time = 8 hours − 15 minutes = 7 hours 45 minutes

Result: You spend 8 hours in bed, resulting in approximately 7 hours 45 minutes of available sleep time.

Note that a clock calculator cannot measure awakenings or periods of wakefulness during the night; results represent scheduled rest time.

How the Sleep Now option works

The Sleep Now option reads your device's current clock time, adds your selected fall-asleep latency (default 15 minutes), and projects forward by 4, 5, or 6 estimated 90-minute sleep cycles.

For example, if you click Sleep Now at 11:00 PM with a 15-minute fall-asleep estimate, suggested wake-up times will be 5:15 AM (4 cycles / 6h sleep), 6:45 AM (5 cycles / 7h 30m sleep), and 8:15 AM (6 cycles / 9h sleep).

What is a sleep cycle?

During normal overnight rest, the human brain and body move through alternating stages of non-REM (NREM) and REM (Rapid Eye Movement) sleep. According to the National Heart, Lung, and Blood Institute (NHLBI), a typical adult sleep cycle lasts approximately 80 to 100 minutes, with most individuals experiencing between four and six cycles per night.

The 90-minute default setting used in sleep calculators represents the midpoint of this 80–100 minute range. However, real sleep cycles naturally vary in length across the night—deep non-REM sleep dominates earlier cycles, while REM periods lengthen in later cycles.

Important Note on Sleep Cycles

Estimated cycle boundaries are scheduling planning aids, not clinical measurements. Total sleep duration and consistent sleep hygiene have a greater impact on overall health and alertness than attempting to wake at an exact theoretical cycle boundary.

General sleep guidance by age

Daily sleep duration needs change across different stages of life. The table below summarizes official recommendations published by the Centers for Disease Control and Prevention (CDC):

Age Group Recommended Daily Sleep Notes
Newborn (0–3 months) 14–17 hours Total per 24-hour day
Infant (4–12 months) 12–16 hours Includes daytime naps
Toddler (1–2 years) 11–14 hours Includes daytime naps
Preschool (3–5 years) 10–13 hours Includes daytime naps
School Age (6–12 years) 9–12 hours Total daily sleep
Teenager (13–17 years) 8–10 hours Total daily sleep
Adult (18–60 years) 7 or more hours General adult baseline
Adult (61–64 years) 7–9 hours Total daily sleep
Adult (65+ years) 7–8 hours Total daily sleep

Source: Centers for Disease Control and Prevention (CDC), About Sleep.

Quick formula reference table

Use this reference table to review the formulas and examples for common sleep calculations:

Calculation Formula Example
Bedtime from Wake Time Wake-Up Time − Sleep Duration − Fall-Asleep Time 7:00 AM − 7h 30m − 15m = 11:15 PM
Wake Time from Bedtime Bedtime + Fall-Asleep Time + Sleep Duration 10:30 PM + 15m + 9h = 7:45 AM
Sleep Duration Total Time in Bed − Fall-Asleep Time 8h in bed − 15m latency = 7h 45m sleep
Cycle-Based Sleep Cycle Length (e.g. 90m) × Number of Cycles 90m × 5 cycles = 450m (7h 30m)
Sleep Now (5 Cycles) Current Time + 15m + (5 × 90m) 11:00 PM + 15m + 7h 30m = 6:45 AM
Sleep Now (6 Cycles) Current Time + 15m + (6 × 90m) 11:00 PM + 15m + 9h = 8:15 AM

Common sleep calculation examples

Review these standard sleep calculation scenarios showing input parameters, formula evaluation, and final schedule results:

  • 7:00 AM Wake-Up (5 cycles): 7:00 AM − 7h 30m sleep − 15m fall-asleep time = 11:15 PM bedtime.
  • 6:30 AM Wake-Up (5 cycles): 6:30 AM − 7h 30m sleep − 15m fall-asleep time = 10:45 PM bedtime.
  • 6:00 AM Wake-Up (5 cycles): 6:00 AM − 7h 30m sleep − 15m fall-asleep time = 10:15 PM bedtime.
  • 10:00 PM Bedtime (5 cycles): 10:00 PM + 15m fall-asleep + 7h 30m sleep = 5:45 AM wake-up.
  • 11:00 PM Bedtime (5 cycles): 11:00 PM + 15m fall-asleep + 7h 30m sleep = 6:45 AM wake-up.
  • 11:00 PM Bedtime (6 cycles): 11:00 PM + 15m fall-asleep + 9h sleep = 8:15 AM wake-up.
  • Custom 85-minute cycles (Wake 6:30 AM, 5 cycles): 6:30 AM − (5 × 85m) − 15m = 11:10 PM bedtime.

Common mistakes to avoid

Sleep Planning Pitfalls

  • Ignoring Time to Fall Asleep: Getting into bed at 11:00 PM does not mean sleeping at 11:00 PM. Always account for 10–20 minutes of latency.
  • Sacrificing Total Duration for Cycle Math: Waking after 4.5 hours (3 cycles) just to complete a cycle leaves you sleep-deprived. Total duration matters more.
  • Assuming Every Cycle Is Exactly 90 Minutes: Cycles range from 80 to 100 minutes and vary naturally between individuals and across the night.
  • Ignoring Weekend Consistency: Shifting your sleep schedule by more than 1–2 hours on weekends creates "social jet lag" and disrupts circadian rhythm.
  • Counting Time in Bed as Actual Sleep: If you spend 8 hours in bed but take 45 minutes to fall asleep, total sleep is 7 hours 15 minutes.
  • Using Clock Calculations to Self-Diagnose: A sleep calculator cannot detect sleep apnea, restless legs, or insomnia.

Sleep calculator use cases

Sleep calculation parameters apply across many everyday routines and planning scenarios:

  • Daily Work Schedules: Aligning bedtimes with fixed morning alarm times for regular office or school routines.
  • Early Morning Shifts: Finding appropriate bedtime targets when required to wake up earlier than normal for shift work or travel.
  • Managing Jet Lag: Gradually shifting bedtime and wake-up times in 15- to 30-minute increments across time zones.
  • Sleep Duration Tracking: Checking whether your planned overnight schedule meets CDC age recommendations.
  • Exam and Interview Preparation: Planning adequate rest before important mental performance days.
  • Parental Planning: Scheduling age-appropriate bedtimes and wake times for school-age children and teenagers.

When to speak with a healthcare professional

A sleep calculator is a mathematical scheduling tool and is not intended for medical diagnosis. Consider speaking with a healthcare professional or board-certified sleep specialist if sleep problems are persistent, affect your daytime functioning, or you regularly experience symptoms such as chronic insomnia, daytime exhaustion, or loud snoring accompanied by pauses or gasping during sleep.

Privacy and data handling

Sleep calculations are performed entirely in your browser using client-side JavaScript. Entered bedtimes, wake-up times, and calculated schedules are never sent to external servers or logged in analytics parameters, keeping your personal routines and sleep schedules private.

Sources used for this guide

  • CDC: About Sleep — Official sleep duration guidelines by age group and sleep hygiene recommendations.
  • NHLBI: Sleep Phases and Stages — Clinical overview of non-REM and REM sleep phases and typical 80–100 minute cycle durations.

Related calculator tools

Explore other free date, time, and math calculators available across TryFormatter: