Do Hospitals Test for STDs Before Surgery?

Standard preoperative screening does not include testing for most sexually transmitted infections. Before surgery, you’ll typically get basic blood work and possibly a urine test, but these are designed to check things like kidney function, blood clotting, blood sugar, and signs of general infection. They are not the same tests used to detect chlamydia, gonorrhea, herpes, or syphilis.

This is a common source of confusion, partly because preoperative labs can include blood draws and urine samples that look identical to what you’d give at an STI screening. But the tests run on those samples are completely different.

What Preoperative Tests Actually Check For

The blood work ordered before surgery focuses on your body’s readiness for the procedure. According to Johns Hopkins Medicine, typical preoperative labs include a white blood cell count (to flag active infections or immune issues), urinalysis (to check for kidney or bladder infections and diabetes), and depending on the surgery, tests for blood clotting, liver function, and electrolyte levels. These tests tell the surgical team whether your body can safely handle anesthesia, tolerate blood loss, and heal afterward.

A preoperative urinalysis looks for bacteria, protein, glucose, and blood in your urine. It does not screen for STIs like chlamydia or gonorrhea. Those infections require specific molecular tests, usually nucleic acid amplification tests, that look for the genetic material of a particular pathogen. A routine urinalysis simply isn’t designed to find them. In women especially, chlamydia and gonorrhea primarily infect the cervix rather than the urethra, so a standard clean-catch urine sample may contain very little of the organism even if an infection is present.

When HIV or Hepatitis Testing May Come Up

There are a few scenarios where an infectious disease test related to STIs could be part of your pre-surgery process, but they’re specific, not routine.

If you’re having a procedure that involves organ or tissue transplantation, blood transfusion screening protocols are much more extensive. Blood donations in the United States are tested for HIV, hepatitis B, hepatitis C, syphilis, and several other pathogens. This testing happens on the donated blood itself, not on the surgical patient.

Some hospitals may include HIV or hepatitis screening in preoperative panels for certain high-risk surgeries, but this varies by institution and is not universal. If your surgeon already knows you have HIV, the preoperative evaluation shifts to checking how well the virus is controlled. Guidelines from HIV clinical experts recommend reviewing viral load and immune cell counts before elective surgery. If the virus is well suppressed and immune function is adequate, surgery proceeds as it would for anyone else. If immune function is significantly low, the surgical team may recommend starting or adjusting treatment first, since poor immune function raises the risk of postoperative infections and slow healing.

Emergency surgery is never delayed to check someone’s HIV or STI status.

Legal Protections Around STI Testing

You cannot be tested for HIV without being informed. In most U.S. states, including Florida, hospitals must notify you before running an HIV test, and you have the right to decline. If you’ve signed a general consent form for medical care, that may cover HIV testing during your stay, but you still must be told the test is planned. It is also illegal in many states to require an HIV test as a condition of admission to a healthcare facility or as a requirement to receive treatment.

The exception is a genuine medical emergency where the test result is needed for your immediate care and you’re unable to consent. Even then, you must be notified of the results afterward. These protections exist because STI test results carry significant privacy implications, and healthcare providers are required to handle them with a higher level of confidentiality than routine lab work.

Why Surgeons Might Want to Know

Untreated STIs can create real complications during and after certain surgeries, particularly gynecological and abdominal procedures. Pelvic inflammatory disease, which can result from untreated chlamydia or gonorrhea, causes scarring and chronic inflammation in the reproductive tract. Operating in an area with active, undiagnosed infection increases the risk of spreading that infection and complicating recovery. Untreated STIs can also contribute to infertility, chronic pain, and longer healing times.

For this reason, some surgeons performing pelvic, urological, or reproductive procedures may specifically order STI screening as part of your preoperative workup. This is a targeted clinical decision, not a blanket protocol applied to every surgery. A knee replacement or gallbladder removal, for example, would have no reason to include STI testing.

How to Find Out Exactly What You’re Being Tested For

If you want to know whether STI testing is part of your preoperative labs, you can simply ask. When your surgeon or their office orders pre-surgery blood work, request a list of the specific tests being run. You have the right to know what every sample is being used for, and medical staff are required to tell you.

If you’re concerned about an undiagnosed STI affecting your surgery, the most straightforward approach is to get tested separately before your procedure. Walk-in clinics, primary care offices, and public health departments all offer STI screening, often with results in a few days. This way, if something needs treatment, you and your surgical team can address it on your own timeline rather than discovering it unexpectedly during the preoperative process.

If you do test positive for anything, sharing that information with your surgeon helps them plan for the safest possible procedure and recovery. They aren’t there to judge your sexual health. They need the full picture to reduce your risk of complications.