Overview

Hepatitis B is a serious liver infection caused by the hepatitis B virus (HBV). For most people, hepatitis B is short term, also called acute, and lasts less than six months. But for others, the infection becomes chronic, meaning it lasts more than six months. Having chronic hepatitis B increases your risk of developing liver failure, liver cancer or cirrhosis — a condition that permanently scars the liver.

Most adults with hepatitis B recover fully, even if their symptoms are severe. Infants and children are more likely to develop a long-lasting hepatitis B infection. This is known as a chronic infection.

A vaccine can prevent hepatitis B, but there's no cure if you have the condition. If you're infected, taking certain precautions can help prevent spreading the virus to others.

Symptoms

Symptoms of acute hepatitis B range from mild to severe. They usually appear about 1 to 4 months after you've been infected, although you could see them as early as two weeks after you're infected. Some people, usually young children, may not have any symptoms.

Hepatitis B signs and symptoms may include:

  • Abdominal pain
  • Dark urine
  • Fever
  • Joint pain
  • Loss of appetite
  • Nausea and vomiting
  • Weakness and fatigue
  • Yellowing of the skin and the whites of the eyes, also called jaundice

When to see a doctor

If you know you've been exposed to hepatitis B, contact your health care provider immediately. A preventive treatment may reduce your risk of infection if you receive the treatment within 24 hours of exposure to the virus.

If you think you have symptoms of hepatitis B, contact your health care provider.

Get the latest health information from Mayo Clinic delivered to your inbox.

Subscribe for free and receive your in-depth guide to digestive health, plus the latest on health innovations and news. You can unsubscribe at any time.

To provide you with the most relevant and helpful information, and understand which information is beneficial, we may combine your email and website usage information with other information we have about you. If you are a Mayo Clinic patient, this could include protected health information. If we combine this information with your protected health information, we will treat all of that information as protected health information and will only use or disclose that information as set forth in our notice of privacy practices. You may opt-out of email communications at any time by clicking on the unsubscribe link in the e-mail.

Causes

Hepatitis B infection is caused by the hepatitis B virus (HBV). The virus is passed from person to person through blood, semen or other body fluids. It does not spread by sneezing or coughing.

Common ways that HBV can spread are:

  • Sexual contact. You may get hepatitis B if you have unprotected sex with someone who is infected. The virus can pass to you if the person's blood, saliva, semen or vaginal secretions enter your body.
  • Sharing of needles. HBV easily spreads through needles and syringes contaminated with infected blood. Sharing IV drug paraphernalia puts you at high risk of hepatitis B.
  • Accidental needle sticks. Hepatitis B is a concern for health care workers and anyone else who comes in contact with human blood.
  • Mother to child. Pregnant women infected with HBV can pass the virus to their babies during childbirth. However, the newborn can be vaccinated to avoid getting infected in almost all cases. Talk to your provider about being tested for hepatitis B if you are pregnant or want to become pregnant.

Acute vs. chronic hepatitis B

Hepatitis B infection may be short-lived, also called acute. Or it might last a long time, also known as chronic.

  • Acute hepatitis B infection lasts less than six months. Your immune system likely can clear acute hepatitis B from your body, and you should recover completely within a few months. Most people who get hepatitis B as adults have an acute infection, but it can lead to chronic infection.
  • Chronic hepatitis B infection lasts six months or longer. It lingers because your immune system can't fight off the infection. Chronic hepatitis B infection may last a lifetime, possibly leading to serious illnesses such as cirrhosis and liver cancer. Some people with chronic hepatitis B may have no symptoms at all. Some may have ongoing fatigue and mild symptoms of acute hepatitis.

The younger you are when you get hepatitis B — particularly newborns or children younger than 5 — the higher your risk of the infection becoming chronic. Chronic infection may go undetected for decades until a person becomes seriously ill from liver disease.

Risk factors

Hepatitis B spreads through contact with blood, semen or other body fluids from an infected person. Your risk of hepatitis B infection increases if you:

  • Have unprotected sex with multiple sex partners or with someone who's infected with HBV
  • Share needles during IV drug use
  • Are a man who has sex with other men
  • Live with someone who has a chronic HBV infection
  • Are an infant born to an infected mother
  • Have a job that exposes you to human blood
  • Travel to regions with high infection rates of HBV, such as Asia, the Pacific Islands, Africa and Eastern Europe

Complications

Having a chronic HBV infection can lead to serious complications, such as:

  • Scarring of the liver (cirrhosis). The inflammation associated with a hepatitis B infection can lead to extensive liver scarring (cirrhosis), which may impair the liver's ability to function.
  • Liver cancer. People with chronic hepatitis B infection have an increased risk of liver cancer.
  • Liver failure. Acute liver failure is a condition in which the vital functions of the liver shut down. When that occurs, a liver transplant is necessary to stay alive.
  • Reactivation of the hepatitis B virus. People with chronic hepatitis B who have suppression of their immune system are prone to reactivation of the hepatitis B virus. This can lead to significant liver damage or even liver failure. This includes people on immunosuppressive medications, such as high-dose corticosteroids or chemotherapy. Before taking these medications, you should be tested for hepatitis B. If you test positive for hepatitis B, you should be seen by a liver specialist (hepatologist) before starting these therapies.
  • Other conditions. People with chronic hepatitis B may develop kidney disease or inflammation of blood vessels.

Prevention

The hepatitis B vaccine is typically given as two injections separated by a month or three or four injections over six months, depending on which vaccine is given. You can't get hepatitis B from the vaccine. The hepatitis B vaccine is recommended by the United States Advisory Committee on Immunization Practices for adults 19 to 59 years of age who do not have a contraindication to the vaccine.

The hepatitis B vaccine is also strongly recommended for:

  • Newborns
  • Children and adolescents not vaccinated at birth
  • Those who work or live in a center for people who are developmentally disabled
  • People who live with someone who has hepatitis B
  • Health care workers, emergency workers and other people who come into contact with blood
  • Anyone who has a sexually transmitted infection, including HIV
  • Men who have sex with men
  • People who have multiple sexual partners
  • Sexual partners of someone who has hepatitis B
  • People who inject illegal drugs or share needles and syringes
  • People with chronic liver disease
  • People with end-stage kidney disease
  • Travelers planning to go to an area of the world with a high hepatitis B infection rate

Take precautions to avoid HBV

Other ways to reduce your risk of HBV include:

  • Know the HBV status of any sexual partner. Don't engage in unprotected sex unless you're absolutely certain your partner isn't infected with HBV or any other sexually transmitted infection.
  • Use a new latex or polyurethane condom every time you have sex if you don't know the health status of your partner. Remember that although condoms can reduce your risk of contracting HBV, they don't eliminate the risk.
  • Don't use illegal drugs. If you use illicit drugs, get help to stop. If you can't stop, use a sterile needle each time you inject illicit drugs. Never share needles.
  • Be cautious about body piercing and tattooing. If you get a piercing or tattoo, look for a reputable shop. Ask about how the equipment is cleaned. Make sure the employees use sterile needles. If you can't get answers, look for another shop.
  • Ask about the hepatitis B vaccine before you travel. If you're traveling to a region where hepatitis B is common, ask your provider about the hepatitis B vaccine in advance. It's usually given in a series of three injections over a six-month period.

Sept. 24, 2022
  1. Hepatitis B. National Institute of Diabetes and Digestive and Kidney Diseases. https://www.niddk.nih.gov/health-information/liver-disease/viral-hepatitis/hepatitis-b. Accessed Aug. 15, 2022.
  2. Feldman M, et al., eds. Hepatitis B. In: Sleisenger and Fordtran's Gastrointestinal and Liver Disease: Pathophysiology, Diagnosis, Management. 11th ed. Elsevier; 2021. https://www.clinicalkey.com. Accessed Aug. 16, 2022.
  3. Kellerman RD, et al. Hepatitis A, B, D, and E. In: Conn's Current Therapy 2022. Elsevier; 2022. https://www.clinicalkey.com. Accessed Aug. 16, 2022.
  4. Lok AS. Hepatitis B virus: Clinical manifestations and natural history. https://www.uptodate.com/contents/search. Accessed Aug. 16, 2022.
  5. Eng-Kiong T, et al. Epidemiology, transmission, and prevention of hepatitis B virus infection. https://www.uptodate.com/contents/search. Accessed Aug. 16, 2022.
  6. Picco MF (expert opinion). Mayo Clinic. Aug. 22, 2022.
  7. Weng MK, et al. Universal hepatitis B vaccination in adults aged 19–59 years: Updated recommendations of the advisory committee on immunization practices — United States, 2022. MMWR [Morbidity and Mortality Weekly Report; Recommendations and Reports; Surveillance Summaries; or Supplements]. 2022; doi:10.15585/mmwr.mm7113a1.