The squash vine borer is one of the most destructive pests in the vegetable garden, because it works from the inside. The adult is a moth that lays eggs on the stems of squash, zucchini and pumpkins, and the caterpillar bores into the stem and eats it from within. The plant looks healthy one day and wilts suddenly the next, and by the time you see the damage, the borer is already inside. It is a difficult pest, but it can be managed — with prevention first, and with a little surgery if it gets in.

This guide covers how to identify the squash vine borer, what damage it causes, how it lives, and how to control it organically.

Identifying the squash vine borer

The adult squash vine borer is a clearwing moth — a day-flying moth that looks more like a wasp than a moth, with a black body, orange markings and clear wings. It is about 2 cm long and is often seen hovering around squash plants in late spring and early summer, laying eggs.

The caterpillar is a fat, white, grub-like larva with a brown head, about 2–3 cm long when fully grown. You will rarely see it, because it lives inside the stem.

Look for:

  • A squash or zucchini plant that wilts suddenly, even though the soil is moist — often the whole plant, or one runner, wilts and does not recover
  • A small hole in the stem near the base, with yellowish, sawdust-like droppings (frass) around it
  • A swollen, cracked section of stem near the base, where the borer is feeding inside
  • The adult moth — black and orange, wasp-like — hovering around the plants in late spring and early summer
  • The caterpillar itself, found by slitting open a damaged stem — a white grub with a brown head

The sudden wilting is the most reliable sign. If a squash plant wilts in the morning and does not recover by evening, and the soil is moist, check the stem at the base for a hole and frass. If you are unsure, our pest identifier helper can help you work through the symptoms, and your local extension service can confirm an identification.

Squash vine borer damage is sometimes confused with bacterial wilt, which is spread by cucumber beetles and also causes sudden wilting. The difference is the hole and frass at the base of the stem: bacterial wilt has no hole and no frass. Squash bugs also cause wilting, but they are visible on the leaves and stems. If there is a hole with sawdust-like droppings at the base, it is the vine borer.

The squash vine borer lifecycle

The lifecycle starts with the adult moth, which emerges from the soil in late spring or early summer and lays small, reddish-brown eggs singly on the stems and leaf stalks of squash plants, usually near the base. The eggs hatch in about a week, and the young caterpillars bore straight into the stem, where they feed for four to six weeks, eating the tissue that carries water and nutrients up the plant.

When fully grown, the caterpillar leaves the stem, burrows into the soil and pupates, forming a dark brown cocoon. The moth emerges a couple of weeks later in warm climates, giving a second generation, or the pupa overwinters in the soil and emerges the following spring. In most areas there is one main generation a year, with a partial second generation in warm climates.

Because the pupae overwinter in the soil, the risk is highest where squash was grown the previous year, and where the soil has not been cultivated. A clean, well-prepared bed and crop rotation are the foundation of prevention.

Damage signs

The borer damages the plant by eating the stem from the inside, cutting off the flow of water and nutrients. The first sign is usually wilting — a runner, or the whole plant, wilts suddenly and does not recover, even though the soil is moist. The stem near the base swells, cracks and shows the entry hole with yellowish frass.

If the borer is not removed, the plant dies. A single borer can kill a young plant; a larger plant may survive with one borer but will be weakened and produce poorly. Zucchini, yellow squash, pumpkins and other Cucurbita pepo varieties are the most vulnerable. Butternut squash and other Cucurbita moschata varieties are more resistant, because their stems are solid rather than hollow — the borer finds it harder to tunnel through them.

Organic-first control, in order

Work through these steps in order, starting with prevention, which is far more effective than cure.

1. Inspect regularly. Check the stems of squash plants at least twice a week from late spring onwards, looking for the moth, for eggs on the stems and for the first signs of wilting. Early detection is everything: a borer found in the first few days can be removed; a borer that has been feeding for weeks has already done its damage.

2. Use row covers. The best prevention is a fine insect mesh or row cover over the squash bed from planting until flowering. It physically blocks the moth from laying eggs, and it works completely. Remove the cover when the plants begin to flower, so pollinators can reach the flowers — or hand-pollinate and keep the cover on longer. This is the single most reliable control for squash vine borer.

3. Wrap the stems. Wrapping the base of the stem with aluminium foil, or burying the stem under soil at several points along its length, can deter the moth from laying eggs there. It is not foolproof, but it helps, especially combined with other methods. Burying the stem also encourages it to root at the buried points, which gives the plant a backup water supply if the main stem is damaged.

4. Grow resistant varieties. Butternut squash and other Cucurbita moschata types are much less vulnerable than zucchini and pumpkins, because their stems are solid. If vine borer has been a serious problem in your garden, growing more butternut and less zucchini is a practical response.

5. Remove the borer by surgery. If a plant is wilting and you find the entry hole, you can sometimes save it. Slit the stem lengthwise with a sharp knife, starting at the hole and working along the stem until you find the caterpillar, and remove it. Then bury the slit section of stem under moist soil, so it can root and recover, and water the plant well. This sounds drastic, but squash plants recover from stem surgery surprisingly well if the damage is caught early.

6. Encourage beneficial insects and use traps. Parasitic wasps and flies attack the borer, and birds eat the moths. Plant flowers that attract predators, and avoid spraying anything that kills them. Yellow sticky traps can catch some adult moths, though they are not a reliable control on their own.

7. Least-toxic sprays, last. Bacillus thuringiensis (Bt) can be sprayed on the stems to kill young caterpillars before they bore in, but it must be applied repeatedly and it washes off in rain, so it is only partly effective. Some gardeners inject Bt solution directly into the stem with a syringe, which can kill a borer already inside — this is a recognised technique, though it takes care and practice. Always read and follow the label, use only products approved in your area, and wash produce before eating. Never use a broad-spectrum insecticide for vine borer: it kills the predators and pollinators, and it cannot reach a caterpillar that is already inside the stem.

If you are unsure which product is appropriate, check your local extension service for recommendations in your area.

Prevention

Prevention is mostly about row covers, rotation and resistant varieties. Cover the squash bed with fine mesh from planting until flowering. Rotate squash crops — do not plant them in the same spot year after year, because the pupae overwinter in the soil. Till the soil in autumn to expose overwintering pupae to birds and weather. Grow butternut and other resistant varieties alongside or instead of zucchini. And clear away old squash vines at the end of the season rather than leaving them to rot in the bed.

Plant squash in a sunny, airy spot with good airflow, water steadily and feed moderately. Mulching keeps watering steady and the soil healthy, which helps plants recover from light damage. Our fertiliser calculator can help you avoid over-feeding.

When is it a serious problem vs cosmetic?

Squash vine borer is rarely cosmetic. A single borer can kill a young plant, and even a large plant will be seriously weakened. Any sign of wilting with a hole and frass at the base should be treated as a serious problem and acted on immediately — remove the borer by surgery, bury the stem, and water well.

The one situation where it is less serious is a large, well-established plant with multiple runners, where one runner wilts but the rest of the plant is healthy. In that case, remove the damaged runner, bury the healthy stems so they root, and the plant may still produce.

Frequently asked questions

Can a squash plant recover from vine borer? Yes, sometimes — if the borer is removed early by surgery, and the damaged stem is buried under moist soil so it can root. The sooner you act, the better the chance. A plant with several borers, or one that has wilted completely, is unlikely to recover.

What does the squash vine borer moth look like? It is a day-flying moth that looks like a wasp: black body, orange markings, clear wings, about 2 cm long. It hovers around squash plants in late spring and early summer, laying eggs on the stems.

Do vine borers attack cucumbers? They mainly attack squash, zucchini and pumpkins. Cucumbers and melons are rarely attacked, though they have their own pests — see our guide to cucumber beetles.

Can I prevent vine borer with a row cover? Yes — a fine mesh cover from planting until flowering is the most reliable prevention. Remove it when flowers appear so pollinators can reach them, or hand-pollinate and keep it on.

Is butternut squash really resistant? Yes, much more resistant than zucchini or pumpkin, because its stems are solid rather than hollow. It is not immune, but borers find it far harder to tunnel through, and it is a practical choice if borer has been a serious problem.

The bottom line

Squash vine borer is a difficult pest because it works from inside the stem, so prevention matters more than cure. Cover the bed with fine mesh until flowering, rotate crops, grow resistant varieties such as butternut, inspect twice a week, and if a borer gets in, remove it by surgery and bury the stem. For more pest guidance, see the guides hub and the garden tools.