Mid and Upper Back Pain: Thoracic Spine, Muscle and Organ Causes and When to Get It Checked

Key Takeaways
- The thoracic spine has twelve vertebrae locked to the ribs, which is why it hurts most after long static postures rather than big movements.
- The NHS reports that most back pain improves within a few weeks, and staying active is linked with faster recovery than rest.
- Kidney pain sits in the flank below the ribs, usually on one side, and comes with fever or urinary changes rather than tenderness to touch.
- The American Heart Association lists back discomfort among heart attack warning signs, particularly when it arrives with pressure, sweating or breathlessness.
- Shingles pain can precede its rash by a few days, so one-sided burning pain with sensitive skin needs a prompt appointment, according to the NHS.
- Sudden central back pain in a person over 50 or on long-term steroids is assessed for a compression fracture, a cause the NIAMS lists under osteoporosis.
Mid back pain most often comes from strained muscles, stiff thoracic joints or long hours in one posture, and it usually eases within a few weeks with gentle movement. Less commonly it signals a vertebral fracture, shingles, a kidney infection or a heart, lung or gallbladder problem. Seek emergency care if back pain arrives with chest pressure, breathlessness, fever with a tender side, or new numbness or weakness in the legs.
It usually starts at the end of a long day. You reach over your shoulder to press the spot between your shoulder blades, twist a little to see if that helps, and wonder whether this is the chair, the gym session, or something you should actually worry about.
Mid back pain is less common than low back pain, and that is part of what makes it unsettling. The thoracic spine, the stretch of twelve vertebrae that anchors the ribs, is built for stability rather than movement, so people are not used to it complaining. When it does, the explanation is nearly always mechanical: muscle, joint or posture. A small minority of cases trace back to bone, nerve or an organ that shares the same nerve supply.
This article walks through those possibilities in the order a clinician would weigh them, explains how they are told apart, and is clear about which signs mean you should stop reading and get seen.
Why does my back hurt in the middle? The short answer
Pain across the middle of the back, roughly from the base of the neck to the bottom of the rib cage, is most often a strain of the muscles that hold the shoulder blades and spine in position, or stiffness in the small joints where the ribs meet the vertebrae. The NHS notes that most back pain of this kind improves on its own within a few weeks and does not need imaging or a specialist.
That reassurance comes with a caveat worth stating plainly before anything else. The mid back sits in front of the heart, lungs, aorta, kidneys, gallbladder and pancreas, and several of those organs refer pain into the same region. A smaller group of causes involves the bone itself (a compression fracture) or a nerve (shingles).
Treat the following as emergency signs, not things to monitor: back pain with chest pressure, sweating or shortness of breath; sudden tearing pain between the shoulder blades; fever and chills with pain in one flank; new weakness, numbness or trouble controlling the bladder or bowel; or back pain after a fall or crash. If any of these apply, call emergency services.
For everyone else, the rest of the article explains how the common and uncommon causes feel different and what reasonable self-care looks like.
What sits in the middle of your back: the thoracic spine, ribs and muscles
The thoracic spine is the section of the backbone between the neck and the lower back, made of twelve vertebrae labeled T1 to T12. Each one connects to a pair of ribs through small joints called costovertebral joints, which is simply the medical name for the hinge where rib meets vertebra. Because the rib cage locks the segment together, the thoracic spine bends and twists far less than the neck or lower back. That stiffness protects the spinal cord, but it also means the joints can become sore when they are forced into unusual positions or held still for hours.

Layered over the bones are the muscles that most people are actually feeling when they rub between the shoulder blades: the rhomboids, the trapezius, the erector spinae that run up either side of the spine, and the small rotator muscles underneath. These muscles work continuously against gravity, which is why desk work, driving and phone use are common triggers.
Behind the ribs and vertebrae sit the organs that matter for this discussion. The heart and great vessels lie in front of T4 to T8. The kidneys sit just below the lowest ribs on either side. The gallbladder and pancreas tuck under the right and center of the rib cage. The nerves that serve these organs enter the spinal cord at the same levels as the nerves from the skin and muscle of the back, which is the mechanism behind referred pain: pain felt in the back that actually originates somewhere else.
Muscle strain and posture: the most common causes of mid back pain
Muscle strain is the leading explanation for mid back pain, and it does not require a dramatic injury. A long drive, an afternoon lifting boxes, a new sport or several days hunched over a laptop can all overload the muscles between the shoulder blades. The pain tends to be a dull ache with occasional sharp catches, worse when you move into certain positions and better when you shift or walk around. Pressing on the area usually reproduces it, which is a useful clue, because organ pain rarely changes with touch.
Posture has a complicated reputation. The National Institute of Arthritis and Musculoskeletal and Skin Diseases (NIAMS) lists low fitness, a physically demanding job and being overweight among the risk factors for back pain, and sustained positions clearly provoke symptoms in many people. What the evidence does not show is a single correct posture that prevents pain. The NHS advice reflects this: change position often, keep moving and avoid staying in one place for long stretches rather than chasing a perfect spinal alignment.
Stress belongs in this category too. Tension raises resting muscle activity in the shoulders and upper back, and NIAMS counts anxiety and depression among the factors associated with longer-lasting back pain. The muscle is real and the pain is real; the trigger is simply partly emotional.
Clinicians recognize this group by the story (a plausible trigger), the exam (local tenderness, pain with movement, full strength and normal reflexes) and the absence of fever, weight loss or night pain.
Upper back pain causes in the joints, discs and rib cage
Once muscle is set aside, the next group of upper back pain causes lives in the joints. The costovertebral and facet joints (the paired joints at the back of each vertebra) can become irritated, producing a sharp, well-localized pain beside the spine that worsens with a deep breath, a twist or a cough. People often describe it as a rib being out of place; in practice it is joint inflammation, and the rib is where it has always been.

Thoracic disc problems are uncommon compared with the neck and lower back, again because the rib cage limits movement. When a thoracic disc does bulge or herniate, the pain can wrap around the chest or abdomen along a rib, following the path of the nerve. A clinician will check for radiculopathy, meaning a pinched nerve root that causes band-like pain, altered sensation or weakness, and for myelopathy, meaning pressure on the spinal cord itself, which can affect walking and bladder control. Those cord signs are among the reasons imaging is ordered promptly.
Degenerative changes, osteoarthritis of the spinal joints and the general stiffening that comes with age are frequent findings on X-rays from midlife onward. MedlinePlus is careful on this point: many people with such changes have no pain at all, so a scan showing wear does not automatically explain a symptom.
Less often, inflammatory spinal conditions such as ankylosing spondylitis cause stiffness that is worst in the morning and eases with activity, often starting before age 40. That pattern, the reverse of ordinary strain, is what prompts blood tests and specialist referral.
Fractures and shingles: two mid back pain causes that are easy to miss
A vertebral compression fracture is a collapse of the front part of a vertebra, and it is the cause clinicians think about first in anyone over 50 with sudden mid back pain, especially after a minor bump, a sneeze or lifting something ordinary. Osteoporosis, the thinning of bone that makes it brittle, is the usual background; long-term corticosteroid use, early menopause, low body weight and a previous fracture raise the risk further. NIAMS lists osteoporosis-related fracture among the recognized causes of back pain. The pain is typically sharp, central and worse standing or walking, and a person may notice that they have become a little shorter or more stooped. A plain X-ray usually shows it.
Shingles is the second easy-to-miss cause, because the pain comes first and the rash comes later. The condition is a reactivation of the chickenpox virus in a single nerve, and the thoracic nerves are its favorite location. According to the NHS, the first sign is often a tingling, burning or stabbing pain on one side of the body, with the rash appearing a few days afterward in a strip that follows the rib. The rash then takes up to four weeks to heal, and in some people nerve pain persists after it fades. Antiviral medicines work by limiting viral replication and are most useful when started early, which is why one-sided burning pain with sensitive skin deserves a prompt appointment rather than a wait-and-see approach.
Both conditions share one feature: the pain does not fit a muscle story. There was no strain, or the skin hurts to the lightest touch, or an older adult cannot stand comfortably after a trivial event.
Is mid back pain kidney related, or is it muscle?
This is one of the most searched questions about the mid back, and the distinction is usually clear once you know where to look. The kidneys sit in the flanks, below the lowest ribs and off to either side of the spine, not in the center between the shoulder blades. Kidney pain therefore tends to be one-sided and lower than most muscular mid back pain, and it does not change much when you twist, stretch or press on the muscles.
Two kidney problems account for most cases. A kidney infection, which clinicians call pyelonephritis, is a bacterial infection that has climbed from the bladder. The National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) describes the typical picture as pain in the back, side or groin together with fever, chills, nausea, burning on urination, urgency and cloudy or foul-smelling urine. Tapping gently over the flank is sharply painful. This combination needs same-day assessment because the infection can spread into the bloodstream.
Kidney stones produce a different pain: severe, coming in waves, often starting in the flank and radiating toward the groin, with blood in the urine and restlessness because no position helps. A muscle strain almost never makes someone pace the room.
Clinicians tell kidney from muscle with three simple tools: the location and behavior of the pain, a urine test for infection or blood, and the presence or absence of fever. Blood tests and an ultrasound or CT scan follow when a stone or infection is suspected.
Heart, lungs, gallbladder and pancreas: organ causes of mid back pain
Referred pain from the chest and upper abdomen is the reason mid back pain cannot be dismissed on location alone.
The heart matters most. The American Heart Association lists discomfort in the back, neck, jaw, arms or stomach among the warning signs of a heart attack, alongside chest pressure, shortness of breath, cold sweat and nausea, and notes that women are somewhat more likely than men to present with these less typical symptoms. Back pain that builds with exertion, comes with a sense of pressure or breathlessness, or appears in someone with diabetes, high blood pressure or a smoking history is treated as cardiac until proven otherwise. An aortic dissection, a tear in the wall of the body’s main artery, classically causes sudden, severe tearing pain between the shoulder blades and is a surgical emergency.
The lungs refer pain to the upper back when the lining of the lung is inflamed or when a blood clot lodges in a lung artery (a pulmonary embolism). The clue is pain that is sharp with each breath, together with breathlessness, cough or a fast heart rate.
The gallbladder sends pain to the right shoulder blade, usually after a fatty meal, accompanied by upper abdominal pain and nausea. The pancreas refers a deep, boring pain straight through to the middle of the back, often worse lying flat and easier leaning forward, with abdominal pain and vomiting. Stomach ulcers can do something similar.
What unites these organ causes is that the back pain is rarely the only symptom and rarely changes with movement. Clinicians look for the companions: breathing, digestion, sweating, fever.
How a clinician tells the causes apart: exam, tests and a summary table
Most of the sorting happens in the conversation. A clinician will ask how the pain started, whether it changes with movement or breathing, whether it wakes you at night, and whether anything else has changed: appetite, weight, urine, bowel habit, energy. The physical exam then checks tenderness, range of movement, chest sounds, flank tapping and a quick neurological screen of strength, sensation and reflexes in the legs.
Imaging is deliberately held back for uncomplicated mechanical pain. The NHS and MedlinePlus both advise that scans are not routinely needed for back pain without warning signs, partly because they often reveal age-related changes that are unrelated to the symptom. An X-ray is ordered when a fracture is possible; an MRI when nerve or cord involvement is suspected; blood and urine tests when infection, inflammation or a kidney cause seems likely; an ECG and blood tests when the heart is in question.
| Cause | Typical features | Usual next step |
|---|---|---|
| Muscle strain or posture | Dull ache, tender to press, worse in one position, better with movement | Self-care and activity; review if no improvement in a few weeks |
| Rib or facet joint irritation | Sharp pain beside spine, worse with deep breath or twisting | Clinical exam; movement advice; imaging only if atypical |
| Compression fracture | Sudden central pain after minor event, age over 50 or steroid use | X-ray; bone health assessment |
| Shingles | One-sided burning pain, skin sensitivity, rash a few days later | Prompt appointment; antiviral decision by clinician |
| Kidney infection or stone | Flank pain, fever or blood in urine, no change with movement | Same-day urine test and assessment |
| Heart, aorta or lung | Pressure, breathlessness, sweating, tearing pain, pain with each breath | Emergency services |
How to relieve mid back pain at home
For the ordinary muscular and joint pain that accounts for most cases, the strongest evidence points in one direction: keep moving. The NHS advises staying active and continuing normal daily activities as far as the pain allows, because prolonged bed rest tends to make back pain last longer, not shorter. Walking, gentle shoulder rolls and slow thoracic rotations (sitting tall and turning the upper body side to side) keep the stiff segment mobile without loading it.
Heat is the home measure most people find useful for muscle tension; a warm shower or a heat pack for a short period relaxes the tissue and makes movement easier. Some people prefer cold in the first day or two after a clear strain. Neither has strong trial evidence, but both are low risk when used sensibly.
Over-the-counter pain relievers from the anti-inflammatory class work by blocking the enzymes that drive inflammation and are commonly used for short periods. Whether they suit you depends on your stomach, kidneys, heart and other medicines, so the right decision rests with a pharmacist or your clinician rather than a magazine.
Small environmental changes pay off: raise the screen to eye level, vary your position every half hour, and set the car seat so your shoulder blades touch the backrest. Sleep on whatever surface lets you wake with the least stiffness; the evidence does not favor one mattress firmness for everyone.
What home care cannot do is treat a fracture, an infection or an organ problem. If the pain fits any of those stories, self-care is a detour, not a plan.
How long does mid back pain last?
Timelines help because they tell you when patience stops being reasonable. NIAMS defines acute back pain as lasting a few days to a few weeks, subacute pain as lasting four to twelve weeks, and chronic pain as persisting for more than twelve weeks. The NHS puts the practical message more simply: most back pain gets better within a few weeks, and people who stay active tend to recover faster.
Several things stretch that timeline. Continuing the activity that caused the strain, long unbroken hours sitting, poor sleep, low mood and the fear that movement will cause harm are all associated with pain lasting longer. Smoking and low fitness appear on the NIAMS list of risk factors for persistent symptoms. Conversely, an early return to walking and normal routines shortens recovery for most people.
The other causes have their own clocks. Shingles pain can precede the rash by a few days and the rash itself takes up to four weeks to heal, according to the NHS, and a minority of people develop lingering nerve pain afterward. A kidney infection should start improving within days of appropriate treatment; worsening pain or persistent fever means the plan needs revisiting. A compression fracture settles over weeks to months as the bone heals, with the longer-term work being prevention of the next one.
The threshold for a review is clear: mechanical pain that has not improved at all after a few weeks of sensible self-care, pain that is getting worse rather than better, or pain that has changed character, all deserve an appointment. Pain beyond twelve weeks moves into the chronic category, where a structured program of exercise and, where relevant, psychological support has the best evidence.
Mid back pain in children and during pregnancy
Children rarely complain of mid back pain, and when they do the cause is usually the same as in adults: a heavy school bag, a new sport or a growth spurt. Scheuermann’s disease, an uneven growth of the thoracic vertebrae in adolescence that produces a rounded upper back, and scoliosis, a sideways curve of the spine, are the two structural conditions clinicians screen for by watching the child bend forward. Persistent pain in a child, night pain, fever, a limp, weight loss or any change in walking is taken seriously and generally leads to examination and imaging sooner than it would in an adult, because the harmless causes in children are less likely to wake them or make them unwell.
Pregnancy shifts the center of gravity forward, loosens ligaments under hormonal influence and asks the back muscles to carry more for longer. Low back and pelvic pain are the usual result, but mid back pain between the shoulder blades is common too, particularly in late pregnancy and from breast weight and feeding postures afterward. Staying active, supportive footwear, side-sleeping with a pillow between the knees and gentle stretching are the measures mainstream guidance supports.
Warning signs in pregnancy are specific. Pain under the right ribs or between the shoulder blades together with headache, visual disturbance or swelling can be a sign of pre-eclampsia, a blood pressure disorder of pregnancy, and needs same-day assessment. Flank pain with fever suggests a kidney infection, which is more common and more serious in pregnancy. Any medicine decision, including over-the-counter pain relief, belongs with the midwife, obstetrician or pharmacist.
What people often get wrong about mid back pain
The first misconception is that a sore spot between the shoulder blades means a rib has popped out. Ribs are anchored by ligaments and joint capsules; what people feel is an irritated costovertebral joint and the muscle guarding around it. The reassuring part is that these settle with movement, not manipulation.
The second is the belief that a scan will explain the pain. MedlinePlus and the NHS both point out that imaging commonly reveals disc bulges and arthritic changes in people with no symptoms. An X-ray report full of degenerative words can frighten someone whose pain is muscular and short-lived, and it rarely changes the treatment.
The third mistake runs the other way: assuming that pain in the back must come from the back. Heart, aorta, lungs, gallbladder, pancreas and kidneys all refer pain to this region. The habit worth developing is to ask what else is happening. Breathlessness, sweating, fever, urinary change or digestive upset turn a back problem into a whole-body question.
Posture gets both too much blame and too little. Sustained positions provoke pain; a single ideal alignment does not prevent it. Moving often matters more than sitting perfectly.
Finally, rest is overrated. The instinct to lie still until the pain passes is understandable, but the NHS is clear that staying active is associated with faster recovery, and NIAMS lists low activity among the factors that make pain persist. The exception, again, is the short list of causes where rest is not the issue because the problem is bone, nerve or organ.
When to see a doctor: middle back pain red flags
Call emergency services, do not drive yourself, if mid back pain comes with any of the following: chest pressure, pain spreading to the arm or jaw, shortness of breath, sweating or nausea (possible heart attack); sudden severe tearing pain between the shoulder blades (possible aortic dissection); sharp pain with each breath plus breathlessness or coughing blood (possible lung clot); new weakness or numbness in the legs, difficulty walking, or loss of bladder or bowel control (possible spinal cord compression); or any back pain after a fall, crash or significant blow, particularly in an older adult.
Arrange a same-day appointment or urgent assessment for: fever, chills or feeling generally unwell with back or flank pain; burning or blood on urination with flank pain; severe pain in waves with vomiting; one-sided burning pain with sensitive skin or a new strip of rash; sudden central back pain in anyone over 50, anyone on long-term steroids, or anyone with known osteoporosis; or pain with unexplained weight loss, night sweats or a history of cancer.
Book a routine appointment if pain has not improved after a few weeks of staying active, if it keeps returning, if it is disturbing sleep, or if it is starting to affect work, mood or daily life. The NHS and NIAMS both emphasize that persistent pain deserves assessment even without dramatic signs, because early advice and exercise shorten the course.
The red flags above are the ones clinicians use to decide who needs tests today. If none apply, the odds strongly favor a muscular or joint cause, and the next few weeks of gentle activity are both the treatment and the test.
Frequently asked questions
Why does my back hurt in the middle?
Most often because the muscles and small joints of the thoracic spine have been strained or held still for too long, typically by desk work, driving, lifting or a new activity. The pain is dull, tender to press and changes with movement. Less commonly the cause is a fracture, shingles, a kidney problem or referred pain from the heart, lungs or digestive organs, which usually bring other symptoms.
What is a red flag for middle back pain?
The main middle back pain red flags are chest pressure or breathlessness, sudden tearing pain between the shoulder blades, fever with flank pain, new leg weakness or numbness, loss of bladder or bowel control, pain after a fall, and pain with unexplained weight loss or a cancer history. Any of these means same-day or emergency assessment rather than home care.
How do you know if mid back pain is kidney related?
Kidney pain sits in the flank, below the lowest ribs and to one side, and does not ease or worsen with twisting or pressing on the muscles. The NIDDK describes kidney infection as flank pain with fever, chills, burning on urination and cloudy urine; stones cause severe waves of pain with blood in the urine. A urine test and exam settle the question quickly.
How to relieve middle back pain at home?
Keep moving: walking, shoulder rolls and gentle upper-body rotations are the measures the NHS supports, because staying active shortens back pain compared with rest. Heat for short periods eases muscle tension, and changing position every half hour helps desk-related pain. Over-the-counter anti-inflammatories are commonly used short term, but whether they suit you is a question for a pharmacist or clinician.
Can mid back pain be a sign of a heart attack?
Yes, although it is rarely the only sign. The American Heart Association lists back, neck, jaw and arm discomfort among heart attack warning signs, alongside chest pressure, shortness of breath, cold sweat and nausea, and notes women are more likely to have these less typical symptoms. Back pain that builds with exertion or comes with those companions warrants emergency services.
What are the most common upper back pain causes?
Muscle strain and sustained posture top the list, followed by irritation of the joints where ribs meet the vertebrae, which causes sharp pain beside the spine on deep breathing or twisting. Thoracic disc problems are uncommon because the rib cage limits movement. Osteoporotic fractures, shingles and referred pain from the heart, lungs or gallbladder make up the rest.
Does sitting at a desk cause mid back pain?
Sitting for long unbroken periods is a well-recognized trigger because the muscles between the shoulder blades work continuously against gravity. The evidence does not support one perfect posture; NIAMS and the NHS emphasize changing position often, raising screens to eye level and building movement into the day. Low general fitness, listed by NIAMS as a risk factor, makes desk pain more likely.
Can stress cause mid back pain?
Stress raises resting muscle tension in the shoulders and upper back, which is enough to produce a persistent ache or to amplify an existing strain. NIAMS lists anxiety and depression among the factors associated with longer-lasting back pain. The pain is physical, not imagined; addressing sleep, activity and mood alongside the muscle tends to help more than any single treatment.
When is an X-ray or MRI needed for mid back pain?
Not routinely. The NHS and MedlinePlus advise against imaging for uncomplicated back pain because scans often show age-related changes that are not causing the symptom. An X-ray is ordered when a fracture is possible, such as sudden pain in an older adult or someone on long-term steroids. An MRI follows when nerve or spinal cord signs appear, such as leg weakness or bladder changes.
Is mid back pain during pregnancy normal?
It is common, because the shifting center of gravity, loosened ligaments and extra load all ask more of the back muscles. Staying active, supportive footwear and side-sleeping with a pillow between the knees are the measures mainstream guidance supports. Pain under the right ribs with headache, visual changes or swelling, or flank pain with fever, needs same-day assessment because of pre-eclampsia and kidney infection.
References
- NHS: Back pain
- MedlinePlus: Back Pain
- NIAMS (NIH): Back Pain
- NIDDK (NIH): Kidney Infection (Pyelonephritis)
This article is for general information only and is not a substitute for professional medical advice. Please consult a qualified doctor about your individual situation.
Add us as a Preferred Source to see more of our trusted health content across Google Search, AI Overviews and Discover.
More from the Blog
How Long Does a Bruised Tailbone Take to Heal? The Usual Timeline and Signs of a Fracture
A bruised tailbone usually takes up to about four weeks to heal, although tenderness when sitting can linger a little longer; a fractured tailbone…
Living With a Knee Replacement: Implant Precautions, Exercise Choices and Long-Term Checkups
Living with a knee replacement mostly means protecting the implant through habits rather than strict rules: walk and strengthen daily, choose low-impact activities such…
Do You Really Need Carpal Tunnel Surgery? Splints, Injections and When Release Is Advised
Most people with carpal tunnel syndrome do not need surgery straight away. Mild or recent symptoms are usually managed first with a night splint,…
Right Shoulder Blade Pain: Muscle, Spine and Gallbladder Causes and Warning Signs
Right shoulder blade pain most often comes from strained or overworked muscles between the spine and the shoulder blade, from the neck, or from…
Inner Thigh Pain: Adductor Strain, Hip and Groin Causes and When It Needs a Check
Inner thigh pain most often comes from a strained adductor muscle, the group that pulls the leg inward, and usually settles with rest and…
Fractures in Older Adults: How Bone Density and Balance Shape Treatment and Prevention
Fracture treatment for older adults usually combines prompt surgery or careful immobilization with early movement, pain control and a plan to protect the rest…






