Sleep Calculator
Calculate optimal bedtime or wake time based on 90-minute sleep cycles. Waking between cycles (rather than mid-cycle) helps you feel more refreshed and alert upon rising.
This free online sleep calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
24-hour format: 7 = 7 AM, 22 = 10 PM
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Sleep Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Sleep Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
Formula Reference
Sleep Calculator Formula
See calculator inputs for the governing equation
Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.
When to Use This Calculator
- •Use the Sleep Calculator for personal health tracking and wellness monitoring, establishing a baseline and tracking changes over time.
- •Use it when recording fitness metrics to track progress toward health or athletic goals.
- •Use it to compare measurements before and after a lifestyle, diet, or training change to quantify the impact.
- •Use it as a conversation starter before a doctor's appointment, bringing objective data to discuss with a healthcare professional.
About This Calculator
The Sleep Calculator is a free health and wellness calculation tool designed for personal use and general informational purposes. Calculate optimal bedtime or wake time based on 90-minute sleep cycles. Waking between cycles (rather than mid-cycle) helps you feel more refreshed and alert upon rising. This calculator provides reference values based on established health screening formulas and should not be used as a substitute for professional medical advice, diagnosis, or treatment. Results may vary based on individual factors not captured by the calculation. Consult a qualified healthcare provider for personalized health guidance. All calculations are performed locally in your browser — no personal health data is transmitted or stored.
About Sleep Calculator
The Sleep Calculator determines your optimal bedtime based on 90-minute sleep cycles and your desired wake time. Sleep occurs in cycles of approximately 90 minutes, each consisting of progressively deeper non-REM stages followed by REM (dreaming) sleep. Waking at the end of a complete cycle — during the lighter N1/N2 stage — leaves you feeling refreshed and alert. Waking mid-cycle — especially during deep N3 sleep — causes sleep inertia: that groggy, confused, heavy feeling that can persist for 30+ minutes. Most adults need 5-6 complete cycles (7.5-9 hours) per night. This calculator also accounts for sleep onset latency (the time it takes to fall asleep).
The Math Behind It
Formula Reference
Sleep Cycles
Bedtime = Wake Time - (Cycles × 90 min) - Fall Asleep Time
Variables: Each cycle ≈ 90 minutes, typical fall-asleep latency 10-20 min
Worked Examples
Example 1: Wake at 7 AM, 5 Cycles
Wake at 7:00 AM, 5 cycles, 15 min to fall asleep
Go to bed at 11:15 PM for 7.5 hours of sleep (5 complete cycles).
Example 2: Wake at 6 AM, 6 Cycles
Wake at 6:00 AM, 6 cycles, 20 min to fall asleep
Go to bed at 8:40 PM for 9 hours of sleep (6 complete cycles).
Common Mistakes & Tips
- !Assuming sleep cycles are exactly 90 minutes for everyone. Individual cycles range from 80-120 minutes. Use 90 as an average and adjust based on how you feel upon waking.
- !Not accounting for sleep onset latency. If you don't fall asleep for 20 minutes, you need to be in bed 20 minutes earlier than the calculated bedtime.
- !Using an alarm that disrupts mid-cycle. Consider a smart alarm that detects light sleep within a window around your target time.
- !Sleeping inconsistent hours on weekdays vs. weekends (social jet lag), which disrupts circadian rhythm.
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
How many hours of sleep do I actually need?
Most adults need 7-9 hours. The National Sleep Foundation recommends 7-9 hours for adults aged 18-64 and 7-8 hours for 65+. Individual needs vary — the best test is whether you feel alert and functional throughout the day without caffeine. If you need an alarm to wake up, you are likely not getting enough sleep.
Is it better to wake up between cycles?
Yes. Waking during light sleep (N1/N2) at the end of a cycle produces less sleep inertia than waking during deep N3 sleep. The difference in morning alertness can be dramatic, even if total sleep time is slightly less.
Why do I feel terrible after sleeping too long?
Oversleeping can cause you to wake during deep sleep (N3) in a later cycle, producing severe sleep inertia. It can also disrupt your circadian rhythm. Most adults feel best with 7.5-8 hours (5 complete cycles plus one partial).