Why Is My Middle Back Pain Worse When Lying Down?

Middle back pain that flares when you lie down usually traces to how the thoracic spine changes shape and load the moment you shift from vertical to horizontal. Your spinal curves flatten, your discs absorb fluid and swell, and muscles that were quietly supporting you all day suddenly redistribute their tension. Several conditions, from inflamed joints to compression fractures to trigger points, feel manageable while you’re upright but announce themselves the instant you stretch out in bed. The good news is that the most common causes are mechanical and treatable, though a handful of less common possibilities are worth knowing about.

What Happens to Your Spine When You Lie Down

Standing upright, your thoracic spine has a natural forward curve (kyphosis) that distributes gravitational load across the vertebrae, ribs, and surrounding muscles. When you lie down, that curve flattens out considerably. One study of healthy adults found that kyphosis angles dropped by an average of about 13 degrees when subjects moved from standing to a lying position, and lumbar lordosis dropped by nearly 17 degrees.1PubMed. Sagittal Thoracic and Lumbar Spine Profiles in Upright Standing and Lying Prone Positions Among Healthy Subjects That is a significant geometric change in a short column of bones and soft tissue. If any structure in your mid-back is irritated, inflamed, or damaged, this shift can press on it differently than gravity does while you’re standing, and that new pressure pattern is often what wakes you up at night.

The change isn’t just about bone angles. Your intervertebral discs, the shock absorbers between each vertebra, behave like sponges on a daily cycle. During the day, the compressive force of standing and walking squeezes fluid out of the discs and into the adjacent vertebral bodies. At night, when you lie down and compressive load drops, the high osmotic pressure inside each disc’s nucleus draws water back in from the surrounding blood supply, causing the disc to swell and increase in height.2Studies in Health Technology and Informatics. Investigation of the Diurnal Variation in the Water Content of the Intervertebral Disc Using MRI and Its Implications for Scoliosis This is why you’re measurably taller in the morning than in the evening, on average by roughly 7 mm.3PubMed. Diurnal Variation in Lumbar MRI: Correlation Between Signal Intensity, Disc Height, and Disc Bulge

For most people, this nightly disc rehydration is harmless. But if a disc in your thoracic spine is already bulging, degenerated, or pressing on nearby structures, the extra fluid makes it swell further, increasing contact with nerves or the spinal canal. MRI research has confirmed that disc bulge increases as discs rehydrate, with one study documenting an average bulge increase of over 18 percent at the L4-5 level during the overnight cycle.3PubMed. Diurnal Variation in Lumbar MRI: Correlation Between Signal Intensity, Disc Height, and Disc Bulge The thoracic spine follows the same hydration pattern, so a disc issue in your mid-back can feel noticeably worse after you’ve been lying flat for a couple of hours.

Muscle Tension and Trigger Points

The thoracic spine is uniquely stabilized by the rib cage. Your ribs attach to the thoracic vertebrae at the costovertebral joints, and together with the posterior ligaments and muscles, they form a framework that limits how much the mid-back can move. Biomechanical testing has shown that when costovertebral joints and the rib cage are disrupted, the range of motion in lateral bending and rotation increases dramatically, and the spine’s “neutral zone” (the range of motion where it moves with minimal resistance) widens.4Spine. Biomechanical Role of the Posterior Elements, Costovertebral Joints, and Rib Cage in the Stability of the Thoracic Spine This means that the muscles surrounding your thoracic spine do a lot of background work to keep things stable, and they can develop painful knots when they’re overworked or poorly conditioned.

These knots, known as myofascial trigger points, are a common culprit behind positional mid-back pain. Clinical case reports have documented patients with thoracic pain who showed increased muscle tone and tenderness along the paraspinal muscles on both sides of the spine, combined with motor control dysfunction. In one case, pain was reproduced by applying pressure from back to front at the T9 through T12 vertebral levels, and the pain decreased when the postural demands on the spine and trunk muscles were reduced through changes in position.5PubMed Central. Treatment of Nonspecific Thoracic Spine Pain With Trigger Point Dry Needling and Intramuscular Electrical Stimulation

Here’s the paradox: lying down is supposed to reduce postural demands on those muscles, but in practice, certain positions do the opposite. Lying on your back on a flat surface pushes against the mid-back in a way that compresses tight muscles against the mattress, loading those trigger points from a new angle. And if you tend to sleep on your stomach, your thoracic spine extends and your paraspinal muscles have to work to manage a position they’re not used to holding for hours. For people with active trigger points, the relief of lying down never quite arrives.

Inflammatory Conditions and the Body Clock

If your mid-back pain follows a pattern where it’s worst in the early morning hours or right when you wake up and then gradually eases as the day goes on, inflammation may be the driver. Inflammatory back conditions, including ankylosing spondylitis and other forms of inflammatory arthritis that target the spine, have a well-documented circadian rhythm. The concentrations of key inflammatory molecules like TNF-alpha and IL-6 rise during the night and peak in the early morning, and these peaks correlate directly with the severity of pain and stiffness symptoms.6PubMed Central. Circadian Rhythms and Pain: A Narrative Review on Clock Genes and Circadian-Based Interventions

This means the problem isn’t simply being horizontal. The timing of the immune system’s inflammatory activity peaks while you happen to be lying still, and the combination of position plus inflammation creates a compounding effect. The immobility of sleep allows inflammatory fluid to accumulate around joints and soft tissues, and the body’s own inflammatory clock is cranking up production of pain-related molecules at exactly the same time. People with inflammatory back pain often describe a characteristic pattern: stiffness lasting more than 30 minutes after waking, pain that actually improves with movement and exercise, and symptoms that began gradually rather than after an injury. If this sounds familiar, it’s worth discussing with a doctor, because inflammatory spinal conditions respond to specific treatments that ordinary painkillers don’t address well.

Compression Fractures and Osteoporosis

The thoracic spine is the most common location for vertebral compression fractures, particularly in people with osteoporosis or those on long-term corticosteroid therapy. These fractures occur when a weakened vertebral body partially collapses under load, and they can happen without any memorable injury. A vertebra may fracture during something as routine as bending to pick up a shoe.

Compression fractures produce pain that is distinctly positional. Lying on your back places direct pressure on the fractured vertebra from behind, and the flattening of the thoracic curve stretches the already-damaged bone. One clinical study of patients with osteoporotic compression fractures reported average pain scores around 7 out of 10 at admission, indicating severe pain that interfered with daily life.7Pain Research and Management. Percutaneous Vertebroplasty and Facet Blocking for Treating Back Pain Caused by Osteoporotic Vertebral Compression Fracture Many patients with these fractures find that the only comfortable sleeping position involves being propped up at an incline, because fully flat aggravates the fracture site.

The tricky part is that compression fractures don’t always announce themselves with a dramatic event. About two-thirds of vertebral compression fractures are clinically silent at first, meaning they don’t cause enough acute pain to send someone to the emergency room. Instead, you might notice a gradually worsening ache in the mid-back that becomes especially bothersome at night. If you’re over 50, have a history of osteoporosis or long-term steroid use, and your mid-back pain is worse when lying flat, a compression fracture should be on the list of possibilities your doctor considers.

Thoracic Nerve Compression

Thoracic radiculopathy, where a nerve root exiting the thoracic spine gets pinched or compressed, is far less common than its cervical or lumbar counterparts, but it does happen and can produce mid-back pain that changes with position. The thoracic spine’s tight relationship with the rib cage usually protects it from the disc herniations that plague the lower back, but bony overgrowth (foraminal stenosis) can narrow the channels where nerves exit the spine, especially in older adults.

Clinical reports have described elderly patients presenting with thoracic radiculopathy caused by bony narrowing of the foramen, where conservative treatment failed and surgical decompression of the exiting nerve root was ultimately needed to resolve symptoms.8JBJS Case Connector. Posterolateral Full-Endoscopic Thoracic Foraminotomy for Foraminal Stenosis Causing Radiculopathy The pain from thoracic radiculopathy often wraps around the rib cage in a band-like pattern, following the path of the compressed nerve. Lying down can worsen it because the change in spinal alignment shifts the relationship between bone and nerve, and disc swelling from overnight rehydration may further crowd an already tight space.

If your mid-back pain radiates around your side or into your chest wall, and it intensifies when you lie flat, nerve compression is a possibility worth investigating. This type of pain is sometimes mistaken for cardiac or abdominal problems because of where it’s felt, so a thorough evaluation can save a lot of unnecessary anxiety.

When Positional Back Pain Points to Something Else Entirely

In the vast majority of cases, mid-back pain that worsens when lying down is musculoskeletal. But clinicians evaluating thoracic pain specifically look for whether the pain occurs at rest or at night, because this pattern can occasionally signal something beyond the spine itself.9Orthopaedics and Trauma. The Assessment of Thoracic Pain

One rare but serious cause is a thoracic aortic aneurysm. The aorta, the body’s largest artery, runs directly in front of the thoracic spine, and when it dilates abnormally, it can compress adjacent structures and cause mid-back pain. In one reported case, a 72-year-old man presented with severe mid-back pain that was characteristically worse when lying supine and relieved by sitting up or leaning forward. Imaging revealed a large thoracic aortic aneurysm responsible for the pain.10PubMed Central. Thoracic Aortic Aneurysm Causing Platypnoea and Dorsalgia This is uncommon, but the positional pattern, worse flat and better sitting forward, is distinctive enough that it should prompt further evaluation when the pain is severe, unrelenting, or doesn’t fit a typical musculoskeletal profile.

Other non-spinal causes of mid-back pain that worsens lying down include pancreatitis (which classically improves when leaning forward), kidney infections or stones, and certain tumors affecting the vertebrae or spinal cord. None of these are common explanations, but they’re the reason physicians take night pain and rest pain seriously as potential red flags. If your mid-back pain is accompanied by unexplained weight loss, fever, progressive neurological symptoms like weakness or numbness in the legs, or if it wakes you reliably from deep sleep regardless of position, those warrant prompt medical attention.

Practical Adjustments for Sleeping

Knowing why your mid-back hurts more when lying down helps guide what to do about it. For musculoskeletal causes, which account for the large majority of cases, the goal is to minimize how much the recumbent position aggravates your particular problem.

  • Back sleepers: Place a pillow or rolled towel under your knees to restore some of the lumbar curve that flattens when lying flat. For thoracic-specific pain, a thin pillow or folded towel placed horizontally under the mid-back can prevent the spine from pressing flat against the mattress. Some people find that sleeping slightly inclined, with the head of the bed elevated a few inches, reduces pressure on the thoracic spine enough to make a meaningful difference.
  • Side sleepers: A pillow between the knees keeps the pelvis aligned, which reduces rotational stress on the thoracic spine. Hug a second pillow to prevent your upper shoulder from rolling forward and pulling the mid-back into a twisted position.
  • Stomach sleepers: This position forces thoracic extension and is generally the hardest on the mid-back. If you can’t train yourself out of it, a flat pillow under the pelvis can reduce the degree of spinal extension.

Mattress firmness matters, but the evidence doesn’t point to one universal answer. A surface that is too soft allows the heavier parts of your body (hips and shoulders) to sink in, exaggerating spinal curves. A surface that is too firm pushes against the thoracic spine without contouring to its shape. Medium-firm mattresses tend to get the best marks in sleep research for back pain in general, but individual body weight and pain patterns play a large role. If your mid-back pain started or worsened around the time you changed mattresses, that connection is worth taking seriously.

For trigger point pain specifically, gentle stretching before bed can help reduce the tension that accumulates throughout the day. Foam rolling the thoracic paraspinal muscles or using a tennis ball against a wall to apply sustained pressure to tender spots can quiet trigger points enough to get through the night. Heat applied for 15 to 20 minutes before lying down increases blood flow to the area and may reduce the muscle guarding that flares once you’re horizontal.

Movement as Medicine for Morning Stiffness

Regardless of the underlying cause, one of the most reliable patterns in mid-back pain is that movement helps. The disc rehydration that occurs overnight reverses within the first hour or two of being upright. Inflammatory mediators that peak during sleep begin to decline once you’re active. And muscles that stiffened in one position for hours loosen as they contract through their range of motion.

This is why many people with positional thoracic pain feel dramatically better after a warm shower and 10 minutes of gentle movement in the morning, even though they were in agony an hour earlier. Cat-cow stretches, thoracic rotation while seated, and gentle extension over a foam roller are simple movements that directly address the stiffness and compression patterns that lying down creates. For inflammatory conditions, research on circadian pain rhythms suggests that the timing of anti-inflammatory medication may be as important as the drug itself, because inflammatory cytokines follow a predictable daily schedule.6PubMed Central. Circadian Rhythms and Pain: A Narrative Review on Clock Genes and Circadian-Based Interventions If you take an anti-inflammatory for back pain, your doctor might suggest dosing it at bedtime rather than in the morning so that peak drug levels coincide with peak inflammation.

Strengthening the muscles that support the thoracic spine during the day also pays dividends at night. The paraspinal muscles, the muscles between the shoulder blades, and the deep core muscles all contribute to how well your mid-back tolerates the positional change of lying down. When those muscles are conditioned and balanced, the transition from vertical to horizontal is less likely to overload any single structure. Rowing exercises, prone back extensions, and scapular retraction exercises are all straightforward ways to build thoracic endurance that many physical therapists recommend for recurrent mid-back pain.