By Frederic Gachon and Meltem Weger

Some of us love to be tucked up in bed by a particular time every night, ensuring a certain number of hours of sleep. Others go to bed when they start to feel tired, or when they’ve finally finished everything they wanted to get done, and get up when they need to in the morning.

But does it matter what time you go to bed?

Getting a good night’s sleep can improve brain function, mood, metabolic health and immunity.

Not getting enough sleep or having poor sleep quality increases the risk of infections and other health problems such as depression, dementia, weight gain, diabetes and high blood pressure.

Perhaps surprisingly, sleeping for seven to eight hours is associated with better health outcomes than shorter or longer sleeps.

The timing of our sleep is orchestrated by the so-called “circadian clock”, the body’s internal biological timekeeper. It helps regulate many processes on a daily basis including the timing of our sleep-wake cycle.

During evolution, living species – from bacteria and plants to humans – have acquired a circadian clock to optimise bodily processes in an environment that changes throughout the day. Consequently, almost all aspects of behaviour are rhythmically organised to anticipate these daily changes.

While we are, in theory, able to sleep at any time during the day as long we’re sufficiently tired, our circadian clock dictates us to be “diurnal”, meaning we’re active during the day and sleep during the night.

Working against this default – by doing shift work, where we work regular shifts at night or alternate between shifts, or staying up longer/waking up later over the weekend – can result in poorer health because it disconnects our physiology and behaviour from our internal circadian clock that is supposed to organise it.

Even the apparently harmless weekend sleep-in after a late night increases the risk of obesity and mental health issues.

Our individual biological night (when our body thinks it’s night) may differ substantially from the actual environmental night.

But modern society doesn’t really support going to bed late and waking up later in the day. It can be even considered a sign of poor self-discipline and laziness. We’re told ‘the early bird catches the worm’, or that early risers have an advantage over late risers and tend to be more productive and successful.

But our sleep preferences are not really a matter of choice: they are mainly driven by our genes and depend on our chronotype – the natural tendency of a person to sleep or be active at a certain time during the day according to their circadian rhythms.

While most of us know people who are larks (early types) or night owls (late types), these chronotypes are the two extremes on the spectrum. Most people are somewhere in the middle, and it is not really possible to actively alter our chronotype.

However, it can change over a lifetime: children are larks, adolescents tend to be night owls, and after the age of 20 and as we increase in age, we become lark-like again.

Later chronotypes may have a disadvantage due to the pace of modern life as their natural chronotype conflicts with the demands of their schedule. Consequently, a late chronotype is often associated with poor cardiometabolic health (affecting your heart and blood vessels) and the higher risk of depression.

In this context, there is a growing call from scientists for schools to delay the start time for teenagers to ensure sufficient sleep and improve health outcomes and school performance.

So there is no simple answer to the question of when to go to bed. While a regular good night’s sleep with an average of seven to eight hours is important for general health and wellbeing, our optimal bedtime depends on our internal circadian clock and other factors including genetics that control how long we need to sleep.

Frederic Gachon is Associate Professor, Physiology of Circadian Rhythms, Institute for Molecular Bioscience, The University of Queensland and Meltem Weger is Postdoctoral Research Fellow, Institute for Molecular Bioscience, The University of Queensland. This article is republished from The Conversation under a Creative Commons licence