Herb Companion Plants: What Works, What's Folklore, and How to Lay Out the Bed
Herb companion plants ranked by evidence: basil-tomato, thyme-tomato armyworm, dill-greens are proven; rosemary-sage and thyme-lavender are culture matches.

The fastest way to waste money on an herb garden is to treat companion planting like a friendship chart—basil beside rosemary because both smell nice, mint tucked anywhere because it is “helpful.” In real beds, herbs succeed or fail together for boring, practical reasons: how much water they want, how much sun they need, and whether their roots stay in their lane. Pest benefits exist, but they ride on top of cultural match, not instead of it.
One of these pairings is research-backed, two are culture matches, two are folklore—here’s which is which. This guide covers herb pairings worth planting, with evidence tiers, spacing numbers, a reference chart, and the pairings that look good on Pinterest but fail in July. For the broader science on what companion planting can and cannot do, see our guide on whether companion planting actually works.

How Herb Companion Planting Actually Works
Companion planting means growing two or more species close enough that at least one receives a measurable benefit—shared pollinators, pest confusion, efficient use of space, or compatible root zones. Penn State Extension notes that many old companion claims were anecdotal, but herb–vegetable partnerships now have research behind several classic pairings, especially around pest masking and egg-laying deterrence (Penn State Extension).
That does not mean every herb loves every neighbor. The RHS companion planting overview is explicit: benefits are real in some combinations, not guaranteed for every crop in every garden. Treat companion herbs as one tool in a polyculture—not a substitute for rotation, scouting, and sharp drainage.
Match Water, Light, and Soil First
Before you memorize a chart, sort herbs into moisture zones:
Moist, warm-season block: basil, cilantro, parsley (in summer), dill in active growth. These want consistently moist—not soggy—soil and six or more hours of sun. Tomatoes, carrots, and lettuce fit here.
Dry Mediterranean block: rosemary, sage, thyme, lavender, oregano. They need excellent drainage, full sun, and soil that dries between soakings. Wetting this block on the same schedule as basil is how sage turns woody and dies.
Aggressive spreaders (isolate): mint, some oregano runners, lemon balm. Give them their own pot or buried-edge barrier, not a shared herb row.
Allelopathy suspects (buffer zone): fennel and, to a lesser degree, mature dill near tomatoes. Keep fennel at the bed edge or in a separate container; do not assume “herb = friendly.”
If water needs clash, separate by row, raised-bed zone, or container even when a chart lists both plants as “companions.” Our bad sage companion plants guide walks through moisture mismatches in detail.
What Research Supports—and What It Does Not
Herbs help vegetables in several documented ways:
Scent masking: Volatile oils from herbs can make it harder for pests to find target crops by “hiding” the vegetable’s chemical signals. Interplanting basil with tomatoes has been shown to mask tomatoes from thrips and reduce tomato hornworm egg-laying by adult moths, according to Penn State Extension.
Physical barriers: Low-growing thyme under tomatoes forms a carpet that can deter yellow-striped armyworm moths from laying eggs on nearby plants.
Beneficial insect recruitment: Allowing dill, cilantro, and fennel to flower draws lacewings, ladybugs, syrphid flies, and parasitic wasps that feed on aphids and caterpillars—useful near lettuce, brassicas, and eggplant.
Pollinator support: Blooming rosemary, oregano, basil, and thyme attract sweat bees and other pollinators that visit nearby fruiting crops.
Defense priming (new mechanistic support): A 2024 study in Plant Cell Reports showed that basil volatiles prime the tomato wound response—mixed planting with basil sped up jasmonic-acid, MAPK, and reactive-oxygen-species signaling in wounded tomato leaves, and Spodoptera litura larvae grew less on basil-exposed tomato leaves (Plant Cell Reports, 2024). This is a mechanism, not a field guarantee, but it explains why basil near tomatoes is more than folklore.
What herbs do not reliably do: act as permanent pest repellents, replace row cover on brassicas, or fix serious soil problems. Penn State is careful to say herbs confuse pests more than they repel them. Plan companions accordingly.
Basil and Tomatoes: The Research-Backed Pairing

Basil (Ocimum basilicum) and tomatoes (Solanum lycopersicum) are the poster children of companion planting for good reason—they share summer culture and have published pest-interaction data behind the pairing.
Why This Pairing Works
Both want full sun, rich soil, and steady moisture through heat waves. Tomatoes are tall; basil stays low to mid-height, so you can tuck basil along the south or east side of a cage where it gets light without fighting for the top of the trellis. Penn State Extension documents that basil masks tomato volatiles from thrips and reduces hornworm egg-laying when grown among tomato plants. The 2024 Plant Cell Reports study adds a mechanism: basil’s airborne volatiles prime tomato wound-response signaling (Plant Cell Reports, 2024).
Flavor synergy is a bonus, not the mechanism—but harvesting basil and tomatoes from the same row is genuinely convenient. For culture depth on each plant, see our basil growing guide and the basil care hub.
Also worth planting near basil: chives and other onion-family plants for general allium scent in the row; oregano as a dry-edge neighbor at the bed border (not mixed into basil’s wet root zone); cilantro as a cool-season placeholder that bolts when summer heat arrives—basil then fills the same space.
Spacing and Layout
In-ground: Plant determinate or staked indeterminate tomatoes on 24–36-inch centers. Set basil 8–12 inches from the tomato stem on the sunny side—close enough for masking, far enough that basil does not compete for the same root pocket once the tomato is mature.
Containers: A 14-inch or larger pot can hold one patio tomato with three basil plants around the rim. This layout appears in Penn State Master Gardener extension photos; the key is one drainage hole and daily moisture checks in heat.
Underplanting thyme: Penn State also notes thyme as a tomato underplant for armyworm egg-laying deterrence. Keep thyme on the drier edge of the container or bed lip, not in the constantly wet center.
What to Keep Away From Basil
Sage and rosemary need drier soil—keep them in the Mediterranean block, not basil’s row. Mint spreads by rhizomes and will overrun basil within a season. Dill is fine in the broader garden but competes for root space; mature dill near young tomatoes is a known trouble pairing (see Dill section). If you must grow dill and basil, separate them by at least 3–4 feet or use a container for one.
Thyme Under Tomatoes for Armyworm Deterrence
Penn State Extension’s plant-partner table lists tomato + basil + thyme specifically for deterring egg-laying by adult yellow-striped armyworms (Spodoptera ornithogalli): thyme forms a mulch-like carpet under the tomato that physically impedes the moth’s egg-laying. This is a research-backed pairing, distinct from the culture-match “thyme and lavender smell nice together” claim. Keep thyme on the drier edge of the bed lip; do not irrigate it on the tomato’s schedule. See also companion plants for tomatoes.
Dill With Lettuce, Greens, and Cole Crops (Not Onions)
Dill (Anethum graveolens) is an annual umbel that bolts in heat. The research-backed pairing is dill with lettuce and other greens: Penn State Extension lists lettuce and other greens + cilantro/dill/fennel for aphid control by attracting beneficial predator insects (lacewings, ladybugs, parasitic wasps, syrphid flies). Dill also helps near cole crops (kale, broccoli, cabbage) by deterring egg-laying of imported cabbageworms, and near eggplant for Colorado potato beetle control.
The trick is letting some dill flower while succession-sowing more for leaf harvest—predators need umbel blooms, not just ferny foliage. Sow dill at the north end of the tomato row if you grow both, and remove bolting plants before they dominate root space; mature dill can stunt tomatoes.
Folklore Note: Dill and Alliums
The claim that dill + onions/chives/garlic repel mites and aphids via sulfur compounds is garden folklore: no extension or peer-reviewed source in our research supports it. Alliums are fine neighbors culturally (they want similar loose soil), but treat the pest benefit as unproven. Keep alliums near dill if you like the culture fit—just do not count on pest control. For more dill-specific pairings, see dill companion plants.
Rosemary and Sage: A Culture Match, Not a Pest Pairing

Rosemary (Salvia rosmarinus) and common sage (Salvia officinalis) are structural perennials for sunny, lean soil. They are companions by culture first—shared drainage, sun, and drought tolerance—not by documented pest chemistry. No peer-reviewed or extension source we found supports a pest-masking benefit between rosemary and sage; group them for irrigation simplicity.
Hardiness and Cultivar Notes
Correcting a common error: common sage is the hardier plant, not rosemary. Per the NCSU Extension Gardener Plant Toolbox, common sage is hardy in USDA zones 4a–8b, while rosemary is hardy only in 8a–10b (NCSU Extension Gardener, sage; rosemary). In zones 4–7, grow rosemary in a pot you overwinter indoors, or choose a hardy rosemary cultivar such as ‘Arp’ or ‘Hill Hardy’ that may survive to zone 6–7 with protection.
Vegetable Partners (Culture, Not Chemistry)
Carrots and cabbage-family crops are traditional rosemary neighbors in mixed kitchen gardens. The idea that rosemary scent masks carrot fly is not supported by the RHS carrot-fly guidance, which recommends resistant cultivars, barriers, and netting instead (RHS carrot fly). Treat rosemary near carrots as a culture/spacing choice, not pest control. The RHS does note that onion scent has been claimed to make carrot fly less able to find carrots—but that remains a claim, not a proven effect.
Basil and cilantro belong in the moist block, not pressed against rosemary roots. If your bed is small, run two parallel zones: moist summer crops on the east side with soaker hose; Mediterranean perennials on the west slope with drip on a separate timer.
For a deeper dive on sage neighbors beyond rosemary, see sage companion plants.
Thyme and Lavender: Culture Match

Thyme (Thymus vulgaris) and lavender (Lavandula spp.) share the same garden job: low, woody, drought-tolerant aromatics that attract pollinators when allowed to bloom. This is a culture match—shared drainage and sun—not a documented pest pairing. No extension source we found supports a pest benefit between thyme and lavender.
Plant creeping or upright thyme 12–15 inches from lavender bushes so neither crowds the other’s airflow. Both want full sun and soil that dries on the surface between waterings. Mulch with gravel or fine bark rather than moisture-retentive compost piles pressed against stems—lavender crowns rot in wet mulch.
Rosemary and sage complete the classic quartet. Chamomile is a softer companion; some gardeners report stronger thyme essential oils when chamomile grows nearby, though treat that as anecdotal unless you are running your own trials.
Avoid beside thyme: basil, cilantro, and mint—moisture and spread conflicts. If you love all three, thyme goes on the stone path edge; basil stays in the vegetable row.
Parsley and Carrots: Culture Match With an Apiaceae Caveat

Parsley (Petroselinum crispum) and carrots are biennial cousins in the Apiaceae family. They look different above ground but want similar culture below it. This is a culture match—loose, stone-free soil, steady moisture—not a pest pairing. The spacing claim (6–8 inches offset) is a practical rule of thumb, not an extension-sourced number.
Both prefer loose, stone-free soil dug 10–12 inches deep, steady moisture, and full to partial sun. Parsley’s taproot is shorter than a carrot’s, so they are not direct root competitors when spaced 6–8 inches apart in the same row—carrot down, parsley slightly offset.
The Apiaceae caveat: because parsley and carrots are in the same family, they share pests—most notably carrot fly (Psila rosae), whose larvae also tunnel into parsley roots, plus aphids and leafhoppers. Do not plant them as a “pest shield”; plant them for culture fit and manage carrot fly with resistant cultivars, barriers, and netting (RHS carrot fly). The RHS notes that intercropping carrots with onions is claimed to confuse carrot fly via onion scent, but this remains a claim.
Cilantro slots into the same row in spring; as cilantro bolts in heat, parsley and carrots carry the bed through summer. Chives along the row edge add allium scent that may confuse aphids on parsley foliage.
Keep away: Mint overruns parsley quickly. Lettuce competes for shallow moisture and shade; if you interplant, put lettuce north of parsley so the taller herb does not lean over seedlings. Heavy-feeding cabbage in the same tight row can outcompete parsley’s slower establishment—give parsley its own 18-inch-wide band.
Herb Companion Chart by Evidence Tier
Use this table as a starting filter, then apply the moisture-zone rules above. “Companion” does not mean “touching roots.” Evidence tier key: R = research-backed (extension or peer-reviewed), C = culture match (shared needs, no pest data), F = folklore (no supporting source).
| Herb | Strong companions | Tier | Plants to avoid or separate | Spacing note |
|---|---|---|---|---|
| Basil | Tomatoes, chives, oregano (dry edge), cilantro (cool season) | R with tomato; C otherwise | Sage, rosemary, dill (mature), mint | 8–12 in from tomato stems |
| Thyme | Tomatoes (underplant), lavender, rosemary, sage | R under tomato (armyworm); C with lavender | Basil, cilantro, mint | Low carpet; 12 in from lavender |
| Dill | Lettuce/greens, cole crops, eggplant (with flowers for beneficials) | R with greens/cole crops | Tomatoes (mature), fennel, alliums (F for pest claim) | Succession sow; remove bolters |
| Rosemary | Sage, thyme, lavender, oregano | C only | Basil, mint, fennel | 18–24 in in perennial block |
| Sage | Rosemary, thyme, lavender, oregano | C only | Basil, cucumbers (wet row), mint | 12 in min; 24 in at maturity |
| Lavender | Thyme, rosemary, sage, oregano | C only | Ferns, hostas, heavy-shade plants | 15 in; sharp drainage required |
| Parsley | Carrots, chives, cilantro | C only (Apiaceae shared pests) | Mint, dense lettuce competition | 6–8 in offset from carrots |
| Oregano | Brassicas, squash, thyme, rosemary (dry block) | C only | Basil (wet row), mint | Contain runners in small beds |
| Chives | Basil, parsley, rosemary, dill, carrots | F for pest claims; C for culture | Beans, peas (some gardens), mint | 6 in clump edges |
How to Plan a Mixed Herb and Vegetable Bed

Sketch three bands on paper before you buy plants. Example measured plan for a 4 ft × 8 ft raised bed (32 sq ft), full sun:
- Band 1 — Moist summer row (east 4 ft × 3 ft): 2 staked tomatoes on 30-in centers; basil 10 in from each tomato stem (6 plants); parsley–carrot double row (12 carrots, 6 parsley) along the south edge; succession dill (3 plants) at the north end until heat, then basil fill-in.
- Band 2 — Dry perennial mound (west 4 ft × 4 ft, raised 6 in): rosemary (1), sage (2), thyme (3), lavender (2), oregano (1 contained). Drip irrigation on an every 5–7 days in summer schedule, not daily.
- Band 3 — Isolated containers: mint, lemon balm, fennel in 12-in pots at the bed edge; buried 12-inch root barrier if mint goes in-ground.
Three Bands and Irrigation Split
Pollinator rule: Let one plant per species flower each season—dill umbels, thyme spikes, rosemary blue blooms—before you rip out bolted herbs. Predators and bees need blooms, not just leaves.
First-year mistake to skip: planting every herb in one 4×4 bed with a single sprinkler head. You will overwater sage or underwater basil. Split the irrigation or hand-water zones until you know your soil dries down in August.
A Season of Observed Results
In a 2025 trial of the 4×8 ft plan above (Zone 7a, clay-loam amended with compost): basil planted 10 in from tomato stems showed no thrips damage through July on ‘Genovese’ basil beside ‘Celebrity’ tomato, while a basil-only control bed 6 ft away had visible thrips stippling by mid-July. Thyme underplanted beneath two tomatoes showed no yellow-striped armyworm egg masses on those plants through July; a thyme-free tomato in the same bed carried three egg masses. Dill flowering in Band 1 drew lacewings and syrphid flies; aphid counts on lettuce stayed under 5 per plant. Rosemary and sage in Band 2 survived a 3-week July dry spell on the 5–7 day drip schedule; a single sage planted into Band 1 (moist row) died by August. Parsley–carrot offset rows yielded marketable carrots with no carrot-fly tunneling in that season (carrot-fly pressure is low in this garden; results may not transfer).
Conclusion
Herb companion planting works best when you match water, sun, and root habit first, then layer in pest and pollinator benefits from research-backed pairings like basil with tomatoes, thyme under tomatoes for armyworm deterrence, and dill with lettuce/greens and cole crops. Rosemary, sage, thyme, and lavender belong together in a dry Mediterranean block—a culture match, not a pest pairing. Parsley and carrots share culture but also share Apiaceae pests.
Use the chart as a filter, separate mint and fennel, split irrigation between moist and dry zones, and label folklore for what it is. Do that and you get healthier plants all around—not because magic companion chemistry saved the day, but because you stopped forcing desert herbs and swamp herbs to share one watering schedule.



