Ankylosing spondylitis (AS) is a long-term type of arthritis that mainly causes pain and stiffness in the lower back and the joints where the spine meets the pelvis. It usually starts before age 45, often in the late teens or twenties. Back pain that is worst in the morning and eases with movement is the classic sign, and modern treatment can control it well.
Key points
- AS is an inflammatory disease. The immune system attacks the spine and the places where tendons attach to bone.
- Over many years, some people’s spine bones grow together and stiffen.
- Stiffness in the ribs and chest can make deep breathing harder.
- Daily exercise and anti-inflammatory medicines are the first treatments. Biologic medicines help when those aren’t enough.
- A painful red eye with blurry vision needs an eye doctor the same day.
What causes ankylosing spondylitis
The name describes the disease. “Spondylitis” means inflammation of the spine bones (vertebrae), and “ankylosis” means stiffening or fusing of a joint. Doctors now group AS under a wider term, axial spondyloarthritis. When X-rays show damage to the joints between the spine and pelvis (sacroiliac joints), it’s called AS or radiographic axial spondyloarthritis. When only an MRI shows inflammation, it’s called non-radiographic axial spondyloarthritis.
The exact cause isn’t known. Genes play a big part. Most people with AS carry a gene called HLA-B27, but most people with the gene never get AS. It often runs in families and is diagnosed more often in men. Smoking makes it worse.
Ankylosing spondylitis symptoms
- Low back or buttock pain that comes on slowly over months
- Stiffness that is worst in the morning or after rest and lasts more than 30 minutes
- Pain that gets better with exercise and doesn’t improve with rest
- Waking in the second half of the night with back pain
- Buttock pain that may switch from side to side
- Pain where tendons attach to bone, such as the back of the heel or the bottom of the foot
- Swollen hips, knees, ankles or shoulders
- Pain and stiffness in the ribs, chest or neck
- Tiredness
Related conditions are common. They include eye inflammation (uveitis), psoriasis and inflammatory bowel disease.
Eye inflammation
About 1 in 4 people with AS have at least one bout of uveitis. One eye becomes painful, red and sensitive to light, and vision may blur. Treatment with steroid eye drops works best when it starts quickly, so see an eye doctor the same day.
Ankylosing spondylitis and breathing
Inflammation where the ribs join the spine and breastbone can cause chest and rib pain, especially when you breathe in deeply, cough or sneeze. Over time, these joints can stiffen and the chest can’t expand as far. Lung capacity may drop a little, but most people still breathe well because the diaphragm, the main breathing muscle, does more of the work. Rarely, AS causes scarring at the top of the lungs.
Shortness of breath can also come from the heart, from smoking, or from lung infections linked to some medicines, so tell your doctor if it’s new. Deep breathing exercises, good posture, swimming and not smoking help keep the chest moving. Call 911 for sudden chest pain or severe shortness of breath.
How it’s diagnosed
There is no single test, and it often takes years to get a diagnosis because back pain is so common. Your doctor will ask about your pain pattern and family history and check how well your back, hips and chest move.
- X-rays of the pelvis show damage to the sacroiliac joints, though it can take years to appear.
- MRI can show inflammation early, before X-rays change.
- Blood tests measure inflammation (CRP and ESR) and check for HLA-B27.
A rheumatologist, a doctor who treats arthritis, usually confirms the diagnosis.
Treatment
Medicines
- Nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen, naproxen and celecoxib are the first choice. Many people feel much better within a couple of weeks.
- TNF blockers, such as adalimumab, etanercept, infliximab, certolizumab and golimumab, are given as shots or IV infusions.
- IL-17 blockers, such as secukinumab, ixekizumab and bimekizumab, are shots that block another inflammation signal.
- JAK inhibitors, such as upadacitinib and tofacitinib, are daily pills.
- Steroid shots into a swollen joint or tendon can ease a flare. Steroid pills don’t help the spine much.
- Sulfasalazine or methotrexate may help swollen arm and leg joints, but not back pain.
Biologics and JAK inhibitors lower your defense against infections. You’ll be tested for tuberculosis and hepatitis before starting.
Surgery
A badly damaged hip can be replaced. Spine surgery to correct a severe forward curve is rare.
Exercise for ankylosing spondylitis
Exercise is one of the most important treatments. A physical therapist can set up a program for you. Good choices include:
- Daily stretches for the back, neck, hips and chest
- Posture exercises, such as standing with your heels, shoulders and head against a wall
- Lying flat on your stomach for a few minutes a day to keep the spine straight
- Deep breathing exercises to keep the ribs moving
- Strength work for the core and back muscles
- Low-impact activity such as swimming, walking, cycling or yoga
A warm shower first can ease morning stiffness. If your spine is fused, avoid contact sports and high falls.
Living with AS
- Don’t smoke. It speeds up spine damage and harms lung function.
- Sleep on a firm mattress with a thin pillow.
- Take breaks to stretch when you sit for long periods.
- Ask about a bone density test, since AS raises the risk of thin bones.
A stiff spine breaks more easily. Get emergency care for new neck or back pain after even a minor fall.
Common questions about ankylosing spondylitis
Can ankylosing spondylitis cause shortness of breath?
It can, mostly when the joints of the ribs and chest become stiff and the chest can’t expand fully. The effect is usually mild, but it can make hard exercise feel tougher. New or worsening shortness of breath should still be checked, since heart and lung problems can also cause it.
What is poker spine?
Poker spine describes a spine that has become stiff and straight after years of AS, as the bones fuse together. On X-rays this can look like a stick of bamboo, so doctors also call it bamboo spine. Early treatment and daily exercise make this much less likely today.
Can ankylosing spondylitis affect the legs?
Yes. AS often affects the hips and can swell the knees or ankles, and it also causes pain where tendons attach, such as the heel, and buttock pain that may spread down the back of the thigh. Pain that shoots below the knee with numbness is more typical of a pinched nerve (sciatica).
Questions to ask your doctor
- Do I have ankylosing spondylitis or non-radiographic axial spondyloarthritis?
- Which medicine should I try first, and how will we know if it’s working?
- Can you refer me to a physical therapist?
- Should my lungs, eyes or bones be checked?
- What should I do during a flare?
Learn more
- Ankylosing spondylitis (National Institute of Arthritis and Musculoskeletal and Skin Diseases)
This guide is general information and doesn’t replace advice from your own doctor. Last updated October 2026.



