← Back to Health Blog

HLA-B27 Test: Ankylosing Spondylitis & Back Pain Guide

HLA-B27 test guide for India: what a positive result means, ankylosing spondylitis signs, inflammatory vs mechanical back pain, cost, MRI and treatment.

· · 11 min read · Lab Tests
HLA-B27 Test: Ankylosing Spondylitis & Back Pain Guide

Arjun is 27, a software tester in Hyderabad, and for three years he has blamed his lower back pain on his office chair. He has tried a new mattress, a lumbar cushion and two rounds of physiotherapy. The strange part is that the pain is worst when he wakes up, eases after a hot shower and a walk, and sometimes wakes him at 4 a.m. An orthopaedic doctor finally orders an MRI of his hip joints and a blood test called HLA-B27. It comes back positive.

Back pain is so common in India that most people, and many doctors, treat it as a "mechanical" problem from posture or heavy lifting. But in a significant number of young adults, persistent back pain is caused by ankylosing spondylitis (AS) or related conditions known as spondyloarthritis, inflammatory diseases that can fuse the spine if left untreated. The HLA-B27 test is one of the most commonly ordered tests when doctors suspect these conditions. This guide explains what HLA-B27 is, what a positive or negative result means, who should get tested, how the test is done in India, and what happens next.

What Is HLA-B27?

HLA stands for human leukocyte antigen. HLA molecules are proteins on the surface of almost every cell in the body. They work like identity cards, helping the immune system tell the body's own cells apart from germs and foreign tissue. There are many types of HLA, and the combination you have is inherited from your parents.

HLA-B27 is one specific variant. It is a genetic marker, not a disease and not an infection. You are either born with it or you are not, and it does not change during your lifetime.

How common is HLA-B27 in India?

Group Approximate HLA-B27 positivity
General Indian population About 1.5 to 8%, varying by region and community
Indian patients with spondyloarthritis Roughly 55 to 60%
Indian patients with ankylosing spondylitis About 70 to 80% in Indian studies (higher in some groups)

Indian studies have found that the subtypes HLA-B*27:04 and HLA-B*27:05 are the most common among Indian patients with AS. Since the general population rate is low but the rate among AS patients is high, HLA-B27 is a useful clue, though not proof.

HLA-B27 and disease: a strong link, but not a diagnosis

The key fact patients need to understand is this: most people who carry HLA-B27 never develop ankylosing spondylitis. Only a small minority of HLA-B27 positive people, generally estimated at around 1 to 5%, develop AS, although the risk is higher if a close family member has it. At the same time, some people with AS are HLA-B27 negative.

So the test cannot diagnose AS on its own. It increases or decreases the likelihood when a person already has suggestive symptoms.

Conditions Linked to HLA-B27

HLA-B27 is associated with a family of inflammatory conditions called spondyloarthritis (SpA), which can affect the spine, joints, tendons, eyes, skin and gut.

Condition Main features
Ankylosing spondylitis (radiographic axial SpA) Inflammatory back pain, stiffness, reduced spinal movement; changes visible on X-ray
Non-radiographic axial SpA Same symptoms but no X-ray changes yet; inflammation seen on MRI
Reactive arthritis Joint pain and swelling after a gut infection (such as dysentery) or urinary or genital infection, sometimes with eye redness
Psoriatic arthritis Arthritis in people with psoriasis; HLA-B27 is linked especially with spine involvement (see our psoriasis guide)
IBD-associated arthritis Arthritis in people with Crohn's disease or ulcerative colitis (see our IBD guide)
Juvenile spondyloarthritis In children and teenagers, often starting with heel pain or knee swelling
Acute anterior uveitis A painful red eye with blurred vision and light sensitivity; can occur alone or with SpA

Inflammatory vs mechanical back pain

Doctors use the pattern of back pain to decide whether to test for HLA-B27 at all. Inflammatory back pain has these typical features:

Inflammatory back pain (suspect SpA) Mechanical back pain (common, not SpA)
Starts before age 40, often in the 20s Any age, more common after 30
Comes on gradually and lasts more than 3 months Often sudden, after lifting or strain
Worse in the morning, with stiffness lasting over 30 minutes Worse at the end of the day
Improves with exercise and movement Worse with activity, better with rest
Does not improve with rest Improves with rest
May wake you in the second half of the night Night pain is uncommon
Pain may alternate between buttocks Usually localised

If your back pain sounds like the left column, ask your doctor about spondyloarthritis. Our lower back pain guide explains mechanical back pain in more detail.

Other clues doctors look for

  • Heel pain (enthesitis), especially at the back of the heel or the sole
  • Sausage-like swelling of a finger or toe (dactylitis)
  • Painful red eye episodes (uveitis)
  • Psoriasis, chronic diarrhoea or IBD
  • A family history of AS, uveitis or psoriasis
  • Good response to painkillers such as NSAIDs within 1 to 2 days

Who Should Get an HLA-B27 Test?

The HLA-B27 test is useful when there is a reasonable suspicion of spondyloarthritis. Your doctor may order it if you have:

  • Back pain for more than 3 months, starting before age 40, with inflammatory features
  • Unexplained arthritis in large joints (knees, ankles), especially in young men
  • Recurrent uveitis
  • Arthritis after a gut or urinary infection
  • Heel pain or dactylitis without an obvious cause
  • A close relative with AS, along with symptoms

It is not a screening test for healthy people, and it should not be part of a routine health check-up. A positive result in someone without symptoms usually causes worry without changing anything.

HLA-B27 and the ASAS criteria

Rheumatologists use the ASAS classification criteria for axial spondyloarthritis. In simple terms, in a person with back pain for 3 months or more that started before age 45, axial SpA is considered if either:

  • Sacroiliitis (inflammation of the joints between the spine and pelvis) is seen on MRI or X-ray, plus at least one other SpA feature, or
  • HLA-B27 is positive, plus at least two other SpA features

This shows why HLA-B27 matters: in patients whose MRI is normal, a positive HLA-B27 with other features can still point towards the diagnosis.

How the HLA-B27 Test Is Done in India

The test itself

  • A simple blood sample from a vein.
  • No fasting is needed.
  • No special preparation, and medicines do not affect the result.
  • Results are reported as Positive or Negative (sometimes "Detected" or "Not detected"), not as a number with a range.

Methods

Method How it works Notes
Flow cytometry Detects the HLA-B27 protein on white blood cells using antibodies Most widely used in Indian labs; fast. Rarely, a related HLA type can cause a false positive, so borderline results may be confirmed by PCR
PCR (molecular) Detects the HLA-B27 gene directly in DNA Very accurate; some labs also identify subtypes
Sequencing / subtyping Identifies the exact HLA-B27 subtype Used in research or special situations

Cost and turnaround

  • HLA-B27 by flow cytometry: roughly ₹1,500 to ₹3,000 at major diagnostic chains
  • HLA-B27 by PCR: similar or slightly higher, depending on the lab
  • Reports are usually available in 1 to 3 days, and home collection is widely available

Because HLA-B27 never changes, you need this test only once in your life. Keep the report safely so that you do not have to repeat it when you see a new doctor.

What Happens After the HLA-B27 Result?

If HLA-B27 is positive

A positive result in someone with typical symptoms makes spondyloarthritis more likely. Your doctor, ideally a rheumatologist, will usually order:

  • Inflammatory markers: ESR and CRP, which are often raised in active disease, though normal values do not rule it out
  • X-ray of the pelvis to look for sacroiliitis
  • MRI of the sacroiliac joints (and sometimes spine), which can detect inflammation years before X-ray changes appear. Read our X-ray, CT and MRI guide.
  • Tests to rule out other conditions, such as RA factor and uric acid, if joints are involved

If HLA-B27 is negative

A negative result makes AS less likely but does not rule it out, especially if MRI shows sacroiliitis. Doctors will consider other causes, including mechanical back pain, disc problems, and in India, conditions such as spinal tuberculosis and brucellosis, which can mimic inflammatory back pain.

The problem of delayed diagnosis

Studies from India and abroad show that ankylosing spondylitis is often diagnosed many years after symptoms start. In India, young patients frequently go through rounds of painkillers, physiotherapy, and even unnecessary disc surgery before the correct diagnosis. Recognising inflammatory back pain early, and testing appropriately, can prevent years of pain and permanent spinal stiffness.

Treatment and Living With Spondyloarthritis

There is no cure for AS, but modern treatment controls symptoms well for most people and can slow damage.

Exercise and physiotherapy

Regular exercise is the foundation of treatment:

  • Daily stretching and posture exercises to keep the spine flexible
  • Swimming, which is excellent for AS
  • Yoga, under guidance, avoiding forced spinal flexion
  • Breathing exercises to keep the chest expanding well
  • Sleep on a firm mattress with a thin pillow

Medicines

  • NSAIDs (painkillers such as naproxen, etoricoxib, aceclofenac and others, sold under many brands in India) are the first-line treatment and often work dramatically.
  • Sulfasalazine or methotrexate may help peripheral joint arthritis, though not spinal disease.
  • Biologic medicines such as TNF inhibitors (adalimumab, etanercept, infliximab, golimumab) and IL-17 inhibitors (secukinumab) are used if NSAIDs do not control the disease. Biosimilars have made some of these much more affordable in India.
  • JAK inhibitors such as tofacitinib and upadacitinib are newer oral options.

TB screening before biologics is essential in India, since these medicines can reactivate latent tuberculosis. Your doctor will usually order a chest X-ray and an IGRA or Mantoux test first. See our tuberculosis guide.

Lifestyle

  • Stop smoking, which worsens spinal damage and lung function
  • Maintain a healthy weight
  • Treat red eye episodes urgently with an ophthalmologist
  • Keep follow-up appointments, and track ESR and CRP over time

Should family members be tested?

Children of an HLA-B27 positive parent have about a 50% chance of inheriting the marker, but most will never develop AS. Testing relatives without symptoms is usually not recommended. Instead, family members should be aware of the symptoms of inflammatory back pain and uveitis, and see a doctor early if they develop them.

Keeping Your Rheumatology Records Together

Spondyloarthritis is a long-term condition. Over the years you will collect an HLA-B27 report, MRI and X-ray reports, regular ESR and CRP results, liver and kidney tests while on medicines, and TB screening before biologics. When you switch doctors or cities, the first question is often, "Have you done HLA-B27? Show me your old MRI."

When you upload your reports to MedicalVault, your HLA-B27 result, inflammatory markers and imaging reports are organised in one place, so you never need to repeat a once-in-a-lifetime test because the report went missing. MedicalVault's trend analysis shows how your ESR and CRP respond to treatment, which helps your rheumatologist decide whether a medicine is working. With the family sharing feature, relatives with similar symptoms can easily share the family history their own doctors will ask about.

Key Takeaways

  • HLA-B27 is an inherited genetic marker on white blood cells, present in roughly 1.5 to 8% of Indians but in about 70 to 80% of Indian patients with ankylosing spondylitis.
  • A positive HLA-B27 test does not mean you have AS; most carriers never develop it, and some people with AS are HLA-B27 negative.
  • Test only when there are suggestive symptoms, especially inflammatory back pain: onset before 40, morning stiffness, improvement with exercise, and night pain.
  • The test needs no fasting, is reported as positive or negative, costs about ₹1,500 to ₹3,000, and needs to be done only once in a lifetime.
  • Diagnosis relies on symptoms, MRI of the sacroiliac joints, X-rays, ESR and CRP, ideally evaluated by a rheumatologist.
  • Treatment includes daily exercise, NSAIDs and, when needed, biologics or JAK inhibitors, with TB screening first in India.
  • Keep your HLA-B27 report and every rheumatology record in MedicalVault so you never have to repeat tests or lose track of your history.