How Is Ankylosing Spondylitis Diagnosed: Tests & Imaging

Diagnosing ankylosing spondylitis (AS) typically involves a combination of symptom history, blood tests, imaging, and physical examination. There is no single test that confirms it. On average, people wait about 6 years from their first symptoms to getting a correct diagnosis, partly because early signs overlap with more common causes of back pain and partly because the disease can look different from person to person.

Why Diagnosis Takes So Long

The average gap between a person’s first symptom and a formal AS diagnosis is roughly 6 years, though it can stretch well beyond that. Several factors drive this delay. People who test negative for the HLA-B27 gene wait significantly longer, averaging over 9 years compared to about 5 years for those who test positive. If your earliest symptom was inflammatory back pain (the hallmark pattern of stiffness that’s worse in the morning and improves with movement), the delay shrinks to around 3 years. But if your symptoms started in a less typical way, such as heel pain or knee swelling, it takes longer for clinicians to connect the dots.

Having a family member with AS also speeds things up. People with a positive family history reach a diagnosis in about 4.5 years on average, while those without one wait roughly 10 years. The takeaway: if you have a close relative with AS and you’re dealing with persistent back pain that started before age 45, mentioning that family history to your doctor can meaningfully accelerate the process.

The Symptom Pattern Doctors Look For

The starting point for any AS evaluation is chronic back pain lasting at least 3 months that began before age 45. But not all back pain raises suspicion. Doctors are specifically looking for inflammatory back pain, which has a distinct pattern: it develops gradually rather than suddenly, feels worst after long periods of rest (especially first thing in the morning), improves with exercise, and often wakes you in the second half of the night. Mechanical back pain from a muscle strain or disc problem behaves in the opposite way, worsening with activity and improving with rest.

Beyond back pain, clinicians look for a cluster of features associated with spondyloarthritis. These include a history of eye inflammation (uveitis), psoriasis, inflammatory bowel disease, heel pain from inflamed tendons (enthesitis), and swelling in fingers or toes that gives them a sausage-like appearance. The more of these features present alongside back pain, the higher the probability of AS.

Blood Tests: Helpful but Not Definitive

Two categories of blood work matter in an AS workup: genetic testing and inflammatory markers. Neither one alone confirms or rules out the diagnosis.

HLA-B27 Gene Test

About 85% of people with AS carry a gene called HLA-B27. Testing for it is a simple blood draw. A positive result increases suspicion, especially when combined with the right symptoms and imaging findings. But context matters: roughly 8% of the general European population carries HLA-B27 without ever developing AS, so a positive test on its own doesn’t mean you have the disease. Conversely, about 10-15% of AS patients are HLA-B27 negative, so a negative result doesn’t rule it out either.

CRP and ESR

Doctors often order tests for C-reactive protein (CRP) and erythrocyte sedimentation rate (ESR), both of which measure inflammation in the body. Here’s the catch: these markers are elevated in only about 40-50% of people with AS, even during active disease. That means half of AS patients have completely normal inflammatory markers while their joints are actively inflamed. A normal CRP or ESR does not rule out AS, and relying too heavily on these results is one reason some people face diagnostic delays.

Imaging: X-rays and MRI

Imaging of the sacroiliac joints (the joints connecting your spine to your pelvis) is one of the most important pieces of the diagnostic puzzle. This is where the disease almost always shows up first, and there are two main tools for spotting it.

X-rays

Traditional X-rays can show structural damage to the sacroiliac joints, such as erosion, narrowing, or fusion. When these changes are clearly visible, they meet the modified New York criteria, which have been the gold standard for confirming AS for decades. The problem is timing. X-ray changes take years to develop, and in people with early disease, X-rays are often completely normal. In one study comparing imaging methods, X-rays detected sacroiliitis with only 22% sensitivity, meaning they missed nearly 4 out of 5 early cases. Their specificity was high at 94%, so when X-rays do show damage, you can trust the finding. But a clean X-ray in someone with symptoms doesn’t mean much.

MRI

MRI has changed the diagnostic landscape because it can detect active inflammation before any structural damage appears on X-rays. Specifically, it picks up bone marrow edema (swelling inside the bone) at the sacroiliac joints. The current diagnostic threshold requires at least one area of bone marrow edema visible on two consecutive MRI slices, or more than one area on a single slice. In the same study, MRI detected sacroiliitis with 71% sensitivity and 90% specificity, making it far more useful in early disease. Among patients whose X-rays showed nothing abnormal, nearly 40% had clear signs of sacroiliitis on MRI.

This is why MRI is now the preferred imaging tool when AS is suspected but X-rays look normal. If your doctor orders only X-rays and they come back clean, asking about an MRI of the sacroiliac joints is a reasonable next step.

The Physical Exam

A hands-on examination helps assess how much the disease has already affected spinal mobility. One common test is the modified Schober test, which measures how well your lower back flexes forward. Your doctor marks two points on your lower spine, asks you to bend forward as far as you can, and measures how far those marks separate. In healthy young adults, the marks typically separate by about 5 cm. In people with established AS (around 20 years of disease), that number drops to about 3.3 cm, roughly equivalent to what you’d expect in a healthy person between 60 and 80 years old.

Doctors also measure chest expansion by wrapping a tape measure around your ribcage and comparing the circumference at full inhale versus full exhale. Reduced expansion suggests inflammation or fusion of the joints between your ribs and spine. These physical findings don’t diagnose AS on their own, but they help gauge severity and track progression over time.

How the Pieces Fit Together

The international classification system used by rheumatologists (the ASAS criteria) offers two pathways to identifying axial spondyloarthritis, the broader category that includes AS. Both require chronic back pain lasting 3 or more months with onset before age 45.

The imaging pathway requires sacroiliitis visible on X-ray or MRI, plus at least one additional clinical feature of spondyloarthritis (such as inflammatory back pain, uveitis, psoriasis, or a positive HLA-B27 test). The clinical pathway applies when imaging is inconclusive: it requires a positive HLA-B27 test plus at least two other spondyloarthritis features. When multiple features line up, the diagnostic certainty rises dramatically. For example, someone who is HLA-B27 positive, has sacroiliitis on MRI, and has had an episode of uveitis has an extremely high likelihood of the disease.

In practice, the process usually unfolds over multiple appointments. A primary care doctor might order initial blood work and X-rays, then refer you to a rheumatologist when results are suggestive. The rheumatologist typically adds MRI, performs a detailed physical exam, and integrates everything into a diagnosis.

Diagnostic Challenges for Women

AS has historically been considered a “male disease,” but that reputation has led to real consequences for women seeking a diagnosis. Women with AS tend to show less severe sacroiliac joint damage on imaging, making it harder to meet the traditional X-ray criteria. They’re also more likely to have peripheral symptoms like joint pain in the knees or ankles, enthesitis, and extra-articular features such as psoriasis or inflammatory bowel disease, rather than the classic pattern of dominant spinal pain.

In one large study, women received significantly more diagnosis codes for peripheral symptoms (57.7% vs. 43.9% for men) and nonspecific musculoskeletal complaints (52.8% vs. 40%) in the two years before their AS diagnosis. Women were also diagnosed with fibromyalgia at six times the rate of men (4.3% vs. 0.7%) and with depression at more than double the rate (21.2% vs. 9.8%). Because fibromyalgia and AS share symptoms like widespread pain and fatigue, one can mask or delay recognition of the other. If you’re a woman with persistent inflammatory back pain and peripheral joint problems that haven’t been explained by other diagnoses, requesting an evaluation specifically for spondyloarthritis is worth pursuing.