Diagnosis involves blood tests that detect the presence of HBV antigens and antibodies. The most common tests include the Hepatitis B surface antigen (HBsAg) test, which indicates current infection, and the Hepatitis B surface antibody (anti-HBs) test, which indicates immunity from past infection or vaccination.