How Do You Get Hepatitis B? Transmission Explained

Hepatitis B spreads when blood, semen, vaginal fluids, or saliva from an infected person enters your body, even in microscopic amounts. The virus is remarkably hardy and contagious: it can survive on surfaces for at least seven days, and an infectious dose may be as few as a couple hundred viral particles. That means exposure routes you might not expect, like sharing a razor, can carry real risk.

Mother-to-Child Transmission at Birth

The single most common way hepatitis B passes from one person to another worldwide is during childbirth. When a pregnant person carries the virus, the infant is exposed to infected blood and fluids during labor and delivery. Without preventive treatment given within 12 hours of birth, roughly 90% of those newborns will develop a chronic, lifelong hepatitis B infection. That statistic drops dramatically when babies receive the standard two-part prevention (a vaccine dose plus protective antibodies) right away, which is why universal newborn screening and vaccination programs exist.

The risk here is especially high because infants’ immune systems are too immature to fight off the virus on their own. An adult who contracts hepatitis B has about a 95% chance of clearing it naturally. A newborn almost never does without help.

Sexual Contact

Unprotected sex is a major transmission route, particularly in adults. The virus is present in semen, vaginal fluids, and blood, so any sexual activity that involves the exchange of these fluids can transmit it. This includes vaginal, anal, and oral sex. Condoms lower the risk but don’t eliminate it entirely, because the virus can also be present in saliva and in blood from small skin breaks that you might not even notice.

If you don’t know your partner’s hepatitis B status, using a new latex or polyurethane condom each time you have sex reduces your exposure significantly. Vaccination, though, is the most reliable protection.

Blood-to-Blood Contact

Any situation where infected blood enters your bloodstream is a transmission risk. The most common scenarios include:

  • Sharing needles or syringes. This applies to people who inject drugs, but also to any reuse of needles in medical or informal settings.
  • Needlestick injuries. Healthcare workers face occupational risk from accidental pricks with contaminated sharps.
  • Sharing personal items. Razors, nail clippers, and toothbrushes can carry tiny amounts of blood. These items create micro-cuts on skin or gums that give the virus an entry point.

Because hepatitis B remains infectious on dry surfaces for at least a week, a razor left on a bathroom counter or a shared nail file isn’t “safe” just because the blood on it has dried. The virus is far more environmentally stable than HIV, which dies within hours outside the body.

Tattoos, Piercings, and Cosmetic Procedures

Getting a tattoo or piercing with improperly sterilized equipment is a well-documented risk factor. A large French study found that people with tattoos had about 1.5 times the odds of hepatitis infection compared to people without them, and the risk climbed sharply when tattoos were done outside of regulated studios. People who got tattoos in countries without strict hygiene regulations had more than three times the risk of hepatitis B specifically.

About one in four tattooed people in that study had received at least one tattoo outside a professional studio, and one in five had been tattooed in a country without strong hygiene rules. If you’re getting a tattoo, piercing, or any procedure that breaks the skin, a licensed facility that uses single-use needles and autoclaved equipment is essential.

How It Does NOT Spread

Hepatitis B requires contact with infected body fluids, specifically blood, semen, vaginal fluids, or (less efficiently) saliva. You cannot get it from casual, everyday contact. Hugging, shaking hands, sharing food, using the same toilet, coughing, or sneezing do not transmit the virus. Breastfeeding by a hepatitis B-positive parent is also considered safe when the infant has received proper vaccination at birth.

Mosquitoes and other insects do not spread it either. The virus does not replicate in insects and is not transmitted through bites.

Why Such Small Exposures Matter

Hepatitis B is between 50 and 100 times more infectious than HIV. Researchers estimate that the amount of virus needed to cause infection may be as low as a few hundred viral particles, a quantity invisible to the naked eye and present in a speck of blood too small to see. This is why routes like sharing a toothbrush, which might seem trivial, genuinely carry risk. Even a tiny amount of blood on gums or a small cut is enough.

The virus also circulates at extremely high concentrations in the blood of infected people, sometimes billions of copies per milliliter. That concentration, combined with its ability to survive outside the body for days, is what makes hepatitis B so efficiently transmitted compared to other bloodborne viruses.

What to Do After a Possible Exposure

If you believe you’ve been exposed to hepatitis B through a needlestick, sexual contact, or blood exposure, time matters. Unvaccinated people should receive both protective antibodies and the first dose of the hepatitis B vaccine as soon as possible, ideally within 24 hours. This combination is highly effective at preventing infection when given promptly. If you’ve already been vaccinated and have confirmed immunity, post-exposure treatment is typically unnecessary.

Vaccination remains the most effective form of prevention overall. The standard three-dose series provides long-lasting protection for the vast majority of people who complete it, often for life.