F
Species Profile

Fruit Fly

Drosophila melanogaster

The tiny fly that mapped our genes
iStock.com/Akchamczuk

Fruit Fly Distribution

Click a location to explore more animals from that region

Origin Location

This map shows the native origin of the Fruit Fly. As a cosmopolitan species, they are now found worldwide.

Loading map...
fruit flies on banana

At a Glance

Found Worldwide
Also Known As Vinegar fly, Pomace fly, Fruit fly, Small fruit fly, Fermenting fruit fly
Activity Crepuscular+
Lifespan 14 years
Weight 1.2E-6 lbs
Status Not Evaluated
Did You Know?

Adults are typically ~2-3 mm long; males are smaller with a darker, rounded abdominal tip and have sex combs on the forelegs.

Scientific Classification

A small drosophilid fly widely used as a model organism in genetics and developmental biology; commonly encountered around fermenting/overripe fruit and sugary liquids.

Kingdom
Animalia
Phylum
Arthropoda
Class
Insecta
Order
Diptera
Family
Drosophilidae
Genus
Drosophila
Species
Drosophila melanogaster

Distinguishing Features

  • Very small fly (~2–4 mm)
  • Often tan/yellow-brown body with red eyes (typical wild-type)
  • Attracted to fermenting/overripe fruit and yeast odors
  • Rapid life cycle (about 10 days at warm lab temperatures)

Physical Measurements

Males and females differ in size

Length
♂ 0 in (0 in – 0 in)
Weight
♂ 0 lbs (0 lbs – 0 lbs)
♀ 0 lbs (0 lbs – 0 lbs)
Top Speed
3 mph
Drosophila peak flight 1.5 m/s

Appearance

Primary Colors
Secondary Colors
Skin Type Chitinous arthropod exoskeleton (sclerotized cuticle) with dense mechanosensory setae/bristles; membranous hyaline wings; larvae are soft-bodied with a thin, flexible cuticle.
Distinctive Features
  • Adult body length typically ~2-3 mm (commonly reported range for D. melanogaster adults in laboratory and field descriptions).
  • Diptera anatomy: one functional pair of wings (mesothoracic) plus a reduced hindwing pair as halteres (club-like gyroscopic organs) behind the wings.
  • Large red compound eyes; short antennae bearing a plumose arista (feather-like arista characteristic of Drosophila).
  • Thoracic bristle pattern used in genetics/morphology work (e.g., prominent dorsocentral and scutellar bristles); body covered with short setae.
  • Abdomen with clear segmental banding; posterior segments often darker, especially in males.
  • Rapid development at standard lab conditions: egg-to-adult typically ~9-10 days at 25 °C (commonly cited '~10 days at 25 °C' in D. melanogaster laboratory biology references).
  • Typical adult lifespan in lab culture often on the order of weeks: ~30-50 days at 25 °C is commonly reported, with longer lifespans at cooler temperatures (used in aging studies).
  • Behavior/ecology: strongly attracted to fermenting/overripe fruit and yeast volatiles; adults frequently aggregate at sugary/fermenting substrates; oviposition on yeast-rich decaying fruit supports very rapid reproduction and large population turnover.
  • Model-organism traits relevant to appearance scoring: many visible mutant phenotypes are tracked via eye color, wing venation/shape, bristle patterning, and body pigmentation.

Sexual Dimorphism

Sexes are distinguishable externally in adults, most reliably by abdominal shape/pigmentation and male foreleg sex combs; females are typically larger with a more elongated, pointed abdomen.

♂
  • Forelegs bear sex combs (rows of modified black bristles) on the first tarsal segment(s), used during courtship/mating.
  • Posterior abdominal segments are more uniformly dark/blackened; abdomen tip is more rounded.
  • Generally slightly smaller body size than females in typical lab strains.
♀
  • No sex combs on forelegs.
  • Abdomen usually shows clearer banding with lighter intersegmental areas; terminal abdomen more pointed (ovipositor-bearing).
  • Generally slightly larger body size than males in typical lab strains.

Did You Know?

Adults are typically ~2-3 mm long; males are smaller with a darker, rounded abdominal tip and have sex combs on the forelegs.

At 25°C, development from egg to adult is about ~9-10 days (≈1 day embryo, ≈4 days larva, ≈4-5 days pupa).

A single female commonly lays on the order of ~400-500 eggs over her lifetime (often tens per day early in adulthood).

Like all Diptera, it has one functional pair of wings; the hindwings are reduced to halteres-gyroscopic organs that stabilize flight.

Its genome is ~165 million base pairs, organized into 4 chromosome pairs (3 autosomes + sex chromosomes).

Large "polytene" chromosomes in larval salivary glands made gene mapping possible by visible banding patterns under a light microscope.

Multiple Nobel Prizes were awarded for discoveries made using D. melanogaster (e.g., genetic linkage/inheritance, embryonic patterning, circadian rhythm genes).

Unique Adaptations

  • Halteres (Diptera hallmark): specialized mechanosensory organs that detect body rotations and enable agile, stable flight despite tiny size.
  • High-performance olfaction: an expanded set of odorant receptors tuned to fermentation-related volatiles helps locate ephemeral breeding sites quickly.
  • Ethanol tolerance and detoxification: enzymatic pathways (including alcohol dehydrogenase activity) allow survival and reproduction in alcohol-producing substrates.
  • Reproductive diapause (in many populations): females can enter a hormonally regulated, low-reproduction overwintering state under cooler temperatures and short day lengths.
  • Polytene chromosomes: repeated DNA replication without cell division in certain tissues creates oversized chromosomes, enabling cytogenetic mapping and detection of rearrangements.
  • Fast embryonic patterning: tightly regulated developmental gene networks produce reliable body plans on a very short schedule (≈24 hours from egg to larva at 25°C).

Interesting Behaviors

  • Fermentation seeking: adults strongly orient to odors from yeast/overripe fruit (e.g., ethanol, acetic acid, esters) and aggregate at feeding and breeding sites.
  • Courtship ritual: males follow and tap females, extend and vibrate one wing to produce a species-specific courtship song, and lick the female's genital area before attempting copulation.
  • Selective egg-laying: females preferentially oviposit on moist, fermenting substrates rich in yeast; they use chemosensory cues to assess suitability for larvae.
  • Rapid generation turnover: at warm temperatures (around 25°C), populations can boom quickly because development is ~9-10 days and adults can reproduce within a day of eclosion.
  • Grooming circuits: flies perform stereotyped grooming sequences (legs and mouthparts cleaning antennae, wings, and body) crucial for sensory function and flight.
  • Circadian timing: daily activity rhythms (and timing of behaviors like eclosion) are governed by an internal clock entrained by light-dark cycles.
  • Larval foraging and burrowing: larvae tunnel through soft, fermenting material while feeding primarily on yeast and microbes; they switch to "wandering" before pupation.

Cultural Significance

Drosophila melanogaster is an important lab fruit fly. In Morgan's Fly Room it showed chromosome-based inheritance, genetic linkage and mapping, and later helped show segmentation, homeotic genes and circadian rhythms. It's cheap to grow, has visible traits, and a ~10-day generation at 25°C.

Myths & Legends

For centuries in Europe, from Aristotle on, people thought small flies (like Drosophila melanogaster) came from rotting fruit and fermenting liquids—an idea later shown wrong by Francesco Redi's covered-jar experiments.

Fly Room lore tells of Morgan's cramped Columbia lab where swarms of Drosophila melanogaster in milk-bottle cultures and watchful students used tiny mutants (like white-eyed males) to prove genes are on chromosomes.

Drosophila melanogaster's name is a little story: Drosophila means "dew-loving," linked to moist, fermenting places; melanogaster means "black-bellied," noting the male's darker belly tip, a classic naming habit.

Household warning: families say leaving bananas or sweet drinks uncovered will 'summon' fruit flies overnight. This tale comes from the common fruit fly (Drosophila melanogaster)'s taste for fermentation and quick breeding.

Conservation Status

NE Not Evaluated

Has not yet been evaluated against the criteria.

Population Unknown

Life Cycle

Birth 400 larvas
Lifespan 14 years

Lifespan

In the Wild
5–30 years
In Captivity
25–90 years

Reproduction

Mating System Polygynandry
Social Structure Aggregation Group
Breeding Pattern Transient
Fertilization Internal Fertilization
Birth Type Internal_fertilization

Behavior & Ecology

Social Swarm Group: 20
Activity Crepuscular, Diurnal
Diet Detritivore Fermenting overripe fruit colonized by yeast (commonly observed on overripe banana/other soft fruits in domestic settings).
Seasonal Hibernates

Temperament

Gregarious at resources (forms transient aggregations rather than solitary foraging).
Strongly courtship-driven; males actively pursue females and may court repeatedly within aggregations.
Male-male aggression/competition occurs at contested resources and near females; aggression increases with crowding and limited food patches (lab and field observations in D. melanogaster aggression literature).
Non-parental/non-cooperative: no pair bonds, no family care; interactions are brief and context-dependent (feeding, mating, displacement).

Communication

Courtship 'song' produced by male wing vibration Near-field acoustic signal) with pulse and sine components; typical interpulse interval ~35 ms at 25 C (classical measurements in D. melanogaster courtship song; e.g., Bennet-Clark & Ewing, 1967 and subsequent quantifications
Sine component during courtship with a dominant frequency on the order of ~150-200 Hz Temperature-dependent; reported across multiple D. melanogaster song studies
Pheromones/chemical cues: cis-vaccenyl acetate CVA; male-produced) acts in aggregation and mating-related contexts; cuticular hydrocarbons (e.g., 7-tricosene and 7,11-heptacosadiene) contribute to sex recognition and mating decisions (D. melanogaster chemical communication literature, incl. Bartelt et al., 1985 for cVA
Olfactory communication via microbial/fermentation volatiles (yeast odors, ethanol/acetate-related cues) that draw groups to shared hubs; these cues shape aggregation and encounter rates.
Gustatory/tactile cues during courtship: males tap females with forelegs (contact chemosensation) and lick; females use contact cues to accept/reject.
Visual orientation at short range (approach, following) integrated with odor and acoustic cues; important in dense hubs where multiple individuals interact simultaneously.
Mechanosensory cues: wing vibrations and substrate-borne vibrations at very close range can contribute to courtship signaling in crowded conditions.

Habitat

Biomes:
Temperate Forest Temperate Grassland Mediterranean Tropical Rainforest Tropical Dry Forest Savanna Desert Hot Desert Cold +2
Terrain:
Plains Valley Coastal Island Hilly Plateau Mountainous Riverine +2
Elevation: Up to 9842 ft 6 in

Ecological Role

Microbe-associated detritivore/saprophage in fruit- and plant-decay microhabitats; important vector of fermentation microbes.

Accelerates decomposition and nutrient recycling in rotting fruit/plant material by fragmenting substrate and promoting microbial turnover Disperses yeasts and bacteria among ephemeral fruit resources via external contamination and gut passage (microbial vectoring) Links detrital/microbial production to higher trophic levels as abundant prey for spiders, ants, parasitoid wasps, and other insect predators

Diet Details

Other Foods:
Fermenting and overripe fruit substrates Yeast Bacteria associated with fruit fermentation and rot Plant sap and sugary liquids Plant detritus

Human Interaction

Domestication Status

Wild

Drosophila melanogaster is a wild fly that lives near people and breeds in fermenting or overripe fruit. Not domesticated in the usual way, many lab strains are semi-domesticated after being kept in labs for over 100 years. It became a leading genetics model after T.H. Morgan and is an important lab species and occasional fruit pest.

Danger Level

Low
  • Nuisance/contamination: adults aggregate around fermenting fruit, drains, garbage, wineries/breweries; can contaminate exposed food and beverages.
  • Mechanical transfer: may carry yeasts and surface microbes between substrates (primarily a hygiene/quality issue rather than a human disease-vector of major concern).
  • Allergy/irritation (occupational): lab workers can develop sensitivity to fly proteins, frass, or culture media; may trigger allergic rhinitis/asthma-like symptoms in susceptible individuals.
  • No biting/stinging; does not parasitize humans and is not known as an important vector of human pathogens.

As a Pet

Not Suitable as Pet

Legality: Generally legal and unregulated as a 'pet' in most jurisdictions; commonly shipped as laboratory stocks or feeder cultures. Local rules may apply for importing live insects or laboratory strains; institutions often require biosafety/containment practices to prevent escape.

Care Level: Easy

Purchase Cost: $5 - $25
Lifetime Cost: $20 - $150

Economic Value

Uses:
Biomedical & basic research model organism Education (teaching genetics/development) Biotechnology tool development (transgenesis, gene editing validation) Animal husbandry/terraria (live feeder cultures for small predators) Food/fermentation & household nuisance pest (contaminant of fermenting/sugary products)
Products:
  • research outputs and assays enabled by D. melanogaster (genetic screens, disease models, toxicology)
  • standardized lab stocks/lines (inbred lines, balancer chromosomes, transgenic reporter strains)
  • commercial fly media and culturing supplies
  • live 'flightless fruit fly' cultures (often Drosophila spp., including D. melanogaster lines) sold as feeder insects

Relationships

Related Species 6

Spotted-wing drosophila Drosophila suzukii Shared Genus
Common fruit fly
Common fruit fly Drosophila simulans Shared Genus
Mauritius fruit fly Drosophila mauritiana Shared Genus
Réunion fruit fly Drosophila sechellia Shared Genus
Vinegar fly
Vinegar fly Drosophila hydei Shared Genus
Mediterranean fruit fly Ceratitis capitata Shared Order

Ecological Equivalents 5

Animals that fill a similar ecological role in their ecosystem

Common fruit fly
Common fruit fly Drosophila simulans Shares similar ecology and behavior: found worldwide and often near people; breeds on rotting fruit and other yeast-rich material; and has a fast life cycle (egg to adult about 10 days at 25 °C in D. melanogaster).
Spotted-wing drosophila Drosophila suzukii Overlaps strongly in adult food sources (sugars and yeast on fruit) and in habitat use around fruit crops, but differs by ovipositing in ripening fruit using a serrated ovipositor. Included as a niche-adjacent drosophilid often encountered in similar environments.
Mediterranean fruit fly Ceratitis capitata Occupies a similar fruit-associated niche as other tephritid flies: larvae develop inside fruit, and adults aggregate around fruit odors and sugars. Often co-occurs in orchards and markets where fermenting or damaged fruit are present.
Indian fig fly Zaprionus indianus Another drosophilid frequently found on fermenting fruits. Shares microbial-feeding larval ecology (yeasts and bacteria) and attraction to ethanol and other fermentation volatiles, leading to similar habitat use and seasonal dynamics.
House fly Musca domestica Not fruit-specialized, but ecologically comparable as a small synanthropic dipteran that exploits microbe-rich substrates. Included as a human-associated analogue with overlapping predators and similar urban and rural habitats.

“The fruit fly has a lifespan of 25-50 days.”

Fruit flies are among the most common household pests in the world. When they get into homes and feed on decomposing food, they can be a big annoyance to people. A few species are also agricultural pests and do immense damage to crops. But fruit flies do have their beneficial uses. They are considered to be among the most important “model organisms” in the world, extensively studied for their insights into biology. This article will cover some interesting facts about the identification, habitat, and diet of the humble fruit fly.

3 Incredible Fruit Fly Facts!

  • Fruit flies are some of the most common research organisms in the world. They have played a pivotal role in genetic, evolutionary, and microbial research because of their short generational times and their interesting genetic properties. Multiple Nobel Prizes have been awarded to research done on fruit flies.
  • The fruit fly undergoes four different stages: the eggs, the larva, the pupa, and the adult. In order to attract a mate, ales actually play a courtship song by vibrating their wings. If the female accepts, then they will spend about 15 or 20 minutes copulating. Females lay their eggs in rotting fruit, meat, and other organic material where standing water is present. After the larva passes through a few molts, it will surround itself with a hard shell and transform into an adult. The entire lifespan normally lasts some 25 to 50 days.
  • One of the most interesting facts is that fruit flies can beat their wings about 250 times a second.

Species, Types, and Scientific Name

Fruit fly can be defined as any number of fruit-eating species in the family of Drosophilidae (which means dew-loving in Latin). The most well-known species is the common fruit fly, Drosophila melanogaster. Other common species include the Mexican, Mediterranean, olive, and citrus fruit flies. There are altogether more than 4,000 species in the family. They are members of the fly order Diptera.

Appearance

These insects are easy to mistake for the common housefly. Both feature the same relatively large head and eyes, the tube-shaped abdomen, and a pair of large wings. But there are a few distinctive features that should help with identification, including the bright red eyes (though some individuals sport darker eyes) and the tan or brown-colored body with black rings along the abdomen. Adults are generally no larger than a fraction of an inch in size and may be difficult to identify while in flight.

The larvae, by contrast, look nothing like the adults. These small worm-like creatures have no legs or wings and few other visible body parts anywhere. When it is ready to transform, the larva will find a secluded spot and encase itself in a hard shell. This is known as the pupa stage. A day before the fly emerges from the shell, the red eyes and wings can be sometimes seen through the surface.

Fruit flies are easily mistaken for the common housefly.

Fruit Flies vs. Gnats

Fruit flies are sometimes mistaken for common gnats because they both like to feed on some of the same over-ripe or rotting foods in the home. But while they’re both members of the fly order Diptera, the gnat is more closely related to a mosquito than a fruit fly. It even looks quite a bit like a mosquito with a slender body and wings.

Habitat

Fruit flies are found all over the world except for the extreme cold of the north and south. They occupy grasslands, forests, swamps, coasts, and other locations, often hovering near plants. They become particularly abundant in the spring and summer months and spend the winter secluded in warm spots.

Diet

Fruit flies are generally omnivores. They will scavenge for whatever over-ripe or decomposing food bits they can find in the wild or human homes.

What eats the fruit fly?

Fruit flies are preyed upon by a diverse range of different animals. They’re trapped in spider webs, foraged by birds, eaten by frogs, and targeted by other insects such as ants and beetles, especially in the larval stage. They are also preyed upon by numerous small reptiles and mammals.

What does the fruit fly eat?

As the name of this animal suggests, the fruit fly generally feeds on fruits, sweets, and other plant material. The larvae are laid directly on the surface of over-ripe fruit and other decaying material. They will continue to eat until they’ve gathered enough energy to complete the transformation into an adult. The adult fruit fly consumes a much wider range of different plant foods, but some species are specialized for a specific type of fruit or plant.

Prevention: How to Get Rid of Fruit Flies

The most important step of prevention is to always make sure fruits, sweets, and other bits of food are cleaned up and put in their proper place where the flies cannot easily reach them. Once food begins to seriously decompose, it should be immediately thrown away in a responsible manner. Because they can still get into the trash bin and garbage, make sure the food is properly disposed of away from the house. Leaky or unclean drains should be fixed as soon as possible because they can serve as breeding grounds for fruit flies. You should also wipe counters regularly and clean any spills.

While removing all potential supplies of food is sometimes sufficient to end the problem, they are very good at finding bits of food accidentally spilled or left out. If they don’t go away, then it may necessitate a more proactive approach. In order to kill individual flies, a simple swatter, trap, or spray will usually work quite well. You can create your own trap at home by placing some apple cider vinegar, sugar, and dish soap within a bowl of water to attract flies and trap them. But in order to deal with a wider infestation or breeding ground, you may need to make use of more powerful control methods such as insecticides, bleach, and other chemical treatments.

You should ideally pursue all of the above strategies at the same time to maximize the odds of removing an infestation. Expert pest control is only necessary as a last resort once all other methods have failed.

View all 170 animals that start with F

Sources

  1. Orkin / Accessed December 18, 2021
  2. Orkin / Accessed December 18, 2021
A-Z Animals Staff

About the Author

A-Z Animals Staff

AZ Animals is a growing team of animals experts, researchers, farmers, conservationists, writers, editors, and -- of course -- pet owners who have come together to help you better understand the animal kingdom and how we interact.
Connect:

Thank you for reading! Have some feedback for us?


Fruit Fly FAQs (Frequently Asked Questions)

Fruit flies are not necessarily dangerous on their own, but they do have the potential to contaminate food with pathogens.