Q. For working parents, it’s difficult to find time to exercise during the week, and early morning is often the only time slot available. Is it better for my overall health to get eight hours of sleep per night during the week but not have time to exercise, or to get six and a half to seven hours of sleep per night and fit in a morning workout?

A. “That’s a terrible choice,” said Dr. Charles Czeisler, a sleep expert at Brigham and Women’s Hospital and Harvard Medical School in Boston. Both sleep and exercise are key components of a healthy lifestyle and shouldn’t be pitted against each other, Dr. Czeisler said.

Sleep is important for workouts, he noted, reducing the risk of injury and allowing muscles to recover from exercise. Lack of sleep weakens the immune system, making people more likely to become sick — which means missing workouts. Sacrificing sleep has also been tied to weight gain, cardiovascular disease and diabetes, among other health problems. Of course, regular exercise provides a lot of benefits, too, including sounder sleep.

Dr. Czeisler also noted that going to bed late, particularly if you’re using electronic devices and sitting under bright lights before bedtime, shifts the body’s circadian rhythms later. But people still need around eight hours of sleep per night. So if you get up after six and a half hours to work out, “you’re essentially exercising during your biological night,” he said.