Our knowledge of orthopaedics. Your best health.

from the American Academy of Orthopaedic Surgeons

Diseases & Conditions

Treatment

Recovery

Staying Healthy

Ankylosing Spondylitis

Ankylosing spondylitis is a disease that occurs when the immune system attacks bones, ligaments, and joints. This inflammation can cause changes in the spine over a long time, resulting in back pain and less movement in the joints of the spine. People who have ankylosing spondylitis can also have back or hip stiffness that gets better after moving around. 
 
People usually notice symptoms before 45 years of age. Men get ankylosing spondylitis more often than women. The disease can be passed through families through specific genes, but not everyone with these genes will get ankylosing spondylitis.
 
Although there is no cure for ankylosing spondylitis, there are many treatment options to manage pain and stay active. Some treatments that work well include physical therapy to keep the spine flexible and medications to bring down inflammation.

Anatomy

 
The spine is made up of small bones, called vertebrae, which are stacked on top of one another. Muscles, ligaments, nerves, and intervertebral disks are additional parts of the spine.
Illustration Showing Segments of the Spine

Illustration showing a side view of a healthy spine. The intervertebral disks (blue) cushion the vertebrae and allow for movement of the spine.

Understanding your spine and how it works can help you better understand ankylosing spondylitis. Learn more about spine anatomy: Spine Basics

Ankylosing spondylitis can affect:

  • The bones and tissues surrounding your spine and pelvis. The sacroiliac joint is one area where changes from the disease can be seen first. The sacroiliac joints connect the lower triangular base of the spine (the sacrum) to part of the pelvis (the ilium).
  • The entheses. Entheses are the connecting points between bones and ligaments, tendons, or joints. These areas can become inflamed. For example, the Achilles tendon in the heel can hurt and become stiff.
  • The eyes, in a condition called uveitis. This is when the immune system attacks the uvea, or the middle layer of the eye, including the iris. If the uvea is inflamed, it makes the eye red, painful, and sensitive to light.

Description

Ankylosing spondylitis occurs when inflammation makes the joints of the spine and pelvis painful and stiff. 
  • At first, ankylosing spondylitis can cause small changes that show up on X-rays but do not cause symptoms. 
  • Over time, ankylosing spondylitis can make the bones in your back grow together, called fusion, which can make it hard to move.   
Illustration Showing Progression of Ankylosing Spondylitis

Courtesy of Getty Images.

Cause

Ankylosing spondylitis is an autoimmune disease. Autoimmune diseases occur in situations in which the body's own immune system starts to attack itself. The immune system is helpful when it attacks bacteria or other germs. However, when it attacks healthy tissue over a long time, such as in an autoimmune disease, it can cause pain and damage to the body. In ankylosing spondylitis, the body's immune system attacks healthy tissue in the back, hip, and joints.
 
Some factors make it more likely for you to develop ankylosing spondylitis:  
  • Sex. Men get ankylosing spondylitis about twice as often as women do.
  • Family history. Having a close relative  with ankylosing spondylitis makes it more likely that you might develop AS also. Immediate family (parents, siblings, and children) with AS have the most impact on your risk of developing AS, while other family members like grandparents, aunts, and uncles have a smaller impact on your risk. Ankylosing spondylitis is probably passed down between families through a gene called HLA-B27. There are more than 100 other genes that are also linked to ankylosing spondylitis. However, not everyone with these genes will end up with ankylosing spondylitis. Scientists think this is because several risk factors add together to determine whether you develop ankylosing spondylitis.
  • Tobacco use. Smoking (including e-cigarettes/vaping) puts you at risk of developing ankylosing spondylitis. Learn more: Smoking and Musculoskeletal Health
  • Physically demanding work. People with ankylosing spondylitis who have more physically demanding jobs may have more pain and faster changes in their spine than people with less physical jobs.
  • Vitamin D. People who have higher levels of vitamin D may have a lower chance of getting ankylosing spondylitis. Learn more: Vitamin D for Good Bone Health
  • Gut microbiome. Bacteria in your gut may also affect your risk of developing ankylosing spondylitis. This may be a way to treat ankylosing spondylitis in the future as doctors and scientists better understand the role gut bacteria may play in disease development.

Symptoms

Because ankylosing spondylitis is an inflammatory disease, people can experience “flares” of inflammation where symptoms can come and go. People may have some of the following symptoms and not others:
  • Back pain and stiffness. This pain usually starts in early adulthood (before age 45). People with ankylosing spondylitis typically have back pain and stiffness that is worse in the morning and may wake them up at night. This pain gets better with exercise.
  • Neck pain and stiffness. Similar to back pain, this can be worse first thing in the morning (right after waking up) and get better with exercise.
  • Fatigue. Many people with ankylosing spondylitis have overwhelming tiredness that can come and go.
  • Less flexibility in the spine . Moving the spine can be harder because of pain and stiffness in the back and hips. The vertebrae in the spine can fuse together. This can make it harder to bend over or for the spine to move.
  • Pain in areas outside of the back. The hips, knees, or shoulders can sometimes be affected. 
  • Enthesitis. Pain and stiffness may develop at attachment points for tendons, ligaments, and joint capsules (for example, the heel, knee, hip, elbow, and spine).
  • Red, painful, and sensitive eyes. Some people with ankylosing spondylitis can develop anterior uveitis. This is a condition where the immune system attacks the middle layer of the eye, including the iris.
  • Digestive symptoms. People with AS can develop diarrhea or constipation, blood in stools, abdominal pain, cramping pain, heartburn, or other digestive symptoms. About 5 to 10% of people with ankylosing spondylitis have inflammatory bowel disease (IBD) as well.
  • Broken vertebrae and neurologic complications. Ankylosing spondylitis often causes osteoporosis since the inflammation can wear away healthy bone over time. This makes it more likely for people with AS to have fractures in their spine and sometimes severe problems with the nervous system.   
  • Heart problems. In rare cases, inflammation caused by AS can affect the heart. This can lead to high blood pressure, problems with the aorta or aortic valves, or problems with the electric signals to the heart (such as an abnormal heartbeat, or arrhythmia). 

Doctor Examination

Medical History and Physical Examination

After discussing your symptoms and medical history, your doctor will examine your back. This will include looking at your back and pushing on different areas to see if it hurts. Your doctor may have you bend forward, backward, and side-to-side to look for limitations or pain.

Imaging Tests

Other tests which may help your doctor confirm your diagnosis include:
 
X-rays. X-rays are probably the first test you will get. X-rays can show changes in the sacroiliac joints and spine, such as bone that has worn away (erosions), bone that is very dense and hard (sclerosis), or new bone growing in your spine and joints.
 
Magnetic Resonance Imaging (MRI) Scan. An MRI can create better images than an X-ray of soft tissues in the spine and joints. This allows doctors to see changes such as inflammation and swelling at an earlier stage.
 
Computed Tomography (CT) Scan. CT scans can create cross-section images of your spine and show the bony structures better than X-rays. CT can therefore provide better pictures of erosions and new bone growing in your spine and joints.
CT Scan Showing Ankylosing Spondylitis

CT scan of a patient with ankylosing spondylitis, taken before fusion surgery.

Treatment

Nonsurgical Treatment

There are many nonsurgical treatment options available to treat ankylosing spondylitis. Although these treatments will not cure ankylosing spondylitis, most people find that these options can help relieve symptoms.  
 
Lifestyle changes. Lifestyle changes are very important. Smoking is linked to a much higher risk of heart disease, lung damage, and damage to your spine. Quitting tobacco products can help you reduce pain, keep your back flexible, and slow down how fast the disease gets worse over time. Regular exercise will also help reduce pain and stiffness.
 
Anti-inflammatory medications. Because pain in ankylosing spondylitis often is caused by inflammation in the joints and ligaments, reducing inflammation helps to relieve pain. Non-steroidal anti-inflammatory drugs (NSAIDs) are usually the first medications used. You may be familiar with nonprescription NSAIDS, such as aspirin, ibuprofen, and naproxen. There are also prescription-strength NSAIDs like meloxicam or diclofenac. Whether over-the-counter or prescription strength, these medicines must be used carefully. They can lead to gastritis, stomach ulcers, and kidney problems or may worsen high blood pressure. If you develop acid reflux or stomach pains while taking an anti-inflammatory, be sure to talk to your doctor.
 
Biologic medications. If your symptoms are not managed by NSAIDs, biologic medications may be given. Biologic medications can be injections or infusions to target molecules in your body that contribute to inflammation. For example, TNF inhibitors and IL-17 inhibitors are medicines that stop inflammatory chemicals called cytokines from making the inflammation worse. JAK inhibitors also block signals that cause inflammation and can be tried if other medications are not working. 
 
While these medications can work very well for some people, they can have side effects:
  • TNF inhibitors sometimes cause cough, stomach pain, or fatigue. 
  • IL-17 inhibitors sometimes cause diarrhea or make inflammatory bowel disease worse. 
  • All these medications can increase your risk of infections since they affect the immune system. 
  • You may need to be tested for tuberculosis before beginning these medications, since these medications can cause tuberculosis to become active again in people who already have tuberculosis. 
Physical therapy. Physical therapy is also a very good treatment for ankylosing spondylitis. Stretching exercises, massage, and muscle strengthening exercises help improve flexibility, strength, and posture in the spine.

Surgical Treatment

Most people with ankylosing spondylitis never have surgery. However, if symptoms are not controlled with other therapies or if your nervous system is put at risk because of changes to the spine, there are surgical procedures available to help. 
  • Surgery is important if the bones in the spine become unstable, press on a nerve, or cause severe curves in your spine. 
  • Likewise, surgery is important if you begin to experience difficulty breathing or swallowing. 
  • Another reason surgery may be performed is if you have severe pain that stops you from being able to do your daily tasks and other therapies do not help.
Laminectomy. A laminectomy can be performed to remove part of a vertebra if it is pressing on a nerve. This can sometimes relieve pain and improve mobility, but in some cases, it does not help pain or it can make the spine less stable. This is why laminectomy is considered only after other therapies do not work.
 
Spinal fusion. Spinal fusion stabilizes the spine with rods, bars, or screws (hardware). The goal of spinal fusion is to reduce pain by reducing the stress on your nerves in your back. It can help the spine be more stable and correct deformities in the spine. In some cases, fusion surgery does not help pain, and hardware can sometimes cause complications, such as a fracture in a vertebra or problems in the surrounding disks and tissues over time.
CT Scan and X-Ray After Fusion Surgery for Ankylosing Spondylitis

CT scan (Left) and X-ray (Right) of the above patient after fusion surgery. 

Osteotomy. If your AS has caused your spine to curve, an osteotomy can be performed to put your vertebrae back in a straight line. This can improve your posture and help with breathing and digestive functions. Sometimes, there are complications, like vertebra that become misaligned over time or nerve damage after surgery.
 
Disk replacement. Disk replacement is generally not recommended because AS causes fusion of the spine over time, and the bone is not always stable enough to handle a disk implant.
 
Joint replacement. Some people may have hip joint replacements if damage to the hip joints is severe enough. Complications are similar to standard joint replacements, including breakage of the prosthesis, hip dislocation, and loosening of the artificial joint over time which requires another surgery

Conclusion

  • While there is not a cure for AS, most people with AS are able to have a good quality of life and continue to do the things that are important to them. 
  • Early nonsurgical treatments, such as anti-inflammatory medications, physical therapy, and lifestyle changes, can make a big impact on how your symptoms change over time. Focus on eating a well-balanced diet, managing stress, getting regular exercise, and getting enough sleep. And if you smoke or vape, take steps to quit. 
  • Your doctor may prescribe medications, such as biologics, to help keep you active and control symptoms.
  • Surgical treatments are usually not necessary, but surgery may be a good option if you have severe problems with your spine. 
  • With the treatments available today, a person with AS typically has the same life expectancy as someone without the disease. However, some life-threatening problems can arise with AS, such as cardiovascular disease and spinal fractures, so it is important to get regular medical care in addition to managing your AS symptoms.

Managing a chronic disease is not easy. Be open with your treatment team about the symptoms you are experiencing and seek support from loved ones and/or a support group.

Reference for Risk Factors of Ankylosing Spondylitis: Hwang MC, Ridley L, Reveille JD. Ankylosing spondylitis risk factors: a systematic literature review. Clin Rheumatol. 2021 Aug;40(8):3079-3093.

Last Reviewed

April 2025

Contributed and/or Updated by

Elisabeth M. Martin

Peer-Reviewed by

Catherine Renee Olinger, MD, FAAOSJulie E. Adams, MD, FAAOS

AAOS does not endorse any treatments, procedures, products, or physicians referenced herein. This information is provided as an educational service and is not intended to serve as medical advice. Anyone seeking specific orthopaedic advice or assistance should consult his or her orthopaedic surgeon, or locate one in your area through the AAOS Find an Orthopaedist program on this website.