Why Does My Back Hurt When I Lie Down? Causes

Back pain that shows up or gets worse when you lie down usually comes from changes in how your spine handles pressure in a horizontal position. Standing and sitting distribute your body weight one way; lying flat redistributes it, and that shift can aggravate problems that barely bother you during the day. The causes range from a stiff muscle to a compressed nerve, and in rare cases, pain that wakes you from sleep can signal something more serious.

How Lying Down Changes Spinal Pressure

Your spine has a natural S-shaped curve. When you stand or walk, gravity pulls straight down through your vertebrae, and your core muscles actively stabilize everything. When you lie flat on your back, your lower spine can flatten or arch depending on your mattress and body shape, changing how much space surrounds the nerves that run through your spinal canal.

For people with spinal stenosis (a narrowing of the spinal canal), this matters a lot. Leaning forward or curling into a fetal position increases the cross-sectional area inside the spinal canal, giving nerve roots more room. Lying flat does the opposite: it increases the curve in your lower back and compresses the canal. That’s why many people with stenosis instinctively curl onto their side at night and feel fine walking but miserable in bed.

Muscle Strain and Mechanical Back Pain

The most common explanation is also the simplest. Strained muscles or irritated joints stiffen up when you stop moving. During the day, walking and shifting positions keep blood flowing to your back muscles and prevent them from locking into one position. Lying still for hours lets inflammation settle in, and fluid accumulates around injured tissue. That’s why the pain often peaks right when you lie down and again first thing in the morning.

This type of pain typically develops quickly, over a few hours or after a specific activity, and resolves on its own within a few weeks. It usually responds to gentle movement, position changes, and over-the-counter pain relief. If your pain follows that pattern, a mechanical cause is overwhelmingly likely.

Disc Problems and Sciatica

A herniated or bulging disc can press against a spinal nerve root, sending pain down one leg. This is sciatica, and it frequently gets worse when you lie down because certain positions increase pressure on the disc. Lying flat on your back can be particularly aggravating because it shifts the load toward the back of the disc, right where the nerve sits.

Research shows that people with back pain report fewer symptoms when sleeping on their side compared to sleeping on their back or stomach. If your pain shoots into your leg or you feel tingling or numbness that worsens when you’re flat, a disc pressing on a nerve is a likely culprit.

Inflammatory Back Pain

Not all back pain is mechanical. Inflammatory conditions like ankylosing spondylitis produce a very different pattern: pain that comes on gradually over weeks or months, feels worst in the early morning or after long periods of rest, and actually improves with movement. If your back pain developed slowly without any obvious injury, stiffens you up for 30 minutes or more each morning, and eases once you start moving, you may be dealing with an inflammatory condition rather than a pulled muscle.

The distinction matters because inflammatory back pain doesn’t respond to the same treatments as a strain. It’s confirmed through imaging and blood tests, and it requires a different approach to management.

When Pain at Night Is a Red Flag

Pain that wakes you from sleep, rather than just making it harder to fall asleep, deserves closer attention. Nocturnal back pain that doesn’t improve with any position change is one of the clinical red flags for spinal tumors, though these are rare. Spinal malignancies account for roughly 1% of new back pain visits to family doctors, and in primary care studies the prevalence has been measured as low as 0% to 0.66%.

The red flags that most meaningfully raise the odds of something serious are a previous history of cancer and unexplained weight loss. Both have high specificity, meaning they don’t produce many false alarms. Other commonly cited warning signs, like being over 50 or having pain that hasn’t improved after a month, are less reliable on their own because they’re so common in ordinary back pain. A case series published in the Netherlands found that in multiple patients, back pain that worsened specifically when lying down was not initially recognized as a sign of spinal tumors, leading to delayed diagnoses.

The combination matters most. Back pain plus unintentional weight loss, fever, a history of cancer, or pain that is relentless regardless of position warrants prompt medical evaluation.

Non-Spinal Causes Worth Knowing

Your back isn’t the only structure in the area. Kidney stones, kidney infections, and even aneurysms of the abdominal aorta can produce back pain that you might not associate with an internal organ. Kidney-related pain typically sits to one side, between your ribs and hip, and may come with changes in urination, fever, or nausea. Aortic aneurysms can cause a deep, steady ache in the lower back or abdomen, sometimes radiating to the groin.

These conditions don’t necessarily worsen with lying down versus standing, but you notice them more at night because you’re still and not distracted. If your back pain doesn’t behave like a muscle problem, meaning it doesn’t change with movement or position, consider whether the source might be something other than your spine.

Sleep Position Adjustments That Help

Nearly 59% of people with low back pain report significant sleep disturbance, so you’re far from alone in struggling with this at night. Small positioning changes can make a real difference.

If you sleep on your back, place a pillow under your knees. This relaxes your lower back muscles and reduces the exaggerated curve in your lumbar spine. A small rolled towel under your waist can provide additional support if there’s a gap between your back and the mattress.

If you sleep on your side, draw your knees up slightly toward your chest and put a pillow between your legs. This keeps your spine, pelvis, and hips aligned and takes pressure off the lower back. For people with spinal stenosis or sciatica, side sleeping in a slightly curled position is generally the most comfortable option because it opens up the spinal canal.

Stomach sleeping is the hardest on your back, but if you can’t sleep any other way, placing a pillow under your hips and lower abdomen reduces the strain.

Your Mattress Matters More Than You Think

The old advice to sleep on the firmest mattress you can find is wrong. A clinical trial published in The Lancet randomly assigned 313 adults with chronic back pain to either firm or medium-firm mattresses. After 90 days, the medium-firm group had significantly better outcomes: less pain in bed, less pain on rising, and less disability overall. The difference in pain on rising persisted throughout the entire study period.

A mattress that’s too firm doesn’t conform to your body’s curves, creating pressure points at your shoulders and hips while leaving your lower back unsupported. Medium-firm allows enough give to support your natural spinal alignment without letting you sink in too deeply.

What a Doctor Will Look For

If your back pain when lying down persists beyond a few weeks or comes with any of the red flags mentioned above, a doctor will typically start by asking what makes the pain better or worse and how it started. They’ll have you bend and lift your legs to see how movement affects the pain, which helps distinguish between nerve compression, joint problems, and muscle strain. Imaging like X-rays or an MRI is usually reserved for cases where the pain hasn’t improved, where nerve symptoms are present, or where there’s concern about an underlying condition.

The pattern of your pain tells a lot. Pain that started suddenly after lifting something heavy and improves with rest points toward a mechanical cause. Pain that crept in over weeks, worsens with rest, and improves with activity suggests inflammation. Pain that wakes you from sleep and doesn’t change with any position raises the question of something systemic. Knowing which pattern fits your experience helps guide both the conversation and the next steps.