Doctors Note Logo

Published on: 6/17/2026

Back Pain That's Worse at Rest? Doctors Explain Ankylosing Spondylitis

Ankylosing spondylitis (AS) is a chronic inflammatory arthritis affecting the spine, causing back pain and stiffness that worsens with rest and improves with movement. Common symptoms include morning stiffness, alternating buttock pain, fatigue, chest tightness, and eye inflammation, often beginning in early adulthood. Diagnosis is based on symptom patterns, genetic testing (HLA-B27), and imaging studies like X-rays or MRI.

Treatment options range from NSAIDs and biologics to physical therapy, lifestyle adjustments, and self-care strategies. Because AS symptoms can mimic other conditions and early intervention significantly improves long-term outcomes, identifying what's behind your pain quickly matters. Take a free, instant, online symptom check to better understand your symptoms and confidently navigate your next steps.

Reviewed for medical accuracy: 06/17/2026

answer background

Explanation

Back Pain That's Worse at Rest? Doctors Explain Ankylosing Spondylitis

Back pain is one of the most common complaints in medicine. For most people, it improves with rest and worsens with activity. But if your back pain feels stiff or achy after sitting or lying down—and loosens up once you move—you could be dealing with ankylosing spondylitis (AS). In this guide, we'll explain what AS is, how to recognize it, and what you can do about it.

What Is Ankylosing Spondylitis?

Ankylosing spondylitis is a type of inflammatory arthritis that primarily affects the spine and the joints where the spine meets the pelvis (the sacroiliac joints). Over time, chronic inflammation can lead to:

  • Spinal joints fusing together (ankylosis)
  • Reduced flexibility
  • Changes in posture (stooped or hunched forward)

Unlike mechanical back pain from muscle strain or a slipped disc, AS is driven by the immune system attacking healthy joint tissue.

Key Symptoms to Watch For

AS often starts in early adulthood (late teens to 30s) and progresses slowly. Common warning signs include:

  • Morning stiffness lasting over 30 minutes
  • Pain at rest, especially after periods of inactivity or sleeping
  • Pain that improves with gentle exercise (walking, stretching)
  • Alternating buttock pain (sacroiliitis), which may shift from one side to the other
  • Fatigue from chronic inflammation

Less common symptoms:

  • Chest pain when taking a deep breath (due to inflamed rib joints)
  • Eye redness and pain (uveitis)
  • Heel or foot pain (enthesitis, inflammation where tendons attach to bone)

If you're experiencing several of these symptoms and want to better understand what might be causing them, use our free AI-powered Ankylosing Spondylitis symptom checker to get personalized insights in minutes.

What Causes Ankylosing Spondylitis?

The exact cause of AS isn't fully understood, but doctors believe it involves a combination of:

  • Genetics: Over 90% of people with AS carry the HLA-B27 gene. Having this gene increases risk but doesn't guarantee the disease.
  • Immune system malfunction: In AS, the body's defense system mistakenly attacks its own joints.
  • Environmental triggers: Bacterial infections or other unknown factors may spark the immune response in genetically susceptible people.

Who's at Risk?

Ankylosing spondylitis can affect anyone, but certain factors increase your risk:

  • Gender: AS is about twice as common in men as in women.
  • Age: Symptoms usually begin between ages 15 and 30.
  • Family history: A parent or sibling with AS raises your risk.
  • HLA-B27 gene: Present in up to 90% of people with AS, though many carriers never develop the disease.

How Is Ankylosing Spondylitis Diagnosed?

AS can be tricky to diagnose early, since back pain is so common. Here's what doctors typically do:

  1. Medical history & physical exam

    • Ask about symptom patterns (worse at rest, better with movement)
    • Check posture, spinal flexibility, and chest expansion
  2. Blood tests

    • HLA-B27 gene test (supports diagnosis)
    • Inflammatory markers (CRP, ESR)
  3. Imaging

    • X-rays: May show sacroiliac joint changes or early fusion in the spine
    • MRI: More sensitive for detecting early inflammation

It's important to catch AS early to slow progression and protect your spine.

Treatment Options

There's no cure for ankylosing spondylitis, but early treatment can dramatically reduce pain, stiffness, and the risk of joint fusion. Treatment typically includes:

• Nonsteroidal anti-inflammatory drugs (NSAIDs)

  • First-line therapy to control pain and inflammation
  • Examples: ibuprofen, naproxen

• Tumor necrosis factor (TNF) inhibitors

  • Biologic drugs (e.g., etanercept, adalimumab) that target specific inflammatory molecules
  • Help improve mobility and reduce structural damage

• Interleukin-17 (IL-17) inhibitors

  • Newer class of biologics (e.g., secukinumab) for patients not responding to TNF inhibitors

• Physical therapy & exercise

  • Daily stretching and strengthening exercises prevent stiffness and maintain posture
  • Swimming and low-impact aerobics are especially beneficial

• Lifestyle modifications

  • Quit smoking (smoking speeds spinal damage)
  • Maintain a healthy weight to reduce joint stress

In some cases—rarely—surgery may be needed to correct severe spinal deformities or replace damaged hips.

Self-Care Strategies

Beyond medical treatments, you can take steps at home to manage AS symptoms:

  • Stay active: Gentle movement helps reduce stiffness. Aim for 20–30 minutes of low-impact exercise each day.
  • Practice good posture: Use ergonomic chairs, stand tall, and avoid slouching when working or relaxing.
  • Heat and cold therapy: Warm showers or heat packs ease muscle tension; cold packs reduce flare-up pain.
  • Stretch regularly: Focus on chest, back, and hip stretches to maintain spinal mobility.
  • Mind-body techniques: Yoga, tai chi, or meditation can help with pain coping and stress management.

Potential Complications

Without proper treatment, AS can lead to:

  • Fusion of spinal vertebrae, causing a "bamboo spine" appearance
  • Reduced chest expansion and lung capacity
  • Increased risk of fractures in fused spines
  • Eye inflammation (uveitis) that may threaten vision

While these complications sound serious, early diagnosis and adherence to treatment greatly reduce your chances of severe outcomes.

When to See a Doctor

It's normal to experience occasional back discomfort, but see a healthcare professional if you have:

  • Back pain lasting more than 3 months
  • Morning stiffness that improves with movement
  • Pain that wakes you from sleep
  • Family history of ankylosing spondylitis
  • Eye redness, vision changes, or severe fatigue

If you suspect ankylosing spondylitis—or any pain that could signal something serious—don't wait. Speak to a doctor for a full evaluation and to discuss treatment options.

Take the Next Step: Check Your Symptoms

Wondering if your symptoms point to ankylosing spondylitis? Take control of your health by using our free AI-powered Ankylosing Spondylitis symptom checker to evaluate your symptoms and get guidance on whether you should seek medical attention.


Ankylosing spondylitis can feel overwhelming, but with the right treatment plan and self-care strategies, many people lead active, fulfilling lives. If you experience persistent back pain—especially pain that's worse at rest—talk to your doctor. Early diagnosis and treatment are key to preserving mobility and preventing complications.

(References)

  • * Toussirot E, et al. Inflammatory Back Pain in Ankylosing Spondylitis. J Clin Med. 2018 Feb 8;7(2):23. doi: 10.3390/jcm7020023. PMID: 29428518; PMCID: PMC5850239.

  • * Sieper J, et al. Early diagnosis and treatment of axial spondyloarthritis: an international consensus statement. RMD Open. 2021 Mar;7(1):e001625. doi: 10.1136/rmdopen-2021-001625. PMID: 33718915; PMCID: PMC7959082.

  • * Pautz L, et al. Axial spondyloarthritis: An update on diagnosis and management. Medicine (Baltimore). 2022 Nov 11;101(45):e31707. doi: 10.1097/MD.0000000000031707. PMID: 36384236; PMCID: PMC9667794.

  • * Dean L, et al. Ankylosing Spondylitis and Axial Spondyloarthritis: A Review. Curr Rheumatol Rep. 2020 Sep 17;22(11):75. doi: 10.1007/s11926-020-00947-6. PMID: 32948773.

  • * Lories RJ, et al. New insights into the treatment of axial spondyloarthritis. Nat Rev Rheumatol. 2022 May;18(5):269-281. doi: 10.1038/s41584-022-00770-8. Epub 2022 Apr 4. PMID: 35368142; PMCID: PMC9061031.

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.