Test guide
HLA-B27 test: what a positive or negative result means for back pain
An HLA-B27 test is a blood test that shows whether you carry HLA-B27, a gene variant linked to ankylosing spondylitis and related inflammatory conditions. Lab Tests Online UK says about 95% of people with ankylosing spondylitis in the UK are positive, but about 8% of the whole UK population carry it, so a positive result supports a diagnosis but cannot make one.
Last checked: 2026-11-22
Key facts
At a glance.
-
Common in the UK
Lab Tests Online UK says HLA-B27 is found in about 8% of the UK population, and most people who carry it never develop a related condition.
-
Strong link to AS
About 95% of people with ankylosing spondylitis in the UK are HLA-B27 positive (Lab Tests Online UK).
-
Supports, does not diagnose
The NHS says the test can contribute to a diagnosis of AS but is not entirely reliable on its own.
-
No preparation
It is a single blood test and needs no fasting or other preparation.
-
Result does not change
Whether you carry HLA-B27 is genetically determined, so the test does not need repeating.
What is HLA-B27?
Human leucocyte antigens (HLA) are proteins on the surface of almost all cells that help the immune system tell the body's own cells from invaders such as bacteria and viruses. Lab Tests Online UK explains that thousands of types exist, together making up your tissue type, and that HLA-B27 is one common type. The test detects HLA-B27 on white blood cells; sometimes a genetic test is used instead, with essentially the same result.
Carrying HLA-B27 is not a disease. Lab Tests Online UK says it has not been established as a cause of the conditions it is linked with, only that it is more common in people who have them.
Why would a doctor order an HLA-B27 test?
Lab Tests Online UK says the test is mainly used to help strengthen or confirm a suspected diagnosis of ankylosing spondylitis, reactive arthritis, juvenile arthritis or anterior uveitis, an inflammation of the front of the eye. It may be requested when someone has persistent pain, inflammation and stiffness in the back, neck, chest, eyes or joints, especially a man whose symptoms began between the late teens and early 30s, or when someone has recurrent uveitis with no other explanation.
The NHS says ankylosing spondylitis can be difficult to diagnose because it develops slowly and there is no definitive test. It says the back pain can be quite distinctive: it usually does not improve with rest and may wake you at night. A GP who suspects it may first arrange blood tests for inflammation and refer you to a rheumatologist, who may then request imaging and a genetic test for HLA-B27.
Which conditions are linked to HLA-B27?
Lab Tests Online UK gives approximate proportions of people with each condition who are HLA-B27 positive. These show why a negative result lowers the likelihood but does not rule a condition out.
| Condition | Proportion HLA-B27 positive |
|---|---|
| Ankylosing spondylitis | About 95% |
| Juvenile arthritis | About 80% |
| Reactive arthritis | About 60% to 85% |
| Isolated acute anterior uveitis | About 40% to 70% |
| General UK population | About 8% |
What does a positive HLA-B27 result mean?
Lab Tests Online UK says that a positive result in someone with symptoms such as chronic back pain and inflammation, or changes seen on X-ray or other imaging, supports a diagnosis of ankylosing spondylitis or a related condition, especially if the person is young, male and had their first symptoms before the age of 40. It stresses, though, that HLA-B27 is common in the UK and the vast majority of people who are positive never develop these conditions. The result must be read alongside symptoms and examination findings.
The NHS makes the same point: the gene variant is found in most people with ankylosing spondylitis and can contribute to a diagnosis, but it is not entirely reliable because not everyone with the condition has it and some people have it without ever developing ankylosing spondylitis.
What does a negative HLA-B27 result mean?
Lab Tests Online UK says a negative result makes it less likely that symptoms are due to an HLA-B27-associated condition, but does not completely exclude one, because a small percentage of people with each condition are negative. About 5% of people with ankylosing spondylitis do not carry HLA-B27. If your symptoms strongly suggest inflammatory back pain, a negative result should not stop further assessment by a rheumatologist.
How is ankylosing spondylitis actually diagnosed?
The NHS says a diagnosis of ankylosing spondylitis can usually be confirmed if an X-ray shows inflammation of the sacroiliac joints (sacroiliitis) and you have at least one of: at least 3 months of lower back pain that gets better with exercise and does not improve with rest, limited movement in your lower back, or limited chest expansion for your age and sex. If an X-ray cannot confirm it, an [MRI of the sacroiliac joints](/tests/mri-sacroiliac-joints/) is usually offered; inflammation seen there leads to a diagnosis of non-radiographic axial spondyloarthritis.
HLA-B27 matters most when imaging is unclear. The NHS says that sometimes inflammation does not show on X-ray or MRI, and in that case non-radiographic axial spondyloarthritis may be diagnosed if you have the HLA-B27 variant and symptoms of the condition. Lab Tests Online UK explains that doctors often rely on clinical findings and the HLA-B27 result because bone changes may not be visible for several years. The NHS adds that confirming a diagnosis can take years.
HLA-B27 and eye inflammation
Lab Tests Online UK lists isolated acute anterior uveitis among the conditions associated with HLA-B27 and says the test is sometimes used to help evaluate recurrent uveitis without a recognisable cause. A painful red eye with blurred vision or sensitivity to light needs prompt assessment, ideally the same day, by an eye service, a GP or NHS 111, whatever your HLA-B27 status. Our page on [anterior uveitis](/conditions/anterior-uveitis/) explains more.
Is HLA-B27 inherited?
Yes. Lab Tests Online UK says whether you are HLA-B27 positive is genetically determined, with production controlled by genes passed down from parents. Because it does not change over your life, there is no reason to repeat the test. A relative of someone with ankylosing spondylitis does not need testing unless they have symptoms, since a positive result in someone who feels well does not predict that they will develop the condition.
NHS and private HLA-B27 testing
On the NHS, the test is usually arranged by a GP or rheumatologist as part of assessing inflammatory back pain, often with inflammation markers such as CRP and ESR, which Lab Tests Online UK says may be requested in the same group of tests. The NHS says that if your GP thinks you may have ankylosing spondylitis, they should refer you to a rheumatologist. A private HLA-B27 result on its own cannot confirm or exclude the condition, so persistent symptoms still need clinical assessment. Treatment, when needed, the NHS says, combines exercise, physiotherapy and medicines to relieve pain and inflammation.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
What does HLA-B27 positive mean?
It means you carry the HLA-B27 tissue type. Lab Tests Online UK says about 8% of the UK population do, and most never develop a related condition. In someone with inflammatory back pain or uveitis, a positive result makes conditions such as ankylosing spondylitis more likely, but it does not diagnose them.
-
Can you have ankylosing spondylitis if HLA-B27 is negative?
Yes. Lab Tests Online UK says about 5% of people with ankylosing spondylitis are HLA-B27 negative. The NHS says not everyone with the condition has the variant. A rheumatologist will rely on symptoms, examination and imaging.
-
Does HLA-B27 positive mean I will get ankylosing spondylitis?
No. Lab Tests Online UK says HLA-B27 is very common and most people who carry it do not have any of the associated disorders. The NHS notes that some people have the gene variant without ever developing ankylosing spondylitis.
-
Do I need to prepare for an HLA-B27 test?
No preparation is needed. Lab Tests Online UK says it is a blood sample from a vein in your arm, and no fasting is required.
-
Does the HLA-B27 result ever change?
No. Lab Tests Online UK says HLA-B27 status is genetically determined, so the result stays the same throughout life and the test does not need repeating.
-
What other tests are done with HLA-B27?
The NHS says a GP may first check blood tests for inflammation, and a rheumatologist may arrange X-ray, MRI or ultrasound. Lab Tests Online UK says HLA-B27 may be requested with rheumatoid factor, ESR and CRP when assessing chronic joint pain and stiffness.
-
What kind of back pain suggests ankylosing spondylitis?
The NHS says the back pain usually does not improve with rest and may wake you at night. Its diagnostic criteria include lower back pain for at least 3 months that gets better with exercise and does not improve with rest.
-
Is HLA-B27 linked to eye problems?
Yes. Lab Tests Online UK lists acute anterior uveitis among HLA-B27-associated conditions, with about 40% to 70% of people with isolated acute anterior uveitis being positive. A painful red eye with blurred vision needs prompt assessment.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-11-22, next review 2027-11-22.
-
Lab Tests Online UK: HLA-B27, https://labtestsonline.org.uk/tests/hla-b27 , retrieved November 2026
-
NHS: Ankylosing spondylitis - Diagnosis, https://www.nhs.uk/conditions/ankylosing-spondylitis/diagnosis/ , retrieved November 2026
-
NHS: Ankylosing spondylitis, https://www.nhs.uk/conditions/ankylosing-spondylitis/ , retrieved November 2026
Related guides
Keep reading.
-
Ankylosing spondylitis
Symptoms, diagnosis and treatment.
Read guide -
MRI of the sacroiliac joints
The scan used when X-ray is unclear.
Read guide -
Reactive arthritis
Another HLA-B27-linked condition.
Read guide -
Anterior uveitis
Eye inflammation linked to HLA-B27.
Read guide -
CRP test
An inflammation marker often checked first.
Read guide -
ESR test
Another inflammation marker.
Read guide