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.

By · Reviewed by LeafyPixels Review Board · Published · Updated · 14 min read

Spiral herb garden bed with mixed culinary herbs and vegetables in a sunny kitchen garden

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.

Mixed vegetable and herb polyculture in a raised kitchen garden bed

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

Sweet basil and ripe tomatoes growing together in a summer vegetable garden row

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 and sage growing in a dry Mediterranean herb bed with sharp drainage

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

Low thyme and lavender planted together in a sunny dry herb border

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

Curly parsley growing in a moist vegetable garden row ready for carrot interplanting

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).

HerbStrong companionsTierPlants to avoid or separateSpacing note
BasilTomatoes, chives, oregano (dry edge), cilantro (cool season)R with tomato; C otherwiseSage, rosemary, dill (mature), mint8–12 in from tomato stems
ThymeTomatoes (underplant), lavender, rosemary, sageR under tomato (armyworm); C with lavenderBasil, cilantro, mintLow carpet; 12 in from lavender
DillLettuce/greens, cole crops, eggplant (with flowers for beneficials)R with greens/cole cropsTomatoes (mature), fennel, alliums (F for pest claim)Succession sow; remove bolters
RosemarySage, thyme, lavender, oreganoC onlyBasil, mint, fennel18–24 in in perennial block
SageRosemary, thyme, lavender, oreganoC onlyBasil, cucumbers (wet row), mint12 in min; 24 in at maturity
LavenderThyme, rosemary, sage, oreganoC onlyFerns, hostas, heavy-shade plants15 in; sharp drainage required
ParsleyCarrots, chives, cilantroC only (Apiaceae shared pests)Mint, dense lettuce competition6–8 in offset from carrots
OreganoBrassicas, squash, thyme, rosemary (dry block)C onlyBasil (wet row), mintContain runners in small beds
ChivesBasil, parsley, rosemary, dill, carrotsF for pest claims; C for cultureBeans, peas (some gardens), mint6 in clump edges

How to Plan a Mixed Herb and Vegetable Bed

Common sage in a dry herb bed separated from moisture-loving vegetable crops

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.

Frequently asked questions

Which herb companion pairings are actually proven?

Three are research-backed: basil with tomatoes (Penn State documents thrips masking and reduced hornworm egg-laying, and a 2024 Plant Cell Reports study shows basil volatiles prime tomato wound response), thyme underplanted beneath tomatoes (deters yellow-striped armyworm egg-laying), and dill with lettuce/greens and cole crops (aphid predator recruitment). Rosemary with sage, thyme with lavender, and parsley with carrots are culture matches—shared water, sun, and drainage needs with no documented pest benefit. Dill with alliums is folklore.

Is basil and tomato companion planting supported by research?

Yes. Penn State Extension documents that basil masks tomato volatiles from thrips and reduces tomato hornworm egg-laying when interplanted. A 2024 Plant Cell Reports study found basil volatiles prime the tomato wound response via jasmonic acid, MAPK, and ROS signaling, and Spodoptera litura larvae grew less on basil-exposed tomato leaves. Plant basil 8–12 inches from tomato stems on the sunny side.

Can rosemary and sage be planted together?

Yes, as a culture match. Both need full sun, lean soil, and excellent drainage, and both are Mediterranean perennials. Common sage is hardier (USDA zones 4a–8b) than rosemary (8a–10b); in colder zones grow rosemary in a pot or choose a hardy cultivar like ‘Arp’. No peer-reviewed or extension source supports a pest benefit between them.

Should dill be planted near onions?

The pest-control claim is folklore—no extension or peer-reviewed source supports dill + alliums repelling mites or aphids. Dill’s research-backed partners are lettuce/greens and cole crops. If you like dill near onions for cultural reasons (similar loose soil), plant them, but do not count on pest control.

Do herbs repel pests or just confuse them?

Mostly confuse them. Penn State Extension states herbs do not repel insect pests but rather confuse them by masking crop volatiles, and they can physically impede egg-laying (thyme under tomatoes). They also recruit beneficial predators when allowed to flower. They do not replace row cover, rotation, or scouting.

How the "Herb Companion Plants: What Works, What's Folklore, and How to Lay Out the Bed" guide is reviewed?

Editorial policyReview board

Written by · Reviewed by LeafyPixels Review Board · Updated October 20, 2026

This "Herb Companion Plants: What Works, What's Folklore, and How to Lay Out the Bed" guide was researched and written by . Recommendations in the "Herb Companion Plants: What Works, What's Folklore, and How to Lay Out the Bed" guide are checked against multiple independent references before publication.

We prioritize sources that hold up under scrutiny:

  • University cooperative extension bulletins and fact sheets (Penn State, Clemson, UMD, NC State, and similar programs)
  • Botanical garden and horticultural society publications
  • Peer-reviewed plant science and veterinary toxicology references where pet safety matters (including ASPCA Animal Poison Control)
  • Established reference works on indoor plant culture

The LeafyPixels editorial team then reviews the draft for clarity, step-by-step usefulness, and fit with real apartment and home conditions-not ideal greenhouse setups. When guidance changes materially, we update the page and note the revision date.

What this guide covered

Guide recommendations are reviewed against relevant research, expert guidance, and practical constraints before publication.

Research credit: the topic of this page was taken from The Spruce’s article on the same topic (https://www.thespruce.com/herb-companion-plants-11918708). The facts on the page were sourced independently and are cited above.


Sources used

  1. NCSU Extension Gardener, rosemary (n.d.) Rosemary USDA hardiness zones 8a-10b. [Online]. Available at: https://plants.ces.ncsu.edu/plants/salvia-rosmarinus/ (Accessed: 20 October 2026).
  2. NCSU Extension Gardener, sage (n.d.) Common sage USDA hardiness zones 4a-8b. [Online]. Available at: https://plants.ces.ncsu.edu/plants/salvia-officinalis/ (Accessed: 20 October 2026).
  3. Penn State Extension (n.d.) Basil masks tomato volatiles from thrips; reduces tomato hornworm egg-laying; thyme underplant deters yellow-striped armyworm; dill with lettuce/greens and cole crops for beneficial insect recruitment. [Online]. Available at: https://extension.psu.edu/herbs-make-good-plant-partners-and-companions (Accessed: 20 October 2026).
  4. Plant Cell Reports, 2024 (n.d.) Basil volatiles prime tomato wound response via JA, MAPK, and ROS signaling; Spodoptera litura larvae grew less on basil-exposed tomato leaves. [Online]. Available at: https://link.springer.com/article/10.1007/s00299-024-03285-w (Accessed: 20 October 2026).
  5. RHS carrot fly (n.d.) Carrot fly management via resistant cultivars, barriers, and netting; rosemary scent masking carrot fly is not supported. [Online]. Available at: https://www.rhs.org.uk/biodiversity/carrot-fly (Accessed: 20 October 2026).
  6. RHS carrots growing guide (n.d.) Carrot culture and carrot fly resistant cultivars. [Online]. Available at: https://www.rhs.org.uk/vegetables/carrots/grow-your-own (Accessed: 20 October 2026).
  7. RHS companion planting overview (n.d.) Benefits are real in some combinations but not guaranteed; onion scent claimed to confuse carrot fly. [Online]. Available at: https://www.rhs.org.uk/advice/grow-your-own/features/companion-planting (Accessed: 20 October 2026).
  8. RHS rosemary growing guide (n.d.) Rosemary culture, drainage, and Mediterranean block growing requirements. [Online]. Available at: https://www.rhs.org.uk/herbs/rosemary/grow-your-own (Accessed: 20 October 2026).