# Free online sleep calculator

> Sleep cycles run about 90 minutes each. Waking at the end of a cycle feels more refreshing than waking mid-cycle. Enter your wake time or bedtime and this calculator finds the.

Find the ideal bedtime or wake time based on 90-minute sleep cycles. Enter when you need to wake up or when you plan to go to bed to get recommendations for 5, 5.5, or 6 complete sleep cycles.

**Interactive version:** https://onlinecalculator.me/health/sleep/
**Category:** Health

## How to use

1. Select **Set wake time** or **Set bedtime** using the toggle.
2. Enter your target time.
3. Optionally adjust the sleep cycle length (default 90 min) and fall-asleep time (default 14 min).
4. Click **Calculate Sleep Times** to see recommended times aligned to complete sleep cycles.

## The formula

```
If mode = 'wake-time':
  bedtime = wakeTime − (cycles × cycleMinutes) − fallAsleepMinutes

If mode = 'bed-time':
  wakeTime = bedTime + fallAsleepMinutes + (cycles × cycleMinutes)
```

**Variables:**
- `cycles` — number of complete sleep cycles (5, 5.5, 6, or 6.5)
- `cycleMinutes` — minutes per cycle (default 90)
- `fallAsleepMinutes` — minutes to fall asleep after lying down (default 14)

## Worked example

**Wake at 7:00 AM.** Fall asleep in 14 minutes. Cycle = 90 min.

| Cycles | Sleep time | Bedtime |
|---|---|---|
| 6 | 9 h 0 min | 9:46 PM |
| 5.5 | 8 h 15 min | 10:31 PM |
| 5 | 7 h 30 min | 11:16 PM |

## Notes

- Source: Carskadon MA, Dement WC. Normal human sleep: an overview. In *Principles and Practice of Sleep Medicine*. 2011:16-26.
- Sleep cycle duration varies by individual and night. The 90-minute average is widely used in sleep science.
- This tool is for informational use. For persistent sleep problems, consult a sleep specialist.

## Frequently asked questions

### What is a sleep cycle?

A sleep cycle is approximately 90 minutes long and includes light sleep, deep (slow-wave) sleep, and REM (rapid eye movement) sleep. Most adults complete 4-6 cycles per night. Waking at the end of a cycle tends to feel more natural than interrupting deep sleep or REM.

### Why does it add 14 minutes?

The calculator adds 14 minutes to account for the average time it takes most people to fall asleep after lying down (sleep latency). If you fall asleep faster or slower, adjust the fall-asleep field.

### How many sleep cycles do I need?

Most adults need 5-6 complete cycles for optimal rest — that is 7.5 to 9 hours of sleep. The National Sleep Foundation recommends 7-9 hours for adults aged 18-64. Fewer than 5 cycles (under 7.5 hours) may leave you feeling groggy.

### Why do I feel worse after a full 8 hours?

If you wake up in the middle of a sleep cycle — especially during deep sleep — you may feel groggy even after a long night. That state is called sleep inertia. Timing your alarm to the end of a cycle (even if total sleep is slightly shorter) often feels better.

### Can I change the cycle length?

Yes — the Sleep cycle field defaults to 90 minutes but you can adjust it. Some research suggests cycles range from 70-120 minutes depending on the individual and time of night. If you know your personal cycle length from a sleep tracker, enter it for more accurate results.

## Sources

- [About Sleep — recommended hours by age](https://www.cdc.gov/sleep/about/index.html) — Centers for Disease Control and Prevention
- [Understanding Sleep](https://www.ninds.nih.gov/health-information/public-education/brain-basics/brain-basics-understanding-sleep) — National Institute of Neurological Disorders and Stroke

## Related calculators

- [BMR calculator](https://onlinecalculator.me/health/bmr/) — Basal metabolic rate — calories your body burns at rest each day.
- [Calorie calculator](https://onlinecalculator.me/health/calorie/) — Daily calorie needs based on activity level and health goals.
- [Heart rate zones calculator](https://onlinecalculator.me/health/heart-rate-zones/) — Find your five training zones to improve cardio fitness.
- [Water intake calculator](https://onlinecalculator.me/health/water-intake/) — Daily hydration needs based on weight, activity, and climate.

---

Part of [onlinecalculator.me](https://onlinecalculator.me/) — free calculators that run entirely in your browser.
Machine-readable index: https://onlinecalculator.me/llms.txt
