Doctors Note Logo

Published on: 8/18/2026

Why does leg pain occur when lying down but not when standing?

Leg pain that occurs when lying down but not while standing is often linked to spinal or nerve conditions, such as sciatica, spinal stenosis, or restless leg syndrome. These issues can become more noticeable at night because certain sleeping positions increase pressure on nerves or reduce blood flow to the legs. Muscle fatigue, poor circulation, and inflammation may also contribute to nighttime leg discomfort.

Because leg pain has many possible causes—ranging from mild to serious—identifying the underlying issue early can help you get the right treatment faster and avoid unnecessary worry. A quick, free online symptom check can help you clarify your symptoms, explore likely causes, and understand when it's time to see a doctor. It takes just a few minutes and is a smart first step toward better sleep and healthier legs.

Reviewed for medical accuracy: 07/15/2026

answer background

Explanation

Leg pain that occurs when lying down but not when standing might be related to spinal stenosis or nerve problems. Spinal stenosis is when the spaces within your spine become narrow, which can pinch the nerves. This condition can cause leg pain, especially when lying down, as the position might increase pressure on the nerves.

Another reason for leg pain at night could be nocturnal neuropathic pain, especially in people with diabetes. This type of pain happens because nerve damage makes pain more noticeable when you are resting or lying down.

MRI studies also show that changes in the spine, like those seen in spinal stenosis, can affect how nerves are pressed and cause pain. These conditions can make pain worse when lying down because the body's position changes how pressure is applied to the nerves.

If you are experiencing leg pain, you can start by using our free AI symptom checker to help identify possible causes before talking to a healthcare professional for a proper diagnosis and treatment plan.

(References)

  • Goldman SM, Funk JD, & Christensen VM. (1997). Spinal stenosis. A common cause of podiatric symptoms. Journal of the American Podiatric Medical Association, 9086718.

  • Goldman SM. (2005). Nocturnal neuropathic pain in diabetic patients may be .... Diabetic medicine : a journal of the British Diabetic Association, 16401326.

  • García Isidro M, Ferreiro Pérez A, Fernández López-Peláez MS, Moeinvaziri M, & Fernández García P. (2023). Differences in MRI measurements of lateral recesses and .... Radiologia, 37858348.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.