Treatment of a hepatitis B infection depends on how active the virus is. It also depends on whether you are at risk for liver damage such as cirrhosis.
Treatment of short-term (acute) hepatitis B
If you haven't had a hepatitis B vaccine and think you may have been exposed to the virus, you should get a shot of hepatitis B immunoglobulin (HBIG). You should also get the first of three shots of the hepatitis B vaccine. Make sure to get this treatment within 7 days after a needle stick and within 2 weeks after sexual contact that may have exposed you to the virus.
In some cases, you may get medicine to treat an acute infection. But this usually isn't done unless you are very sick.
Treatment of long-term (chronic) hepatitis B
The goal of treatment is to stop liver damage by keeping the virus from multiplying.
Antiviral medicine is used if the virus is active and you are at risk for liver damage.