How does a fly brain work? A small world of 140,000 neurons
Short answer: An adult fruit fly brain has about 140,000 neurons and 50 million synapses (FlyWire, 2024). More than half of its neurons process vision. Smells are sorted in the antennal lobe and learned in the mushroom body; the central complex keeps track of heading like a compass. Decisions travel through descending neurons to the nerve cord in the body, and from there to the muscles.
A brain smaller than a pinhead
The human brain has about 86 billion neurons; the fruit fly's has around 140,000. Yet this tiny brain walks, flies, escapes predators, courts, learns smells and finds its way. In 2024 the FlyWire team mapped the entire brain of an adult female fly neuron by neuron: 139,255 neurons and about 50 million synapses between them. We explain how such maps are made in What is a connectome?
Vision: the brain's biggest job
Each compound eye is made of 700–800 small units (ommatidia), and more than half of the brain's neurons sit in the optic lobes that process vision. The fly detects motion, colour and looming objects with separate circuits. Neurons such as LPLC2 and LC4 that respond to an approaching shadow can trigger a thick descending neuron called the giant fibre (DNp01), and the fly jumps into the air within milliseconds. That pathway is behind the speed anyone who has tried to catch a fly by hand knows well.
Smell: the antennal lobe and two routes
Each olfactory receptor neuron on the antennae usually carries a single type of odour receptor. Neurons with the same receptor connect to the same small ball of synapses (a glomerulus) in the antennal lobe; around fifty glomeruli encode a smell as a pattern. From there the information splits: the lateral horn carries innate responses (such as moving away from a dangerous smell), and the mushroom body carries responses learned through experience.
Learning: the mushroom body
Each side of the mushroom body has about 2,000 Kenyon cells, and every smell activates only a small fraction of them. Dopamine released at the moment of reward or punishment changes the link between that smell and behaviour. The details are in How do flies learn smells?
Navigation: the compass in the brain
A ring-shaped part of the central complex in the middle of the brain (the ellipsoid body) works like a compass. In a 2015 experiment with flies walking in virtual reality, a bump of activity in this ring tracked the direction the fly was facing and kept updating from the fly's own turns even when the lights went out. A hungry fly that finds food searches around the spot in loops, and keeps searching around the same point even after the food is removed. In other words, the fly keeps track of "where am I" by counting its own steps (path integration).
From brain to muscles
Decisions made in the brain travel through descending neurons in the neck to the ventral nerve cord in the thorax. The nerve cord is like a spinal cord: the circuits that drive the legs and wings are there, and ascending neurons carry sensory information back up to the brain. The male fly map published in 2025 (MaleCNS) covers the brain and this nerve cord together: about 166,000 neurons.
Sources
- Dorkenwald S. et al. (2024). Neuronal wiring diagram of an adult brain. Nature. https://pmc.ncbi.nlm.nih.gov/articles/PMC11446842
- Seelig JD, Jayaraman V (2015). Neural dynamics for landmark orientation and angular path integration. Nature 521: 186–191.
- Kim IS, Dickinson MH (2017). Idiothetic path integration in the fruit fly Drosophila melanogaster. Current Biology. https://resolver.caltech.edu/CaltechAUTHORS:20170725-092327425
- Aso Y. et al. (2014). The neuronal architecture of the mushroom body provides a logic for associative learning. eLife 3: e04577. https://elifesciences.org/articles/04577
- Janelia FlyEM and partners: Male CNS connectome (MaleCNS). https://male-cns.janelia.org/