Date & Time

Sleep Time Calculator

The night measured — lights-out to alarm, minus the minutes it takes to fall asleep, printed as hours, decimal and complete 90-minute cycles.

Sleep Time Calculator

Results recalculate instantly on every keystroke. Nothing you type is transmitted.

The night
The measured night
—
The decimal twin—
The cycles—
The sleep note—

What this result does not account for

  • One night per run — clock times, no dates
  • Latency 0 to 431 minutes; the guard refuses a latency that eats the span
● Zero-Server Execution Updated 11 Aug 2026 Reviewed by Sana Khalid IEEE-754 Double Precision

In short: 23:00 to 07:00 is 8 hours in bed; with 15 minutes to fall asleep that is 7 h 45 m asleep — 5 complete 90-minute cycles and a 15-minute tail. The overnight is embraced: 01:30 to 07:00 reads 5 h 15 m, three cycles and a 45-minute tail. This page measures a night that happened; health's sleep calculator plans the next one.

Formula

asleep = (wake − lights-out, wrapped at midnight) − latency; cycles = ⌊asleep ÷ 90⌋

A night is a span, not two clock readings: wake before lights-out means the span wraps midnight, which the wrap handles without a fuss. The minutes to fall asleep come off the top — the body is not asleep while the mind is arguing. What is left prints three ways: hours and minutes for a human, decimal for a log, and complete 90-minute cycles for the folk calendar of sleep — an average, not a law, and the medical reading of it lives on health's sleep pages.

Worked Example

  1. Enter when the lights went out and the alarm rang.
  2. Say how long falling asleep took.
  3. Read the night in hours, decimal and cycles.

Defaults: 23:00 to 07:00 with 15 minutes to fall asleep = 7 h 45 m — 5 complete cycles, 15 minutes left over.

Strengths & Limits Of This Model

Where this engine is strong

  • Midnight wrapped without fuss
  • Cycles AND the tail printed
  • Latency priced, not ignored

Where it stops

  • One night at a time — weeks belong to a log

Risk & accuracy notice. Sleep-cycle arithmetic is the folk average; medical meaning is delegated to the linked health pages and named as theirs.

Practical Use Cases

Morning-after checks

what the alarm actually gave

Shift workers

daylight sleeps measured too

Logs

the decimal a tracker imports

Methodology & Editorial Standards

Computation runs in IEEE-754 double precision at full internal precision; rounding to two decimal places occurs strictly at the display layer, so no cumulative drift enters the result. All monetary outputs use accounting presentation — grouped thousands, two decimals, negatives in parentheses — so figures can be transcribed directly into a model or working paper. Division-by-zero and out-of-domain inputs return an em-dash rather than a misleading number.

This engine was reconciled against an independent reference implementation and hand-verified for the worked example above before release. Our full five-stage review process is published on the About Us page.

Sana Khalid Principal Front-End Engineer · ApexConverter

Calendar arithmetic, time zones and ISO date standards. Last reviewed: 11 August 2026.

Disclaimer. This calculator is provided for informational and modelling purposes only and does not constitute financial, tax, legal, medical, or engineering advice. Verify all figures with a qualified professional before acting on them.


Sleep Time Calculator — 8 Expert FAQs

8 analyst-written answers to the questions practitioners actually ask — optimised for voice and answer-engine retrieval.

Why subtract a latency?

Because the clock is not the body: 8 hours in bed is not 8 hours asleep. The minutes between lights-out and actually sleeping belong to the evening. Health's sleep calculator takes the same 15-minute convention on the planning side; this page applies it to the night that happened.

What if the alarm rings after midnight?

Enter it as the clock shows — 07:00 against a 23:00 lights-out wraps automatically, and a 01:30 lights-out against a 07:00 alarm reads the short night it was. The wrap is the whole trick: the span runs from lights-out forward to the next occurrence of the alarm.

Why 90-minute cycles?

Because the folk calendar of sleep counts in them — and the number is an average, not a law. The page prints complete cycles and the leftover tail so the average is visible as an average. What cycles mean for health is health's territory; the links below walk to it.

What does the tail mean?

The minutes that did not fill a cycle: 465 minutes is five full 90s plus 15. Some nights the tail is where waking feels worst; that story belongs to the health pages. Here the tail is arithmetic — the honest remainder of a division.

Can the latency eat the whole night?

It can, and the page refuses honestly: a latency as long as the span means the alarm rings before sleep starts — there is no night left to measure. Enter a smaller latency or an earlier lights-out; the guard says so in those words.

How is this different from the hours calculator?

Direction and semantics. That page prices a work span between two clock times and deducts a break you name; this one measures a sleep span and deducts the latency the body charges. Both wrap midnight; only one of them counts in cycles.

Is this medical advice?

No — it is a clock. The division by 90 is arithmetic on the folk average; what sleep debt, REM timing or cycle disruption mean is the sleep pages' question, and the links point there. If the numbers and the body disagree, believe the body and a doctor.

Why print a decimal too?

Because sleep trackers and spreadsheets eat decimals: 7.75 imports, 7 h 45 m does not. The same total prints both ways so the log entry and the morning-after story never have to be reconciled by hand.

Related Date & Time Engines