On the first day of school in Johnstown, Pennsylvania, seven-year-old Aaminah Ingram-Kirk hops off the bus and marches into Bishop McCort Catholic Elementary West — bright-eyed and ready. But for many families, that groggy morning stumble down the aisle is more like a zombie shuffle. After a summer of sleepovers, movie marathons and red-eye flights, kids' body clocks drift late, and the first school bell rings way too early.

The fix isn't magic — it's math. Sleep experts say the trick is to ease back into a routine a week or two before classes start, nudging bedtime 15 to 30 minutes earlier each night. Slow and steady beats sudden, says Dr. Nitun Verma, a spokesperson for the American Academy of Sleep Medicine. "You're trying to take the cognitive load off your mind," he explains. "It would be like if you're driving, you're slowly letting go of the gas pedal."

How much sleep do kids actually need? It changes with age. Preschoolers do best on up to 13 hours a night. Tweens need between nine and 12 hours. Teenagers function well on eight to 10 hours of shut-eye. Getting those hours matters, because sleep isn't just about rest. "We don't say 'get good sleep' just because," says pediatrician Dr. Gabrina Dixon of Children's National Hospital. "It really helps kids learn and it helps them function throughout the day."

The experts also recommend skipping heavy meals before bed and turning off screens two hours before lights-out. That's because bright screens keep the brain buzzing. Instead, families can wind down with calming rituals like a warm shower or reading a story together. In the morning, soaking up daylight near a window or stepping outside helps train the brain to wake up, Verma says.

Real families already use these moves. Nikkya Hargrove, an author and bookstore owner from Connecticut, shifts her twin daughters' bedtime up by 30 minutes the week before school. She expects some pushback — her kids will often negotiate for a few extra minutes to read. Hargrove welcomes those conversations, because they help her children learn to speak up for themselves. And if they stay up too late and face a rough morning? That's a lesson too. "If they're groggy and they don't like how they feel, then they know, 'OK, I have to go to bed earlier,'" she says.

Sleep quality matters just as much as duration| First-day jitters can sabotage the calmest bedtime. Dixon suggests talking with kids about what's scaring them — a new school, making friends — and doing a test run of stressful moments, like visiting the campus or meeting classmates at an open house. And if the routine doesn't come together in time? That's okay. Kids will adjust, and so will parents. "I always say, 'Take a deep breath, it'll be OK,'" Dixon says. "And just start that schedule."