Requests

Laboratory tests

HIV test: how to prepare

Preparing for an HIV test is mainly about choosing the right time and knowing what to expect.

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 test uses a blood sample to detect infection with the human immunodeficiency virus (HIV). Getting tested is a way to look after your own health and the health of others. It is recommended for anyone who has experienced a potential exposure, has a new sexual partner or is pregnant, and generally at least once in everyone's lifetime.

This article explains when to get tested, what to tell the doctor and what to do if the exposure was very recent. Always follow the laboratory's instructions.

First step: was the exposure less than 72 hours ago?

If you have recently had a potential exposure (sex without a condom with someone whose HIV status is unknown or who has HIV without effective treatment, sharing needles, or an accidental needlestick injury with a used needle), a preventive treatment called post-exposure prophylaxis (PEP) is available.

  • PEP should be started as soon as possible, ideally within the first few hours and no later than 72 hours after exposure. Go to a hospital emergency department or call SNS 24 on 808 24 24 24 for guidance. An initial test is carried out at this stage and repeated later as advised by your doctor.

Do not wait for a laboratory appointment if you are still within this timeframe.

When to get tested: the window period

After infection, it takes time for the body to produce detectable levels of the virus and antibodies. This interval is called the window period. A test taken during the window period may be negative even if an infection is present.

SituationWhen to take the test
Exposure less than 72 hours agoGo to an emergency department immediately for a PEP assessment
Exposure a few weeks agoTest now and repeat as advised by your doctor
4th-generation test (antigen and antibody, in a laboratory)Most infections are detected after 4 to 6 weeks
Rapid antibody testIt may take longer; check with the healthcare professional
Routine screening with no recent exposureAt any time
PregnancyAt the start of antenatal care, as planned by your doctor

Testing early has advantages: if the result is positive, treatment can start sooner. If it is negative but the test was carried out during the window period, it will need to be repeated.

What to tell the healthcare professional

The date of your most recent potential exposure, so they can assess the window period. Whether you use PrEP or have recently taken PEP: antiretroviral medicines

  • can delay detection. Do not stop PrEP on your own.

Recent symptoms such as fever, a rash, sore throat or swollen lymph nodes

  • in the weeks after exposure: these may indicate a very recent infection.

Whether you are pregnant or breastfeeding. Any other tests you would like: European recommendations advise

  • testing for hepatitis B, hepatitis C and syphilis at the same time when there are shared risk factors.

Any medicines and supplements you take.

You can and should ask any questions you have. Testing is voluntary and the result is confidential.

Fasting, timing and preparing on the day

Fasting: you do not need to fast for an HIV test. If you are having other tests using the same

  • sample, follow the strictest instruction.

Time: any time of day. Medication: continue taking your usual medicines. Fluids: drink water as normal; this makes it easier to take the sample.

Preparation timeline

WhenWhat to do
Immediately after a potential exposureIf it was less than 72 hours ago: hospital emergency department or SNS 24
When booking the testMake a note of the exposure date and mention PrEP or PEP
Before sample collectionConsider other tests at the same time (hepatitis, syphilis)
On the dayBring the test request, if you have one, and a list of your medicines
AfterwardsFind out how and when you will receive the result and who you can speak to

What to bring and questions to ask

Bring:

  • Your test request, if you have one. A list of your medicines, including PrEP or PEP. The approximate date of any potential exposure.

Useful questions:

  • Will I have a 4th-generation test or a rapid test? Will I need to repeat it? When? How will I receive the result and who can I discuss it with? What other infections should I be tested for at the same time?

Remember that HIV testing is also available free of charge through your GP in the Portuguese National Health Service (SNS).

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

  • Potential exposure less than 72 hours ago: go to a hospital emergency department immediately for a PEP assessment. High fever, a rash, swollen lymph nodes and feeling unwell in the weeks after an exposure: contact your doctor the same day. Fainting during or after the blood test, with a fall or slow recovery: call 112. Severe anxiety while waiting for the test: speak to your doctor or call SNS 24 on 808 24 24 24. For questions about preparation: call SNS 24 on 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 an HIV test?

No. Only if you are having other tests that require it.

How long after exposure should I get tested?

You can get tested straight away, but the test may need to be repeated. With fourth-generation tests, most infections are detected after 4 to 6 weeks.

Is the result added to my medical record and shared?

The result is confidential and protected by medical confidentiality.

I use PrEP. Do I need to stop before the test?

No. Tell the healthcare professional; do not stop PrEP on your own.

Did you enjoy this article?

Scientific references3
  1. Gökengin D, Wilson-Davies E, Nazlı Zeka A, et al. 2021 European guideline on HIV testing in genito-urinary medicine settings. J Eur Acad Dermatol Venereol. 2021;35(5):1043-1057.
  2. Cresswell F, Asanati K, Bhagani S, et al. UK guideline for the use of HIV post-exposure prophylaxis 2021. HIV Med. 2022;23(5):494-545.
  3. European Centre for Disease Prevention and Control. Public health guidance on HIV, hepatitis B and C testing in the EU/EEA: an integrated approach. Stockholm: ECDC; 2018.
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.