Diagnosis

To diagnose ankylosing spondylitis, your healthcare professional may ask about your medical history, family history and symptoms. Your healthcare professional also may perform a physical exam to check your posture, flexibility, and areas of pain or stiffness. You also may be asked to take a deep breath to see if you have trouble expanding your chest.

Imaging tests

X-rays can check for changes in joints and bones, which can be a sign of ankylosing spondylitis, also called radiographic axial spondyloarthritis. Changes that appear on X-ray might take years to develop. Early disease might not show on X-ray images.

MRI uses radio waves and a strong magnetic field to provide more-detailed images of bones and soft tissues. MRI scans can detect nonradiographic axial spondyloarthritis earlier in the disease process. But MRI scans are much more expensive.

Lab tests

There are no specific lab tests to identify ankylosing spondylitis. Certain blood tests, including erythrocyte sedimentary rate, also called sed rate, and C-reactive protein (CRP), can check for markers of inflammation, but many different health issues can cause inflammation.

Blood can be tested for the HLA-B27 gene. But many people who have the gene don't have ankylosing spondylitis. And people who don't have the HLA-B27 gene can have the disease.


Treatment

The goal of treatment is to relieve pain and stiffness, maintain flexibility, and prevent or slow changes to the spine. Ankylosing spondylitis treatment works best when it's started early before permanent damage is done.

Medicines

Nonsteroidal anti-inflammatory drugs (NSAIDs) — such as naproxen sodium (Aleve) and ibuprofen (Advil, Motrin IB, others) — are the medicines healthcare professionals most commonly use to treat axial spondyloarthritis and nonradiographic axial spondyloarthritis. These medicines can relieve inflammation, pain and stiffness. They also irritate the stomach and may cause gastrointestinal bleeding.

If NSAIDs are not helpful, your healthcare professional might suggest starting a tumor necrosis factor (TNF) blocker or an interleukin-17 (IL-17) inhibitor. These medicines are injected under the skin or through an intravenous line. Another option is a Janus kinase (JAK) inhibitor. JAK inhibitors are taken by mouth. These types of medicines can reactivate untreated tuberculosis and make you more prone to infections.

Examples of TNF blockers include:

  • Adalimumab (Humira).
  • Certolizumab pegol (Cimzia).
  • Etanercept (Enbrel).
  • Golimumab (Simponi).
  • Infliximab (Remicade).

IL-17 inhibitors used to treat ankylosing spondylitis include secukinumab (Cosentyx), ixekizumab (Taltz) and bimekizumab (Bimzelx). JAK inhibitors available to treat ankylosing spondylitis include tofacitinib (Xeljanz) and upadacitinib (Rinvoq).

Therapy

Physical therapy is a very important part of the treatment plan and can help relieve pain while improving flexibility, posture and strength. A physical therapist can design specific exercises for your needs. To help preserve good posture, you may be taught:

  • Range-of-motion and stretching exercises.
  • Strengthening exercises for abdominal and back muscles.
  • Proper sleeping and walking positions.

Surgery

Most people with ankylosing spondylitis or nonradiographic axial spondyloarthritis do not need surgery. Surgery may be recommended if you have severe pain or if a hip joint is so damaged that it needs to be replaced.


Self care

Lifestyle choices also can help manage ankylosing spondylitis.

  • Stay active. Exercise can help ease pain, maintain flexibility and improve your posture.
  • Do not smoke. If you smoke, try to stop. Smoking is generally bad for your health and can make breathing even harder for people with ankylosing spondylitis.
  • Practice good posture. Practice standing straight in front of a mirror. Standing straight can help you avoid some of the issues related to ankylosing spondylitis.

Coping and support

Living with ankylosing spondylitis can be challenging. The course of your condition can change over time, and you might have painful episodes and periods of less pain throughout your life. But most people can live productive lives despite a diagnosis of ankylosing spondylitis.

You might want to join an online or in-person support group of people with this condition, to share experiences and support.


Preparing for your appointment

You might first bring your symptoms to the attention of your healthcare team. Your primary health professional may refer you to a specialist in inflammatory disorders called a rheumatologist.

Here is some information to help you get ready for your appointment.

What you can do

Make a list of:

  • Your symptoms, including any that may seem unrelated to the reason you made the appointment, and when they began.
  • Key personal information, including major stresses, recent life changes and family medical history.
  • All medicines, vitamins and other supplements you take and their doses.
  • Questions to ask your healthcare professional.

Take a family member or friend along, if possible, to help you remember the information you are given.

For ankylosing spondylitis, basic questions to ask your healthcare team include:

  • What is likely causing my symptoms?
  • Other than the most likely cause, what are other possible causes for my symptoms?
  • What tests do I need?
  • Is my condition likely temporary or lifelong?
  • What course of action do you recommend?
  • What are the alternatives to the primary approach you are suggesting?
  • I have other health conditions. How can I best manage them together?
  • Are there restrictions I need to follow?
  • Should I see a specialist?
  • Are there brochures or other printed material I can have? What websites do you recommend?

What to expect from your doctor

Your healthcare professional is likely to ask you questions, such as:

  • Where is your pain?
  • How serious is your pain?
  • Have your symptoms been continuous or occasional?
  • What, if anything, seems to worsen or improve your symptoms?
  • Have you taken medicines to relieve the pain? What helped most?

Oct 30, 2025
  1. Ankylosing spondylitis: In-depth. National Institute of Arthritis and Musculoskeletal and Skin Diseases. https://www.niams.nih.gov/health-topics/ankylosing-spondylitis/advanced. Accessed Sept. 23, 2025.
  2. Goldman L, et al., eds. Spondyloarthritis. In: Goldman-Cecil Medicine. 27th ed. Elsevier; 2024. https://www.clinicalkey.com. Accessed Sept. 23, 2025.
  3. Kellerman RD, et al. Rheumatology and the musculoskeletal system. In: Conn's Current Therapy 2025. Elsevier; 2025. https://www.clinicalkey.com. Accessed Sept. 23, 2025.
  4. AskMayoExpert. Ankylosing spondylitis. Mayo Clinic; 2024.
  5. Van Tubergen A. Clinical manifestations of axial spondyloarthritis (ankylosing spondylitis and nonradiographic axial spondyloarthritis) in adults. https://www.uptodate.com/contents/search. Accessed Sept. 23, 2025.
  6. Van Tubergen A. Diagnosis and differential diagnosis of axial spondyloarthritis (ankylosing spondylitis and nonradiographic axial spondyloarthritis) in adults. https://www.uptodate.com/contents/search. Accessed Sept. 23, 2025.
  7. Van Tubergen A. Treatment of axial spondyloarthritis (ankylosing spondylitis and nonradiographic axial spondyloarthritis) in adults. https://www.uptodate.com/contents/search. Accessed Sept. 23, 2025.

CON-20209453

Thank a researcher today!

Send a note of thanks to Mayo Clinic researchers who are revolutionizing healthcare and improving patient outcomes.