How to Prevent Carrot Fly From Destroying Your Crop

, written by gb flag

Carrot fly maggot

Recently I experienced one of the most disheartening crop failures a gardener can suffer. I noticed that some of my carrots had developed bronze foliage, so I pulled a few to see what was up. I dug up carrot after carrot, feeling more and more dismayed as I discovered that every single root was riddled with rusty and blackened tunnels.

I was sure that I knew what was responsible for the damage, but just to confirm I broke two or three carrots in half. Each root was honeycombed with tunnels, from which several drowsy, yellowish maggots wiggled.

My worst fears were confirmed: it was carrot fly.


The Curse of the Carrot Fly

Carrot flies themselves don’t cause any damage, but they lay their eggs near carrots and other susceptible crops such as parsnips, celery, dill and parsley. The ravenous larvae then wriggle down through the soil to the nearest available root – and begin to feed.

At first they may only nibble on the fine root hairs, but they soon progress to the roots themselves. They munch higgledy paths on the surface of the roots before boring into the heart of the carrot. This doesn’t usually kill the plant, but it can stunt growth and cause the bronze foliage I’d noticed. And, of course, depending on the extent of the damage, the roots become inedible.

Carrot flies produce two, and sometimes three generations per year. The first eggs are laid in late spring. These were the ones that hatched into the maggots that took a fancy to my carrots. Had I not interrupted the growth cycle by hoicking out the infested roots, they would then pupate and hatch into adult flies, ready to spawn a second generation.


How to Deter Carrot Fly

Carrot fly is a widespread problem, and gardeners and farmers have developed a range of techniques to deter them.

Companion planting. Completely encircling your carrot crop with allium family plants such as onions, leeks or chives is believed to literally throw carrot fly off the scent. As with most companion planting advice there is conflicting evidence on its effectiveness, so it’s worth experimenting in your own garden.

Strategic sowing times. Carrot flies are active from late spring until autumn. By delaying sowing until early summer, you can sidestep the first generation of the pest. My mistake this year was sowing too soon in my eagerness to get growing!

Avoid thinning. The process of thinning out carrots bruises the foliage and intensifies its scent, which is said to attract carrot flies from some distance away. Sow sparsely instead, so that thinning is not required.


Harvest susceptible crops promptly. In milder areas maincrop carrots can often be left in the ground over winter, but if your garden is prone to carrot fly lift them all in autumn. After an infestation turn the soil over occasionally – this will make it easier for birds to snap up overwintering larvae and pupae.

Crop rotation. Avoid growing carrots in the same spot every year. While this won’t stop carrot flies from flying in afresh each year to lay their eggs, it will avoid the risk of overwintering pupae emerging right in the middle of your crop.

Vertical fences. Carrot flies are low-flying insects, so a vertical barrier of horticultural fleece, fine mesh or polythene that is 90cm (3 feet) high should, in theory, stop them in their tracks. But – and there’s always a but – carrot flies are tiny, lightweight creatures which, even on a calm day, are bound to be buffeted around and lifted up over obstacles by the breeze. If you do try vertical barriers, make your carrot bed long and narrow to make it harder for the flies to land within them.

Grow in containers. Similarly, tall containers or high raised beds may help to reduce the incidence of carrot fly, but aren’t guaranteed to keep them away. If you grow containers of carrots on a second floor balcony however you may never see this pest!

Resistant varieties. There are some resistant varieties of carrot available – for instance, ‘Flyaway’ (which came out tops in Which? Gardening trials), ‘Resistafly’, ‘Maestro’ and ‘Parano’. Remember, they are merely resistant to fly attacks, not immune, so use these varieties in conjunction with other techniques.

The Only Surefire Way to Prevent Carrot Fly

The only guaranteed way to prevent carrot fly is to stop them from getting anywhere close to your carrots and other susceptible crops. In practice, this means draping row covers of horticultural fleece or very fine insect-proof netting over your carrots, either directly on top of the crop or suspended on hoops of wire or plastic. This must be done as soon as the crop is sown, and should only be removed very briefly to weed and harvest. Make sure to secure the edges of the cover so there are no gaps. Ideally, dig the edges 5cm (2in) into the soil.


Pest attacks are always disheartening, none more so than when they completely ruin the crop you’ve been so looking forward to harvesting and eating. But with good pest prevention techniques, carrot fly will soon be a thing of the past in my garden – and hopefully yours, too.

Don’t forget to report any carrot fly – or any other pests you see – to the Big Bug Hunt and help us to develop a pest prediction service so you can take action to protect your crops before pests strike.

Plants Related to this Article

Bugs, Beneficial Insects and Plant Diseases

< All Guides

Garden Planning Apps

If you need help designing your vegetable garden, try our Vegetable Garden Planner.
Garden Planning Apps and Software

Vegetable Garden Pest Warnings

Want to Receive Alerts When Pests are Heading Your Way?

If you've seen any pests or beneficial insects in your garden in the past few days please report them to The Big Bug Hunt and help create a warning system to alert you when bugs are heading your way.

Show Comments


"How do farmers and commercial growers prevent damage by carrot fly. Surely they must use some kind of chemical treatment. Carrots in shops are always clean as a whistle."
James Taylor on Saturday 31 March 2018
"Hi James. Some areas are less affected by carrot fly than others, and some farmers will use row covers to prevent them, while others will unfortunately resort to pesticides. But a big reason the carrots in shops look so good is because any that are less than perfect are discarded before they get anywhere near the shop floor. Wastage of fresh produce that may be slightly blemished (or even just not perfectly shaped) is a major issue for farmers supplying supermarkets."
Ann Marie Hendry on Tuesday 3 April 2018
"This is a helpful post in all but one way - you give the height that carrot fly will get to as 36cm (3 feet). Presumably you mean either 36 inches which is 3 feet approximately, or 36cm which is 1 foot ..... which is it meant to be? Many thanks "
Devon Maid on Monday 28 January 2019
"Whoops - thanks Devon. We've fixed this now. "
Ann Marie Hendry on Tuesday 29 January 2019
"I was allways taught to only thin carrots when it is raining,it works for me in Staffordshire, or have I been lucky"
phil on Wednesday 27 March 2019
"Excellent and scary post, as it highlights one more thing I forgot existed. Thanks for covering a more permaculturally proper method of dealing with them. Using different crops in the guild, and avoiding monocrops is sure one way to start. Hopefully people are realising the polluting and toxic (to everyone, animals, soil and groundwater (nitrates)) effects of using chemically derived and manmade pesticides."
Marlon van der Linde on Thursday 26 September 2019
"Glad you enjoyed it Marlon! I do think more people are starting to realise that throwing pesticides at a problem isn't effective in the long term, as well as being harmful now and in the future."
Ann Marie Hendry on Wednesday 2 October 2019
"I sow my carrots each year in straight rows, weed, over looks good . result carrots like pencils. My neighbour just throws seeds down rakes in little weeding ...results perfect carrots. Therefore the local supermarket will continue supplying me with their carrots....Shame"
David on Wednesday 15 January 2020
"Carrots can be finicky David, but don't lose heart! Light, uncompacted soil (ideally sandy soil) and plenty of water will help them to produce chunky roots. And perhaps ask your neighbour what variety he's growing!"
Ann Marie Hendry on Sunday 19 January 2020
"Hi I sow my carrots under frames 2feet high and covered with veggie mesh and put grass clippings 2inches deep round the sides. I read somewhere that the carrot root fly doesn’t appear till about after 7am so I get up at 5 am to weed and thin and have the frames back in place by 6.30 It seems to be working but I would like to know without getting up at the crack of dawn the best time to harvest a few at a time as it takes a bit of effort to get the frames back in place as the plants are now quite tall."
Margaret Miller on Wednesday 15 July 2020
"Wow Margaret, 5am - that's showing some serious dedication to your carrots! I don't go to such lengths but just try to make sure covers are off for the minimum amount of time possible and replace promptly when I'm done weeding or harvesting. Using a low-nutrient mulch such as leafmould or shredded bark between the rows will help keep weeds down and minimise the amount of times you need to remove covers for weeding. Also, if you sow thinly you shouldn't need to pull out excess seedlings too often. It's not a perfect system, but it can work well."
Ann Marie Hendry on Friday 17 July 2020
"Is there any particular times of the year when the carrot fly is most dangerous? I have been told that May is bad. Is there any truth in the story that they stop being a danger after July or August?"
Tom Stove on Friday 21 August 2020
"Hi Tom. Carrot fly are around from late spring and will produce at least two generations over the summer - occasionally three - so they can persist into the beginning of autumn. "
Ann Marie Hendry on Friday 21 August 2020
"I grow my carrots under micro mesh but some of them still get attacked by carrot fly despite a 4 year crop rotation. I am convinced the carrot root fly maggot survives in the soil. I have noticed that on occasions the damage to the carrot is 10 cm below the soil surface and not hear the top of the carrot."
Paul Schmoeger on Thursday 5 November 2020
"I believe that planting marigolds next to your carrots will deter the carrot fly...don't know if there is any proof that it works."
Patrick O'Shea on Monday 9 November 2020
"It's possible that it could, Patrick. The scent of some crops could distract the carrot fly and make it harder for them to locate your carrots. It would be worth growing a row of marigolds for every row or two or carrots to see if it works for you."
Ann Marie Hendry on Tuesday 17 November 2020
"This is the first time I've grown carrots for 20 years!! (haven't done any serious veggie growing for about five years). They're quite thick. Planted 11th Aug.20. Two rows about a metre long and the rows are 25 cm apart. Every time I water them, a heap of small white insects flies up and about. Are they carrot flies? So far the carrots are ok. I've only picked them over twice in that time. A few are stunted but most are ok so far. I think the next picking will probably be the last. I'm just wondering what to put there next. I had no idea the carrot fly could do so much damage. I'm guessing the next batch I put in (in a different spot) might not do as well, due to the flies having found my garden! I'm in western Sydney. The variety I planted is "Early Nantes 2". "
Winny on Wednesday 9 December 2020
"Hi Winny. Carrot fly are dark-coloured flies - see the picture in the article above - so it sounds like your carrots may possibly have whitefly. You can find a guide and article about whitefly on this website using the search box at the top of the page. One option once you've lifted all your carrots would be to mulch the ground with plenty of compost or well-rotted manure and plant squashes. Or if you can spare the space, why not grow some flowers like calendula that will attract pest predators who will hopefully feast on your whitefly?"
Ann Marie Hendry on Wednesday 9 December 2020
"Are nematode treatments effective against carrot fly larvae? I see them on sale, but that's not quite the same as knowing they are worth buying."
Nile on Wednesday 28 July 2021
"I haven't tried nematodes Nile, so can't comment on their effectiveness I'm afraid. I'm willing to bet that covering your carrots with fine mesh netting will give better results though."
Ann Marie Hendry on Tuesday 3 August 2021
"Is it safe to compost carrots which have root fly damage?"
Jan on Friday 29 October 2021
"Absolutely Jan. There's a good chance that any root fly still in the carrots will become dinner for your compost heap's predators."
Ann Marie Hendry on Tuesday 9 November 2021
"does perpermint stop carrot fly "
roderick scott on Thursday 3 February 2022
"to prevent carrot fly can you plant them in hanging baskets?"
Lorraine Moore on Monday 9 May 2022
"They'd need to be pretty deep hanging baskets for most varieties Lorraine, however there are some small, spherical-rooted carrots (eg the variety 'Paris Market') that would work. "
Ann Marie Hendry on Wednesday 11 May 2022
"With a raised bed well composted and light sandy soil I crow 6 metres of carrot seed tape (Nantes 2/3) every year. I have learned to accept and expect around 10% of affected carrots but to do very little about the problem. Would netting and or nematodes bring 100%, or is it impossible to eliminate carrot fly altogether?"
Gary Payne on Tuesday 30 August 2022
"Covers of fine mesh netting is the most reliable way to prevent carrot fly. It has been shown that larvae hatched a couple of feet away from a carrot crop can still find their way to the roots, so it's important to bury the edges of the netting into the soil so they can't just crawl under it. "
Ann Marie Hendry on Thursday 1 September 2022
"I have in the past sprayed my carrots with a solution of garlic in water also I’ve tried chest inhalant They both disguise the smell of the carrot which attracts the fly. Also a old gardener told me to put liquid bleach in the drill before sowing to destroy any eggs left in soil despite rotation this can happen. Chemical I know but you pay your money and you take your choice so to speak."
Philip Davis on Saturday 9 September 2023

Add a Comment

Add your own thoughts on the subject of this article:
(If you have difficulty using this form, please use our Contact Form to send us your comment, along with the title of this article.)

(We won't display this on the website or use it for marketing)


(Please enter the code above to help prevent spam on this article)

By clicking 'Add Comment' you agree to our Terms and Conditions