Hepatitis B is infectious for as long as the virus is active in your body. If you have an acute infection, it may last from a few weeks to six months, and you are capable of transmitting the infection to healthy individuals. If you have a chronic infection, the infection may last a lifetime and may potentially lead to serious illnesses such as cirrhosis and liver cancer.