Skip to content

Health

Instant, private, and free

Sleep Calculator.

Find the best time to wake up or sleep based on sleep cycles

On-device calculationNo signup
01

Set your values

Results update as you type.

Sleep Calculator

Plan sleep around complete cycles so you wake up with less grogginess.

What time do you want to wake up?

You should try to fall asleep at one of these times:

Recommended

09:45 PM

6 Cycles • 9 Hours

Recommended

11:15 PM

5 Cycles • 7.5 Hours

12:45 AM

4 Cycles • 6 Hours

02:15 AM

3 Cycles • 4.5 Hours

A good night of sleep usually means 5-6 complete cycles. We include about 15 minutes for you to fall asleep.

FAQs

What is a sleep cycle?

A complete sleep cycle lasts about 90 minutes. It includes periods of light sleep, deep sleep, and REM (Rapid Eye Movement) sleep. Waking up at the end of a cycle instead of in the middle helps you feel more refreshed.

How many hours of sleep do I need?

Most adults need 7-9 hours of sleep, which equates to 5 or 6 complete sleep cycles. This calculator helps you time your sleep to hit these targets.

How long does it take to fall asleep?

On average, it takes about 14-15 minutes for a healthy adult to fall asleep. Our calculator automatically adds 15 minutes to your bedtime calculations.

How to Use the Sleep Calculator

The Sleep Calculator helps you wake up feeling refreshed by timing your sleep with 90-minute natural sleep cycles. You can calculate when to go to bed based on a wake-up time, or when to wake up based on a bedtime.

  1. Choose whether you want to set a 'Wake Up' time or a 'Go to Bed' time.
  2. Enter your desired time using the time picker.
  3. Review the suggested times provided by the calculator.
  4. Choose a time that allows for 5 or 6 full sleep cycles (7.5 to 9 hours) for the best results.

The Science of Sleep Cycles

Our bodies naturally move through sleep stages in repeating cycles.

The 90-Minute Rule

Sleep Duration = n × 90 minutes

The average human sleep cycle is approximately 90 minutes long. Waking up at the end of a cycle, rather than in the middle, helps prevent 'sleep inertia' (that groggy feeling).

Example:

Input: 6 cycles

Calculation: 6 × 90

Result: 540 minutes (9 hours)

Fall Asleep Allowance

Actual Sleep = Time in Bed - 15 minutes

Most healthy adults take about 14-15 minutes to fall asleep. We add this buffer to ensure your cycles align with your actual sleep time.

Example:

Input: Bedtime 11:00 PM

Calculation: 11:00 PM + 15 mins

Result: Sleep starts at 11:15 PM

When to Use the Sleep Calculator

Optimize your rest for various daily scenarios.

Early Morning Starts

Moving from a late shift to an early shift? Use this to find a bedtime that won't leave you exhausted.

Power Napping

Calculate a 90-minute 'full cycle' nap to get maximum refreshment without the grogginess of a shorter nap.

Jet Lag Recovery

When traveling across time zones, use the calculator to force your body into a new cycle as quickly as possible.

Sleep Hygiene Tips

Tips

  • Consistency is key: Try to go to bed and wake up at the same time every day, even on weekends.
  • Avoid blue light (phones/laptops) at least 1 hour before your calculated bedtime.
  • Keep your bedroom cool, dark, and quiet for the best sleep quality.
  • Stop consuming caffeine 6-8 hours before you plan to sleep.
  • If you can't hit 6 cycles, 5 cycles is better than 5.5 cycles.

Common Mistakes to Avoid

  • Setting an alarm for the middle of a sleep cycle (e.g., getting 7 hours of sleep instead of 7.5).
  • Not accounting for the time it takes to actually fall asleep.
  • Hitting the 'snooze' button, which disrupts the start of a new, incomplete cycle.

Related Resources

Cite this calculator

Canonical URL: https://mathify.one/en/health/sleep

Cite as: Mathify. (2026). Sleep Calculator. https://mathify.one/en/health/sleep

Use Cases

Plan your wake-up time

If you need to wake up at a specific time, the calculator tells you when to go to bed to complete full sleep cycles, helping you wake up feeling rested.

Example: Enter your desired wake-up time of 6:30 AM to see recommended bedtimes like 9:00 PM or 10:30 PM.

Determine your ideal bedtime

If you know when you want to go to bed, the calculator suggests the best times to wake up, ensuring you wake at the end of a cycle.

Example: Going to bed at 11:00 PM suggests wake times like 6:00 AM or 7:30 AM.

Frequently Asked Questions

How does the Sleep Calculator work?
It uses the average 90-minute sleep cycle to estimate the best times to wake up or go to bed. By aligning your sleep with the end of a cycle, you can wake up feeling more refreshed and avoid grogginess.
What is the ideal sleep cycle length?
The average sleep cycle lasts about 90 minutes, but it can vary from 70 to 120 minutes. Our calculator uses 90 minutes as a standard estimate, which works well for most people.
Can I use this calculator to plan a nap?
Yes, you can use it to find the best time to wake up from a nap. For a short nap, aim for 20 minutes, or for a full cycle, aim for 90 minutes to avoid sleep inertia.

Tips & Common Mistakes

Tips

  • Try to wake up at the end of a sleep cycle, not in the middle, to reduce grogginess.
  • Consistency is key: go to bed and wake up at the same times every day, even on weekends.
  • Allow 15 minutes to fall asleep, so factor that into your bedtime calculation.
  • If you feel tired after waking, you might need more or fewer cycles; adjust by 15-minute increments.

Common Mistakes to Avoid

  • Ignoring the time it takes to fall asleep, which can shift your actual sleep start time.
  • Assuming every sleep cycle is exactly 90 minutes; individual variation is normal.
  • Using the calculator to determine sleep debt or medical conditions; it's only a planning tool.

Last updated: August 13, 2026