Soon, you might not need that melatonin after all.

Maybe theres chamomile tea in your pantry andmelatoninsupplements in your bathroom cabinet.

You could be unknowingly consuming something thats to blame.

Hand dipping a chip into a jar of salsa with a pot in the background

According to sleep doctors, there are more foods and drinks that can mess with sleep than people realize.

Plus, they offer guidance on which foods will work for you, not against you.

That means having pizza or spaghetti for dinner could keep you up.

A pepperoni pizza with a visibly crispy crust sits on a wooden peel, ready to be served. No people in image

Burgers

Like greasy pizza, burgers are another food that takes the body longer to digest.

Ice cream

You might want to resist having a bowl ofice creamfor dessert if youre dealing with sleep issues.Dr.

Singh also said that chocolate ice cream in particular can keep you up.

Person eating a large cheeseburger with both hands

But in real life, Patel said, this can make falling asleep harder.

Milk can trigger acid reflux, he said, adding that this can happen to both children and adults.

Patel explained that the lactose in milk can be problematic.

Person holding a cup of frothy coffee with a spoon, on a wooden surface

Some fancy water brands, like Vitaminwater, can have up to50 milligrams of caffeine, he said.

Singh added that some electrolyte drinks or powders can also contain caffeine.

Peppermint

Sucking on a peppermint after dinner or sipping peppermint tea seems pretty innocuous.

Close-up of milk being poured into a glass, creating a splash

But Singh said that this can cause sleep problems for some people.

All three sleep doctors recommend eating a dinner that includes complex carbs, fiber, and lean protein.

Examples of lean protein arepoultry and fish.

Person drinking water from a bottle outdoors with a backpack, in a natural setting

Singh says that meal timing matters, too.

A handful of nuts is a good nighttime snack because it has fiber and unsaturated fats, he said.

Soon you might not need that melatonin after all.

A tin of mints half-opened on a table

This post originally appeared onHuffPost.