Apple Maggot, or Railroad Worm, an insect larva that infests apples. The adult is a fly about one-fourth of an inch (6 mm) long, with a wingspread of about one-half inch (13 mm). The female lays eggs in the flesh of the apple, where they hatch as white larvae. The larvae feed on the fruit, leaving a winding burrow that resembles a railroad track. The fruit breaks down into a brown, pulpy mass. When infested apples drop from the tree to the ground, the maggots burrow into the soil, where they spend the winter in the pupal stage.

The apple maggot is found from Nova Scotia south to Florida and west to Texas. It can be controlled with pesticides.

The apple maggot is Rhagoletis pomonella of the family Tephritidae.