Relief for leg pain in bed: your ultimate guide
Compartir
Does it sound familiar? You get into bed looking for a well-deserved rest and, suddenly, a sharp pain, cramps, or a heavy sensation takes over your legs. No, it's not a "normal" discomfort or something you have to resign yourself to living with. Leg pain in bed is actually a warning sign your body is sending you.
Why do my legs hurt when I'm in bed?
That waking up in the middle of the night, with painful legs and a feeling of helplessness, is an experience many people share. But this discomfort is usually not an isolated problem, but rather the warning light that turns on in your car's dashboard: it's telling you that something is wrong. The causes can be very varied, from circulatory problems or the famous restless legs syndrome to a bad posture caused by your mattress.
Let's debunk the idea that it's inevitable pain. Very often, the silent culprit behind your nights turning into torture is precisely the surface where you sleep. A mattress that doesn't adapt to you can aggravate, and even cause, that leg pain in bed.
The misaligned car analogy
Think of it this way: your body is like a car. If the wheels are misaligned, no matter how good the engine is; the tires will wear out unevenly and, over time, problems will arise in the suspension and steering. Exactly the same thing happens with your body and an unsuitable mattress. Night after night, it is "misaligning" you without you realizing it.
A mattress that is too soft makes your hips sink, and one that is too firm creates uncomfortable pressure points. Both extremes lead to the same thing: a bad alignment of the spine that can pinch nerves as important as the sciatic nerve, causing pain that goes down your legs.
That tension that accumulates during the day explodes just when your body should be recovering. And although having good postural habits is key, it's of little use if the surface where you spend 8 hours every night does not give you the support you need. You can discover more about how each position influences your rest in our guide on sleeping positions.
Below we leave you a practical summary so you can start identifying what might be happening to you and how to act.
Common causes of leg pain at night and quick solutions
This chart is a starting point for you to understand the possible cause of your pain and find relief this very night.
| Common Cause | Key Symptoms | First Solution |
|---|---|---|
| Poor Circulation | Heaviness, swelling, cramps, tingling sensation. Worsens after a day on your feet or sitting. | Elevate your legs with a cushion or pillow when lying down. Do gentle stretches before bed. |
| Nerve Compression | Sharp, stabbing or burning pain that goes down from the back or glute. Numbness. | Sleep on your side with a pillow between your knees to align the spine and release pressure on the nerve. |
| Restless Legs Syndrome | Irresistible need to move your legs, often with strange sensations. Relieves with movement. | Get up and walk around a bit. A hot bath or leg massages before bed can help. |
| Muscle Fatigue | Dull and generalized pain after a day of a lot of exercise or intense physical activity. | Apply localized heat with an electric blanket or take a hot shower. Gently stretch the muscles. |
Understanding where the problem comes from is the first step to being able to fix it. A bad mattress not only steals your hours of sleep, but it can also be the direct cause of your discomfort. Throughout this guide, we will give you a roadmap so you can identify what is happening to you and, above all, what solutions you can apply starting today.
Main causes of leg pain at night
Understanding why your legs hurt just when you get into bed is the first step to finding a solution. Almost always, that leg pain in bed is not something that appears out of thin air, but rather the sign that something else is happening in your body. Let's look together at what the most common causes are so you can start deciphering what is happening to you.
Circulation problems: the root of many discomforts
Imagine that your veins are like a road network. During the day, when you move, your leg muscles work like a pump that pushes the blood up, back to the heart, fighting against gravity. But, what happens at night? When lying down and still, that "muscle pump" takes a break.
If the valves in your veins are somewhat weak, what is known as venous insufficiency, the blood does not circulate with the same joy and tends to get stuck in the lower part of the legs. Think of it as a nighttime traffic jam on those roads. That accumulation of blood increases pressure and causes symptoms that you surely sound familiar with:
- Heaviness and dull pain: That feeling that your legs weigh a ton.
- Swelling: Especially, it is noticeable in the ankles at the end of the day.
- Cramps or burning: Contractions that give you a fright and wake you up suddenly.
This is one of the most common causes, but we often overlook it, thinking it's just tiredness.
When the problem is in the nerves
Other times, the pain does not come from the veins or the muscles, but directly from the nerves. Here are two very different problems, but both can ruin your night.
Restless Legs Syndrome (RLS)
RLS is like having a "short circuit" in the nervous system. More than pain, it is a desperate and uncontrollable need to move your legs. It is accompanied by very strange sensations, such as tingling, tingling, or pulling. It usually appears in the evening-night, just when you relax on the couch or get into bed, and it only relieves if you move. Going to sleep becomes a real battle.
Musculoskeletal pain and nerve compression
Sometimes, the origin of the pain is not even in the leg, but in the back. Sciatica is the best example of this. The sciatic nerve is like a very long cable that goes from the lumbar area to the feet. If that nerve is pinched or irritated in the back (due to a herniated disc or by maintaining a bad posture), it can send pain signals along its entire path. It is a pain that people describe as sharp, a stab, or like an electric shock.
Leg pain at night is very related to back problems. Chronic lower back pain is common and, in some cases, that discomfort radiates to the legs during the night. A mattress that is too soft or that has already lost its firmness is a habitual culprit, because it makes your spine sink and become misaligned, something that can increase discomfort while you sleep.
This diagram can help you visualize the first questions you should ask yourself to narrow down the cause of your pain.

As you can see, you have to take into account both external things, like the mattress, and possible internal health causes to be able to tackle the problem at its root.
Distinguishing the symptoms to act better
Knowing how to differentiate what type of discomfort you have is key to seeking the correct solution. Although only a doctor can give you a final diagnosis, these clues can guide you:
Venous insufficiency: It feels like a dull pain, heaviness, or cramps. The legs can be swollen and you notice relief if you elevate them.
Restless Legs Syndrome: The key here is that irresistible need to move your legs to calm a sensation of tingling or tightness. It's not so much pain, it's restlessness.
Sciatica or nerve compression: The pain is sharp, like a stab or an electric current. Often you can follow its path from the back or glute to the leg.
Understanding the nature of your pain is the first big step. Now that you already know the usual suspects, let's see how something as everyday as your mattress can be your best ally or your worst enemy in this fight.
How your mattress can be your ally (or your worst enemy)
When you reach the end of an exhausting day, your bed should be that sanctuary that welcomes you, not a battlefield where you fight against pain. However, for many people, the mattress becomes a silent enemy that, night after night, worsens that annoying leg pain in bed. The surface you sleep on is key, as it decides how your body aligns and how much pressure your muscles and nerves withstand.
Think of your spine as a chain of delicate links. During the day, it supports the tension of every movement and posture. At night, what it needs is the right support to be able to decompress and recover. A mattress that is not suitable breaks that balance in two very clear ways, and almost always ends up being the culprit of your complaints.

The problem of a mattress that is too soft
At first glance, a super soft mattress can seem like heaven, but it's a mirage. As you sink, the heaviest part of your body —the hip— sinks more than the rest. The result? Your spine curves unnaturally, like a hammock, completely misaligning the lumbar area.
That forced curvature presses the intervertebral discs and can end up pinching nerves as important as the sciatic nerve. Suddenly, a pain appears that starts in the lower back, goes down the glutes, and travels down the legs. It is a classic symptom that many suffer without suspecting that the problem is, literally, beneath them.
The danger of a mattress that is too firm
Going to the other extreme, a mattress hard as a board is also not the solution. If the surface is excessively firm, your body does not adapt to it. Instead of distributing the weight, the mattress creates very intense pressure points right in the areas that protrude the most, such as the shoulders and hips.
These pressure points not only hurt by themselves, but they can also strangle the blood circulation in those areas. This aggravates problems like venous insufficiency and can wake you up with numbness, tingling, and the dreaded nighttime cramps.
What a good mattress provides
A mattress is not a medical treatment, but it can prevent the bed from worsening discomfort. What you are looking for is support that keeps the spine aligned without creating pressure points. At Morfeo, for example, the Original Hybrid combines high firmness with a layer of memory foam that provides comfort.
The secret is to find the perfect balance: a medium-high firmness that gives the necessary support to keep the spine straight, but combined with materials that adapt to you to release pressure.
This smart combination is what gives you the best of both worlds:
- Ergonomic Support: A firm core, like pocket springs, prevents the hip from sinking. Thus, your spine maintains its natural alignment during the night.
- Pressure Relief: The top layer of memory foam adapts to your silhouette as if it were giving you a hug. Instead of creating tension points, it distributes your weight evenly. Thus, there are fewer pressure points and it is easier for the muscles to relax.
For those who also suffer from restless legs syndrome, there is another factor that changes everything: temperature. A mattress that accumulates heat can trigger symptoms. That is why breathable materials are crucial. If you are one of those who get hot, look at mattresses with breathable materials, like the VisCool Mattress, the coolest one at Morfeo. Finding the perfect support is vital, and you can learn much more in our complete guide to choosing the right mattress.
Investing in a good mattress is not just buying an object, it is a direct investment in your health and your quality of life. It is the difference between waking up with more pain than you had when you went to bed or waking up feeling like new and without discomfort, ready to take on the day.
Mattresses to rest without straining your back
If you go to bed with discomfort, let the mattress not add to it
A core that supports the hip and a layer that distributes pressure. If you also get hot at night, look at the coolest one in the range.
Altus MattressMedium-high firmness on more than 2,000 pocket springs: supports the hip without creating pressure points, with breathable linen fabric.
View the Altus
Original Hybrid MattressHigh firmness with comfort (pocket springs + memory foam), if you prefer firmer support. Morfeo's most chosen.
View the Original Hybrid
VisCool MattressHigh firmness and the coolest one at Morfeo: PCM thermoregulating fabric and VisCool foam on pocket springs.
View the VisCoolIt is not a treatment: if the pain persists, consult your doctor or physical therapist.
100-night trial on mattresses · 10-year warranty · free shipping on the mainland · made in Spain
Habit changes for immediate relief tonight
While you figure out the underlying cause of your leg pain in bed and consider long-term solutions (like a new mattress), there are some tricks you can put into practice this very night to notice immediate relief. Think of it as a "first aid kit" to calm your legs and go back to sleep well, without having to spend a single euro.
The key is in three points: how you position yourself to sleep, how you relax your muscles before getting into bed, and how you prepare your room so it invites rest. If you combine them, you will notice the difference from the first day.

Master your sleeping posture
The posture you sleep in is everything. A bad position can pinch nerves and hinder circulation, while a good alignment is the basis of a pain-free rest.
Specialists usually recommend sleeping on your side, but with a small trick that changes everything: putting a pillow between your knees. With this simple gesture, you prevent the top leg from going forward, keeping the pelvis and spine in place. Thus you release tension from the lumbar area, which many times is the origin of that pain that goes down your legs.
On the contrary, sleeping on your stomach is one of the worst postures you can adopt. It forces the lumbar curvature a lot and can pinch the nerves even more.
If you want to make the most of this posture, do not miss our article on the benefits of sleeping with a pillow between your legs.
A routine of gentle stretches before going to bed
Just as you warm up before doing sports, preparing your muscles for rest can be the key to avoiding the dreaded cramps and nighttime tension. With a routine of stretches of 5 to 10 minutes just before bed, you can completely relax the musculature of your legs and lower back.
Think of these stretches as a conversation with your muscles, a way of telling them they can relax now and release all the tension from the day.
Here is a simple routine that works wonders:
- Hamstring stretch: Sit on the floor with one leg straight and the other bent. Lean forward until you feel a stretch in the back of your thigh. Hold for 30 seconds on each leg.
- Calf stretch: Stand up, place your hands on the wall, and step back with one leg, keeping your heel on the floor. You will feel the stretch in your calf. Hold the position for 30 seconds and switch sides.
- Knee hug: Lie on your back, bring both knees to your chest, and gently hug them. This is great for relaxing the lower back and glutes. Stay like this for about 30-60 seconds.
Remember that stretches should be gentle. They should never hurt. The goal is to relax, not to push yourself.
Prepare your environment for rest
Your bedroom also has a lot to say when it comes to nighttime pain. Small adjustments to the environment and your routine can make a huge difference.
- A hot bath or shower: Heat helps relax your muscles and improves circulation in your legs. A bath of about 15-20 minutes an hour before bedtime can work wonders.
- Keep the bedroom cool: A very warm room can worsen restless legs syndrome symptoms. The ideal sleeping temperature is between 18 and 21°C.
- Watch out for stimulants: Caffeine and nicotine are notorious for aggravating leg pain and restless legs syndrome. Try to avoid them, especially in the late afternoon and evening.
- Turn off screens: The blue light from phones, tablets, and TVs makes life difficult for melatonin, the sleep hormone. Disconnect from all devices at least an hour before bedtime so your body understands it is time to rest.
The 100-night test to find your ideal mattress
Buying a mattress online, especially if you are looking for a solution for something as specific as leg pain in bed, can be a bit daunting. What if it is not as comfortable as it looks in the photo? What if it does not help with the pain? These are completely logical concerns, which is why a good trial policy is more than an extra—it is essential.
Morfeo's 100-night trial is not just a marketing strategy. It is an ergonomic necessity that instantly eliminates the risk of your purchase. It gives your body the time it needs to adapt and allows you to truly know if you have found the solution to your sleep problems.
Why do you need an adjustment period?
Imagine you have been wearing shoes that are not your size for years. The day you finally put on a new pair that fits perfectly, they feel strange at first. Your foot, which had become accustomed to poor posture, needs time to return to its proper position. The exact same thing happens with your back and your mattress.
If you have been sleeping on a surface that did not provide the right support, your body has become accustomed to that misalignment. When you switch to an ergonomic mattress that properly aligns your spine, it is normal to notice a different sensation during the first few days. Your muscles have to "unlearn" the poor posture and get used to the correct one—the one that is healthy for you.
That is why trying a mattress for 10 minutes in a physical store is not very useful. You need to sleep on it night after night to know if it is truly right for you and your leg pain in bed.
The 100 nights give you that safety margin so your body can do its adaptation work and you can assess the real results.
Your personal sleep laboratory
Think of these 100 nights as your own experiment to improve your quality of life. During this time, you will be able to check for yourself if the mattress delivers on its promises. We encourage you to keep a kind of sleep journal and ask yourself these questions:
- Has my leg pain decreased? Note how you feel when you wake up. Are the cramps still there? Is the pain less intense?
- Do I sleep more deeply and move less? Do you get more continuous sleep, or do you still wake up several times during the night?
- If I sleep with my partner, do we both rest well? It is key that the mattress works for both of you. Thanks to the independent bed system, one person's movements should not disturb the other.
- Do I wake up with more energy? A good night's sleep shows in how you tackle the day. Do you feel less stiffness in the morning and more vitality?
This time allows you to make a decision with all the information, based on your own experience and not just on what we tell you.
A guarantee of complete confidence
The 100-night trial process is very simple and has no fine print. If during this time you decide the mattress is not for you, pickup is free and we will refund you in full. No tricks or complications.
This peace of mind, backed by the mattress's 10-year warranty, demonstrates that our goal is for you to choose the right mattress. It is a service that puts your well-being at the center, because we understand that finding the perfect mattress is an investment in your rest and, therefore, in your life. It is the security of knowing you will not make a mistake on one of the most important purchases for your health.
When you should consult a doctor about your leg pain
Although improving your sleep habits and having an ergonomic mattress are game-changing changes, it is essential to know how to distinguish when leg pain in bed goes from being a simple discomfort to a sign that something else might be happening. Taking care of yourself also means knowing when to ask for help.
There are certain symptoms that are like an emergency light on your car's dashboard. They are warning you that it is time to stop and seek professional help. Ignoring them will not make them disappear, and a timely diagnosis can prevent the problem from worsening.
Signs that you need professional help
Pay close attention if your pain matches any of these descriptions. They are clear clues that you should not wait any longer to make an appointment:
- Sharp, sudden pain: Especially if it appears suddenly, intensely, and in only one leg.
- Progressive worsening: You notice that, despite the changes you have made, the pain gets worse as days or weeks go by.
- Obvious associated symptoms: The pain does not come alone. It is accompanied by swelling, redness, a sensation of heat when touching the area, or weakness in the leg.
- Constant sleep interruption: The discomfort is so persistent that it wakes you up night after night, preventing you from truly resting.
We want to make it clear: a good mattress and healthy habits are your greatest allies, but they can never replace a doctor's opinion. Our goal is to give you tools, but the final word on your health belongs to a professional.
Chronic pain is a serious problem that directly impacts sleep quality. If the pain persists and robs you of your quality of life, seeking a medical diagnosis is vital.
Your primary care doctor is always the best starting point. With an initial assessment, they can guide you and, if necessary, refer you to the specialist that best suits your symptoms, whether a physical therapist, a rheumatologist, or an angiology specialist (the expert in blood circulation).
We answer your questions about leg pain in bed
We know that when leg pain keeps you from sleeping, a thousand questions arise. That is why we have gathered the most common questions we receive to give you clear answers so you can finally find relief.
Can my overweight be behind the nighttime leg pain?
Without a doubt. Being overweight is like carrying a loaded backpack all day; extra tension on your back and joints that does not disappear when you get into bed. At night, that accumulated pressure in the lumbar area can radiate and manifest as a nagging pain in your legs.
If your mattress does not provide the support you need, the problem multiplies. A mattress that is too soft will cause your hips to sink, misaligning the spine and potentially pinching a nerve. This is where a mattress with the right firmness becomes your best ally, distributing your weight evenly and releasing that tension.
Are there foods that worsen restless legs syndrome?
Yes, absolutely. There are certain substances that act like a switch, activating or aggravating that compelling need to move your legs. Stimulants are usually the main culprits.
- Caffeine: You can find it in coffee, tea, cola drinks, and even chocolate.
- Alcohol: Although you think it relaxes you, it actually disrupts sleep cycles and can be a trigger.
- Nicotine: Another stimulant known to affect the nervous system.
The ideal is to reduce consumption, especially in the late afternoon and before bedtime. On the other hand, including foods rich in iron and magnesium in your diet (such as legumes and leafy green vegetables) could help you. Of course, always consult your doctor first.
The connection between what you eat and how you rest is stronger than it seems. Small adjustments to your routine can make a big difference and calm that nagging sensation in your legs.
My partner and I weigh very differently; which mattress should we choose?
A classic in many homes! But don't worry, the solution is simpler than it seems and is called independent bed system. It is the feature that prevents, if one person moves, the other from bouncing to the other side of the bed.
For these cases, hybrid mattresses are a fantastic option. Their pocket-sprung core works like a network of independent shock absorbers: each spring reacts only to the pressure it receives. This way, you will not feel your partner's movements. In addition, the memory foam layer adapts to the contour of each person, providing custom support regardless of the weight difference.
How often should I change the mattress to avoid pain?
As a general rule, a mattress has a useful life of between 8 and 10 years. Although it may look like it holds up on the outside, over time the internal materials lose their properties. It is like an elastic band that, from using it so much, gives out and stops holding.
If your mattress already has a visible dip, it has been over a decade, or, the clearest sign, you wake up with more pain and stiffness than when you went to bed, it is time to say goodbye. The 10-year warranty of Morfeo mattresses covers manufacturing defects during all that time.
At Morfeo, we understand that sleeping well is the foundation of a healthy life. A mattress does not replace a doctor, but it can help you rest with less discomfort.