Do you often find yourself lying awake at night, staring at your alarm clock as it ticks away the time? Or, do you wake regularly during the night, leaving you feeling as if you haven’t slept at all?
Many of your daily habits likely play a bigger role in your nightly struggles than you think. Both our ability to fall asleep, and the quality of sleep we have are highly dependent on a variety of external and internal stimuli.
Learning about how each activity impacts your sleep patterns can help you make changes and finally get a good night’s rest.
Why An Exercise Routine Helps Regulate Sleep
Body heat: Part of the natural changes our circadian rhythm brings about over the day are changes in body temperature.
The rise and fall of our body temperature associated with exercise mimics the natural fluctuations which lead up to sleep.
This can be enough to gently nudge your circadian rhythms back into ideal synchronization if exercise is performed at the right time of day. 
Beneficial stressor: Exercise is a “beneficial stressor” in that it activates sympathetic nervous system (our flight-or-fight response). Your body compensates by increasing the time spent in deep sleep - leaving you feeling more rested.
Decrease stress, anxiety and depression: Many of us experience difficulty falling asleep due to ruminating thoughts related to real or perceived stress.
Exercise has been scientifically proven to reduce reactivity to stressors, so that we are better able to manage stressful situations when they come our way.
It has likewise proven itself to be effective in reducing the symptoms of anxiety and depression. 
What Kind Of Exercise Should I Do?
When it comes to improving your quality of sleep, aerobic exercise wins. Numerous studies have documented the efficacy of regular aerobic exercise programs for treating chronic insomnia.
Aerobic exercises (“with oxygen”) include any that involve sustained activity which requires the body to consume large amounts of oxygen, such as walking, swimming and biking.
Whereas, weight training and sprinting are anaerobic exercises. While an important component of a healthy lifestyle, these activities are not effective for promoting sleep. 
What Time Of Day Should I Exercise?
While fitting in exercise whenever feasible for your lifestyle can go a long way towards improving your sleep, studies have shown that exercising in the late afternoon or early evening has the greatest impact.
The reason for this relates back to how exercise promotes better sleep: In order to take advantage of the drop in body temperature you’ll want to complete your workout approximately 3-5 hours before bedtime.
How Long Should I Exercise?
While exercising for 15-45 minutes daily is the optimal duration; however studies have shown that 150 mins/week is sufficient to see improvements in quality of sleep up to 60%.
Your diet impacts your sleep through more means than just providing calories: What we eat and when we eat it can enhance or inhibit our sleep.
Foods That Inhibit Sleep
While some foods are well known for their ability to interfere with sleep, other dietary staples are equally responsible for keeping you up at night.
1. Coffee: Caffeine has a half-life of 5 hours: which means that 10 hours after drinking your coffee, 25% left in your system; and 20 hours later 12.5% of the caffeine still
So, while an early afternoon coffee as a post-lunch pick-me-up may seem like a good idea, it might be what is keeping you up at night.
2. Alcohol: Alcohol is a little more tricky in how it affects sleep; because it causes drowsiness many mistakenly believe that a drink can serve as a sleep-aid.
However, research has shown that while alcohol increases slow-wave sleep during the first half of the night, it actually leads to an increase in sleep disruptions during the second half. 
3. Chocolate: Chocolate, particularly dark chocolate, can contain high levels of caffeine and thus needs to be treated similarly to coffee and other caffeinated beverages.
In general try to avoid any kind of sweets in the evening though since it will not only improve your sleep but your overall health as well.
4. Spicy Foods: Capsaicin - the molecule which gives your spicy foods that kick - can causes changes in body temperature that can cause a disturbance in your circadian rhythms if consumed late at night.
5. High-Refined-Fat-Foods: We all know that certain unhealthy (aka. refined and trans) fats negatively impact our health; but there’s also evidence that they may be keeping you up at night.
Animal studies have shown that high-fat diets are associated with more fragmented sleep, along with excessive daytime sleepiness.
Researchers speculate that this may be linked to the neuro-chemical orexin -- which plays an integral role in our sleep-wake cycles. Rats who were fed diets with a high amount of refined fats showed a decrease in orexin-sensitivity. 
Foods That Promote Sleep
There are many foods that are lauded for their ability to promote a better, more restful sleep. These are the key components you want to be on the lookout for when planning your bedtime snack:
1. Magnesium and potassium: One of the symptoms of magnesium deficiency is insomnia, so you’ll want to load up on healthy sources of this mineral such as leafy greens, beans and lentils, and bananas. 
Magnesium and potassium promote muscle relaxation, and thus not only help you feel more comfortable but can help deal with nighttime leg cramps.
2. Tryptophan: Tryptophan is an amino-acid found in both animal and plant proteins. Our bodies use tryptophan to create serotonin -- a neurotransmitter involved in both mood regulation and sleep cycles.
Many foods are great natural sources of tryptophan, such as milk, bananas, peanut butter and walnuts.
3. B Vitamins: B vitamins are essential for both the synthesis and release of certain neurotransmitters and hormones that are part of the sleep-wake cycle: such as serotonin and melatonin.
Supplements are often prescribed to treat restless-leg-syndrome - a nighttime movement disorder which significantly disrupts sleep.
However, there’s no need to take a supplement. You can get your fill from legumes (chick peas), dark green vegetables, whole grains and fish. 
4. Theanine: Theanine is yet another useful amino acid when it comes to treating sleep disorders. Research has shown that administering a theanine supplement improves sleep quality and increases sleep efficiency, while decreasing nighttime awakenings.
There is one superfood packed with theanine: Green tea. However, while green tea has significantly less caffeine than a cup of joe, it is recommended to opt for the decaffeinated kind if your goal is a good night’s sleep. 
5. Melatonin: Melatonin is naturally produced by your pineal gland under direction of your circadian rhythms and is what makes us feel sleepy as we near bedtime.
It usually begins to release around 9 p.m. and remains at a high level for the next 12 hours, throughout the night into the next morning.
While there are certain foods that contain melatonin, you can also purchase this essential sleep-inducing hormone in capsules at your local pharmacy or health food store.
Taken at the right time of day, and in the right dosage, melatonin supplements can help reset your biological clock to optimal levels and is often used as a natural treatment for sleep disorders.
However, you don’t need to take supplements: simply add tart fruits, like cherries and pineapples, to your diet. Oats, walnuts and bananas are likewise great natural sources of melatonin.
Here are some more foods that will help you to sleep better.
Timing Your Meals
It’s not just what you eat, when you eat also counts.
Research at Yale’s School of Medicine has revealed just how vital the timing of our meals is to maintaining optimal circadian rhythms.
For instance, when we wake in the morning and our central clock is being stimulated by the light of day, but we decide to skip breakfast we have just given our body conflicting information that can in turn disrupt our circadian rhythms. 
The main takeaway from this study and similar research is that you should not be eating close to your intended bedtime; but the recommendations for how long before bed you should refrain from eating vary: some saying not to eat after 7 pm, while others suggest 5 hours before lights-out and still others indicate a minimum of 12 hours before you eat breakfast.
It’s also recommended to reserve large meals for the first half of your day, and consuming lighter snacks in the evening.
Mattress & Pillows
When it comes to choosing a mattress and pillows, there’s no universal rule for everyone to follow. Whether you should opt for firm or soft, memory foam or pocket coil all depends on your personal preferences, particularly the position you sleep in.
Back Sleepers: Sleeping on your back is often the sleep position recommended by doctors, since it allows the body to lay relatively straight.
However, that does not mean there is no pressure being put on your spine as you sleep.
You should have a mattress which is both able to support the spine -- and not allow the exaggeration of any curves -- but is also plush enough to not cause painful compression.
- Opt for a medium to firm mattress
- Memory foam is more ideal since conforms to natural curves while maintaining support
- May substitute for a pocket coil with pillow top.
Side Sleepers: Sleeping on your side has its own benefits: It can help reduce acid reflux, reduces the pressure on the lungs, and promotes better blood circulation.
The main complaints of side-sleepers are achiness in the shoulder and hip area. The way to circumvent this is to ensure your mattress adequately cradles these parts. Good mattresses for side sleepers are the Nectar, Purple or Casper.
- Medium to soft mattress
- Memory foam is ideal for reducing number of pressure points
Front Sleepers: Sleeping on your front is by far the worst for your health: Not only does it put pressure on your stomach, but the spine is the least supported in this position.
While it is recommended you switch sleeping positions, there are certain considerations when choosing a mattress that can help alleviate some of the negative side-effects.
Opt for a firmer mattressPocket-coil mattresses are a big no-no, as the entire front side of your body is exposed to the pressure points and they will not support your spine.
There’s no doubt that sharing beds can add to your difficulty getting a good night’s sleep.
It’s unlikely that both people with have identical wants and needs when it comes to their sleep position and mattress preferences; and when one partner is uncomfortable their tossing and turning can quickly cause problems for the other.
Upsize to a Queen: A Full-sized bed will leave you and your partner with only 27 inches of space -- which amounts to the size of a baby’s crib.
Opt for memory foam, or ditch your box spring: While memory foam is the optimal choice for reducing the transfer for movements, replacing your box spring with slats can serve as a quick fix.
Invest in a mattress designed for couples: The Sleep Number mattress let’s you and your partner select your ideal level of firmness, comfort and support so you don’t have to compromise.
Research has shown that people who sleep in blue rooms tend to sleep longer than when compared to other colors. Blue toned walls can serve as yet another signal telling your brain it’s time to sleep.
It’s important that your bedroom makes you feel comfortable and relaxed. It’s less important to follow a strict guide than to follow your own intuition.
Light is one of the most powerful cues for your body’s internal clock, it’s thus important to ensure that you are exposing yourself to light and dark during the optimal times.
Try to keep your bedroom as dark as possible while you sleep by using black-out curtains.
However, lighting is not just important when you are sleeping. It’s recommended to dim the lights one hour before heading to bed to cue your brain it’s time for sleep.
For this reason it’s also best not to stare at bright screens (TVs, computers, and smartphones) during this time period, although many phones do offer a “night-mode” setting that can help.
In fact, the blue light -- in the 460-nanometer range -- emitted by electronics and energy-efficient lightbulbs has been shown to delay the release of melatonin.
Generally speaking, the optimal temperature for sleep is between 60-70 degrees Fahrenheit (15.5-19 degrees Celsius).
This, yet again, links back to the natural changes that occur as part of your circadian rhythms: your body temperature drops during the night, and thus maintaining a cooler room will help maintain this.
Setting your thermostat far below or above this ideal point can make it more difficult to fall asleep, lead restlessness and even affect the time you spend in REM sleep.
The material of your mattress, pillows, bed linens and pajamas can significantly impact your temperature while sleeping. Look for fabrics that are breathable and won’t trap heat such as cotton; likewise choose pillows made of natural materials over synthetic.
As for mattresses, memory foam is the best option when it comes to temperature control.
Your brain continues to register noises while you sleep, which although unknown to you may be causing you to toss-and-turn or wake briefly.
It’s more likely for a noise to wake you up while in stages 1 and 2 of sleep, than while in 3 and 4. Additionally noise tends to cause more sleep disruptions in the second half of the night.
There’s also evidence that you’re more likely to respond to a sound while sleeping if it is emotionally significant to you: Such as when a mother hears her baby crying.
If noises outside of your control are keeping you up at night, white noise can be used to “drown” them out. White noise works by reducing the difference between the ambient noise and a sudden, “peak” sound -- like a toilet being flushed -- lowering the chances your sleep will be disturbed.
There are many white noise generators you can purchase, and now there are even phone apps that can do the trick. However, a simple fan or air purifier may be sufficient to help you sleep through the night.
Fifty percent of people who experience difficulty sleeping blame stress and worry for their troubles.
Meditation, in relieving feelings of stress and anxiety, and - over time - improving our overall response to stressful situations, has been proven to improve both the duration and quality of sleep, with the effect increasing with prolonged practice.
Researchers at the Stanford Medical Center conducted a pilot study to investigate the effectiveness of meditation in treating insomnia. 
Following a six-week mindfulness meditation training program, 60% of the participants no longer fit the qualifications for the diagnosis - falling asleep twice as quickly as they had previously.
A 12-month follow-up revealed that the majority of the benefits were long 11]Similarly, experienced meditators show enhancement in both REM and non-REM sleep; as well as experiencing fewer awakenings when transitioning between cycles. [
Meditating at any time of day helps to reduce stress and improve sleep; however, incorporating meditation into your bedtime routine can be especially effective in preparing your body and mind for sleep.
5. Structuring Your Bedtime Routine
Sleep is a behavior: You can teach yourself to sleep well, but you can equally teach yourself to sleep poorly. Our habits surrounding our bedroom routines have a much more significant impact on the quality of our sleep than many of us believe.
Children often have bedtime routines to encourage the onset of sleep, but this is just as important for adults.
Our body needs time to adjust and cool down after a busy day: Just as sleep inertia affects our ability to feel alert after being abruptly roused from a nap we need to allow our body and mind time to transition into a state of relaxation and finally sleep.
When structuring your bedtime routine the main goal is to reinforce your natural circadian rhythms. By developing a scheduled routine of activities at bedtime we can form habits that promote sleep, while avoiding those that impede it.
- Follow a scheduled pre-sleep routine
- Avoid stimulating activities and all screens for 30-60 minutes before bedtime
- Reserve your bed for sleep and intimacy
- Get rid of your alarm clock
Maintain a regular sleep/wake schedule (even on weekends): While it may seem like a treat to sleep in way past your usual waking time on the weekends, altering your sleep-wake schedule for just one night is sufficient to cause disruptions in your circadian rhythms that will affect you for days following.
Choose a favorite relaxing activity to wind down: Close off your day with a period of relaxation by incorporating one of your favorite calming activities into your bedtime routine.
Choose what works for you -- while one person may find reading relaxing, if you aren’t a bookworm yourself this will be counterproductive.
Some suggestions include:
- Listening to music
- Stretching (yoga)
Prepare your room for sleep:
- Dim the lights
- Lower the temperature
Make your bed: A recent poll conducted by the National Sleep Foundation revealed that making your bed may be more than just a morning nuisance.
Those who reported they made their bed every morning had a 19% higher chance of getting a good night’s sleep than those who skipped this chore.
While the reason behind this is still unknown, researchers speculate that it’s related to feeling good about where you sleep.
Decluttering and maintaining a tidy bedroom can go a long way towards promoting better, more restful sleep.
6. Tools And Resources
Nowadays there are many helpful tools to help you sleep better available at the click of a mouse -- or the swipe of a finger.
Sleep Cycle Alarm Clock will revolutionize the way you wake up. This innovative app actually tracks your sleep patterns, and uses this information to gently rouse you when you’re in a light stage of sleep -- preventing sleep inertia.
The app achieves this by monitoring your movements throughout the night, as these vary depending on what stage of sleep you’re in.
There are two modes: Either using your phone’s microphone which “hears” your movements, or the accelerometer, which is placed on your mattress to detect your movements throughout the night.
At only $0.99 on iTunes it’s a small price to pay for waking up feeling refreshed.
F.lux began as a software which adapts the colors of your computer’s display for different times of the day: Not only optimizing your viewing experience, but reducing your exposure to blue light - which inhibits the release of melatonin, a hormone essential for sleep.
While the app is still under construction, there are plenty of similar ones to choose from on iTunes and Google Play Store, so you can enjoy your devices in the evening without disrupting your sleep.
For iOS you can also use the built-in Nightshift mode to adjust white balance of your screen based on time of day.
White Noise by TM Soft allows you to choose from a library of sound loops including beach waves, air conditioner and running water.
The app comes in three versions: Free, Full and Pro; with even the freebie coming with 40 sound loops as well as additional alarm sounds.
Whether you are looking for a way to drown out nighttime noise disturbances, or need a substitute for your favorite fan while traveling, White Noise’s variety will suit any preference.
For those interested in experiencing how meditation can transform your sleep, Headspace is a great place to start.
With short guided meditations readily available on both desktop and mobile devices Headspace makes it easy to incorporate meditation into your bedtime routine.
You can try their Take 10 program for free, or choose from a variety of subscription options to get started today.
While lying awake at night staring at your alarm clock waiting for sleep to come may make you feel powerless, there are a lot of concrete actions you can take to conquer your sleeping problems once and for all.
It’s not necessary to undergo a total life overhaul in order to enhance the quality of your sleep. Start by experimenting with the tips that are most appealing to you and see how they impact your sleep.
Keeping a journal can help you track what works and what doesn’t. Once you’ve felt the effects of a good night’s sleep you’ll wonder how you ever got by without it.