
Affiliate disclosure: As an Amazon Associate I earn from qualifying purchases. This article contains affiliate links.
Kitchen scraps are a valuable composting ingredient, but they can also attract flies, vermin and other pests if they are left exposed or if the bin becomes smelly and wet. The RHS guidance is clear: the most effective way to compost kitchen waste without pest problems is to use an enclosed system, avoid the foods pests are drawn to, and bury or cover fresh scraps as soon as you add them. No method can guarantee a completely pest-free bin, but these practices greatly reduce the risk.
Table of Contents
Choose an enclosed bin or wormery
An open heap is not the best place for regular kitchen scraps. A purpose-made compost bin with a lid, or a wormery, gives much better control. The RHS advises that a successful compost bin should exclude rain, retain some warmth, allow drainage and let in air. A lid helps contain odours and reduces access for flies and larger pests. Wormeries are particularly suited to kitchen waste: they usually have at least two compartments, with a lower sump to collect liquid and an upper area where the worms work. The lid on a wormery also helps keep the contents moist and reduces smells, provided the system is not neglected.
Site the bin or wormery in a sheltered spot in partial or full shade, with support and drainage suited to the chosen system. An open-bottomed compost bin benefits from soil contact; a wormery with a liquid sump should be installed as its manufacturer directs. A conventional bin can work on a hard surface if it has suitable drainage and ventilation; adding soil is not a substitute for either. For a wormery, a shed or sheltered corner is better than a hot, exposed position, because composting worms are most active between 18–25°C and their activity declines below 10°C or above 30°C. If you keep a wormery indoors, be aware that a neglected wormery can sometimes produce odours, so it needs regular attention.
Know which scraps attract pests
The single most important rule is to keep animal products out of the bin. The RHS specifically warns against adding dairy products, fat, grease, meat, fish and bones, because these are likely to attract unwanted pests and flies. This applies to both conventional compost bins and wormeries. Oily foods should also be avoided for the same reason.
Stick to plant-based kitchen scraps. For an ordinary compost bin, use raw fruit and vegetable scraps, tea leaves or home-compostable tea bags, eggshells and coffee grounds. The wormery guidance also permits small amounts of some cooked vegetables and bread; do not transfer that permission to an ordinary open heap. In a wormery, use onions, shallots, leeks, garlic and citrus sparingly and follow the supplier’s feeding guidance; these limits need not be applied identically to a conventional mixed garden heap. You can also add limited amounts of newspaper, shredded office paper and cardboard, but not glossy magazines. Small amounts of soft garden waste, such as annual weeds and leaves, are fine, but avoid large quantities of tough or woody material, which slows the system down.
For a conventional compost bin, balance green and brown materials. The RHS suggests roughly 25–50 per cent soft, leafy green material and 75–50 per cent chopped woody brown material. Avoid letting any one material dominate, especially grass clippings, which can turn into a slimy, smelly mass on their own. A well-balanced bin is less likely to become anaerobic and smelly, which is what attracts pests.
Bury or cover every addition
Fresh kitchen scraps are the main attractant. The RHS recommends two simple techniques to hide them from pests. In a wormery, bury the food within the existing compost to create feeding pockets, or cover the new waste with a layer of damp newspaper. In a conventional bin, cover kitchen waste with garden waste or a layer of brown material such as shredded paper or cardboard. This reduces odours and makes it harder for flies to reach the food.
Add small amounts often rather than large quantities at once. Chop scraps into smaller pieces so worms and microorganisms can process them faster. If the waste is not being eaten, stop feeding for a few days until the worms start to work through the top layer. Overloading is a common cause of smells, which then attract flies and possibly vermin. If you have more kitchen waste than the system can handle, remove the excess and dispose of it elsewhere, or consider a second bin.
Keep moisture and air in balance
A wet, compacted bin smells, and smells attract pests. The RHS advises that compost should feel like a wrung-out sponge. If a wormery becomes too wet, drain off the excess liquid from the sump and add some shredded paper or card to absorb moisture and increase air circulation. Check that the drainage holes are clear. For a conventional bin, cover it to protect against heavy rain and mix in more brown waste such as chopped woody material, woodchip, straw or shredded paper if the contents are slimy or smelly.
Turning or gently forking the compost introduces air, which prevents the anaerobic conditions that cause unpleasant odours. In a wormery, occasionally fork the compost over gently with a hand fork to check that the worms are present and healthy. In a conventional bin, turn the contents several times a year if possible. If a wormery still smells, check for uneaten food and blocked drainage before assuming acidity. Use a supplier-approved calcium-carbonate conditioner only if needed and at its stated rate; do not add lime routinely or use caustic quicklime or hydrated lime. Do not use chemical fly sprays in a wormery, as they can harm the worms.
What to do if pests appear
Fruit flies are the most common nuisance. They are harmless but annoying. Burying new waste in the decomposed material or covering it with damp newspaper can reduce access for fruit flies. If too much waste has been added for the worms to cope with, the wormery may start to smell, which can attract flies and possibly vermin. Remove and dispose of excess or undigested food, then wait until the worms start digesting the top layer before adding more.
In a conventional bin, if flies appear, cover any exposed kitchen waste with garden waste and check that the contents are not too damp, because insufficient aeration encourages flies. Persistent swarms are a reason to check for exposed food or overfeeding. Remember that no bin is completely pest-proof; these measures reduce the likelihood of problems, but you may still see the occasional fruit fly, especially in warm weather.
Useful product types
You do not need a specialised product to compost kitchen scraps safely, but the right container makes pest prevention much easier. Three types are worth considering:
- Enclosed compost bin with a tight-fitting lid – a compact plastic bin is often a good choice for small gardens. Check that the lid closes securely without gaps, that there are drainage holes or an open base, and that the bin is large enough for your waste but not so large that it becomes difficult to turn.
- Wormery with a drainage sump and lid – look for a model with a tap or outlet for draining liquid, a well-fitting lid, and enough surface area for the worms to work quickly. Check that the sump is easy to empty and that the trays or compartments fit together without leaving gaps.
- Kitchen caddy with a lid – a small lidded container for collecting scraps indoors before taking them to the bin. Choose one with a seal that contains odours and is easy to clean. Empty it frequently rather than letting scraps sit for days.
Before buying any bin or wormery, check the lid fit, drainage, and ease of access. No product can guarantee freedom from pests. Where rats are a concern, a lid alone is insufficient: inspect the base and any damage, and use a compatible rodent-resistant base that preserves drainage and air access. Persistent rat activity needs an appropriate local pest-control response.
Useful products for this job
The links below open Amazon UK product searches. Check the exact item, seller, current price and compatibility before buying.
- Enclosed compost bin with tight-fitting lid: An enclosed bin with a lid helps contain odours and reduces access for flies and larger pests, making it easier to compost kitchen scraps safely. Check that the lid closes securely without gaps, that there are drainage holes or an open base, and that the bin is large enough for your waste but not so large that it becomes difficult to turn. Search Amazon for Enclosed compost bin with tight-fitting lid.
- Wormery with drainage sump and lid: A wormery is designed for kitchen waste and its lid and sump help manage moisture and smells, reducing the risk of attracting pests. Look for a model with a tap or outlet for draining liquid, a well-fitting lid, and enough surface area for the worms to work quickly. Check that the sump is easy to empty and that the trays or compartments fit together without leaving gaps. Search Amazon for Wormery with drainage sump and lid.
- Kitchen caddy with lid: A lidded caddy keeps scraps contained indoors between frequent trips to the compost bin; regular emptying and cleaning control odours. Choose one with a seal that contains odours and is easy to clean. Empty it frequently rather than letting scraps sit for days. Search Amazon for Kitchen caddy with lid.
Related garden guides
- How to Build a Compost Heap: A Complete Guide for UK Gardeners (2026)
- When is compost ready to use? Signs to check
- More greenhouse & growing guides
Sources and further guidance
Guidance researched in September 2026. The feature image is an AI-generated illustration. Product guidance is based on published information, not hands-on testing.
