Antiviral drugs are the main treatment and work best when started early

The standard treatment for shingles is an antiviral medication that slows the virus's spread and shortens how long the rash lasts. The three antivirals used most often are acyclovir, valacyclovir, and famciclovir. These drugs do not kill the virus outright—nothing does—but they reduce viral replication, which means less tissue damage, less pain, and faster healing.

The critical window is the first 72 hours after the rash appears. Starting an antiviral within this time frame cuts the duration of acute pain by roughly a week and lowers the risk of long-term nerve pain, called postherpetic neuralgia, which can persist for months or years after the rash clears. If you start treatment after 72 hours, the benefit is smaller but still present. Your doctor will prescribe one of these three drugs based on your age, kidney function, and other medications you take.

Valacyclovir and famciclovir require fewer daily doses than acyclovir and reach higher concentrations in the body, so they are often preferred when available. Acyclovir is the oldest and least expensive. All three are taken by mouth as tablets or capsules, except in severe cases—such as shingles affecting the eye or in people with weakened immune systems—when acyclovir may be given intravenously in a hospital.

Key Takeaways

  • Antiviral medications started within 72 hours of the rash appearing reduce pain duration and lower the risk of long-term nerve pain.
  • Pain relief usually requires both over-the-counter options and prescription medications, since antivirals alone do not stop the acute pain.
  • Postherpetic neuralgia—nerve pain lasting weeks or months after the rash heals—is treated with different drugs than the acute infection itself.
  • Most people recover fully within two to four weeks, but older adults and those with weakened immunity face higher risks of complications.

Managing pain during the acute infection

Antivirals reduce pain but do not eliminate it. Most people need additional pain relief while the rash is active. Over-the-counter options include acetaminophen and ibuprofen, taken at regular intervals rather than only when pain is severe. Many people find that ibuprofen works better for shingles pain than acetaminophen, likely because shingles involves inflammation that ibuprofen targets directly.

For moderate to severe pain, doctors often prescribe stronger medications. Gabapentin, an anticonvulsant drug, is frequently used because it works on nerve pain specifically. Pregabalin is similar and sometimes preferred. Both are taken multiple times daily and can take several days to reach full effect. Opioid medications like tramadol or codeine are sometimes prescribed for short periods when other options are insufficient, though they carry risks of dependence and are used cautiously.

Topical treatments applied directly to the rash can provide additional relief. Lidocaine patches numb the skin and can be worn for up to 12 hours at a time. Capsaicin cream, made from chili peppers, reduces pain signals over time but must be applied carefully and washed off thoroughly to avoid spreading to eyes or other sensitive areas. These are most helpful once the blisters have crusted over, since open blisters can be irritated by topical products.

Caring for the rash itself

The rash does not require special treatment beyond keeping it clean and dry. Wash the area gently with soap and water, then pat dry. Loose, breathable clothing reduces irritation. If blisters are oozing, a sterile gauze dressing can protect the area and prevent secondary bacterial infection, which is the main complication of the rash itself.

Antibiotic ointments are not routinely recommended unless signs of infection appear—increasing redness, warmth, pus, or spreading beyond the original rash area. Antifungal creams are not needed; shingles is a viral infection, not fungal. Calamine lotion and similar products may feel soothing but do not speed healing and can trap moisture if applied too thickly.

Avoid scratching, which is difficult but important. Scratching can introduce bacteria, delay healing, and increase scarring. Keep fingernails trimmed short, and consider wearing cotton gloves at night if scratching happens during sleep. The itching usually decreases as the rash crusts over, typically within 7 to 10 days.

Treating postherpetic neuralgia when pain persists

In roughly 10 to 15 percent of people, nerve pain continues long after the rash has healed. This condition, postherpetic neuralgia, can last weeks, months, or occasionally longer. The pain is often described as burning, stabbing, or electric-like and occurs in the area where the rash was. It is more common in people over 60 and in those who had severe acute pain.

Gabapentin and pregabalin are the first-line treatments for postherpetic neuralgia, often at higher doses than used during the acute phase. Tricyclic antidepressants like amitriptyline, though developed for depression, are effective for nerve pain and are frequently prescribed. Topical lidocaine patches continue to help some people. Capsaicin cream may provide relief but requires consistent application over weeks.

If these do not work, other options exist. Duloxetine, a different class of antidepressant, has evidence supporting its use. Tramadol or other opioids may be considered for severe cases, though long-term use carries risks. Some people benefit from nerve blocks—injections that numb the affected nerve—performed by a pain specialist. Recovery from postherpetic neuralgia is gradual; most people improve over months even without treatment, though medications speed the process.

When to seek medical care

Contact a doctor as soon as you suspect shingles, ideally within the first 72 hours. Do not wait to see if it improves on its own. Early treatment makes a substantial difference in outcomes. Seek immediate care if the rash is near your eye, if you have fever above 101°F (38.3°C), if the rash spreads rapidly, or if you have signs of bacterial infection such as increasing warmth, pus, or red streaking.

People with weakened immune systems—from HIV, cancer treatment, or immunosuppressive medications—should contact their doctor even sooner, as they face higher risks of severe infection and complications. Pregnant people should also seek prompt medical attention, as shingles during pregnancy requires careful management to protect the developing baby.

Who is at higher risk for complications

Age is the strongest risk factor. People over 50 have more severe pain and higher rates of postherpetic neuralgia. Those over 70 face even steeper risks. A weakened immune system—from HIV, organ transplant, cancer treatment, or long-term corticosteroid use—increases the severity of the infection and the chance of complications spreading beyond the typical rash area.

People with certain chronic conditions, such as diabetes or heart disease, also tend to have worse outcomes. Smokers and those with poor nutrition recover more slowly. If you fall into any of these groups, aggressive early treatment with antivirals and pain management is especially important, and follow-up care to watch for postherpetic neuralgia should be planned from the start.

Frequently Asked Questions

How long does shingles take to go away with treatment?

The rash typically crusts over within 7 to 10 days and fully heals within 2 to 4 weeks. Antiviral treatment shortens this timeline and reduces pain duration. Without treatment, healing takes longer and pain is more severe. Postherpetic neuralgia, if it develops, can persist for months.

Can I catch shingles from someone else?

No. Shingles itself is not contagious. However, the fluid in the blisters contains the varicella-zoster virus, and if someone who has never had chickenpox touches the fluid, they can develop chickenpox. Keep the rash covered and wash your hands frequently to prevent spread.

Is there a vaccine to prevent shingles?

Yes. The recombinant zoster vaccine (Shingrix) is recommended for adults 50 and older and for younger adults with weakened immune systems. It is given as two doses, two to six months apart, and is about 90 percent effective at preventing shingles and postherpetic neuralgia. Talk to your doctor about whether it is right for you.

What if I am allergic to antivirals?

True allergies to acyclovir, valacyclovir, and famciclovir are rare, though rashes and other reactions can occur. If you have had a reaction, tell your doctor before treatment starts. Alternative antivirals or different drug classes may be used, though the options are limited. Pain management becomes even more important if antivirals cannot be used.

Can shingles come back?

Recurrence is uncommon—most people have shingles only once. However, it can happen, particularly in people with weakened immune systems. Each episode is treated the same way: antivirals started early, plus pain management. The shingles vaccine reduces the risk of recurrence in those who have already had it.