The hepatitis B vaccine is a safe, highly effective shot series that teaches your immune system to block the hepatitis B virus (HBV) before it can infect your liver. ACIP recommends it for all adults aged 19–59, and for adults 60 and older with risk factors CDC, 2022. It's the single best way to prevent a blood-borne, sexually transmitted liver infection.

managed
Curable?

treatable, not curable

exam + lab
Tested by
no symptoms
Often
get tested
If you may have it

testing, not symptoms, decides

Hepatitis B Vaccine: Schedule, Doses, and Boosters at a glance. Source: CDC.
Hepatitis B Vaccine: Schedule, Doses, and Boosters at a glance
ItemValue
Curable?managed — treatable, not curable
Tested byexam + lab
Oftenno symptoms
If you may have itget tested — testing, not symptoms, decides

Why vaccination is the cornerstone of hepatitis B prevention

Hepatitis B is a vaccine-preventable liver infection that spreads when blood, semen, or other body fluids from an infected person enter someone who isn't immune CDC, About Hepatitis B. That happens 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, so casual contact isn't a worry.

The vaccine is valuable because of how the disease behaves over a lifetime. Caught in adulthood, HBV becomes a chronic, lifelong infection in under 5% of people. Caught in infancy, it becomes chronic in about 90%. Once chronic, antiviral medicines suppress the virus, but clearance is rare. The vaccine stops infection before it starts.

The hepatitis B vaccine is one of several shots that protect the liver; if you're sorting out which ones you need, our overview of hepatitis vaccines walks through them.

How to prevent hepatitis B — and how well each method works

Prevention stacks. The vaccine is the foundation, and the other layers cover the gaps for people who aren't yet immune or have an exposure.

Vaccination (the strongest tool)

The vaccine series produces protective antibodies (anti-HBs) in the large majority of healthy adults who complete it. Once you've responded, protection generally lasts for years without routine boosters. Some groups whose immune systems may not respond as reliably, such as people on dialysis, may have their antibody level (titer) checked after the series and receive additional doses if it's low.

Post-exposure prophylaxis (PEP) after a known exposure

If you're exposed to a source known to be HBsAg-positive and you aren't immune, the response is hepatitis B immune globulin (HBIG) plus the vaccine, started as soon as possible and ideally within a day of exposure CDC STI Tx Guidelines. HBIG gives immediate, borrowed antibodies while the vaccine builds your own, and together they prevent most infections. After a possible exposure this is time-sensitive, so don't wait.

Safer sex and harm reduction

Because HBV is in semen and blood, the same behaviors that lower other STI risk lower hepatitis B risk: condoms used every time, and never sharing needles, syringes, or other injection equipment. These help most for people who aren't yet vaccinated, and they cover other infections the vaccine doesn't touch.

Condoms and their limits

Condoms used consistently and correctly reduce the risk of sexually transmitted hepatitis B, and they're a reasonable backstop while you complete the vaccine series. They aren't a substitute for vaccination. Condoms can slip or break, they don't cover every route HBV travels (shared needles, blood exposures), and partial use offers partial protection. Treat condoms as one layer; the vaccine gives you durable, infection-specific immunity.

Testing as prevention

You can carry hepatitis B without symptoms for years, so testing is part of prevention. CDC now recommends that every adult aged 18 and older be screened for hepatitis B at least once in their lifetime, and that pregnant people be screened in each pregnancy CDC, 2023. The screening uses a triple serologic panel CDC, diagnosis & testing:

  • HBsAg (hepatitis B surface antigen) — a positive result means active infection, acute or chronic.
  • Anti-HBs (surface antibody) — present after recovery or successful vaccination; this is your marker of immunity.
  • Total anti-HBc (core antibody) — signals past or current infection (it does not appear from the vaccine).

Reading all three together tells a clinician whether you're susceptible (and should be vaccinated), already immune, or living with infection. Hundreds of thousands of Americans have chronic hepatitis B and don't know it, even though reported acute cases have held roughly steady at about 2,200 a year from 2020 through 2023 CDC AtlasPlus, 2023. The undiagnosed chronic burden is the bigger, quieter problem. If you've had a possible exposure, timing matters; see our guide on when to test after exposure, and you can get tested for the full panel.

Hepatitis B in pregnancy and at birth

Hepatitis B can pass from a pregnant person to the baby around the time of birth, and it's the most common way young children become infected, so every pregnancy is screened for HBsAg CDC, perinatal HBV. An infant infected at birth has about a 90% chance of developing lifelong chronic hepatitis B, compared with about 95% of adults who clear it.

Prevention here is remarkably 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 delivery. Giving the newborn both the vaccine and HBIG drops transmission to about 3.6%, versus 11.6% with vaccine alone, and adding an antiviral during pregnancy for parents with a high viral load lowers it further to under 2% network meta-analysis. If this applies to you, our page on hepatitis and pregnancy covers the full prenatal plan.

Putting it together: who needs what

Here's how the prevention pieces line up by situation.

SituationWhat's recommended
Unvaccinated adult, 19–59Complete the hepatitis B vaccine series (recommended for all adults in this range).
Adult 60+Vaccine recommended if you have risk factors; available to anyone who wants it.
Known exposure to an HBsAg-positive source, not immuneHBIG plus vaccine, as soon as possible (ideally within 24 hours).
PregnantHBsAg screening every pregnancy; newborn gets birth-dose vaccine (plus HBIG if parent is positive).
Never screenedOne-time triple-panel screen for all adults 18+.

In practice, the layers reinforce each other: the vaccine gives durable immunity, condoms and clean injection equipment cover the unvaccinated window and other infections, and routine testing catches what has no symptoms. A hepatitis B diagnosis is common and manageable. Clinics handle it daily, and it says nothing about you as a person.

When to see a clinician

Don't wait to be sick to act. Reach out promptly if any of these apply:

  • You've never been vaccinated or screened for hepatitis B — ask about both at your next visit.
  • You think you've been exposed to a known HBsAg-positive source — this is urgent, because HBIG and vaccine work best within the first day.
  • You're pregnant or planning pregnancy — confirm you've been screened this pregnancy.
  • You have signs that could point to liver involvement, such as yellowing of the skin or eyes, dark urine, persistent fatigue, or right-upper-belly pain — review the full list of hepatitis b symptoms.
  • You've tested positive and need to discuss monitoring and treatment options.

If you do test positive for chronic infection, treatment with antivirals like tenofovir or entecavir suppresses the virus and lowers liver-cancer risk; most people take them long term, because the virus clears on its own in only a small share of patients even after years of therapy AASLD, 2018.