Garlic does repel certain insects, but how well it works depends entirely on how you use it. The sulfur compounds released when garlic is crushed can deter mosquitoes, flies, and some garden pests when applied as a spray. Eating garlic, on the other hand, has not been shown to keep bugs from biting you.
Why Garlic Repels Insects
When you crush or chop a garlic clove, an enzyme reaction produces a compound called allicin, the same thing responsible for garlic’s strong smell. Allicin is unstable and quickly breaks down into a series of sulfur-based chemicals. These sulfur compounds are what insects find offensive. They interfere with the way biting insects like flies and mosquitoes locate a host, essentially masking or overwhelming the chemical signals bugs use to find you or your plants.
The effect is real but relatively short-lived. Allicin degrades rapidly after garlic is crushed, which means any garlic-based repellent loses potency faster than synthetic alternatives. In lab testing, garlic oil extract at a 20% concentration provided about 130 to 140 minutes of protection against two common mosquito species. By comparison, DEET-based repellents in the same study provided 7.5 to 8 hours of protection.
Does Eating Garlic Keep Mosquitoes Away?
This is one of the most persistent folk remedies, and the science doesn’t support it. A randomized, double-blinded, placebo-controlled study had subjects eat garlic and then exposed them to mosquitoes in a lab. The researchers measured how many mosquitoes landed, how many bit, and how much blood the mosquitoes consumed. There was no significant difference between the garlic group and the placebo group.
The idea makes intuitive sense: garlic’s sulfur compounds do get released through your skin and breath after you eat it. But the concentrations that reach your skin surface appear to be far too low to actually deter mosquitoes from landing or feeding. You’d need to eat an impractical amount, and even then there’s no evidence it would cross the threshold needed for repellency.
Garlic Sprays for Yards and Gardens
Where garlic shows the most practical promise is as a topical spray for plants, lawns, and outdoor areas. Commercial garlic barrier sprays are diluted with water and applied to foliage, grass, or around patios to create a zone that insects avoid. The sulfur compounds coat leaf surfaces and release their odor gradually as they break down.
These sprays need frequent reapplication. For preventive use in gardens, manufacturers recommend spraying every 10 to 14 days to maintain the repellent effect. During active infestations, that window tightens to every 2 to 3 days. Rain, sun, and wind all accelerate the breakdown of the active compounds, so timing matters. The best results come from applying before insects arrive rather than trying to drive them out once they’ve settled in.
Garlic sprays work best against soft-bodied insects and those that rely heavily on scent to navigate, including mosquitoes, aphids, whiteflies, and certain beetles. They’re less effective against insects that don’t rely on airborne chemical cues to find food.
How It Compares to DEET and Other Repellents
Garlic is a weaker repellent than DEET by a wide margin. In direct comparisons, garlic oil provided roughly 2 hours of mosquito protection while DEET lasted closer to 8 hours. The gap is significant enough that garlic shouldn’t be your primary defense if you’re in an area with mosquito-borne diseases like dengue or malaria.
That said, garlic sprays have a different niche. They’re useful as a broad-area treatment for yards and gardens where you wouldn’t use DEET anyway. Many gardeners prefer them because they break down into harmless compounds quickly and don’t leave synthetic residues on food crops. For personal protection on your skin, though, proven repellents containing DEET, picaridin, or oil of lemon eucalyptus are far more reliable.
Skin Safety Concerns
If you’re thinking about making your own garlic repellent and applying it to your skin, proceed carefully. Raw garlic applied topically can cause irritant contact dermatitis, and in some cases, actual chemical burns. The same allicin that repels insects can damage the outer layer of skin, especially with prolonged or repeated contact. Crushed raw garlic held against skin under a bandage or wrap is the most common cause of these injuries.
The severity depends on the preparation (raw paste is much harsher than diluted oil), how long it stays on your skin, and individual sensitivity. People with eczema or other existing skin conditions are at higher risk. If you want to try garlic topically, stick with commercially formulated products that have been diluted to safe concentrations rather than improvising with raw cloves.
Which Bugs Garlic Works Against
Garlic has shown repellent or insecticidal activity against a surprisingly broad range of pests. Mosquitoes are the most studied, but garlic compounds also deter flies (particularly relevant in livestock farming, where garlic feed supplements reduce fly burden on cattle), aphids, spider mites, and some species of beetles. The sulfur compounds disrupt host-seeking behavior across multiple insect families, which is why garlic-based products are marketed for general garden pest control rather than targeting a single species.
Against mosquitoes specifically, garlic appears roughly equally effective against different species. Lab tests on both Aedes aegypti (the yellow fever mosquito) and Anopheles stephensi (a malaria vector) showed similar repellency timelines, with garlic oil providing about 130 to 140 minutes of protection against both. The compounds don’t seem to be species-specific, which is both an advantage (broad protection) and a limitation (they also repel beneficial insects if sprayed indiscriminately).
Garlic is less effective against hard-bodied insects, burrowing pests, and anything that has already established itself inside plant tissue. It works on the surface as a scent-based deterrent, so once insects have moved past the barrier or are feeding inside stems and roots, garlic sprays won’t reach them.

