The hepatitis B vaccine is the single best way to prevent hepatitis B, a blood-borne and sexually transmitted liver infection. ACIP recommends it for all adults aged 19–59, and for adults 60 and older with risk factors CDC, 2022. It's a series of shots that trains your immune system to neutralize the virus before it can take hold.
treatable, not curable
testing, not symptoms, decides
| Item | Value |
|---|---|
| Curable? | managed — treatable, not curable |
| Tested by | exam + lab |
| Often | no symptoms |
| If you may have it | get tested — testing, not symptoms, decides |
What the hepatitis B vaccine protects against
Hepatitis B is caused by the hepatitis B virus (HBV), which infects liver cells and triggers inflammation. The infection comes in two forms. Acute hepatitis B is a short-term illness in the first six months after exposure; chronic hepatitis B lasts beyond six months and can be lifelong CDC. The virus spreads when blood, semen, or other body fluids from an infected person enter someone who isn't protected, through sex, sharing needles or injection equipment, and from a pregnant parent to a baby at birth. It does not spread through sneezing, coughing, hugging, sharing utensils, or food and water.
Age at infection decides almost everything. Caught in adulthood, hepatitis B becomes chronic in under 5% of people; about 95% clear it on their own. Caught in infancy, it becomes lifelong in roughly 90% of babies. That's why a birth-dose vaccine and adult vaccination both matter so much. For a fuller picture of how the illness presents, see hepatitis b symptoms.
How to prevent hepatitis B, and how well each method works
Prevention has a clear hierarchy, and vaccination sits at the top. The other methods reduce risk meaningfully, but none matches the protection of immunity.
- Vaccination — the most effective tool. A completed series produces lasting immunity in most healthy adults, so even a real exposure usually goes nowhere. It works whether the exposure is sexual, from shared needles, or occupational.
- Not sharing needles or injection equipment — HBV survives in blood, so any shared syringe, cooker, or even a shared razor or toothbrush is a route. Using only your own equipment removes that path.
- Condoms used consistently — lower the risk of the sexually transmitted route, though they don't cover every exposure (more below).
- Screening and knowing your status — testing finds infection that has no symptoms so it can be treated and partners protected CDC.
Condoms and their limits
Condoms used every time lower the risk of sexually transmitted hepatitis B, and they protect against other infections too, so they're worth using. They have real limits here. HBV is present in blood as well as semen and vaginal fluid, so any contact with infected blood — a cut, menstrual blood, or sharing equipment that breaks skin — can transmit the virus outside what a condom covers. Condoms slip and break, and people don't use them perfectly every time. Treat condoms as a supporting layer alongside the vaccine. Someone who is fully vaccinated carries protection that doesn't depend on a barrier being used correctly in the moment.
Testing as prevention
Testing is part of prevention because hepatitis B is often silent. Acute hepatitis B reports have held roughly steady at about 2,200 a year from 2020 to 2023, but hundreds of thousands more people live with undiagnosed chronic infection CDC, 2023. The CDC now recommends that all adults aged 18 and older be screened at least once in their lifetime, and that pregnant people be screened each pregnancy CDC, 2023.
The standard screen is a triple serologic panel that answers three questions at once: HBsAg (is there active infection?), anti-HBs (is there immunity from vaccination or recovery?), and total anti-HBc (has there been past or current infection?). Reading all three together tells your clinician whether you're susceptible and need the vaccine, already immune, or living with the virus. If you've had a possible exposure, timing matters; see when to test after exposure before you assume a single negative is the final word. You can also just get tested as part of routine care.
The vaccine: who needs it and how it's given
ACIP recommends the hepatitis B vaccine for all adults aged 19–59, and for adults 60 and older who have risk factors. The series is a set of shots over several months; once it's complete, most healthy adults are protected for the long term. If you don't know whether you were vaccinated as a child, the screening panel can tell you whether you already have immunity or should start the series.
After an exposure: post-exposure prophylaxis
If you're exposed to a source known to be HBsAg-positive and you aren't immune, there's a window to prevent infection. Post-exposure prophylaxis is hepatitis B immune globulin (HBIG) plus the vaccine, given as soon as possible, ideally within 24 hours CDC STI Tx Guidelines. HBIG supplies ready-made antibodies for immediate, temporary protection while the vaccine builds your own lasting immunity. Speed matters, so seek care the same day for a possible high-risk exposure rather than waiting.
Protecting newborns
Hepatitis B can pass from a pregnant person to the baby around the time of birth, the most common way young children get infected, and an infant infected at birth has about a 90% chance of developing lifelong hepatitis B CDC. Prevention here is highly effective. Every newborn gets the hepatitis B vaccine at birth, and a baby born to an HBsAg-positive parent also gets HBIG, both within 12 hours of birth. Adding the vaccine and HBIG together drops transmission to about 3.6%, versus 11.6% with vaccine alone; for parents with a high viral load, adding an antiviral during pregnancy lowers it further to under 2% perinatal HBV meta-analysis. Every pregnancy is screened for HBsAg for this reason.
Putting it together
For most people the plan is simple: confirm whether you're immune, complete the vaccine series if you're not, use condoms and never share injection equipment for the gaps the vaccine doesn't cover, and get screened at least once. Each piece does a different job, and together they close nearly every route HBV uses.
| Method | What it prevents | How protective |
|---|---|---|
| Hepatitis B vaccine (full series) | All routes — sexual, blood, perinatal | Best prevention; lasting immunity in most healthy adults |
| HBIG + vaccine (post-exposure) | Infection after a known exposure | Strong if given fast, ideally within 24 hours |
| Condoms every time | Sexual transmission | Lowers risk; doesn't cover blood exposure or fail/slip |
| Not sharing needles/equipment | Blood-borne transmission | Removes a major route entirely |
| Birth-dose vaccine (+HBIG) | Parent-to-baby at birth | Cuts transmission to about 3.6% (under 2% with antiviral) |
When to see a clinician
See a clinician if you've never been screened, if you're unsure whether you completed the vaccine series, if you're pregnant, or if you've had a possible exposure — especially to a known HBsAg-positive source, where same-day care for HBIG and the vaccine can make the difference. Also check in if you already know you have chronic hepatitis B and aren't in regular care, since the virus can be controlled. Clinics handle this diagnosis daily. For what ongoing management looks like, see hepatitis b treatment, and if liver inflammation has an immune cause rather than an infectious one, that's a different condition covered under autoimmune diseases and hepatitis.