Diagnosing ankylosing spondylitis (AS) typically involves a combination of clinical evaluation, imaging, and blood tests rather than any single definitive test. The process often takes years because early symptoms, especially chronic low back pain, overlap with far more common conditions. On average, people with AS wait several years between their first symptoms and a formal diagnosis, partly because the hallmark joint damage visible on X-rays develops slowly.
How Inflammatory Back Pain Differs From Ordinary Back Pain
The first diagnostic clue is the pattern of your pain. Most back pain is mechanical, caused by strain, poor posture, or disc problems. Inflammatory back pain behaves differently, and recognizing that difference is often what starts the diagnostic process. Five features distinguish inflammatory back pain from the mechanical kind:
- Age of onset under 40. AS rarely begins after age 45. Symptoms typically start in the late teens to mid-thirties.
- Gradual onset. The pain builds slowly over weeks or months rather than starting suddenly after an injury.
- Improvement with exercise. Moving around eases the stiffness, which is the opposite of what happens with a pulled muscle or herniated disc.
- No improvement with rest. Lying down or sitting still makes things worse, not better.
- Pain at night. Many people wake in the second half of the night with deep back or buttock pain that improves after getting out of bed and moving.
If you have at least four of these five features and your back pain has lasted more than three months, inflammatory back pain is strongly suspected. NSAIDs like ibuprofen or naproxen also tend to be remarkably effective for inflammatory back pain, which can itself be a supporting clue. A doctor who hears this constellation of symptoms should be thinking about spondyloarthritis rather than a simple muscle strain.
The Physical Exam
During a physical exam, your doctor will press on the sacroiliac joints (located where your lower spine meets your pelvis) to check for tenderness. They’ll also measure how far you can bend forward, backward, and sideways, since reduced spinal mobility is a key sign. Chest expansion may be measured too, because inflammation where the ribs attach to the spine can limit how deeply you breathe. None of these findings alone confirm AS, but together they paint a picture that guides the next steps.
Imaging: X-Rays and MRI
Imaging of the sacroiliac joints is the single most important piece of the diagnostic puzzle. For decades, the modified New York criteria served as the main classification tool, requiring visible structural changes to the sacroiliac joints on a standard X-ray. These changes include erosion, narrowing, or partial fusion of the joint. If both sacroiliac joints show at least moderate damage, or one shows severe damage, the radiographic requirement is met.
The problem is that X-ray changes take years to develop. Someone with significant inflammation and clear symptoms may have completely normal X-rays early on. This is where MRI has transformed diagnosis. MRI can detect bone marrow edema (essentially swelling inside the bone near the joint surface) long before any structural damage is visible on X-ray. When this swelling appears in a characteristic location along the sacroiliac joint, it’s considered active sacroiliitis and strongly supports a diagnosis of axial spondyloarthritis. MRI can also pick up other inflammatory changes around the joint, including inflammation at the joint capsule and at the points where ligaments and tendons attach to bone.
The revised classification criteria from the international expert groups ASAS and SPARTAN emphasize imaging as the most heavily weighted factor, with MRI assessment of both active inflammation and structural damage carrying the strongest independent association with a final diagnosis.
When X-Rays Are Normal
If your X-rays are normal but MRI shows active inflammation and your clinical picture fits, you may be diagnosed with non-radiographic axial spondyloarthritis (nr-axSpA). This is essentially the same disease process caught before permanent joint damage has occurred. Some people with nr-axSpA eventually progress to full ankylosing spondylitis with visible X-ray changes, while others never do. The distinction matters mainly for classification purposes. Treatment options are largely the same.
Blood Tests
No blood test can confirm or rule out AS on its own, but several provide supporting evidence.
The HLA-B27 gene is present in more than 8 out of 10 people with AS. However, carrying this gene doesn’t mean you have or will develop the condition. Many people who test positive for HLA-B27 never develop spondyloarthritis, and roughly 10 to 20 percent of people with AS don’t carry the gene at all. A positive HLA-B27 result adds weight to the diagnosis when combined with matching symptoms and imaging findings, but it’s not a standalone test.
Inflammatory markers like C-reactive protein (CRP) and the erythrocyte sedimentation rate (ESR) measure general inflammation in the body. When elevated, they support the idea that something inflammatory is going on, and they’re useful for tracking disease activity over time. But not all AS patients have elevated levels. Normal inflammatory markers don’t rule the condition out.
How the Pieces Fit Together
Diagnosis works like assembling evidence rather than checking a single box. The most widely used framework looks at two possible pathways. In the imaging pathway, you need evidence of sacroiliitis on X-ray or MRI plus at least one other feature of spondyloarthritis (such as inflammatory back pain, HLA-B27 positivity, a good response to NSAIDs, or related conditions like inflammatory bowel disease or eye inflammation called anterior uveitis). In the clinical pathway, you need a positive HLA-B27 test plus at least two other spondyloarthritis features.
The recently revised ASAS-SPARTAN criteria assign different weights to each variable rather than treating them equally. Imaging findings carry the most weight, followed by HLA-B27 status, then clinical features like inflammatory back pain, heel enthesitis (pain where the Achilles tendon meets the bone), inflammatory bowel disease, anterior uveitis, psoriasis, and elevated CRP. This weighted approach achieved over 90 percent specificity in validation, meaning it’s very good at avoiding false positives.
Why Diagnosis Often Takes So Long
Several factors contribute to diagnostic delays. Back pain is extremely common, and most of it is mechanical, so AS may not be the first thing a primary care doctor considers. Younger patients, especially women, are sometimes told their pain is muscular or stress-related. X-rays may look normal in the early years, and if no one orders an MRI, the inflammation goes undetected. People who don’t know about inflammatory back pain may not describe their symptoms in ways that trigger the right referral.
If you have chronic back pain that started before age 40, gets worse with rest, improves with movement, and wakes you at night, bringing up these specific details with your doctor can accelerate the process. Asking for a referral to a rheumatologist is reasonable if your symptoms have persisted for three months or more and no one has considered an inflammatory cause.

