Lab test · Blood Testing

HLA-B27 test

Short answer

HLA-B27 is an inherited immune marker linked to ankylosing spondylitis and related inflammatory arthritis. A positive result raises risk but does not diagnose anything, and most people who carry it never develop the disease. It matters most for men whose back pain began before about 45, came on gradually, eases with movement and gets worse with rest or at night.

By the Ultimate Male team · Updated October 8, 2026

Two clinicians talking with a male patient

What does the HLA-B27 test look for?

It looks for one inherited version of an immune gene, HLA-B, that helps your body tell its own proteins from those of invaders. The result is reported as positive or negative rather than as a number, so there is no reference range to compare against. Because it is genetic, the answer never changes.

According to MedlinePlus, a positive test suggests a greater-than-average risk of a family of inflammatory conditions called spondyloarthritis. That family includes ankylosing spondylitis, arthritis linked to Crohn disease or ulcerative colitis, psoriatic arthritis, reactive arthritis, sacroiliitis and an eye inflammation called uveitis. The same page is clear that HLA-B27 also turns up in healthy people.

Why do most carriers never develop ankylosing spondylitis?

Because HLA-B27 raises risk without causing the disease on its own. MedlinePlus Genetics states plainly that most people with this version of the gene never develop the disorder, and that the condition can also appear in people who do not carry it. Other genes, including ERAP1 and IL23R, add to the risk, and the National Institute of Arthritis and Musculoskeletal and Skin Diseases points to environmental factors as well.

Family data make the point. Even when a parent has ankylosing spondylitis, about 75 percent of children who inherit HLA-B27 from that parent do not develop it. In the United States, the whole spondyloarthritis group affects roughly 3.5 to 13 people per 1,000, far fewer than carry the marker.

Which back pain makes a positive result meaningful?

A positive result means most when it sits next to an inflammatory pattern of back pain. NIAMS notes that most people with ankylosing spondylitis develop symptoms before age 45, that the pain typically worsens with rest or inactivity, and that it often wakes people in the middle of the night or after long sitting. Movement and exercise usually ease it.

Feature Inflammatory pattern (fits spondyloarthritis) Mechanical pattern (fits strain or disc)
How it starts Gradually, often in your teens to early forties Often after a lift, twist or long drive
Rest Makes it worse; stiffness after sitting Usually helps
Movement and exercise Usually helps Often aggravates it
Night and after sitting Night pain and stiffness after rest are common Less typical
Other clues Pain low at the sacroiliac joints, eye inflammation, psoriasis, bowel disease Usually back pain alone

MedlinePlus Genetics adds that eye inflammation (acute iritis) affects more than 30 percent of people with ankylosing spondylitis, and 6 to 10 percent have psoriasis or inflammatory bowel disease. A man with gradual, rest-worsened back pain plus one of those clues is exactly the person in whom a positive HLA-B27 carries weight. Sudden eye pain with light sensitivity needs same-day eye care.

What happens after a positive result?

A positive result starts a conversation about symptoms; it does not finish one. If your back pain fits the inflammatory pattern, the usual next steps are a careful examination, imaging of the sacroiliac joints and a referral to a rheumatologist, who diagnoses and treats spondyloarthritis. Inflammation markers can help too; our C-reactive protein page explains why a very high CRP needs a second look.

If you have no symptoms, a positive result mostly means you know which signs to watch for. NIAMS lists exercise, physical therapy and medicines as the main treatment tools when the disease does develop, and early recognition is what makes them work.

Is HLA-B27 worth testing without back pain?

For most men without symptoms, it adds little that changes care. It earns its place when there is unexplained, long-lasting back stiffness, a history of eye inflammation, or a close relative with spondyloarthritis. Our overview of whether a genetic risk panel makes sense for men puts HLA-B27 next to the other inherited markers, including the MTHFR gene test.

How Ultimate Male reads an HLA-B27 result

HLA-B27 is part of our Cancer Risk Insight Panel, alongside MTHFR with optional BRCA screening, described on the genetic risk screening panel page. The draw is done on site in San Gabriel or Downey, and genetic results can take longer than the usual 24 to 48 hours.

When the result is back, a PA-C or MD goes through your back history, eye symptoms and family history with you, then explains whether a rheumatology referral makes sense or whether the result simply goes in your file. Because the test is a one-time expense, the genetic risk screening cost page is worth reading first. Every panel option is on our preventative blood testing page.

questions

Common questions.

HLA-B27 test

Still unsure? Take the free assessment

Does a negative HLA-B27 result rule out ankylosing spondylitis?
No. The condition can occur in people without the HLA-B27 variant, so symptoms, examination and imaging still decide the diagnosis.
Will I ever need to repeat the test?
No. HLA-B27 is inherited, so the result stays the same for life. One valid test is enough.
Should my son or brother get tested too?
Usually only if they develop symptoms. Studies cited by MedlinePlus Genetics found that about 75 percent of children who inherit HLA-B27 from a parent with ankylosing spondylitis never develop it.

Sources

  1. HLA-B27 antigen: MedlinePlus Medical Encyclopedia · MedlinePlus, National Library of Medicine
  2. Ankylosing spondylitis: MedlinePlus Genetics · MedlinePlus Genetics, National Library of Medicine
  3. Ankylosing Spondylitis Symptoms and Risk Factors · National Institute of Arthritis and Musculoskeletal and Skin Diseases

This page is general education, not medical advice. A licensed clinician must review your symptoms, history and labs before any treatment decision. For chest pain, trouble breathing, signs of stroke or an erection lasting over four hours, call 911.

Ready when you are

Start with a free phone call.

Ten minutes. No pressure. We tell you honestly whether we can help.

Call 626-319-5261 Free assessment