Warts are caused by human papillomavirus (HPV), so they are neither a fungus nor a bacterium; the growths are benign skin tumors triggered by a viral infection, and this matters because it explains why antibiotics and antifungal creams do not treat them.
That single sentence settles the core question, but the confusion behind it is worth unpacking, because warts sit next to fungal and bacterial skin conditions that look and behave somewhat alike. The rest of this answer distinguishes the three categories, explains how HPV produces a wart, clarifies what "fungus" and "bacteria" actually mean as organisms, and notes where the clean answer stops being the whole story.
The short answer and why the wording trips people up
HPV is a virus—specifically a large family of double-stranded DNA viruses that infect epithelial cells, the cells of the outer skin and mucous membranes. A wart is the visible result of that infection: a localized overgrowth of keratinocytes (the main skin cells) driven by viral gene activity. Because the wart is a fleshy lump on the skin, people reasonably reach for "fungus" as an explanation, since fungal skin infections are common and also produce lumps, flakes, or discoloration. But the organism is different in kind, and the distinction is not trivia: it determines treatment.
The question is phrased as a binary—"fungus or bacteria"—which sets up a false choice. The correct answer is a third category. When someone asks this, the useful response is to name the virus first, then explain the neighboring conditions that cause the mix-up. Otherwise the asker may mentally file warts under "not fungus, therefore bacteria," which is also wrong.
There is a further layer of ambiguity. "Wart" in everyday speech can cover several distinct lesions: common warts (verrucae vulgaris), plantar warts on the soles, flat warts, filiform warts, and genital warts (condylomata acuminata). All are HPV-driven, but they involve different HPV types and different anatomical settings. Occasionally, people call other lumps "warts" colloquially—seborrheic keratoses, skin tags, or even corns—and those have their own causes. Without knowing which lesion a person means, the safest accurate statement is that a true viral wart is HPV-caused; anything else called a wart by habit should be checked for what it actually is.
What distinguishes viruses, fungi, and bacteria
The three categories differ in basic biology, and that difference is the reason a single answer can rule out two of the three.
Bacteria are single-celled prokaryotes: they have no membrane-bound nucleus, reproduce by division, and can often be cultured on laboratory media and treated with antibiotics. Skin bacteria cause conditions such as impetigo, folliculitis, and some abscesses. Bacterial infections frequently respond to antibiotic drugs, though resistance complicates that.
Fungi are eukaryotes—cells with a nucleus, like ours—and include yeasts and molds. Fungal skin infections (dermatophytoses such as athlete's foot and ringworm, and yeast infections such as cutaneous candidiasis) grow in warm, moist skin and are treated with antifungal agents. Fungi are not killed by antibacterial antibiotics, and bacteria are not killed by antifungals; that mismatch is the practical reason the category matters.
Viruses are obligate intracellular parasites: they are not cells, they cannot reproduce on their own, and they commandeer host cell machinery to copy themselves. HPV is one such virus. Antibiotics and antifungals do nothing to viruses because those drugs target structures or pathways that viruses do not possess—bacterial cell walls, fungal membranes and sterol synthesis, and so on. This is why a course of antibiotics for a suspected bacterial skin infection, or an antifungal cream for a suspected ringworm, will fail on a wart.
| Feature | Bacteria | Fungi | Viruses (HPV) |
|---|---|---|---|
| Cell type | Prokaryotic, single-celled | Eukaryotic | Not cellular; obligate intracellular |
| Typical skin example | Impetigo, folliculitis | Athlete's foot, ringworm | Warts, including plantar and genital |
| Drug class that targets it | Antibiotics | Antifungals | Antivirals (limited skin use); warts often treated by destruction or immune stimulation |
| Culturable on standard lab media | Usually yes | Often yes | No; requires host cells |
That table is a simplified teaching aid, not a clinical algorithm; several skin conditions have mixed or noninfectious causes, and diagnosis is a clinical judgment.
How HPV actually produces a wart
HPV enters through small breaks in the skin or through moist mucosal surfaces. It infects basal keratinocytes—the dividing cells at the base of the epidermis—and establishes itself there. Viral genes push the infected cells to divide more than they normally would and to delay their normal maturation, so the epidermis thickens (acanthosis) and the surface becomes rough and keratinized. The classic wart's rough, cauliflower-like texture and its tiny black dots (thrombosed capillaries visible through the thickened skin) come from this combination of epidermal overgrowth and surface blood vessels.
Because the virus lives inside skin cells rather than free in the environment, warts are transmitted by direct skin-to-skin contact or by contact with contaminated surfaces—shared towels, locker-room floors, pool decks—especially where the skin is broken or macerated. That is why plantar warts cluster around communal showers and swimming pools, and why autoinoculation (spreading from one part of the body to another by scratching or shaving) is common. The incubation period is variable and often weeks to months, which is one reason people cannot pinpoint when they were exposed.
HPV is a large family with more than 200 recognized types. Different types favor different sites and produce different lesions. Cutaneous types such as HPV 1, 2, 4, 27, and 57 are commonly associated with common and plantar warts. Mucosal types include the high-risk types (notably 16 and 18) linked to cervical and other cancers, and low-risk mucosal types (such as 6 and 11) associated with genital warts and recurrent respiratory papillomatosis. This is an important distinction: the "wart" on a hand and the "wart" on the genitals are both HPV, but they are not the same virus type or the same clinical problem, and the cancer-risk implications differ sharply. Conflating them is a real source of confusion in public discussion.
Where fungal and bacterial look-alikes cause confusion
Several common skin conditions mimic warts closely enough that people misassign the cause.
Fungal look-alikes. Ringworm (tinea corporis) produces scaly, annular patches with a clearer center, not the firm rough nodule of a wart, but early or atypical lesions can be ambiguous. Athlete's foot (tinea pedis) can cause peeling and maceration on the soles that someone might mistake for a plantar wart, and both occur in the same damp environments. Pityriasis versicolor, a yeast overgrowth, causes discolored patches rather than raised growths. None of these is HPV.
Bacterial look-alikes. A small abscess, a boil, or a foreign-body granuloma can present as a tender lump. Bacterial infections more often show erythema, warmth, pus, and tenderness, whereas a wart is typically flesh-colored or grayish, rough, and only sometimes tender on pressure (plantar warts hurt when squeezed side to side, which helps distinguish them from corns). Again, the organisms differ.
Noninfectious imitators. Corns and calluses are mechanical, not infectious. Seborrheic keratoses are benign growths common in older adults and are sometimes called "senile warts," a misnomer with no viral cause. Molluscum contagiosum is caused by a poxvirus—viral, but not HPV—and produces small umbilicated papules. Skin tags are benign connective-tissue outgrowths. The word "wart" is casually applied to several of these, which is exactly why the query deserves a category-level answer plus a caveat about naming.
The practical upshot: when a lesion's cause is uncertain, the useful question is not "fungus or bacteria?" but "what does this lesion actually look like, and does it need a clinician's assessment?" Visual inspection and, where needed, simple bedside or laboratory tests distinguish these categories.
Treatment logic follows the cause
Because warts are viral, the treatment approach differs from either antibacterial or antifungal therapy. There is no simple oral antibiotic or antifungal that clears a wart. Management options generally fall into three groups:
Destructive methods that remove the infected tissue physically or chemically—salicylic acid preparations, cryotherapy (freezing), curettage, laser ablation. Immune-stimulating topical agents that provoke a local immune response against the virus, such as imiquimod for certain wart types, or irritants like cantharidin. Observation, because many warts resolve on their own as the immune system clears the infection, particularly in children.
Antiviral drugs developed for other viruses (for example, those targeting herpes or HIV) are not standard wart therapy, and this is a useful detail: "viral" does not mean "treatable with a general antiviral." The specific biology of HPV and the location of the infection constrain what works and what evidence supports.
This is also why prevention advice focuses on reducing transmission and skin trauma: keeping feet dry and covered in communal wet areas, not sharing towels or nail tools, avoiding scratching or picking at warts, and—for genital HPV—vaccination, which targets the high-risk and several low-risk types and is a public-health measure rather than a wart cream. The vaccine's role belongs mainly to the cancer-prevention and genital-wart story; it is not a general treatment for existing common warts.
What the answer does not settle
Two honest limits apply.
First, if a person is asking about a specific growth, the category answer does not substitute for a diagnosis. A clinician distinguishes wart from corn, callus, fungal infection, cyst, or other lesion, and some lesions need biopsy or referral. The statement "warts are viral" is about true warts, not about every lump someone calls a wart.
Second, research on HPV is active and details—type distributions by population, optimal treatment sequences, vaccine coverage recommendations—vary by country and change over time. The stable, well-established core is that HPV causes warts and that HPV is a virus, not a fungus or a bacterium. Anything beyond that, especially treatment specifics or vaccination schedules, should be checked against current local guidance rather than assumed from a general explanation.
A compact way to keep the categories straight
If you remember one distinction, make it this: antibiotics target bacteria, antifungals target fungi, and viruses are a separate domain of infectious agent with their own biology and their own (often limited) drug options. A wart sits in the viral column. The rough surface and the shared locker-room setting make fungal confusion understandable, and the lump-like appearance invites bacterial guesses, but neither organism is responsible. The next time the question comes up, the accurate reply is short—HPV, a virus—and the useful follow-up is to ask which lesion is meant, because the word "wart" is doing more work in everyday speech than it does in medicine.