Both the hepatitis A and hepatitis B vaccines are very effective and offer long-term protection against the virus. Studies show that immunity against hepatitis A and B may last for at least 20 – 30 years in healthy individuals who complete the full course of vaccination.