shopping cart 0

Your Cart is Empty

Why do My Legs Hurt After Sleeping? Causes, Mattress Tips and Solutions

Why You Wake Up With Leg Pain—and How Your Sleep Setup May be Affecting It

Quick Answer

If your legs hurt after sleeping, the cause may be as simple as sleeping in one position for too long—or it may involve your mattress, spinal alignment, muscles, joints, nerves, or circulation. A mattress that is too firm can create pressure points, while one that is too soft may allow your hips and pelvis to fall out of alignment, placing additional stress on your lower back and legs.

If your discomfort improves after walking around for several minutes, your sleep environment may be contributing. However, persistent, severe, or worsening leg pain—or pain accompanied by swelling, numbness, weakness, redness, or fever—should be evaluated by a qualified healthcare professional.

Quick Facts

  • Morning leg pain can originate in the muscles, joints, nerves, blood vessels, or lower back.
  • Your mattress can influence pressure distribution and spinal alignment throughout the night.
  • Side sleepers often experience different leg pressure than back or stomach sleepers.
  • Body weight affects how supportive or firm a mattress feels.
  • Not every case of morning leg pain is mattress-related.

Table of Contents

  1. Why Do My Legs Hurt After Sleeping?
  2. Common Causes of Morning Leg Pain
  3. Morning Leg Pain Decision Tree
  4. Can Your Mattress Be Contributing?
  5. Mattress Too Firm vs. Too Soft
  6. How Sleeping Position Affects Your Legs
  7. Pressure Relief and Spinal Alignment
  8. Natural Latex vs. Memory Foam
  9. How to Reduce Morning Leg Pain
  10. When to See a Doctor
  11. Frequently-Asked Questions

Why do My Legs Hurt After Sleeping?

Waking up with sore, stiff, or aching legs can be frustrating—especially if the discomfort wasn't there when you went to bed.

Some people notice pain in their thighs. Others wake with aching calves, sore knees, or discomfort that seems to involve the entire leg. In many cases, the pain gradually improves after walking around for a few minutes. In others, it persists throughout the day.

The location of the pain, how long it lasts, and what makes it better or worse all provide important clues.

For example:

  • Does the pain occur in one leg or both?
  • Is it a dull ache, burning sensation, or sharp pain?
  • Does it travel from your lower back into your leg?
  • Does changing sleeping positions help?
  • Does the pain disappear after you get moving?
  • Do you sleep better on another mattress?

Answering these questions can help determine whether your sleep setup deserves closer attention.

Common Causes of Morning Leg Pain

Possible Cause Why it May Happen Typical Clue
Mattress too soft Your hips sink too deeply, affecting spinal alignment. Leg discomfort begins with lower back stiffness.
Mattress too firm Pressure builds beneath the hips and legs. Pain occurs where your body contacts the mattress.
Side sleeping pressure Your upper leg rotates the pelvis throughout the night. Pain improves when placing a pillow between the knees.
Muscle stiffness Muscles tighten overnight. Walking quickly improves symptoms.
Nerve irritation Pressure or irritation affecting nerves can produce pain, tingling, or numbness. Pain may travel below the knee.
Joint stiffness Hips, knees, or ankles become stiff during prolonged rest. Pain improves gradually with movement.
Circulation-related conditions Some vascular conditions may contribute to leg discomfort. Persistent swelling, discoloration, or warmth requires prompt medical evaluation.

Morning Leg Pain Decision Tree

Do your legs hurt mainly when you wake up?

YES

Does the pain improve after walking for several minutes?

YES

Your sleeping position, mattress support, or overnight stiffness may be contributing.

Does sleeping on another mattress improve your symptoms?

YES

Your mattress or foundation may deserve closer evaluation.

NO

If the pain persists throughout the day, becomes progressively worse, is accompanied by swelling, redness, weakness, numbness, or significant calf tenderness, seek prompt medical evaluation.

This decision tree is intended for educational purposes only and should not be used to diagnose medical conditions.

Can Your Mattress be Contributing?

Your mattress cannot cause every type of leg pain, but it can influence how your body is supported for seven or eight hours every night.

If your hips sink too deeply, your lower back may rotate. That change in spinal alignment can alter how force is distributed through your pelvis and legs.

If your mattress is too firm, pressure may build beneath your hips, thighs, knees, and calves instead of being distributed more evenly.

Your mattress may be contributing if:

  • Your pain is worse in the morning than later in the day.
  • You sleep comfortably somewhere else.
  • Your mattress has visible sagging.
  • Your hips feel unsupported.
  • Your lower back and legs hurt together.
  • Your symptoms improve after replacing an old mattress.

If you're unsure whether your mattress firmness is appropriate, our guide What Mattress Firmness Should I Choose? explains how body weight and sleeping position influence mattress selection.

Understanding pressure relief is equally important. Read Why Pressure Relief Matters More Than Softness to learn why softness alone doesn't determine whether a mattress supports healthy sleep.

Mattress too Firm vs. too Soft

Leg pain can occur when your mattress creates too much pressure or allows too much sinking.

If Your Mattress Is... What May Happen How Your Legs May Feel
Too Firm Pressure builds around the hips, thighs, knees, or calves. Aching, soreness, or tenderness at contact points.
Too Soft Your pelvis sinks too deeply and may rotate your lower back. Leg pain may occur with lower back or hip stiffness.
Worn or Sagging Your body remains tilted or unevenly supported throughout the night. One leg may feel more uncomfortable than the other.
Properly Balanced Your body weight is distributed more evenly while your spine remains supported. You wake with less pressure and stiffness.

How Sleeping Position Affects Your Legs

Side Sleepers

Side sleeping places one leg directly over the other. Without proper support, the upper leg may pull the pelvis forward and rotate the lower back.

This can create tension through the hips, thighs, knees, and lower back.

Many side sleepers benefit from placing a pillow between their knees. The pillow helps keep the hips, knees, and ankles in a more neutral position.

Your mattress also needs to allow enough cushioning around the hip, without letting the pelvis sink too deeply.

If you experience hip discomfort along with leg pain, read Why Do My Hips Hurt When I Sleep?.

Back Sleepers

Back sleeping usually distributes body weight more evenly, but the legs may still feel uncomfortable if the lower back and pelvis are not properly supported.

If your hips sink too deeply, the lower back may flatten or rotate. If your mattress is too firm, the natural curve of your lower back may remain unsupported.

Placing a pillow beneath your knees may help reduce tension through the lower back, hips, and hamstrings.

Stomach Sleepers

Stomach sleeping may increase stress on the lower back and pelvis because the hips often sink farther than the upper body.

This position can also rotate the legs and feet outward for several hours.

A firmer mattress and a thinner head pillow may reduce some of this strain, although many people with recurring lower back and leg pain find side or back sleeping more comfortable.

Combination Sleepers

Combination sleepers change positions throughout the night. This movement may reduce prolonged pressure in one area, but it also requires a responsive mattress that allows easy repositioning.

A mattress that feels overly restrictive can make it harder to move away from a painful position.

Pressure Relief and Spinal Alignment

Pressure relief and spinal support must work together.

Pressure relief helps distribute body weight across a larger area so that force does not become concentrated beneath the hips, thighs, knees, or calves.

Spinal support keeps the pelvis and lower back from sinking into an unhealthy position.

A mattress that provides excellent pressure relief, but inadequate support may allow the hips to sink too deeply.

A mattress that provides strong support, but insufficient pressure relief, may feel hard beneath the legs and hips.

The goal is a balanced surface that cushions the body, while maintaining alignment.

How Body Weight Changes Mattress Feel

Body weight affects how deeply you compress a mattress.

Body Weight How the Mattress May Feel Possible Need
Under 130 lbs Mattresses often feel firmer. More responsive surface cushioning.
130–230 lbs Mattresses usually feel closest to their stated firmness. Balanced pressure relief and support.
Over 230 lbs Mattresses often feel softer because of deeper compression. Stronger support beneath the hips and pelvis.

This is why the same mattress may relieve one person's leg pressure, while feeling uncomfortable to another.

Natural Latex vs. Memory Foam

Feature Natural Latex Memory Foam
Pressure Relief Responsive cushioning Close contouring
Ease of Movement Excellent May feel slower or more restrictive
Pelvic Support Resilient and buoyant Varies by foam density
Temperature Regulation Naturally breathable Some foams retain more heat
Durability Typically strong Varies considerably

Natural latex compresses under pressure while quickly returning to its original shape. This can provide cushioning, without creating the deeply sunken feeling some sleepers experience on memory foam.

The Natural Latex Mattress offers a Medium side and a Firm side, giving sleepers two comfort options in one mattress.

When can a Mattress Topper Help?

A mattress topper may help if your mattress is still flat and supportive, but feels too firm around your hips or legs.

The Natural Latex Mattress Topper adds a responsive cushioning layer, without the slow sink of some conventional foams.

A topper may be useful when:

  • Your mattress feels hard but does not sag.
  • You experience pressure around your hips, thighs, or knees.
  • You want to adjust comfort without immediately replacing the mattress.
  • Your mattress foundation remains structurally sound.

A topper is unlikely to solve the problem when:

  • Your mattress has deep impressions.
  • Your support core has softened.
  • Your foundation is broken or uneven.
  • Your leg pain has a medical cause unrelated to sleep pressure.

How to Reduce Morning Leg Pain

1. Change Your Sleeping Position

If one position consistently causes pain, try sleeping in another position for several nights.

Side sleepers may benefit from a pillow between the knees, while back sleepers may feel better with a pillow beneath the knees.

2. Inspect Your Mattress

Remove the bedding and check for sagging, depressions, uneven areas, or softened sections.

Also inspect the foundation, slats, and center supports. A damaged base can allow even a relatively new mattress to sag.

3. Avoid Sleeping With Your Legs Twisted

Some sleepers cross their legs, rotate one knee inward, or allow one leg to fall forward. These positions can place tension through the hips, knees, and lower back.

4. Support Your Knees

A pillow between or beneath the knees may reduce stress through the pelvis and lower back.

The pillow should support the gap without forcing the legs into an unnatural position.

5. Stay Active During the Day

Walking, stretching, and regular movement may reduce stiffness associated with prolonged sitting or inactivity.

New or intense exercise can also cause temporary muscle soreness, so consider recent changes in activity when evaluating morning leg pain.

6. Evaluate Mattress Firmness

If your legs feel bruised or pressured, your mattress may be too firm. If your hips and pelvis feel trapped or tilted, it may be too soft.

The correct firmness depends on body weight, sleeping position, and mattress construction.

Common Mistakes

Mistake Why it May Not Help Better Approach
Assuming all leg pain comes from the mattress Muscles, joints, nerves, and circulation-related conditions may also be involved. Seek medical evaluation when symptoms persist or worsen.
Buying the softest mattress available Excessive softness may disrupt pelvic and spinal alignment. Balance cushioning with stable support.
Adding a topper to a sagging mattress The topper may follow the existing depression. Replace or repair the worn support system.
Ignoring lower back symptoms Leg pain may sometimes originate in the lower back. Track whether pain travels, tingles, or includes weakness.
Ignoring swelling or discoloration These signs may require prompt medical attention. Contact a healthcare professional rather than changing only the mattress.

Myth vs. Fact

Myth Fact
Morning leg pain always means poor circulation. Muscle stiffness, joint irritation, nerve pressure, and sleep position may also contribute.
A soft mattress always relieves leg pain. A mattress that is too soft may allow the pelvis to sink out of alignment.
A firm mattress is always healthier. Excessive firmness may increase pressure around the hips and legs.
A topper can repair any mattress. A topper changes surface comfort, but cannot restore a failed support core.
Leg pain after sleeping is always harmless. Persistent pain, swelling, weakness, or numbness may require medical evaluation.

When Should You See a Doctor?

Contact a qualified healthcare professional when leg pain:

  • Persists throughout the day
  • Becomes progressively worse
  • Includes numbness, tingling, or weakness
  • Travels from the lower back into the leg
  • Occurs with swelling, redness, warmth, or discoloration
  • Follows an injury or fall
  • Limits walking or normal movement
  • Occurs mainly in one calf with swelling or tenderness
  • Regularly wakes you despite reasonable sleep adjustments

Seek urgent medical attention for sudden severe leg pain, significant swelling, chest pain, shortness of breath, sudden weakness, or loss of bladder or bowel control.

Bottom Line

Your legs may hurt after sleeping because of muscle stiffness, joint irritation, nerve pressure, poor sleeping posture, inadequate mattress support, or another medical condition.

A mattress that is too firm may create concentrated pressure around the hips and legs. A mattress that is too soft may allow the pelvis and lower back to sink out of alignment.

The ideal sleep surface should distribute pressure, support the pelvis, maintain spinal alignment, and allow you to change positions easily.

Changing sleeping position, using a pillow between or beneath the knees, inspecting your mattress and foundation, and adjusting mattress firmness may help when the discomfort is sleep-related.

Persistent, worsening, swollen, numb, weak, or one-sided leg pain should be evaluated by a healthcare professional rather than assumed to be caused by the mattress.

Frequently-Asked Questions

Why do my legs ache when I wake up?

Morning leg aches may result from overnight muscle stiffness, sleeping position, pressure from the mattress, joint irritation, or another medical condition.

Can a mattress cause leg pain?

A mattress can contribute to leg pain when it creates excessive pressure, or allows the pelvis and spine to fall out of alignment. It is not the cause of every case.

Why do my legs hurt after side sleeping?

Side sleeping can place direct pressure on one hip and leg while allowing the upper leg to rotate the pelvis. A pillow between the knees may improve alignment.

Can a mattress that is too firm cause leg pain?

Yes. An overly firm mattress may create pressure around the hips, thighs, knees, or calves, especially for side sleepers.

Can a mattress that is too soft cause leg pain?

Yes. A mattress that allows the pelvis to sink too deeply may affect lower-back and pelvic alignment, which can contribute to leg discomfort.

Can a mattress topper help morning leg pain?

A topper may help if the mattress is supportive but feels too firm. It cannot repair sagging or treat an underlying medical condition.

Why does my leg pain improve after walking?

Movement can reduce overnight stiffness and increase circulation to muscles and joints. Recurring pain should still be evaluated if it persists or worsens.

Can lower back problems cause leg pain?

Yes. Irritation involving the lower back may sometimes produce pain, numbness, tingling, or weakness in one or both legs.

When is leg pain after sleeping serious?

Seek medical care when pain is severe, worsening, accompanied by swelling, redness, weakness, numbness, chest pain, shortness of breath, or difficulty walking.

Elizabeth Magill

Elizabeth Magill is a professional freelance writer and editor who holds an MBA. Liz specializes in writing about health news, medical conditions, healthy living, small business, career and work, personal finance, and green-living, including news and trending topics in these specialties. Her clients include Healthline, The Motley Fool, GoBanking Rates, LIVESTRONG.com, Big Interview, HealthNews, Intuit Small Business Blog, Intuit Health, American News Report, Travels.com, IFX Medical, and many others. She’s also a published eBook author and ghost writer for various clients in the health, medical, career, small business, and personal finance niches.