The hepatitis B vaccine is a shot that protects against hepatitis B, a viral infection that can cause serious, long-term liver damage. It works by teaching your immune system to recognize and fight the virus before you’re ever exposed to it. After completing the full series, more than 90% of healthy adults develop protective immunity. The vaccine is now recommended for all adults aged 19 to 59 in the United States, along with all infants starting at birth.
How the Vaccine Works
The hepatitis B vaccine doesn’t contain any live virus. Instead, it’s made using a small piece of the virus’s outer shell, called the surface antigen. Scientists insert the genetic instructions for that protein into yeast cells, which then produce it in large quantities. These protein fragments naturally assemble into tiny structures that look like the virus to your immune system but can’t actually cause an infection.
When injected, these virus-like particles trigger a strong immune response. Your body produces antibodies specifically designed to latch onto the hepatitis B surface antigen. If you encounter the real virus later, those antibodies (or the immune memory behind them) activate quickly and neutralize it before it can infect your liver cells. A blood test measuring these antibody levels can confirm whether you’ve built up protection: a level of 10 mIU/mL or higher indicates immunity.
Who Should Get Vaccinated
The CDC’s Advisory Committee on Immunization Practices recommends universal hepatitis B vaccination for all adults aged 19 to 59, including pregnant individuals. Adults 60 and older with risk factors for hepatitis B should also be vaccinated. Those 60 and older without known risk factors can still receive it if they choose.
For infants, the first dose is given at birth, with additional doses completing the series by 18 months of age. People with diabetes under age 60 are specifically recommended to get vaccinated if they haven’t been already, because shared blood glucose monitoring equipment in healthcare settings raises the risk of exposure to the virus. For those with diabetes aged 60 and older, vaccination decisions are made on a case-by-case basis depending on overall health and likelihood of exposure.
The Dosing Schedule
Most people receive a three-dose series. For infants, the shots are given at birth, then at 1 to 2 months, and finally at 6 to 18 months. Adults catching up on missed vaccinations follow a similar pattern: a first dose, a second dose one to two months later, and a third dose at six months.
A two-dose option is also available for certain groups. Adolescents aged 11 to 15 can receive two doses spaced at least four months apart using an adult formulation. Adults 18 and older can get a newer two-dose vaccine called Heplisav-B, with doses given at least four weeks apart. This shorter schedule is especially useful for people who might not return for a third visit.
Available Vaccine Options
The FDA has licensed three single-antigen hepatitis B vaccines: Engerix-B, Recombivax HB, and Heplisav-B. There are also three combination vaccines that protect against hepatitis B along with other diseases: Pediarix, Vaxelis, and Twinrix (which covers both hepatitis A and B).
Heplisav-B stands out from the older options because it uses a different type of immune-boosting ingredient that produces a stronger antibody response in fewer doses. In studies of patients on dialysis, a group that typically has weaker vaccine responses, those who received Heplisav-B achieved higher protection rates (82%) compared to those given the traditional vaccine (63%). For most healthy adults, though, all available options provide excellent protection when the full series is completed.
Side Effects
The most common side effects are mild and short-lived, typically resolving within one to two days. These include pain, soreness, or redness at the injection site, along with headache and fatigue. Severe allergic reactions are possible but rare.
Because the vaccine is produced in yeast cells, anyone with a known yeast allergy should not receive it. If you’ve had a severe allergic reaction to a previous dose of the hepatitis B vaccine, you should avoid additional doses.
How Long Protection Lasts
Hepatitis B vaccination provides remarkably durable immunity. Studies tracking vaccinated individuals over decades have shown that even when measurable antibody levels decline over time, the immune system retains memory cells capable of mounting a rapid response if exposed to the virus. For this reason, routine booster doses are not currently recommended for healthy people who completed the full series and responded adequately.
Certain groups, particularly people on dialysis or those with compromised immune systems, may lose protective antibody levels faster. These individuals are sometimes monitored with periodic blood tests and offered booster doses when their antibody levels drop below the protective threshold. If you’re unsure whether a past vaccination series gave you adequate protection, a simple blood test can check your current antibody level and guide next steps.
Why It Matters
Hepatitis B is a virus with a strong affinity for liver cells. Chronic infection can lead to cirrhosis, liver failure, and liver cancer, often developing silently over years before symptoms appear. The virus spreads through blood and body fluids, including during childbirth, through sexual contact, and via shared needles or contaminated medical equipment. Many people with chronic hepatitis B don’t know they’re infected, which makes prevention through vaccination the most effective strategy. With over four decades of safety data and effectiveness above 90% in healthy adults, the hepatitis B vaccine remains one of the most successful tools in modern preventive medicine.

