You’ve got a deadline coming up, so you think to yourself, “I’ll just stay up all night to finish. What’s the worst that could happen?”

Surprisingly — a lot.

After just one night without sleep, your body feels it. I spoke to experts to find out the exact damage one harmless little all-nighter can actually do.

“Eight hours of sleep is essential for normal body function,” says Dr. Janette Nesheiwat, Medical Director at CityMD. “The effects of lack of sleep have been compared to being as dangerous as drinking alcohol.”

One study found that after 17 to 19 hours without sleep, participants performed worse than someone with a blood alcohol level of .05 percent. After a few more hours without sleep, they performed about as well as people with a blood alcohol level of .1 percent (.02 percent higher than the drunk driving limit in the U.S.).

“In a nutshell, sleep consolidates memory; a lot of the information you take in while you’re awake is processed while you’re sleeping,” says Dr. David Greuner of NYC Surgical Associates.

“Not only your memory is affected, but your ability to solve problems is also hindered, in addition to your alertness, attention, concentration and judgment. Your brain isn’t as efficient as it should be.”

A 2013 study from Berkeley found that during sleep, your memories are essentially moved from short-term holding to long-term storage. When you get poor quality sleep, those memories don’t move to the prefrontal cortex for storage and they’re forgotten.

So, staying up all night to study is one of the worst possible moves. “When you pull an all-nighter — even just one — the lack of sleep can have tremendous effects on your mind and your body,” says Dr. Greuner.

The circadian rhythm is your body’s cycle that tells it when to wake up, go to sleep, and perform many other functions.

“Your body relays ‘messages’ to your hypothalamus all day long, which then sends out the hormones that make you feel tired, hungry, etc.,” explains Dr. Greuner. “If you stay up all night, these messages are out of whack, making you feel downright terrible.”

So, you’ll not only feel tired, but you’ll be hungry, achy, and moody as all get-out.

It also affects your eating habits. “Sleep deprivation affects eating behavior and glucose metabolism. Specifically, levels of ghrelin (a hormone that signals hunger to your body) increase whereas levels of leptin (a hormone that signals satiety) are reduced,” says Kimberly Fenn, Reverie Sleep Advisory Board Member and Associate Professor of Psychology at Michigan State University.

“Thus, after an all-nighter, you are more hungry than normal and your body feels less full. In addition, your body is less able to metabolize glucose, similar to being in a pre-diabetic state.”

Not great news, since the all-nighter diet often consists of Flamin’ Hot Cheetos and M&Ms. All that junk food gets metabolized poorly, making it even harder to stay awake and oddly enough, hungrier for more Cheetos.

Physical and mental issues show up right away with sleep deprivation. But if you don’t get enough sleep on a regular basis, the effects are much worse.

“Long-term sleep deprivation can lead to increased stress levels, diabetes, obesity due to increased ghrelin, strokes, high blood pressure, and depression,” says Fenn.

Dr. Greuner adds that heart attacks, heart disease, irregular heartbeat, heart failure, stroke, diabetes, and high blood pressure can also come from chronic or ongoing sleep loss. But if you’re in the habit of pulling all-nighters regularly, you’re putting yourself at risk.

“If you must pull an all-nighter, try not to get through the day solely on excess caffeine.

Drink plenty of water, eat healthy, and try to sneak in a short nap, if possible,” says Dr. Greuner. Eating healthy when you’ve been up for 24 hours is a mighty task, but if you stay hydrated and nourished, your body will recover much faster.

“It can take weeks for the body to recover from the circadian rhythm disturbance that occurs with sleep deprivation,” says Dr. Nesheiwat. After staying up all night, it’s important to get back to a regular sleep schedule as quickly as possible. If you feel a little off for a few days, it’s just your body getting back to normal.

Though a college kid somewhere is pulling an all-nighter as you read this, consider yourself older and wiser. Skip the moody, hungry, foggy hangover, and get a good night’s sleep already.

Amber Petty is an L.A.-based writer and vocalist. Follow her on Instagram @Ambernpetty.