Carrot Fly is a serious pest that affects carrots, parsnips and parsley in Scotland. Here is what it looks like, how to spot the damage, and which controls have been tested.

What does it look like?
The adult is a small, black-bodied fly, easy to overlook in the garden. The damage is done by the larvae: slender, creamy-yellow maggots up to 9mm long that tunnel into the root.
Symptoms
Rusty brown scars ring the tap rootA single, thick, dominant root growing straight down from a plant, storing energy and anchoring it, as opposed to a spreading mass of fine roots. Full definition → where larvae have tunnelled through it, leaving the carrot inedible and more prone to secondary rots setting in through the damaged tissue.
Life cycle
Two to three generations a year in the UK generally: the first lays eggs in late May and June, the second in August and September, and the fly overwinters as larvae or pupae in the soil to start the cycle again the following spring. This is the biology behind the sowing-and-harvest timing controls below, though the Scottish calendar for these generations specifically hasn't been confirmed (see the timing control's own caveat).
Controls: what actually works
All the methods below are backed by real evidence, not just repeated folklore.
Cover the crop entirely with insect-proof mesh
The most effective prevention is to cover the crop entirely with insect-proof mesh.
This is the control that the carrot+onion companion folklore displaces. Garden Organic's trials found the onion claim inconsistent, and a grower who plants onions instead of meshing gets a maggoty crop.
Timing: sow after mid-May to miss the first generation; harvest before late August to miss the second
Both levers are documented: sowing after mid-May misses the first generation, and lifting before late August misses the second.
Crop rotationMoving each crop family to different ground each year, on a multi-year cycle, so pests and diseases that build up in soil don't get a repeat host. Full definition →: avoid beds previously used for carrots
Grow resistant varieties
Carrot 'Flyaway' (AGMThe RHS's Award of Garden Merit: a UK-wide trials award for reliable performance, not a Scotland-specific recommendation. Full definition →) is resistant to carrot fly.
Companion planting: onions to mask carrot scent
There is a three-way conflict here. RHS's companion feature asserts it as tradition; Garden Organic's trials found inconsistent results and dispute the odour mechanism; and RHS's own carrot growing guide is silent on onions and recommends mesh.
Scottish grower notes
Carrot fly is patchy across Scotland. Long-established carrot-growing areas can carry damaging populations, while other areas are still carrot fly-free and need no precautions, though growing carrots in the same ground year after year will eventually build a population where there was none. Yellow sticky traps show whether flies are active near you, and catching them early lets you bring harvest forward to limit damage.
From SAC/SRUC field-scale organic guidance dated 2000; the geographic pattern and the monitoring method still hold, but it is not a live distribution map, so check locally rather than assume.
Myths about carrot fly
8 common claims about carrot fly, checked: 3 busted2 disputed2 untested1 hold up
“Any garden netting keeps carrot fly out as long as it covers the bed, so the size of the mesh holes doesn't matter”
Insect-proof mesh sold for carrot fly protection has a hole size of around 1.3 to 1.4mm, fine enough to exclude the fly while still letting light, air and water through. Netting with wider gaps, such as bird netting, pea netting or general garden mesh, has holes far too large to stop a fly that small from reaching the crop.
What to do: Buy netting sold specifically as insect-proof or fine insect mesh with roughly 1.3-1.4mm holes rather than reusing bird or pea netting for carrot fly protection.
1 source
- RHSStandard insect-proof mesh with a 1.3-1.4mm hole size is effective against carrot fly along with cabbage root fly, onion fly and bean seed fly.
“A carrot fly barrier just needs to be the right height; small gaps at ground level or where it meets the plants don't matter”
Guidance on installing insect mesh specifies that the edges should be buried under at least 5cm of soil, and that the mesh should not be allowed to touch the crop foliage, since flies can lay eggs through the mesh at any point of contact. Lifting the cover every two to three weeks to hoe, weed or thin plants is flagged as a common point where flies get underneath and lay eggs regardless of the barrier's height.
What to do: Bury or peg the mesh edges into the soil all the way round the bed, keep the mesh clear of the leaves as plants grow, and reseal it fully straight after any weeding or thinning done underneath.
1 source
- RHSMesh edges should be buried under at least 5cm of soil and kept clear of the foliage, and lifting the cover for hoeing, weeding or thinning risks letting pest flies in.
“Carrot fly only damages carrots, so parsnips, celery and celeriac growing nearby are safe from it”
Carrot fly larvae also damage parsnip, parsley, celeriac and celery, tunnelling into the roots in the same way they do with carrots and leaving the same rusty brown scarring.
What to do: Treat parsnip, celery, celeriac and parsley beds with the same carrot fly precautions (timing, mesh covers, rotation) as carrots, rather than assuming they're unaffected.
1 source
- RHSCarrot fly larvae also attack parsnip, parsley, celeriac and celery in addition to carrots.
“A simple upright fence or barrier round the bed protects carrots just as well as covering the whole crop with mesh”
Trial work referenced states that covering the crop completely with insect mesh gives better protection than relying on an upright barrier alone, even though a barrier that exploits the fly's limited flight height can still help. Rotation is also flagged as necessary alongside full covers, since pupae already in the soil can emerge and mature inside a sealed cage without ever needing to fly in from outside.
Our read A perimeter barrier is easier to build and works reasonably well in most Scottish gardens, but a full mesh cage over the bed is the more reliable option where carrot fly pressure is high or crops are grown for a full season.
What to do: Where practical, use a complete mesh cover or cage over the row rather than only a vertical fence around the edge, and still rotate where carrots are grown each year.
1 source
- RHSA complete covering with insect-proof netting is more effective than a barrier, and crop rotation is still needed because carrot flies can emerge from pupae overwinteringKeeping a plant alive and intact through the cold months, whether left outdoors, moved under cover, or stored dormant. Full definition → in the soil.
“Rotating where you grow carrots each year keeps carrot fly away from the crop”
Guidance treats crop rotation as necessary specifically because carrot fly pupae overwinter in the soil where carrots grew, and without rotation those pupae can emerge as adults right inside next year's crop, including inside a sealed mesh cover. This addresses the overwintering population in that specific bed, not adult flies migrating in from other gardens or allotment plots nearby.
Our read Rotation is worth doing as routine hygiene against the local overwintering population, especially under a mesh cover where an emerging fly would otherwise be trapped with the crop, but it isn't a defence against fresh flies arriving from elsewhere and shouldn't be relied on as the only precaution.
What to do: Rotate carrot-family crops onto a different bed each year, but pair it with mesh covers or timed sowing if carrot fly is a regular problem in your garden, since rotation alone won't stop flies flying in from neighbouring plots.
1 source
- RHSCrop rotation is essential when using insect mesh because carrot flies can otherwise emerge from pupae already overwintering in the soil under the cover.
“Only thinning carrot seedlings attracts carrot fly; other bed work like weeding or brushing past the leaves is fine”
The documented mechanism is that female carrot flies searching for somewhere to lay eggs are drawn in by the scent released when carrot foliage is damaged and surplus seedlings are pulled out during thinning. This has been described specifically in relation to thinning, not tested for other actions.
Our read Since the trigger described is scent released from damaged foliage rather than something unique to the act of thinning itself, it's a reasonable inference that other foliage-bruising jobs done close to the row, such as careless hoeing or heavy-handed weeding, could release a similar scent, but this hasn't specifically been tested and shouldn't be treated as confirmed.
What to do: As a precaution, handle carrot foliage gently during any bed work near the row, not just when thinning, and do it in the evening when fly activity is lower, then remove any pulled material from the garden straight away.
1 source
- RHSFemale carrot flies are attracted by the smell released when surplus carrot seedlings are pulled out during thinning.
“Planting onions or other alliums next to/around carrots confuses carrot fly by masking the carrot scent”
RHS's own companion-planting guidance describes onion scent masking carrots as a claimed benefit, not a demonstrated one, and cautions that companion planting evidence generally is inconsistent between crops and situations.
Our read This is one of the most repeated pieces of companion-planting folklore, but the only institutional source we could verify (RHS) frames it explicitly as an unproven claim rather than confirming it works. We didn't find an accessible peer-reviewed field trial we could verify directly, so we're not willing to call it busted or true — it stays unproven pending better evidence.
What to do: Try it if you enjoy it (onions and carrots are a reasonable bed-sharing pair anyway) but don't rely on it instead of a proper mesh barrier.
1 source
- RHS — Three ways to use companion plantingThe scent of onions has been claimed to make it harder for carrot fly to find the carrots... Many benefits are claimed for companion planting, and it is likely that all of these benefits do exist, but not for every crop in every instance.
“Sowing carrots later in the season, or lifting the crop early, lets you dodge the worst carrot fly damage”
Carrot fly produces two to three generations a year, with egg-laying concentrated in late May to June and again in August to September. Sowing carrots after mid-May misses the first generation's main egg-laying window, and harvesting before late August avoids the peak of the second generation.
What to do: For maincropThe main, usually latest-sown and longest-growing type of a crop, grown for bulk and storage rather than an early harvest. Full definition → carrots in areas with known carrot fly pressure, delay sowing until after mid-May and aim to lift the crop before late August where your growing season allows it.
In Scotland: A shorter, cooler growing season in much of Scotland can make it harder to both delay sowing and still get a full-sized maincrop before late August, so this timing trick works best combined with a mesh cover rather than as a stand-alone fix.
1 source
- RHSCarrot fly has two to three generations a year with egg-laying mainly in late May-June and August-September, and sowing after mid-May or harvesting before late August helps avoid the main generations.
Frequently asked questions
What should I do first if I find carrot fly in my garden?
Start with cover the crop entirely with insect-proof mesh. After that, timing. Work through the rest in order of how well-evidenced they are if the first two aren’t enough on their own.
Will carrot fly kill my plants?
They can cause serious damage if left unchecked. Start with the research-supported controls above and you will get a crop.
How much of this advice is actually proven?
4 of the 5 controls above are evidence-based, not just repeated folklore. Start with the evidence-based ones and treat anything lower down the list as worth trying, not worth relying on.
Sources
3 sources, recorded with what each was used for
- RHS1: mesh as most effective prevention, generation timing levers, rotation, 'Flyaway' resistance
- RHS1: Latin name, identification, symptoms, life cycle and generation timing
- SAC/SRUC13: Scottish carrot fly distribution (patchy: absent from some areas, damaging in traditional carrot-growing areas, builds with repeated cropping), late-sowing avoidance strategy, yellow-sticky-trap monitoring
