# Sleep cycle calculator > How can you plan your sleep? Find bedtimes or wake times using an approximate 90-minute cycle. Plan bedtimes or wake times with a sleep cycle calculator. Compare four options, allow time to fall asleep, and see the limits of cycle timing. - Page: https://how.box/sleep/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/sleep/?mode={mode}&t={t}&l={l} - `mode` (wake or bed): wake: find bedtimes; bed: find wake times. Example: `wake`. - `t` (text): Local clock time, HH:MM. Example: `07:00`. - `l` (whole number 0 to 120): Minutes to fall asleep. Example: `15`. Example answer: https://how.box/sleep/?mode=wake&t=07%3A00&l=15 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `sleep_calculate`: Plan bedtimes for a wake time (mode wake), or wake times for a bedtime (mode bed). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sleep_calculate","arguments":{"mode":"wake","time":"07:00","latency":15}}}` - GET: https://how.box/mcp/run/sleep_calculate?mode=wake&time=07%3A00&latency=15 ## How it works This planner treats a sleep cycle as 90 minutes. NHLBI describes cycles of about 80–100 minutes, so 90 is a convenient assumption, not a prediction of your sleep stages. Bedtime = wake time − (cycles × 90 minutes) − time to fall asleep. To find a wake time, add those durations instead. For a 07:00 wake time, six cycles and 15 minutes to fall asleep give a bedtime of 21:45 the previous day. Five to six cycles allow 7½–9 hours of sleep. The shorter options are comparisons, not a recommendation to restrict sleep. Clock changes are not accounted for. Prioritize sufficient sleep over hitting an exact cycle boundary. ## FAQ **Will I wake up refreshed at these times?** There is no guarantee. Cycles vary between people and through the night; this is a planning aid, not medical advice. **Is 15 minutes a measured average?** No. It is an editable starting assumption. Enter the time that is useful for your planning. **Does the time to fall asleep count as sleep?** No. It is added separately to the time in bed. Five modeled cycles are 450 minutes of sleep, plus your chosen time to fall asleep. **Does the planner adjust for daylight-saving time?** No. It adds or subtracts clock minutes and wraps at midnight. Check clock changes yourself on the night concerned. **Does the planner detect my sleep stages?** No. It uses the same 90-minute assumption for every cycle and does not measure your sleep. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)