You walk over to check on your tortoise, and a tiny cloud of little flies rises from the enclosure. It is frustrating, and it can make you worry about your tortoise’s health. Those little flies are usually fungus gnats or fruit flies, and they are not just annoying, they can stress your tortoise and signal that the habitat needs a refresh. The good news is you can get rid of them and keep them away with simple, tortoise-safe methods. Here is exactly how to clean up the problem and prevent it from coming back.
1. Understand Why the Flies Are There in the First Place
Little flies in a tortoise table are almost always attracted to moisture and decaying organic matter. Fungus gnats love damp soil and rotting wood, while fruit flies go for overripe fruits and vegetables left in the enclosure. Your tortoise’s warm, humid hide and leftover greens create a perfect breeding ground. The first step is to check your setup. If the substrate stays wet on the surface or if you see mushy food bits buried in the corners, you have found the source. Check our tortoise habitat cleaning guide for a full breakdown of daily and weekly routines.
2. Change Your Substrate and Spot Clean Daily
The most effective way to stop flies is to remove their food and breeding spots. Use a substrate that does not hold too much moisture, like a mix of organic topsoil and play sand or coconut coir. Avoid pure peat moss or bark chips that stay wet for days. Every day, pick out any visible droppings, uneaten food, and wet patches of substrate. Do a full substrate change every four to six weeks, or sooner if you see flies. When you replace the substrate, wash the entire table with a reptile-safe disinfectant. Dry it completely before adding fresh substrate. A dry surface means no fly eggs can hatch.
3. Manage Your Tortoise’s Food to Reduce Attractants
Fruit flies zero in on leftover melon, berries, or tomatoes. Feed your tortoise in a shallow dish or on a flat rock that you can remove and wash after each meal. Do not leave fresh food in the enclosure for more than two to three hours. If your tortoise does not finish its meal, take the leftovers out immediately. For dry foods like pellets or hay, store them in an airtight container away from the enclosure. Even a small crumb of wet food can attract a swarm. Our tortoise diet and feeding tips article has more on portion sizes and safe foods.
Place a small dish of apple cider vinegar with a drop of dish soap near the enclosure. The flies are attracted to the smell, but the soap breaks the surface tension so they sink. This catches adults without any chemicals near your tortoise.
4. Improve Airflow and Reduce Humidity in the Table
Fungus gnats thrive in stagnant, humid air. Your tortoise does need a humid hide, but the rest of the table should have good ventilation. If your table has a solid lid or glass top, add mesh vents or leave a small gap. A small, quiet fan placed nearby can circulate air without stressing your tortoise. Keep the ambient humidity in the room around 40 to 50 percent. If you use a spray bottle to mist the enclosure, only mist the hide area and let the rest dry out. Too much moisture everywhere is an invitation for gnats. Read our humidity and ventilation guide for specific tips on balancing moisture for your species.
5. Use Natural Traps and Barriers
You can set up simple traps that are safe for your tortoise. Yellow sticky traps placed outside the enclosure (or inside if your tortoise cannot reach them) catch adult gnats. Another trick is to cover the top of the substrate with a thin layer of fine sand or diatomaceous earth. This dries out the top layer and makes it hard for gnats to lay eggs. Just be sure the diatomaceous earth is food-grade and not the pool filter type. Replace sticky traps weekly and check the sand layer for dampness. These methods work without any sprays or chemicals that could harm your tortoise.
A dry, clean habitat is the only fly repellent your tortoise will ever need.
6. Know When to Do a Deep Clean and Reset
If you have tried all the above and the flies keep coming back, it is time for a full reset. Remove your tortoise to a temporary holding bin. Take everything out of the table, including all decorations, water dishes, and hides. Scrub the table with a diluted bleach solution (one part bleach to ten parts water), then rinse thoroughly with water and let it dry in the sun for a full day. Bake any wood decorations at 200 degrees Fahrenheit for 30 minutes to kill hidden eggs. Replace all substrate with a fresh batch. After the reset, stick to the daily cleaning routine. If you notice any health changes in your tortoise, like eye irritation or loss of appetite, talk to your vet. Flies themselves are usually just a nuisance, but they can carry bacteria if the habitat is very dirty.