Skip to main content
expansion tool

Baby Sleep Calculator: Hours of Sleep Needed by Age

Enter your baby's age to instantly see their total sleep needs, night sleep target, wake windows, and nap count — all based on paediatric sleep science.

Built by Adil Sattar · Educational tool, not medical advice

4mo

4 months

4 months sleep guide

Total sleep

14.5h

Night sleep

10h

Nap sleep

4.5h

Naps per day

3

Night schedule

Morning wake07:00
Bedtime target21:00
Night duration10h

Wake windows

Wake window1h 30m
Nap length60 min
Number of naps3

🚨 Safe sleep reminder (AAP guidelines)

  • → Always place baby on their back (supine) for every sleep until age 1
  • → Firm, flat surface only — no soft bedding, pillows, or bumpers
  • → Room-sharing (not bed-sharing) recommended for at least 6 months
  • → Keep room temperature between 68–72°F (20–22°C)

The exact formula this calculator uses

Looks up a fixed table row by baby's age in months (0-24), then subtracts the night-sleep hours from the wake time to give a bedtime target.

Formula

  • Row lookup

    row = first table row with min_month ≤ age ≤ max_month (fallback: 4 months row)

    Because the first match wins, age 1 uses the Newborn row and age 18 uses 13–18 months; the 18–24 months row applies to ages 19–24.

  • Nap sleep

    Nap sleep = total sleep − night sleep
  • Bedtime target

    Bedtime = (wake time in minutes − night sleep × 60 + 1440) mod 1440, shown HH:MM

    Minutes are floored.

Inputs

InputMeaningRange / options
Baby's agemonthsslider 0–24, step 1, default 4
Morning wake timetime inputdefault 07:00

Constants and where they come from

  • Table row 1: Newborn: total 16.5h, night 8.5h, naps 4, wake window 45 min, nap length 45 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 0–1 mo
  • Table row 2: 1–2 months: total 15.5h, night 8.5h, naps 4, wake window 60 min, nap length 60 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 1–2 mo
  • Table row 3: 3 months: total 15h, night 10h, naps 3, wake window 75 min, nap length 60 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 3–3 mo
  • Table row 4: 4 months: total 14.5h, night 10h, naps 3, wake window 90 min, nap length 60 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 4–4 mo
  • Table row 5: 5–6 months: total 14h, night 10.5h, naps 3, wake window 105 min, nap length 60 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 5–6 mo
  • Table row 6: 7–9 months: total 13.5h, night 11h, naps 2, wake window 150 min, nap length 90 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 7–9 mo
  • Table row 7: 10–12 months: total 13h, night 11h, naps 2, wake window 180 min, nap length 90 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 10–12 mo
  • Table row 8: 13–18 months: total 13h, night 11.5h, naps 1, wake window 210 min, nap length 90 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 13–18 mo
  • Table row 9: 18–24 months: total 12.5h, night 11.5h, naps 1, wake window 240 min, nap length 60 min. rule-of-thumb used by this tool; page text only says 'paediatric sleep science', no source cited. Ages: 18–24 mo
  • Safe-sleep reminders: back to sleep, firm flat surface, room-share ≥6 months, 68–72°F (20–22°C). static text attributed on the page to AAP guidelines; not used in calculation

Cutoffs and labels

  • Age→row: 0→Newborn, 1→Newborn, 2→1–2 months, 3→3 months, 4→4 months, 5→5–6 months, 6→5–6 months, 7→7–9 months, 8→7–9 months, 9→7–9 months, 10→10–12 months, 11→10–12 months, 12→10–12 months, 13→13–18 months, 14→13–18 months, 15→13–18 months, 16→13–18 months, 17→13–18 months, 18→13–18 months, 19→18–24 months, 20→18–24 months, 21→18–24 months, 22→18–24 months, 23→18–24 months, 24→18–24 months

Worked example

Inputs: Age 8 months, wake 07:00

  1. Row: 7–9 months (total 13.5h, night 11h, 2 naps)
  2. Nap sleep = 13.5 − 11 = 2.5h
  3. Bedtime = 07:00 − 11h = 20:00

Result: Total 13.5h, night 11h, nap 2.5h, 2 naps, wake window 2h 30m, nap length 90 min, bedtime target 20:00

A reference-table lookup, not an individualised calculation; babies vary widely. The bedtime is just wake time minus the table's night-sleep hours, and the table's 2-3 month values are not separate (age 2 shares the 1–2 row; no 2-month-specific data). Not medical advice.

Formula checked against the calculator's code: November 2026. Written out by Adil Sattar. Found a mistake? Tell us.

Frequently asked questions

How much sleep does a newborn need?+

Newborns (0–3 months) need 14–17 hours of total sleep per 24 hours, spread across multiple sleep periods of 2–4 hours. They have not yet developed a circadian rhythm — it emerges around 3–4 months as melatonin production begins to synchronise with light/dark cycles.

When do babies start sleeping through the night?+

Most babies begin to consolidate night sleep into a 5–6 hour stretch between 3–6 months, though this varies widely. 'Sleeping through the night' in infant sleep science typically means a 5-hour stretch, not 8 hours. Many babies continue waking 1–2 times per night through 12 months — this is developmentally normal.

What is a wake window?+

A wake window is the amount of time a baby can comfortably stay awake between sleep periods before becoming overtired. Wake windows start at just 45–60 minutes for newborns and gradually increase to 3–4 hours for toddlers. Respecting wake windows is the most important principle in infant sleep scheduling.

How do I know if my baby is overtired?+

Signs of overtiredness include: rubbing eyes, pulling ears, glazed stare, fussiness that escalates despite comfort, arching back, reduced interest in surroundings, and yawning. Paradoxically, overtired babies often seem wired rather than sleepy — cortisol released when overly tired produces a state of hyperarousal.

Is it safe for babies to sleep in a dark room?+

Yes — darkness is one of the best sleep environment conditions for babies from birth. It stimulates melatonin production and reinforces day/night differentiation. A fully dark room during naps and night sleep is recommended. Brief exposure to bright morning light after wake helps set the circadian clock.

What is the safest sleep position for babies?+

The American Academy of Pediatrics (AAP) recommends all babies be placed on their backs (supine) to sleep on a firm, flat surface for every sleep until age 1. This position is associated with the lowest SIDS risk. Once a baby can roll both ways independently, repositioning during sleep is not necessary.

Related calculators

Guides to go deeper