Side-sleeping puts direct, sustained pressure on the hip, thigh, and knee of the lower leg, and that mechanical load is the most common reason people wake up with leg pain in this position. But the causes range well beyond simple pressure. Depending on where the pain shows up and what it feels like, the culprit could be anything from an inflamed bursa near the hip to a compressed nerve, an arthritic joint, nighttime muscle cramps, or even a medication side effect.
Pressure on the Hip and Outer Thigh
The bony bump on the outside of your hip, the greater trochanter, sits right at the surface when you lie on your side. A fluid-filled sac called the trochanteric bursa cushions it, but when that sac gets irritated, the result is a deep, aching pain along the outer hip and upper thigh that often flares at night. This condition, sometimes called greater trochanter pain syndrome, is one of the most frequently diagnosed causes of lateral hip pain. It tends to peak between roughly age 40 and 60, though it can happen at any age.1Mayo Clinic Proceedings. Trochanteric bursitis (greater trochanter pain syndrome) Women are affected more often than men, likely due to wider pelvic anatomy that increases the angle of pull on the tendons around the trochanter.
People with trochanteric bursitis describe it as pain that starts at the outer hip and sometimes radiates down the side of the thigh. It is characteristically worse when lying on the affected side, because body weight presses the inflamed bursa directly against the mattress. Many people first notice it at night and assume they slept in an odd position, when the real issue is chronic irritation of the bursa from repetitive activities like running, stair climbing, or prolonged standing during the day. Lying on the opposite side with a pillow between the knees often helps by taking tension off the outer hip structures.
Nerve Compression During Side-Sleeping
Two peripheral nerves in the leg are especially vulnerable to compression during sleep, and each produces a different pattern of discomfort.
The lateral femoral cutaneous nerve runs from the pelvis to the front and outer part of the thigh. When it gets compressed, the result is a condition called meralgia paresthetica, marked by burning, tingling, numbness, or a deep aching feeling in the anterolateral thigh. The nerve is susceptible to compression and stretching where it exits the pelvis, and conditions like obesity, pregnancy, tight clothing, and even prolonged postures that push on the area can trigger symptoms.2PubMed Central. Meralgia Paresthetica, The Elusive Diagnosis: Clinical Experience With 14 Adult Patients Side-sleeping can aggravate this because the weight of the upper leg resting against the lower leg or a firm mattress increases pressure at the hip crease. People with meralgia paresthetica sometimes describe a burning sensation in the front of the thigh that wakes them up, and repositioning temporarily relieves it. The key clue is that the pain or numbness follows a specific strip of skin on the outer thigh rather than radiating all the way down to the foot.
The peroneal nerve, also called the common fibular nerve, wraps around the head of the fibula just below the outer side of the knee. That spot is superficial and poorly cushioned, which is why crossing your legs or pressing that area against a hard surface can cause the nerve to misfire. Side-sleepers who rest one knee directly on the other, bone against bone, sometimes wake up with numbness, tingling, or a burning sensation along the outer lower leg and top of the foot.3PubMed Central. An Update on Peroneal Nerve Entrapment and Neuropathy In more pronounced cases, the foot feels weak or “floppy” for a few minutes after waking. Placing a soft pillow between the knees prevents the bony contact that compresses the nerve.
Osteoarthritis and Nighttime Joint Pain
If your hip or knee aches at night regardless of your sleeping position but gets sharply worse when you roll onto one side, osteoarthritis is a likely contributor. A focus-group study of people with hip and knee osteoarthritis found that roughly four out of five participants experienced night pain, and the severity increased as the disease progressed.4Arthritis Care & Research. Night pain in hip and knee osteoarthritis: a focus group study Participants described the pain as a constant, low-grade ache that spiked when they moved or when body weight loaded the affected joint against the mattress.
The reason osteoarthritis flares at night is partly mechanical and partly inflammatory. During the day, gentle movement keeps synovial fluid circulating inside the joint, which acts as a lubricant. When you lie still for hours, that circulation slows, and the joint stiffens. Side-sleeping adds a gravitational load: the top knee presses down on the bottom knee, and the lower hip bears the body’s full weight, compressing cartilage that is already worn thin. People with hip osteoarthritis often find the pain centers deep in the groin or along the outer hip, while knee osteoarthritis tends to produce stiffness and aching on whichever side of the knee bears the most contact pressure.
Sacroiliac Joint Pain
The sacroiliac joints, which connect the base of the spine to the pelvis on each side, are a surprisingly common and frequently overlooked source of nighttime leg pain. Pain from these joints often radiates into the buttock, the back of the thigh, and sometimes all the way down to the calf, mimicking sciatica. The list of triggers is long: too much or too little joint mobility, shearing forces across the pelvis, soft tissue injury, inflammation, pregnancy, differences in leg length, and even prior spinal surgery can destabilize the joint and produce pain.5International Journal of Spine Surgery. Biomechanics of the Sacroiliac Joint: Anatomy, Function, Biomechanics, Sexual Dimorphism, and Causes of Pain
Side-sleeping is particularly uncomfortable with sacroiliac dysfunction because the position lets the top hip fall forward or backward, rotating the pelvis asymmetrically and pulling on the irritated joint. Some people find relief by sleeping with a firm pillow between the knees to keep the pelvis in a neutral alignment, while others prefer a rolled towel or lumbar support behind the lower back to prevent the upper body from sagging. The pain pattern tends to be one-sided and centered near the dimples at the base of the spine, which helps distinguish it from a disc problem that usually follows a clear nerve-root path.
Nocturnal Leg Cramps Versus Restless Legs
Two conditions that strike the legs at night feel very different but are often confused with each other. Nocturnal leg cramps are sudden, involuntary muscle contractions, most often in the calf or foot, that produce sharp pain lasting seconds to minutes.6PubMed. Differentiating nocturnal leg cramps and restless legs syndrome They can wake you from a sound sleep, and you can usually feel a hard knot in the muscle that slowly loosens. Restless legs syndrome, by contrast, is not a cramp at all. It involves an uncomfortable urge to move the legs, often described as crawling, pulling, or throbbing sensations that appear at rest and ease with movement.7PubMed. Restless legs syndrome and nocturnal leg cramps: a review and guide to diagnosis and treatment
The distinction matters because treatments diverge. Nocturnal cramps often improve with stretching before bed, staying hydrated, and occasionally supplementing magnesium or potassium if levels are low. Restless legs syndrome sometimes responds to iron supplementation when ferritin is low, but in more severe cases may require prescription medication that affects dopamine pathways in the brain. Both conditions can coexist with side-sleeping discomfort without being caused by the sleep position itself; they simply become more noticeable when you are lying still and your attention is not occupied by daytime activities.
Interestingly, research has connected restless legs severity to chronic venous insufficiency, a condition in which blood pools in the lower leg veins due to faulty valves. One study found that treating the underlying vein problem with a procedure to close off the dysfunctional vein cut restless legs symptom scores from a median of 21 down to 7 and improved sleep quality alongside it.8Phlebology. Impact of endovenous radiofrequency ablation on restless legs syndrome severity and sleep quality in patients with chronic venous insufficiency That does not mean all restless legs cases come from vein problems, but if you notice visible varicose veins, leg heaviness late in the day, or mild swelling around the ankles, bringing it up with your doctor is worth the conversation.
Pregnancy and Hormonal Changes
Pregnant women deal with a unique combination of factors that make side-sleeping leg pain nearly ubiquitous in the third trimester. The body releases a hormone called relaxin to loosen the ligaments of the pelvis in preparation for delivery, but relaxin does not target just the pelvis; it affects connective tissue everywhere, making the sacroiliac joints, the pubic symphysis, and even the hip capsule more lax than usual. Research has found that women with the highest serum relaxin levels during late pregnancy tended to be the most clinically incapacitated by pelvic and hip pain.9The Lancet. Serum relaxin and pelvic pain of pregnancy
On top of hormonal loosening, the growing uterus shifts the center of gravity forward and compresses the pelvic veins, contributing to leg swelling, varicose veins, and sometimes restless legs. Side-sleeping is actually the recommended position during later pregnancy to improve blood flow, but it can still hurt because the added weight loads the hip, the loosened sacroiliac joint rotates under gravity, and the lateral femoral cutaneous nerve faces more compression from the heavier abdomen. A firm pillow between the knees and a second one supporting the belly often reduces the strain enough to get through the night. Most of this discomfort resolves within a few months postpartum as relaxin levels drop and joint stability returns.
Medications That May Be Contributing
Sometimes the leg pain has nothing to do with sleep position and everything to do with what is in your medicine cabinet. Statins, the widely prescribed cholesterol-lowering drugs, are the best-known pharmaceutical culprit. Muscle pain is the most commonly reported side effect of statin therapy, and it can range from a mild aching that people attribute to “getting older” all the way to serious muscle breakdown.10PubMed Central. Statin induced myopathy presenting as mechanical musculoskeletal pain observed in two chiropractic patients Because statin-related myopathy often presents as diffuse soreness in the large muscles of the legs, people frequently assume the pain is positional or due to overexertion. Side-sleeping concentrates attention on the legs in a way that daytime activity does not, so statin-related muscle pain can seem worse at night even if the underlying issue is systemic.
If leg pain started or worsened within weeks to months of beginning a new medication, that timing is worth mentioning to your prescriber. Beyond statins, some blood pressure medications, certain diuretics that deplete potassium and magnesium, and some psychiatric medications that increase restless legs symptoms can all contribute. Adjusting the dose or switching to an alternative drug sometimes resolves the problem entirely.
What Your Mattress and Pillow Setup Can Actually Change
Sleep ergonomics cannot fix an arthritic hip or a compressed nerve, but the right setup can reduce the mechanical portion of nighttime leg pain substantially. The most effective single intervention for side-sleepers is a pillow between the knees. It does three things at once: prevents the bony contact that compresses the peroneal nerve, keeps the pelvis in a more neutral alignment to take stress off the sacroiliac joints, and reduces the inward pull of the top leg on the hip structures of the bottom leg.
Mattress firmness matters too, though the optimal choice is personal. A mattress that is too firm does not let the shoulder and hip sink in enough, which forces the spine into a lateral curve and increases pressure on the bottom hip. One that is too soft lets the pelvis sag, rotating the lumbar spine and loading the sacroiliac joint unevenly. The practical test is whether you can lie on your side and feel roughly even support from shoulder to hip, without a large gap under your waist. If there is a gap, the mattress is probably too firm for your build. If your hip sinks so far that you feel pressure in the lower back, it is too soft.
Some people benefit from sleeping with a body pillow, which supports the top arm and leg simultaneously and prevents the trunk from rolling forward. For those with trochanteric bursitis, a thin piece of memory foam placed under the bottom hip can reduce the peak pressure on the bursa without requiring a new mattress.
When the Pain Is a Warning Sign
Most nighttime leg pain in side-sleepers is mechanical or related to a known chronic condition, and it improves with positional adjustments. But certain features should prompt a visit to a healthcare provider sooner rather than later. Clinical guidelines emphasize that leg pain accompanied by unexplained swelling, warmth, or redness in one calf could indicate a blood clot. Pain combined with numbness or weakness that does not resolve after repositioning may point to nerve damage rather than simple compression. And leg pain that wakes you from sleep, is not relieved by any position, and comes with fever or unexplained weight loss warrants urgent evaluation to rule out infection or other serious conditions.11PubMed Central. Red flag rules for knee and lower leg differential diagnosis
Persistent nighttime pain that has been present for more than a few weeks, even without alarming features, is also worth discussing with a doctor. Conditions like sacroiliac dysfunction, trochanteric bursitis, and mild osteoarthritis are all treatable, and identifying the specific source lets you target the problem instead of cycling through pillows and mattress toppers hoping something helps. A good starting point is paying attention to where exactly the pain is: outer hip, front of the thigh, behind the knee, deep in the calf. That detail alone often narrows the list of likely causes considerably and helps your provider decide whether imaging, lab work, or a trial of physical therapy makes the most sense.
Why Side-Sleeping Hurts More Than Back-Sleeping
Back-sleeping distributes body weight across the broad surface area of the spine, buttocks, and the full length of both legs. Side-sleeping concentrates it onto a narrow corridor: the shoulder, the outer hip, and the outer ankle, with the knee and thigh caught in between. That concentration means higher peak pressures at fewer points, and any structure in those zones that is already irritated or degenerating gets loaded more aggressively. It also means asymmetric forces on the pelvis, because gravity pulls the top half of the body forward while the mattress holds the bottom half in place, creating a mild rotational torque across the sacroiliac joints and lumbar spine every night.
None of this means side-sleeping is inherently bad. It is the preferred position for reducing snoring and sleep apnea, it is recommended during pregnancy, and many people simply cannot fall asleep any other way. The goal is not to abandon side-sleeping but to modify it: a knee pillow, an appropriate mattress, and treatment of any underlying condition can usually bring nighttime leg pain down to a manageable level or eliminate it entirely.