Patient information from BMJ


Hepatitis B: should I have the vaccine?

Last published:Sep 20, 2021

Hepatitis B is an infection with a virus that attacks your liver. It is not always serious. But sometimes it can lead to a long-term illness, which can be serious or even fatal. You can avoid getting hepatitis B by getting vaccinated against it.

What is hepatitis B?

Hepatitis B is an infection caused by the hepatitis B virus. The virus attacks the liver. The infection can vary greatly in severity: it can be so mild that you don't even know you have it and it clears up without treatment; or it can cause serious problems and even death.

Many people with hepatitis B don't get any symptoms. If you do get symptoms, these are some of the most common:

  • Feeling tired

  • Losing your appetite

  • Getting aches and pains

  • Feeling sick to your stomach

  • Vomiting

  • A rash

  • Tenderness in your liver

  • Having urine that is darker than usual

  • Getting a yellowish tint to your skin and whites of your eyes. This is called jaundice.

The hepatitis B virus is carried in the body fluids of people who are infected. You can catch the virus if blood or another body fluid from a person who is infected gets into your body.

Many people with hepatitis B get the infection by having sex with someone with the virus, or by sharing needles to inject illegal drugs. A pregnant woman who is infected can pass the hepatitis B virus on to her baby.

Even if you don't feel ill you can still pass the virus on to other people if you are infected. Some people become long-term carriers of the illness (called 'chronic carriers') but don't become ill themselves.

Is it serious?

Most people recover from hepatitis B without treatment. But in a few people it becomes a serious illness that lasts a long time.

If this happens, hepatitis B can make your liver swell and stop working properly. Later, you could get liver cancer or a liver disease called cirrhosis.

Babies and children are more likely to have the serious form of the illness.

Should I have the vaccine?

Most babies in the United States are given a vaccine to prevent hepatitis B shortly after birth. But if you didn't have the vaccine as a baby, you can still have it when you're older.

Although hepatitis B is quite rare in the United States some things put people at greater risk. You have a greater chance of getting hepatitis B if you are:

  • an injecting drug user, especially if you share needles with other people

  • a sexual partner or child of an injecting drug user, or of someone with hepatitis B

  • someone who changes sexual partners frequently, especially if they have unprotected sex

  • a man who has unprotected sex with men. Having anal sex puts you at greater risk of getting hepatitis B

  • traveling to parts of the world where hepatitis B is common (including parts of Southeast Asia, most of the Pacific, sub-Saharan Africa, the Amazon, parts of the Middle East, Central Asia, and some countries in Eastern Europe)

  • sharing a house with someone who has hepatitis B

  • working in a job that increases your chance of coming into contact with the virus: for example, if you work as a healthcare professional.

If you fall into any of these categories you should consider getting the vaccine.

Doctors sometimes recommend people get the vaccine if they are pregnant or have certain health problems, such as diabetes or HIV. Doctors also recommend the vaccine for people who are having dialysis for kidney failure.

What is it and how is it given?

Vaccines for hepatitis B are made with a tiny, harmless part of the virus that cannot make you ill. After having the vaccine, your body makes antibodies against the hepatitis B virus. These antibodies protect you from being infected with the virus. So if you come into contact with the virus in the future your body fights it off.

Adults have the shot in the upper arm. Babies have it in the thigh. You need more than one shot for the vaccine to work properly. Most people have three shots - the first two shots one month apart and the third six months later.

Does it work?

There's good evidence that the vaccine protects people against getting hepatitis B. It seems to work for people at any age, including newborn babies, older children, and adults.

Can it be harmful?

The hepatitis B vaccine has been linked to some mild side effects. It might make your arm sore. A very few people feel dizzy or faint or get a skin rash after the shot. But serious reactions to the hepatitis B vaccine are very rare.

What are the alternatives?

There are ways to reduce your chances of getting hepatitis B. You could:

  • avoid having unprotected sex with people who are infected, and use a condom if you are unsure

  • avoid sharing needles with other drug users

  • avoid sharing household items, such as razor blades and toothbrushes, with infected people

  • make sure the needles are sterile if you are getting acupuncture, a tattoo, or body piercing.

If you think you might have been infected you may be offered a different type of shot called immunoglobulin. This treatment stops the virus from spreading to uninfected cells in the body. It works best if you have the shot within 24 hours of coming into contact with the virus. Immunoglobulin does not give you long-term protection against hepatitis B.

You should consider seeing a doctor to have immunoglobulin if you:

  • have had a needlestick injury

  • have shared a needle with someone who has or could have hepatitis B

  • have had unprotected sex with someone who has or could have hepatitis B.

What did you think about this patient information guide?

Complete the online survey or scan the QR code to help us to ensure our content is of the highest quality and relevant for patients. The survey is anonymous and will take around 5 minutes to complete.

BMJ Best Practice logo

Use of this content is subject to our disclaimer