Naps are either a superpower or a trap, and the difference is almost entirely length and timing. Get them right and you wake sharp; get them wrong and you wake groggier than before you lay down. Here is the science of the perfect nap.

The two ideal nap lengths

There are really two good naps, and a danger zone in between:

The danger zone: 30-60 minutes

The worst nap length is the one most people accidentally take. Nap for 30-60 minutes and you wake in the middle of deep sleep, which produces sleep inertia — that heavy, disoriented, groggier-than-before fog that can last 20-30 minutes. If you only have half an hour, sleep for 20; do not drift to 45. (More on beating sleep inertia.)

When to nap

Timing matters as much as length:

The coffee-nap trick

A genuinely effective hack: drink a coffee immediately before a 20-minute nap. Caffeine takes about 20 minutes to kick in, so you nap while it is still ramping up, then wake just as it hits — a double shot of alertness from the nap and the caffeine landing together. It sounds like it should not work; it does.

Should you nap at all?

Naps are great for the sleep-deprived, shift workers, and the natural afternoon dip. But if you need a daily nap to function, or napping is a symptom of chronically bad nights, the nap is treating a symptom — the real fix is better nighttime sleep. Persistent daytime sleepiness despite enough hours in bed can also signal fragmented sleep from mouth breathing or snoring, or even sleep apnea. If you wake unrefreshed and rely on naps, look at your nighttime breathing — restoring nasal breathing with mouth tape for a habitual mouth breather is worth trying — and if you snore loudly with daytime exhaustion, screen for apnea. (Why you wake up tired.)

The bottom line

The perfect nap is either 10-20 minutes (a quick alert reset) or a full 90 (one complete cycle) — never the 30-60 minute danger zone that leaves you foggy. Nap early in the afternoon, try the coffee-nap trick, and if you rely on naps to get through the day, fix the nights instead.