Requests

Laboratory tests

Hepatitis B test: how to prepare

Preparing for a hepatitis B test is simple: in most cases, you do not need to fast or take any special precautions.

Clínica Alegre professional pipetting a sample into a test tube beside sample collection tubes

Reviewed by Dr. Fernando Alegre

Clinical Director · OMD, registration no. 9688

Written by the Clínica Alegre team5-minute read

In this article

The most important things are to choose the right time to have the test, particularly after a possible exposure, and to give the doctor the information needed to select the appropriate markers.

This article provides general guidance on what to do before the blood draw. Always follow the instructions from the laboratory where you will have the test over this guidance.

What the test looks for

Hepatitis B is a liver infection caused by a virus transmitted through blood, sexual contact and from mother to baby during childbirth [1]. The three markers most commonly requested are [1]:

MarkerWhat it is generally used for
HBsAg (surface antigen)Indicates that the virus is present in the blood
Anti-HBs (surface antibody)Indicates protection, either from vaccination or a past infection
Anti-HBc (core antibody)Indicates contact with the virus at some point

The doctor decides which markers to request. Hepatitis B screening is often carried out alongside screening for hepatitis C and HIV [2].

When to have the test

The timing of the test is very important. After infection, it takes several weeks for the virus to become detectable in the blood. This interval, known as the window period, varies: HBsAg generally becomes positive between 1 and 2 months after contact, and sometimes later [1]. A negative result soon after exposure may need to be followed by another test.

SituationWhat to do
Needlestick injury, contact with blood or unprotected sex in the last few hoursContact a doctor or the emergency department that same day, without waiting for the test
Exposure a few weeks agoSpeak to the doctor about the right time to test and repeat the test
Routine screening, with no recent exposureHave the test at any time
Before chemotherapy or medication that suppresses the immune systemHave the test before starting, as advised by the doctor

After a high-risk exposure, the vaccine and, in some cases, immunoglobulin may help. They are most effective when given promptly, ideally within the first 24 hours [1]. The same exposure may warrant preventive treatment for HIV.

What to tell the doctor before the sample is taken

Certain information affects the choice of markers and how the result is interpreted:

  • whether and when you were vaccinated against hepatitis B (your vaccination record is helpful);
  • whether you are pregnant or planning a pregnancy;
  • whether you are about to start treatment that suppresses the immune system (chemotherapy, high-dose corticosteroids, biological medicines);
  • whether and when you had a recent high-risk exposure;
  • all medication you take, including supplements.

These questions are asked in confidence.

Fasting, medication and other precautions

You do not usually need to fast for a hepatitis B test on its own. You can eat and drink water normally. If the same blood draw includes other tests, for example glucose or a lipid profile, the laboratory may ask you to fast. Always check the instructions.

Regarding medication:

  • continue taking your usual medication unless your doctor advises otherwise;
  • do not stop taking anticoagulants or other medication without medical advice: tell the healthcare professional taking your blood, who may apply pressure to the site for longer;
  • if you take antiviral medication for hepatitis B, bring a list and note the time of your last dose.

Drink water normally to make it easier to draw blood. Avoid very strenuous exercise immediately beforehand, in line with general guidance for blood tests [3].

What to bring and how to make sure your sample collection goes smoothly

BringWhy
Referral or authorisationShows the markers requested
Citizen card and, if applicable, healthcare or insurance cardCorrect identification of samples
Vaccination recordHelps with interpreting anti-HBs
Medication listUseful for the team and the doctor

Wear clothing with sleeves that are easy to roll up. If you have fainted or felt unwell during previous blood draws, say so beforehand: you can have your blood taken while lying down.

Questions to ask before the test

  • Which markers will be tested and why? Do I need to fast for any of the other tests being done at the same time? If I have had a recent exposure, when should I be tested again? Should I also be tested for hepatitis C and HIV?

Warning signs: when to contact the clinic or go to the emergency department

  • Recent exposure to blood (needlestick injury, cut) or unprotected sex: contact a doctor or the emergency department that same day to discuss preventive treatment. Yellow skin or eyes, very dark urine, pale stools, persistent vomiting, or drowsiness and confusion: seek emergency care; if your condition is serious, call 112. Fainting or feeling very unwell during or after the blood draw: tell the team immediately. A large bruise, severe pain or numbness in your arm after the blood draw: contact the clinic.

If you have any questions, contact SNS 24 (808 24 24 24) or the clinic.

At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.

Frequently asked questions

Do I need to fast for a hepatitis B test?

Usually not. Only fast if other tests being done at the same time require it, in accordance with the laboratory's instructions.

I have been vaccinated. Is there any point in having the test?

It may be useful, for example to confirm protection in healthcare professionals or in other situations specified by the doctor.

I had unprotected sex yesterday. Should I have the test now?

Contact a doctor now. A test taken now provides a baseline, but it may need to be repeated, and the window for preventive treatment is short.

Is the result confidential?

Yes, it is protected health information.

Did you enjoy this article?

Scientific references3
  1. European Association for the Study of the Liver. EASL 2017 Clinical Practice Guidelines on the management of hepatitis B virus infection. J Hepatol. 2017;67(2):370–98.
  2. European Centre for Disease Prevention and Control. Public health guidance on HIV, hepatitis B and C testing in the EU/EEA: an integrated approach. ECDC. Stockholm: ECDC, 2018.
  3. Simundic AM, Bölenius K, Cadamuro J, et al. Joint EFLM-COLABIOCLI Recommendation for venous blood sampling. Clin Chem Lab Med. 2018;56(12):2015–2038.
Article information
Written by
Clínica Alegre team
Clinical review
Dr Fernando Alegre, Clinical Director · OMD, registration no. 9688
Published
3 Dec 2026
Last updated
3 Dec 2026
Topic
Laboratory tests
Reading time
5 min

See also

Related treatments

Want to know what is right for you?

Contact us on WhatsApp or book an assessment, in person or online.

Book an appointment

Book your assessment.

Choose Setúbal or Seixal. We reply within opening hours.

Newsletter

Get the latest news from the Clínica Alegre.

Blog articles and clinic news, delivered to your inbox. Unsubscribe at any time.