Sleep Calculator

A little planning. More room for rest.

Find a bedtime or wake-up time that leaves enough room for sleep. Choose your age group, adjust your sleep target, and see your whole schedule in one place.

Last updated: October 30, 2026 · Written by Shakeel Muzaffar · How the math works

Plan your sleep schedule

Set your time on the left. Your schedule updates on the right as you make changes.

No sign-up required
1. What would you like to find?
I need to wake up at
Adults 18–60: at least 7 hours. The 8-hour planning target is editable.
Optional estimate. Leave 0 if unknown. This adds time in bed; it does not measure night waking.
Your target is time asleep. Settling time and estimated night waking are added separately. Results round to the nearest minute.

Your bedtime plan

For a 7:00 AM wake-up

Get into bed at10:45 PMThe previous evening

These are clock-time estimates, not measured sleep stages. Night waking is included only to the extent you estimate it above.

Into bed10:45 PM
Asleep around11:00 PM
Wake up7:00 AM

Compare nearby sleep targets

These are clock-time estimates, not measured sleep stages. Allow extra time for any night waking.

Your inputs stay in this page. This tool does not assess sleep quality or predict the best sleep stage for an alarm.

Understand your schedule

Sleep calculator guide

Use the guide to check the calculation, choose a realistic target, and understand what a clock-based estimate can tell you.

01How to use the calculator

Choose the time you know, then set how much sleep you want to allow.

  1. Choose a direction. Select “My bedtime” if your wake-up time is fixed. Select “My wake-up time” if you know when you will get into bed.
  2. Enter a clock time. Check AM or PM. The “Use now” button switches to bedtime mode using your device’s local clock.
  3. Choose your age group. This sets a starting target and shows its source. You can then edit the target.
  4. Allow time to fall asleep. The default is 15 minutes for illustration. Replace it with your own estimate.

Results update when you change a field. The calculate button confirms the schedule. The comparison rows let you try a different duration without re-entering the time.

Use Copy for a text summary, Print / save PDF for a compact result sheet, Share for this tool’s public link, or Embed for an isolated calculator without this guide.

02Formula, variables and worked example

Time in bed includes your sleep target, time to fall asleep and any estimated waking during the night.

T = 60 × H + L + A
T
Time in bed, in minutes.
H
Your desired time asleep, in hours.
L
Your estimated time to fall asleep, in minutes.
W
Your wake-up clock time.
B
The time you get into bed.
A
Estimated awake time during the night, in minutes. The default is 0.
B = W − (60 × H + L + A)
W = B + (60 × H + L + A)

Example: wake up at 7:00 AM

Suppose H = 8 hours and L = 15 minutes.

T = 60 × 8 + 15 = 495 minutes
B = 7:00 AM − 8 hours 15 minutes
Bedtime = 10:45 PM the previous evening

You would be asleep around 11:00 PM under that assumption. In the other direction, a 10:45 PM bedtime gives a 7:00 AM wake-up.

If you expect 20 minutes awake overnight

For 8 hours asleep, 15 minutes to fall asleep and 20 minutes awake: 480 + 15 + 20 = 515 minutes in bed. A 7:00 AM wake-up means getting into bed at 10:25 PM the previous evening. This estimate cannot predict or prevent waking.

An eight-hour sleep plan with a fifteen-minute settling periodFrom bed at 10:45 PM, allow fifteen minutes to fall asleep, then eight hours until waking at 7 AM.A plan for time, not sleep stages10:45 PM · Into bed8 hours asleep7:00 AM · Wake15 MINUTES TO SETTLE + 8 HOURS ASLEEP
The short amber block is time to fall asleep. The blue block is your chosen sleep duration. The drawing is not to scale.

03How much sleep should you plan for?

Your age group gives a starting reference; it does not determine your individual sleep need.

AgeDaily sleep referencePlanner starting target
6–12 years9–12 hours10 hours
13–17 years8–10 hours9 hours
18–60 yearsAt least 7 hours8 hours
61–64 years7–9 hours8 hours
65+ years7–8 hours7.5 hours

Reference: CDC sleep recommendations by age. The starting targets are this tool’s editable examples, not separate clinical recommendations. “At least 7” is a minimum reference, not a 7-hour prescription.

Children under 6 may split sleep between naps and nighttime. The calculator routes that age group to dedicated planners instead of applying one overnight block.

If your target falls outside the displayed reference, the tool keeps your chosen value and shows a notice. A value inside the range still cannot establish whether your sleep is sufficient.

04Why a sleep cycle is not a precise alarm timer

Sleep stages change through the night, so a fixed clock interval cannot identify your next light-sleep phase.

NHLBI describes cycles that restart about every 80–100 minutes. Non-REM includes light and deep stages, followed by REM. Deep sleep tends to occur earlier; REM tends to take up more time later.

Sleep contains changing stagesThree changing sequences of light sleep, deep sleep and REM show why equal ninety-minute blocks do not predict a person’s stages.Sleep changes as the night goes onCONCEPTUAL ILLUSTRATION · NOT YOUR RECORDED NIGHTEarlier in the nightLater in the nightLight sleepDeep sleepREM
Colors explain the categories only. The blocks do not give measured stage lengths or a forecast of your sleep.

A cycle-based estimate uses this extra assumption:

Hmodel = N × C60
N
The model’s cycle count.
C
An assumed cycle length in minutes.

For example, 5 × 90 ÷ 60 = 7.5 hours. The arithmetic is exact; the cycle assumption is not a measurement. Compare that model in the 90-minute cycle calculator. This homepage prioritizes the duration you enter.

05Bedtimes for an 8-hour sleep target

These examples allow 8 hours asleep and 15 minutes to fall asleep.

Wake-up timeGet into bedAsleep around
5:00 AM8:45 PM, previous evening9:00 PM
6:00 AM9:45 PM, previous evening10:00 PM
7:00 AM10:45 PM, previous evening11:00 PM
8:00 AM11:45 PM, previous eveningMidnight
9:00 AM12:45 AM, same day1:00 AM

These are examples, not universal bedtimes. For a different age, sleep target or settling time, use the calculator above.

Back to the calculator ↑

06What the result can and cannot tell you

The result reserves time for sleep; it cannot tell whether you actually sleep well during that time.

  • Night waking changes the total. If you spend 30 minutes awake after falling asleep, an 8-hour sleep opportunity may yield about 7.5 hours asleep.
  • Clock changes need separate attention. The tool uses local clock arithmetic without a calendar date. Check daylight-saving changes and travel across time zones yourself.
  • A single night is only one observation. Use a sleep diary to compare your own patterns over time.

A steady routine and a quiet, comfortable bedroom can help support sleep. CDC also advises seeking care for regular sleep problems. Persistent daytime sleepiness, loud snoring or breathing pauses deserve medical attention.

This is an educational planning tool. It does not diagnose a condition, assess fitness to drive, or replace personalized advice.

07Frequently asked questions

Does this calculator guarantee that I wake up refreshed?

No. It plans time in bed from your inputs. It cannot measure sleep quality, breathing, sleep stages or how alert you will feel.

Does choosing an age group change my schedule?

Yes. It sets an editable starting sleep target in the same form. Changing the target or settling time immediately updates your schedule.

Is the sleep target the same as time in bed?

No. The target is time asleep. The calculator adds your estimated time to fall asleep when finding bedtime or wake-up time.

Can I use a time that is not on a quarter hour?

Yes. Enter any whole minute from 0 to 59. Check AM or PM to avoid a twelve-hour error.

What happens when the schedule crosses midnight?

The result identifies the previous, same or next day relative to the time you entered. It does not select a calendar date.

Will sharing reveal my inputs or results?

Share sends only the public tool link. Copy results creates a text summary. The calculator does not save a history of your inputs.

What is included in the printed or embedded version?

Print includes your current inputs and schedule on a compact result sheet. Embed starts a separate working calculator with default inputs; it excludes the guide and your personal result.

Can I plan sleep for a baby or preschooler here?

Select Under 6 years for links to age-specific planners. This overnight calculator does not replace a full-day plan that includes naps.

08Choose a tool for your next question

09Sources and method notes

The calculation is clock arithmetic. The health references support the age guidance and explanation of sleep stages.

The default settling time and the planner’s starting targets are disclosed examples. They are not measurements of you. No medical review claim is attached to this calculator.