Requests

Laboratory tests

HIV test

An HIV test is the only way to know whether someone has the human immunodeficiency virus.

A Clínica Alegre professional preparing to take blood from a patient's arm

Reviewed by Dr. Fernando Alegre

Clinical Director · OMD, registration no. 9688

Written by the Clínica Alegre team9-minute read

In this article

The infection can cause no symptoms for years. During this time, the virus weakens the immune system and can be passed on. Today, early diagnosis changes everything: with treatment, people living with HIV can have a life expectancy close to that of the general population, and those who maintain an undetectable viral load do not pass on the virus through sex.

This article explains the types of HIV test available, when to get tested, what the window period is, how a result is confirmed and what happens next. Any result must be interpreted by the doctor who requested the test; criteria and methods vary between laboratories, and a reactive screening test alone is never a diagnosis.

Who should have an HIV test

Guidelines recommend that all adults and adolescents have an HIV test at least once, whether or not they consider themselves at risk, and that those with regular potential exposure repeat it at intervals agreed with their doctor (Workowski et al., 2021). This approach reduces stigma: testing is no longer something 'for certain groups', but becomes a routine health check.

Testing is particularly recommended in certain situations: sex without a condom with partners whose status is unknown, a partner with HIV who does not have an undetectable viral load, diagnosis of another STI, sharing injecting equipment, pregnancy, tuberculosis, or hepatitis B or C. The European guideline on syphilis, for example, recommends that people with syphilis also have an HIV test, given the frequent association between the two infections (Janier et al., 2021).

SituationGeneral recommendation
Any adult or adolescentAt least one test in a lifetime
New partner or several partnersRegular testing according to risk
Diagnosis of another STIHIV test as part of the same assessment
PregnancyTest at the start and sometimes repeat later
Use of pre-exposure prophylaxisMandatory regular testing
Recent potential exposureMedical assessment and testing at the right time

Types of HIV test

Tests have advanced considerably. 4th-generation tests, carried out on blood in a laboratory, detect both antibodies to HIV and the p24 antigen, a viral protein that appears before antibodies. This means they can detect infection earlier than antibody-only tests.

Rapid tests use a drop of blood from a finger prick or, in some cases, oral fluid, and give a result within minutes. They are useful in community settings, but most detect antibodies only and have a longer window period. Self-testing kits, sold in pharmacies, work on the same principle: a reactive result must be confirmed by a healthcare service, and a negative result may not rule out a recent infection.

Tests that detect the virus's genetic material (HIV RNA) are mainly used to confirm diagnoses, investigate suspected very recent infection and monitor treatment (viral load).

Type of testWhat it detectsMain use
4th-generation laboratory testAntibodies and p24 antigenStandard screening test
Rapid testMainly antibodiesCommunity screening
Self-testAntibodiesScreening at home, with confirmation
Differentiation testAntibodies to HIV-1 and HIV-2Confirmation
HIV RNA (viral load)The virus's genetic materialConfirmation, recent infection, follow-up

The HIV test window period

Immediately after infection, no test can detect the virus. The time before a test becomes positive is called the window period and depends on the type of test. 4th-generation tests detect most infections in around six weeks; antibody-only tests can take longer. A negative test soon after exposure may therefore need to be repeated.

Your doctor will advise when to test and, if necessary, repeat the test, taking into account the date of exposure and the test available. During this time, it is advisable to use a condom to protect partners.

Type of testApproximate window periodNote
HIV RNAShorterNot used for routine screening
4th-generation laboratory testMost infections are detected in around 6 weeksA repeat test may be recommended
Antibody-only tests (rapid tests, self-tests)Longer, up to around 3 monthsA recent negative result may not rule out infection

Recent exposure: post-exposure prophylaxis

If you have had a potential exposure in the past 72 hours (for example, sex without a condom with a partner who has HIV without an undetectable viral load or whose status is unknown, a split condom, sharing needles, or sexual assault), do not wait for an HIV test. Post-exposure prophylaxis (PEP) is a course of antiretroviral treatment that reduces the risk of infection, but it must be started as soon as possible, ideally within the first few hours and never later than 72 hours.

PEP can only be prescribed by a doctor after assessing the risk and is taken for several weeks. Go to a hospital emergency department or contact SNS 24 on 808 24 24 24 for guidance. You will have an initial HIV test and follow-up tests after completing the prophylaxis.

Confirming a result: reactive does not mean a diagnosis

A 'reactive' or 'positive' screening test means that something consistent with HIV has been detected, but it does not confirm infection. False reactive results are rare but possible. Laboratories therefore follow testing algorithms using a different second test, which distinguishes HIV-1 from HIV-2, and test for viral RNA when necessary. Only the combined results allow a diagnosis to be made.

Receiving a reactive result can be a shock. It is important to remember that it may not be confirmed and that, if it is, HIV is now a treatable chronic infection. Your doctor will explain the next steps and refer you to specialist care.

ResultMeaningNext step
Non-reactive after the window periodHIV not detectedContinue prevention measures; repeat after any new exposure
Non-reactive during the window periodMay be a false negativeRepeat on the date advised
Reactive screening resultPossible infectionConfirmation test
ConfirmedHIV infectionSpecialist appointment and start of treatment
IndeterminateInconclusive resultRepeat and/or test for RNA

After diagnosis: treatment and quality of life

Antiretroviral treatment is recommended for everyone with HIV as soon as possible after diagnosis (Workowski et al., 2021). It combines prescription medicines that stop the virus multiplying and is monitored through specialist appointments. The aim is to keep the viral load undetectable and allow the immune system to recover.

When the viral load remains undetectable with regular treatment, the virus is not passed on through sex. This principle, known as 'undetectable equals untransmittable', has strong scientific support and has transformed life with HIV. Following treatment consistently is essential: stopping medication without speaking to your doctor allows the virus to multiply again and may encourage drug resistance.

Follow-up includes regular tests (viral load, CD4 lymphocyte count and others), vaccinations and screening for other infections such as syphilis and hepatitis.

HIV testing during pregnancy and family planning

During pregnancy, HIV testing forms part of routine antenatal blood tests and may be repeated later, depending on the doctor's assessment. The reason is clear: when infection is diagnosed and treated during pregnancy, the risk of passing it on to the baby falls dramatically. The partner should also be encouraged to get tested.

For couples planning a pregnancy, getting tested beforehand is a simple way to make informed decisions. If one partner is living with HIV, the medical team can advise on treatment, viral load and safe conception options. Breastfeeding for people with HIV should be discussed individually with the team providing antenatal care.

None of this should cause fear or delay: the test is quick, the result is confidential and effective treatment is available following a diagnosis.

Prevention: condoms and pre-exposure prophylaxis

HIV testing is one part of prevention, but not the only one. When used correctly and consistently, condoms are highly effective against HIV and several other STIs. Pre-exposure prophylaxis (PrEP) involves taking antiretroviral medicines before and after exposure, on prescription, and is highly effective for people at increased risk. People taking PrEP need regular HIV and other STI tests, as well as kidney function monitoring.

Treating people living with HIV until their viral load is undetectable is also a form of prevention because it prevents transmission. Combining these strategies is the most effective way to reduce new infections.

StrategyHow it worksRequirements
CondomPhysical barrierCorrect and consistent use
PrEPAntiretroviral medicines before exposurePrescription and regular testing
PPEAntiretroviral medicines after exposureStart within 72 hours, on prescription
Treatment as preventionUndetectable viral loadFollowing treatment consistently
Regular testingEarly diagnosisFrequency according to risk

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

How long after sex with a risk of exposure should I have an HIV test?

It depends on the test. With 4th-generation tests, most infections are detected in around six weeks; your doctor may recommend repeating the test.

Is a negative self-test enough?

It may not rule out a recent infection. Speak to your doctor if you are unsure or have had a recent potential exposure.

If the test is reactive, do I have HIV?

Not necessarily. A confirmation test is needed.

Is the result confidential?

Yes, it is protected by medical confidentiality.

Can people with HIV have children without passing on the virus?

With appropriate treatment and care, the risk of passing the virus on to the baby becomes very low. Pregnancy should be planned with the medical team.

Do I need to fast for an HIV test?

Generally not, but follow the laboratory's instructions if you are having other tests at the same time.

Can HIV be detected in routine blood tests?

Only if an HIV test is requested. General blood tests, such as a full blood count, do not detect it; if you would like an HIV test, ask your doctor.

Does PrEP protect against other STIs?

No. It protects against HIV; condoms and regular testing remain important.

Did you enjoy this article?

Scientific references2
  1. Workowski KA, Bachmann LH, Chan PA, et al. Guidelines for treating sexually transmitted infections, 2021. MMWR Recomm Rep. 2021;70(4):1-187.
  2. Janier M, Unemo M, Dupin N, et al. 2020 European guideline on the management of syphilis. J Eur Acad Dermatol Venereol. 2021;35(3):574–88.
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
9 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.