GrowPerma Blog

Companion Planting Rosemary: Mediterranean Pest Control

Written by Peter Vogel | May 8, 2026 4:54:00 AM

Rosemary is the herb gardeners reach for when they want their bed to smell like the south of France and want most of the cabbage moths to land somewhere else. The aromatic oils that make rosemary smell so good (pinene, camphor, 1,8-cineole, rosmarinic acid) also confuse the chemoreceptors of cabbage moth, carrot fly, bean beetle, and several other common pests. Plant the right neighbours next to it and you get pest deterrence, pollinator forage, and a productive Mediterranean herb bed in one.

This guide covers the seven best rosemary companions, the four crops to keep at distance, exact spacing for raised beds and containers, and the climate-zone considerations that make or break a rosemary planting in cold-winter regions. Every recommendation cites a US university extension service, Kew Gardens, the RHS, or peer-reviewed research.

2017

Reclassified to Salvia

Now Salvia rosmarinus, Kew Gardens

Zones 7-10

Hardy Outdoors

Zones 5-6 overwinter indoors

18-36 in

Spacing From Companions

Mature plants reach 2-6 ft

pH 6.0-7.5

Soil Range

Well-drained, never wet feet

Key Takeaway

Plant rosemary with brassicas, carrots, beans, peppers, and other Mediterranean herbs (lavender, sage, thyme, oregano). Keep it away from basil, mint, cucumber, and pumpkin: water needs differ, and rosemary's volatile oils suppress cucurbit growth. Rosemary needs full sun, well-drained soil (pH 6.0-7.5), low water. In zones 5-6 plant in a 5-gallon container so you can bring it indoors when frost arrives.

Why Rosemary Repels Pests

Rosemary's pest-deterrent power comes from its essential oil chemistry. A 2024 PMC review on antifungal, insecticidal, and repellent activities of Rosmarinus officinalis essential oil documents that the dominant compounds (1,8-cineole, alpha-pinene, camphor, and verbenone) disrupt the host-finding chemoreceptors of common garden pests. The same volatile oils that scent the plant interfere with cabbage moth oviposition, carrot fly host orientation, and aphid colonisation.

The plant itself was reclassified in 2017. As Kew Gardens documents, what most gardeners still call Rosmarinus officinalis is now formally Salvia rosmarinus, placing it firmly in the sage family. The taxonomy change matters for companion planting because rosemary now belongs to the same genus as sage, and the two share both growing requirements and pest-deterrent chemistry.

The Seven Best Rosemary Companions

CompanionWhat Rosemary DoesWhy It WorksSpacing
Brassicas (cabbage, broccoli, kale)Repels cabbage moth and cabbage looperVolatile oils confuse oviposition18-24 in away
CarrotsMasks the scent that attracts carrot flySame masking principle as onions and chives18-24 in away
BeansDeters Mexican bean beetlePinene-rich foliage repels colonising beetles24-30 in away
PeppersShares Mediterranean climate; deters aphidsBoth want full sun, low to moderate water24 in away
LavenderIdentical conditions; visual and pollinator pairingBoth Mediterranean dry-soil herbs; flowers attract bees24-36 in away
SageSame family (Salvia); identical conditionsReclassification places them in same genus24 in away
Thyme and oreganoSame Mediterranean profile; share container spaceLow water, full sun, alkaline-tolerant12-18 in away

Sources: NC State Extension: Salvia rosmarinus profile, University of Maryland Extension: Rosemary, Cornell eCommons: Rosemary and Rosemary Oil Profile, UC ANR: Herbs Fact Sheet (PDF)

The brassica pairing has the strongest evidence. Cabbage moth (Pieris rapae) and cabbage looper find host plants by scent; rosemary's volatile oil mask reduces successful egg-laying on neighbouring brassicas. Clemson HGIC's IPM for cabbage looper lists aromatic herb interplanting as a recognised cultural control. For the wider companion-planting framework see our complete companion planting chart.

The Four Crops to Plant Far Away

Common Mistake to Avoid

Planting rosemary next to basil or mint. Both are Mediterranean-adjacent in name only. Basil wants consistently moist soil; mint wants soggy soil. Rosemary wants soil that dries out between waterings. Pair them and one of the three plants is unhappy at any given time. Keep at least 3 ft separation, or grow basil and mint in their own pots.

The other three crops to keep at a distance:

Cucumbers. Rosemary's volatile oils may suppress cucumber seedling growth, and cucumbers want consistently moist soil that rosemary will not tolerate. Keep at least 4 ft separation.

Pumpkins, melons, and other heavy-feeding cucurbits. Same problem as cucumbers, plus they shade out the low-water Mediterranean section as they vine.

Strawberries. Less clear-cut, but extension sources flag the conflict in soil moisture preferences. Strawberries like consistent moisture; rosemary likes dry. If you must combine them, give the strawberries their own irrigation zone.

For a deeper read on combinations to avoid, see our guide to companion planting mistakes.

A Worked 4 by 4 ft Mediterranean Herb Bed

The classic layout puts rosemary at the centre and orbits the other Mediterranean herbs around it at appropriate spacing. Bonnie Plants publishes a clean 4 by 4 ft plan that this section adapts.

1

Centre: one rosemary plant

Place a single rosemary at the bed's centre with at least 24 inches clear in every direction. Choose a cold-hardy cultivar like 'Arp' or 'Madalene Hill' if you are in zone 5-6 and want the plant to overwinter.

2

North side: lavender and sage

Lavender (any cultivar suited to your zone) at the back-left corner; sage at the back-right. Both reach 18-24 inches tall and pair beautifully with rosemary visually and ecologically. Space 18-24 inches from the rosemary.

3

South side: thyme and oregano

Lower-growing creeping herbs go at the front. Thyme spreads as ground cover; oregano can be allowed to spread or kept compact with regular harvesting. Space 12-18 inches from the rosemary.

4

Border: edible flowers (calendula, borage)

If space remains, calendula or borage at the perimeter add pollinator nectar without conflicting with rosemary's water needs. Calendula reseeds; borage attracts bees and beneficial wasps.

5

Mulch with gravel or coarse bark, not wood chips

Mediterranean herbs prefer mineral mulches or coarse bark over moisture-retaining wood chips. Pea gravel reflects light, keeps the crown dry, and discourages slugs.

Why This Works: Right Plant, Right Place

One of the foundational permaculture principles is matching plants to micro-conditions rather than forcing conditions to match a generic plant list. The Mediterranean herb bed works because every species in it evolved on the same dry, sunny, alkaline rocky hillsides of southern Europe, North Africa, or the Middle East. Group plants by their native conditions and the bed maintains itself with minimal water and almost no fertiliser. Force a non-Mediterranean plant in (basil, cucumber) and the whole bed has to be irrigated to suit one outsider.

Container Companion Planting

Rosemary thrives in pots, and a single 16-inch terracotta pot can hold rosemary, thyme, and oregano comfortably. The shared container forces all three to compete for the same well-drained substrate and watering schedule, which suits all three.

For container builds: use a fast-draining potting mix (cactus soil works) or amend regular potting soil with 30 percent perlite or coarse sand. Position rosemary at the back where it can grow tallest, oregano in the middle, thyme creeping over the front edge. Water only when the top inch of soil is dry. UC ANR's culinary herbs in containers guide covers the details for a Mediterranean climate.

What does NOT belong in a container with rosemary: basil (different water needs, basil will struggle), mint (will dominate and crowd rosemary out), cilantro (cool-season, will bolt and die when rosemary is happy). For broader companion-in-pot pairings see our companion planting herbs guide.

Climate Zones and Overwintering

Rosemary is reliably hardy outdoors in USDA zones 7-10. In zones 5-6, plant in a container so you can bring it inside when night temperatures drop below 25°F. Colorado State Extension's overwintering rosemary guide (PDF) gives specific protocols.

ZoneStrategyRecommended Cultivars
Zone 5 (e.g., Minneapolis)Container only; overwinter in cool sunny window or unheated garage'Arp', 'Madalene Hill', 'Hill Hardy'
Zone 6 (e.g., Kansas City)Container preferred; in-ground possible with heavy mulch and a south-facing wall'Arp', 'Madalene Hill', 'Salem'
Zone 7 (e.g., Washington DC)In-ground year-round; mulch the crown in winter'Tuscan Blue', 'Spice Islands', 'Madalene Hill'
Zones 8-10 (Atlanta to Phoenix)In-ground year-round; thrives without interventionAny cultivar; 'Tuscan Blue' classic

Sources: USDA Plant Hardiness Zone Map, Colorado State Extension: Overwintering Rosemary (PDF), High Country Gardens: 'Arp' Rosemary cold hardiness profile

Get Our Free Companion Planting Chart

Join 10,000+ gardeners getting weekly tips on what to plant together, soil health, and permaculture techniques.

Send Me the Chart

The Pests Rosemary Cannot Solve

Rosemary is good at deterring egg-laying flying pests through aroma masking. It does almost nothing against three common rosemary-specific problems:

Root rot. Caused by Phytophthora and other fungi in poorly drained soil. Documented by the Pacific Northwest Plant Disease Handbook. The single most common rosemary killer in humid US regions. Solution is drainage, not chemistry: raised beds, gravel mulch, sandy substrate.

Rosemary beetle (Chrysolina americana). A metallic green-and-purple beetle that chews leaves. RHS documents the spread; companion planting won't deter this specific pest because it specifically eats rosemary, lavender, sage, and thyme. Hand-pick adults in the morning when they are sluggish.

Powdery mildew. Worst in humid sites with poor air circulation. Pruning to open the plant centre and avoiding overhead watering are the controls.

For a full integrated pest management framework that handles these together, see our IPM home garden guide.

Frequently Asked Questions

What can I plant with rosemary?

The strongest companions are brassicas (cabbage, broccoli, kale), carrots, beans, peppers, and other Mediterranean herbs (lavender, sage, thyme, oregano). All share rosemary's preference for full sun, well-drained soil, and low water. Add edible flowers like calendula or borage at bed perimeters for pollinator support without water-needs conflict.

What should you not plant with rosemary?

Avoid basil, mint, cucumber, pumpkin, melons, and most other heavy-water-demand crops. Their soil moisture needs are incompatible with rosemary's preference for dry feet, and rosemary's volatile oils may suppress cucurbit growth. Strawberries are also flagged for moisture conflict; if you grow them together, separate irrigation zones.

Do rosemary and lavender grow well together?

Yes, this is one of the strongest plant pairings in any home garden. Both are Mediterranean dry-soil natives, share identical pH and moisture requirements, and complement each other visually (rosemary's silvery needles and lavender's purple flower spikes). Plant 24 to 36 inches apart in well-drained soil with full sun. Both attract bees and beneficial wasps when in flower.

Is rosemary a good companion plant for tomatoes?

Yes, with one caveat. Rosemary's volatile oils help repel spider mites and aphids on neighbouring tomatoes, but tomato water needs are higher than rosemary's. Pair them by giving the tomato a dedicated drip line that does not overwater the rosemary. Maintain at least 24 inch separation between the rosemary base and the tomato base.

Can you plant rosemary with peppers?

Yes. Peppers and rosemary share Mediterranean climate preferences (full sun, moderate water, well-drained soil) and rosemary's aromatic oils help deter aphids on the peppers. Space 24 inches apart. Park Seed's pepper companions list includes rosemary among the recommended pairings.

Does rosemary kill other plants?

No, but its volatile oils may inhibit germination and seedling growth of nearby cucurbits (cucumber, melon, pumpkin) and reduce vigour in plants with very different soil moisture needs. The effect is minor and not fatal; it just means certain pairings produce less than they would alone. The mint family also seems to suffer near rosemary, but again not fatally.

Can rosemary survive winter?

In zones 7 to 10, rosemary survives outdoors year-round with minimal protection. In zones 5 to 6, plant in a container and bring it indoors below 25°F, or choose cold-hardy cultivars like 'Arp', 'Madalene Hill', or 'Hill Hardy' and provide a south-facing wall plus heavy mulch. In zone 4 and colder, treat as an annual or container plant. The cultivar matters; 'Tuscan Blue' (a popular variety) is much less cold-hardy than 'Arp'.

Ready to Grow Smarter?

Get our free beginner's guide to permaculture gardening, 12 pages of practical tips you can use this weekend.

Download the Free Guide

Browse All Guides →

Resources