Free · Local calculation only · No account required

Sleep Calculator

Plan a bedtime from your wake-up time, or a wake-up time from your bedtime. Include your own sleep-duration target, time to fall asleep and awake-time allowance.

Clock-time planning only — cycle lengths vary. This tool cannot identify your sleep stage or guarantee that you will wake refreshed.

Use the calculator
Bedtime or wake-up Plan backward or forward
Editable assumptions Sleep duration and allowances
Local only Entries stay in your browser

Plan Your Bedtime or Wake-Up Time

Adult clock-time planning with editable assumptions.

Sleep time excludes the onset and awake-time allowances below. Short durations are flagged, not recommended.

These are your assumptions, not measured or predicted sleep behaviour.

One fixed-offset clock is assumed. Daylight-saving or travel conversions are not modelled. This script does not upload or store entries.

Your plan will appear here

Choose a direction and enter your dates. The output is clock-time arithmetic, not sleep-stage detection.

Bedtime planning

Subtract a sleep window from a chosen wake-up date and time.

Wake-up planning

Add a sleep window to a bedtime, with the next date shown.

Transparent allowances

Separate planned sleep from time to fall asleep and awake time.

Built and maintained by Bhavin Sheth
Last updated:

Medical disclaimer: This is an educational clock-time planner. It cannot measure sleep stages, diagnose insomnia or sleep apnea, or guarantee refreshed waking. Duration references are general adult guidance, not personalised treatment. Children and people with persistent sleep problems need appropriate individual advice.

Sleep time and time in bed are different

Show the allowances separately instead of hiding a universal 15-minute assumption.

All inputs are planning assumptions. One fixed-offset wall clock is used.
What you know Calculation What the result means
Wake-up time Bedtime = wake-up − planned sleep − onset − awake allowance When to get into bed under those assumptions, not the moment you will actually fall asleep.
Bedtime Wake-up = bedtime + onset + planned sleep + awake allowance A clock-time plan with the date carried forward if midnight is crossed.
Cycle illustration Planned sleep = assumed cycle minutes × cycle count An illustration only. The same duration/onset/awake arithmetic is then applied.
EXAMPLE 01 · MORNING

Wake at 7:00 AM

For 8 hours of planned sleep and a 15-minute onset allowance, with no awake allowance, get into bed at 10:45 PM on the previous date. Time in bed is 8 hours 15 minutes.

EXAMPLE 02 · ALLOWANCES

Separate the buffers

With the same 7:00 AM wake-up, 8 hours planned sleep, 20 minutes onset and 30 minutes awake allowance: bedtime becomes 10:10 PM on the previous date.

EXAMPLE 03 · CYCLE MATH

Five assumed 90-minute cycles

That gives 7 hours 30 minutes of assumed sleep. Add 15 minutes onset: a 7:00 AM wake-up gives 11:15 PM on the previous date. This does not identify REM or a preferred alarm time.

A fixed cycle count cannot tell your sleep stage

Clock arithmetic cannot replace recordings of actual sleep.

Cycles are not identical timers

NHLBI describes cycles repeating roughly every 80–100 minutes. It distinguishes REM from three non-REM stages. A fixed 90-minute model cannot locate those stages in an individual night.

Verify sleep phases and stages at NHLBI.

Enough time is not the whole picture

This tool adds the awake time you enter; it cannot measure unplanned awakenings or actual sleep quality. A clock-time plan does not guarantee that you will feel alert.

It models one sleep period, not naps or your total actual sleep across a day. Daytime sleep for shift work can be entered; travel and clock changes need separate checking.

Adult duration guidance is separate from cycle arithmetic

CDC’s general daily sleep-duration reference. Individual needs and clinical advice may differ.
Adult age group CDC reference How to read it
18–60 years 7 or more hours A minimum reference, not a promise that exactly 7 hours suits everyone.
61–64 years 7–9 hours General duration guidance, not a cycle-count target.
65 years and older 7–8 hours Use individual advice when your needs or circumstances differ.

Check the CDC duration table and sleep-quality guidance.

If you regularly struggle with sleep, feel excessively sleepy in the daytime, or are told that you snore or gasp for air, discuss it with a healthcare professional. This calculator cannot determine the cause. NHLBI sleep-apnea information.

Helpful resources

Related everyday tools and primary sources for checking sleep guidance.

Questions about sleep-time planning

Clock arithmetic, editable assumptions and clinical limits.

Does a 90-minute calculation identify my sleep stage?

No. A fixed cycle length is an arithmetic assumption. Actual cycle lengths and sleep stages vary, so the calculator cannot locate REM, deep sleep or the best moment to wake.

What is the difference between bedtime and falling asleep?

Bedtime is when you plan to get into bed. The onset allowance is the time you assume it will take to fall asleep. It is added to planned sleep and awake-time allowance when calculating time in bed.

Is the default 15-minute onset time correct for everyone?

No. Fifteen minutes is an editable example, not a measurement or a universal average. Enter an allowance that reflects your situation; the tool cannot predict when you will fall asleep.

Why does a calculated time show the previous or next day?

The date is part of the calculation. Subtracting a full sleep window from a morning wake-up time usually produces a bedtime on the previous date. All results show the date to avoid ambiguity.

Does this handle daylight-saving changes or travel?

The calculator uses fixed-offset wall-clock arithmetic and does not convert time zones. It flags clock changes it can detect in the device timezone. Check actual elapsed time separately for daylight-saving nights or travel.

Can six hours become enough by choosing four cycles?

Cycle arithmetic does not override sleep-duration guidance. CDC lists at least seven hours for adults aged 18–60, seven to nine for ages 61–64 and seven to eight for ages 65 and older. Individual needs differ.

Does Use current time set an alarm?

No. It copies the device’s current date and minute into the bedtime input, then lets you calculate wake-up options. It does not create an alarm or monitor sleep.

Are my dates and sleep details stored?

This calculator script processes entries in browser memory. It does not upload them or save them to browser storage. Other website scripts and services are outside the calculator’s scope.