Sleep Calculator
Calculate optimal sleep and wake times based on 90-minute sleep cycles. Wake up feeling refreshed by timing your sleep properly.
Go to sleep at:
9:45 PM
6 cycles9h sleep
Recommended
11:15 PM
5 cycles7.5h sleep
Recommended
12:45 AM
4 cycles6h sleep
Good
2:15 AM
3 cycles4.5h sleep
Minimum
How It Works
Sleep happens in cycles of approximately 90 minutes. Waking up between cycles (rather than during one) helps you feel more refreshed.
This calculator factors in 15 minutes to fall asleep and calculates optimal wake times based on complete sleep cycles.
Recommended Sleep by Age
Adults (18-64)7-9 hours
Older Adults (65+)7-8 hours
Teenagers (14-17)8-10 hours
Children (6-13)9-11 hours
Sleep Tips
- Keep a consistent sleep schedule, even on weekends
- Avoid screens for 30+ minutes before bed
- Keep your bedroom cool (65-68°F / 18-20°C)
- Avoid caffeine 6+ hours before bedtime
How This Tool Was Built
This tool was created entirely by AI. Here's the exact prompt used to generate it:
Prompt Used
Create a Sleep Calculator tool with these features: 1. Two modes: - I want to wake up at... (calculate bedtimes) - I want to go to sleep at... (calculate wake times) 2. Time input with current time button 3. Show multiple options (3-6 sleep cycles) 4. Color-code results: optimal (green), good (yellow), minimum (red) 5. Show hours of sleep for each option 6. Factor in 15 minutes to fall asleep 7. Educational info about 90-minute sleep cycles 8. Recommended sleep by age reference 9. Sleep tips section Make it calming with purple as the accent color.
Claude AI Model
6,800 Tokens Used
AI-Generated Code Origin