Certain viruses, including herpes simplex (responsible for cold sores and genital herpes) and varicella-zoster (responsible for shingles), can reactivate after surgery due to the physical stress of the procedure and temporary immune changes. Antiviral medications taken before and after specific surgeries prevent or reduce these reactivations. This guide explains when antivirals are used around surgery and what to expect.
Why Viruses Can Reactivate After Surgery
Herpes simplex virus (HSV-1 and HSV-2) and varicella-zoster virus (VZV, which causes shingles) remain dormant in nerve cells after initial infection. Physical stress, immune suppression, and tissue trauma can trigger reactivation.
Surgical trauma to the face activates the trigeminal nerve (the main sensory nerve supplying the face and mouth), making facial, dental, and neurosurgical procedures particularly likely to trigger cold sore outbreaks.
Immunosuppressive medications used after organ transplants, as well as high-dose corticosteroids, significantly increase the risk of both HSV and VZV reactivation.
Laser skin resurfacing, dermabrasion, and deep chemical peels cause enough tissue trauma to reactivate facial herpes even in patients who have had only rare or mild prior outbreaks.
Shingles (herpes zoster) reactivation can cause significant post-surgical complications including postherpetic neuralgia (persistent nerve pain that continues after the shingles rash heals).
Antiviral Medications Used Around Surgery
Valacyclovir (Valtrex): the most commonly prescribed antiviral for perioperative prophylaxis (prevention before and after a procedure). Converted to acyclovir in the body with better oral absorption. Standard prophylaxis dose: 500 mg to 1 g once or twice daily.
Acyclovir: the original antiviral treatment for herpes infections. Used when valacyclovir is not tolerated or not available. Typical prophylaxis dose: 400 mg twice daily.
Famciclovir (Famvir): an alternative to valacyclovir with similar effectiveness. Typical prophylaxis dose: 250 mg twice daily.
Prophylaxis typically starts 1 to 3 days before the procedure and continues for 7 to 14 days after, depending on the procedure type and individual risk level.
For facial laser resurfacing, prophylaxis is typically started 1 to 2 days before the procedure regardless of prior herpes history, due to the high reactivation rate with this procedure.
For organ transplant recipients, antiviral prophylaxis may continue for 3 to 6 months or longer as directed by the transplant team.
Who Needs Antiviral Prophylaxis
Patients with a known history of cold sores (HSV-1) or genital herpes (HSV-2) undergoing facial surgery, dental surgery, or nerve procedures.
All patients undergoing laser skin resurfacing, deep chemical peels, or dermabrasion, even without a prior herpes history.
Immunocompromised patients (those taking corticosteroids, chemotherapy, or immunosuppressants after organ transplant) undergoing any major surgery.
Patients undergoing procedures involving the trigeminal nerve, including nerve blocks, ganglion procedures, or cranial base surgery.
Tell your surgeon about any history of cold sores before facial or dental procedures, even if outbreaks have been rare. Prophylaxis is a short course that prevents a potentially serious complication.
Side Effects and Precautions
Valacyclovir and acyclovir are generally well-tolerated. Common mild side effects include headache, nausea, and dizziness.
Both medications are cleared primarily by the kidneys. Patients with reduced kidney function may need lower doses. Inform your provider of any kidney disease history.
Antiviral prophylaxis does not eliminate the possibility of reactivation entirely but significantly reduces outbreak frequency, severity, and duration if reactivation occurs.
If you develop a rash, blistering, or localized pain during or after your antiviral course, contact your provider. A cluster of painful blisters may indicate a shingles outbreak requiring higher-dose treatment.
Do not stop antiviral prophylaxis early without guidance. Incomplete courses can allow partial suppression, which does not fully protect against the complications of reactivation.
Frequently asked
Questions patients ask.
Do I need antiviral medication if I have never had a cold sore?
For most surgeries, no. However, for facial laser resurfacing and deep chemical peels, prophylaxis is typically given to all patients regardless of herpes history, because the procedure itself can trigger a first-time or unrecognized reactivation. Your surgeon will advise based on the specific procedure.
Can I take valacyclovir with my other post-surgical medications?
Valacyclovir and acyclovir have few significant drug interactions. One notable exception: probenecid (a gout medication) slows the clearance of acyclovir and can increase its levels in the blood. Notify your provider of all medications you take including vitamins and supplements.
How do I know if I am having a herpes reactivation after surgery?
HSV reactivation typically presents as tingling or burning at the lip or mouth, followed within 24 to 48 hours by a small cluster of fluid-filled blisters. VZV (shingles) presents as a painful rash with blisters following a band-like pattern on one side of the body or face. Contact your provider promptly at the first sign, as early antiviral treatment reduces severity.
How long do I need to take antiviral medication after surgery?
Duration depends on the procedure and your individual risk. Most prophylaxis courses run 7 to 14 days after the procedure. Transplant recipients and patients on long-term immunosuppression may require prophylaxis for months. Follow your provider's specific instructions and do not stop early without guidance.
For patients
Get a personalized care plan.
This guide provides general information. For instructions tailored to your specific procedure, ask your provider about QR Rx care plans.
These medication guides are for educational purposes only and do not replace medical advice. Always follow your healthcare provider's specific medication instructions.