scyther5 / Shutterstock

“The ideal temperature is what you are comfortable in,” Dr. Doghramji says, “But we find that people sleep better when the temperature is on the cooler side.” Temperature levels affect melatonin level, but experts are not sure why exactly, he adds. The optimal room temperature for sleep is around 65 degrees, according to the National Sleep Foundation.