Hundreds of fish species, along with a range of invertebrates like shrimp, snails, and oysters, can change their functional sex during their adult lives. This is not a metaphor or a partial shift: these animals fully transform their reproductive organs from one sex to the other, producing sperm where they once produced eggs or vice versa. The phenomenon, called sequential hermaphroditism, is remarkably common in the ocean, and the triggers are often social rather than strictly genetic.
Fish That Start Female and Become Male
The most dramatic and well-studied examples of sex change are found among reef fish that begin life as females and later transition to males, a pattern biologists call protogyny. Wrasses, parrotfish, and many species of grouper follow this path. The bluehead wrasse of Caribbean coral reefs is the classic case. In these fish, a single brightly colored terminal-phase male dominates a group of smaller, drabber females. When that male disappears, the largest female in the group begins behaving as a male almost immediately, sometimes within minutes, and spawns in the male role on the same day.1PubMed. Social Control of Sex Change in the Bluehead Wrasse, Thalassoma bifasciatum (Pisces: Labridae) Over the following days, her ovaries are restructured into functional testes.
The speed of this behavioral switch is striking. Within the bluehead wrasse social system, sex is determined not by chromosomes at birth but by social dominance. A dominant female transforms into a new terminal-phase male when the resident male is no longer present.2PubMed Central. Brain regions controlling courtship behavior in the bluehead wrasse This means sex in these fish is fundamentally a social decision, mediated by the brain and then cascading down to the body’s reproductive hardware.
Many grouper species follow a similar female-first pattern. Some large commercial species like the Nassau grouper and the red hind grouper form spawning aggregations where the sex ratio and the presence of dominant males influence whether females change. Because groupers grow slowly and the largest individuals are often the most reproductively valuable females-turned-males, this has real consequences for fisheries management, a topic we’ll return to.
Fish That Start Male and Become Female
Clownfish are arguably the most famous sex-changing fish, though most people who watched the animated movie about them have no idea. Clownfish are protandrous, meaning they begin as males and can become female. Every clownfish group living in a sea anemone is organized around a strict hierarchy: one large breeding female at the top, one slightly smaller breeding male, and several smaller non-breeding males. When the female dies, the breeding male transforms into a female, and the next male in line matures into the breeding male.
Research on the common clownfish shows that this transition involves the brain adding new cells. During male-to-female sex change, the number of medium-sized cells in a key brain region roughly doubles, shifting from a male-typical pattern to a female-typical one.3PubMed Central. New cells added to the preoptic area during sex change in the common clownfish Amphiprion ocellaris Genome-wide studies of clownfish undergoing sex change have revealed a rapid and complex response first in the brain, which then transmits signals to the gonads to begin restructuring.4PubMed Central. Sex Change in Clownfish: Molecular Insights from Transcriptome Analysis The gonad itself physically transforms from testis to ovary over a period of weeks to months.
Fish That Can Switch in Both Directions
Most sex-changing fish are locked into one direction: female to male, or male to female. But some species of coral-dwelling gobies have the unusual ability to change sex in either direction, depending on social circumstances. If two females are paired together, one will become male. If two males are paired, one will become female. This bidirectional ability makes ecological sense for gobies because they live in small, isolated coral heads where finding a new mate is dangerous. Leaving the coral to search for a partner of the opposite sex means risking predation, so it is far safer for one member of a same-sex pair to simply switch.5Behavioral Ecology and Sociobiology. Bi-directional sex change in a coral-dwelling goby
Bidirectional sex change is rare compared to one-way transitions, and it tends to appear in species where individuals are small, relatively sedentary, and socially pair-bonded rather than living in large harems. The flexibility is an extreme solution to the problem of being stuck with a same-sex partner in a habitat you can’t easily leave.
What Happens Inside the Body During Sex Change
The transformation from one sex to another is orchestrated by the brain and executed by the endocrine system. In protogynous fish like wrasses, the process starts with a shift in social status. When a dominant male vanishes, the resulting change in social dynamics alters cortisol release in the largest female. Research suggests cortisol acts as a key link between the social environment and the onset of sex change, initiating a shift in hormone production from estrogens to androgens.6PubMed. Stress and sex: does cortisol mediate sex change in fish?
In a wrasse species experimentally fed cortisol, all treated individuals developed testes containing sperm cells, and their estrogen levels dropped significantly compared to controls.7PubMed. Cortisol administration induces sex change from ovary to testis in the protogynous Wrasse, Halichoeres trimaculatus This confirmed that cortisol can directly push the body toward male development, even without the social trigger.
At the molecular level, a single enzyme called aromatase plays a pivotal role. Aromatase converts androgens into estrogens, and in fish, its activity in the ovary is what keeps an individual female. When aromatase production drops, estrogen levels fall, and the gonad begins developing along a male pathway. Suppressing this enzyme’s gene, blocking its activity, or blocking estrogen receptors all reliably lead to masculinization across many fish species.8PubMed. Ovarian aromatase and estrogens: a pivotal role for gonadal sex differentiation and sex change in fish The brain coordinates this cascade. Shifts in dominance alter signaling molecules like dopamine and arginine vasotocin, which change local estrogen production in the brain itself. Those brain-level changes then redirect the pituitary gland’s hormonal signals to the gonads, and the gonadal transformation follows.9PubMed. Plasticity of brain sexual dimorphism as revealed by sex changing fish
What makes this remarkable is that the brain changes first, then the body follows. The behavioral shift (acting as the opposite sex) precedes the physical transformation by days or weeks. The fish is functionally performing the social role of its new sex long before its gonads have caught up.
Invertebrates That Change Sex
Sex change is not limited to fish. Several groups of marine invertebrates routinely switch sex, and their triggers can be fascinatingly physical.
Slipper limpets in the genus Crepidula are protandrous snails that stack on top of each other in chains. Small males sit on top, large females on the bottom, and individuals in between are often mid-transition. Research has shown that physical contact between snails mediates when sex change happens. Smaller males that were in direct contact with a larger female delayed their sex change, staying male longer. When physical contact was removed but chemical cues in the water were maintained, the delay disappeared, and males changed sex at the same rate as isolated controls.10PubMed. Physical and Chemical Interactions with Conspecifics Mediate Sex Change in a Protandrous Gastropod Crepidula fornicata The trigger is essentially tactile: a contact-borne inhibitor from the female suppresses sex change in males sitting on her shell. Complementary experiments showed that larger snails in contact with smaller companions changed sex sooner, while smaller snails touching larger ones delayed the transition.11PubMed. Crepidula Slipper Limpets Alter Sex Change in Response to Physical Contact with Conspecifics
Pandalid shrimp are another well-known group of sex-changers. Northern shrimp and spot shrimp both follow a protandrous pattern, reproducing first as males and later transitioning to females for the rest of their lives.12ICES Journal of Marine Science. Influence of decreased biomass on the ogive of sex change of northern shrimp (Pandalus borealis) In spot shrimp, the gonad starts as a combination of testicular and ovarian tissue, with the testicular part active first. Over time, the ovarian tissue matures, the testicular portion recedes, and the animal becomes a functional female.13PubMed Central. The protandric life history of the Northern spot shrimp Pandalus platyceros: molecular insights and implications for fishery management This is a one-way trip: once a shrimp becomes female, it stays female.
Some bivalves also shift sex. Pearl oysters can reverse their sex in response to environmental conditions, with temperature playing a role. Research on the black-lip pearl oyster found that females maintained their sex at higher water temperatures, while lower temperatures appeared to favor a reversal toward maleness, possibly because females have higher metabolic demands and cooler water provides insufficient energy to sustain that cost.
Why These Animals Change Sex (And Why Most Don’t)
The evolutionary logic behind sex change is surprisingly clean. An animal should change sex when it can produce more offspring as the other sex than it currently can. In many reef fish, a small male can sneak matings or spawn in groups, but a large male that controls a territory or a harem has vastly more reproductive success. So it pays to be female when small (producing some eggs is better than competing hopelessly against a dominant male) and to become male when large enough to dominate. This is the size-advantage model, and it explains the female-to-male pattern in wrasses, parrotfish, and groupers.
The reverse logic applies to clownfish and other protandrous species. In clownfish, the female’s reproductive output is limited by her body size because she produces the eggs, and being bigger means more eggs. Males, by contrast, don’t benefit much from being large because sperm is cheap. So it pays to be male when small and switch to female when you get the chance to be the biggest individual in the group.
Updated versions of this theory account for complications like sperm competition and the relationship between female body size and egg production. In some species, the largest female in a group does not change sex even when the dominant male disappears, which the classic model couldn’t explain. More recent modeling shows that when females gain disproportionately more from extra body size, or when sperm competition reduces the advantage of being the sole male, it can make sense for a medium-sized female to change sex while the largest female stays put.14The American Naturalist. A new version of the size-advantage hypothesis for sex change: incorporating sperm competition and size-fecundity skew
Given how cleanly the logic works, you might wonder why sex change isn’t more common across the animal kingdom. Theoretical work suggests that the physical costs of rebuilding a gonad are not enough on their own to explain why most animals stick with fixed sexes. Other factors, like life on land, internal fertilization, chromosomal sex determination, and the developmental constraints that come with complex body plans, likely make sex change impractical for mammals, birds, and most terrestrial vertebrates.15PubMed Central. Costs of changing sex do not explain why sequential hermaphroditism is rare
Amphibians and Environmental Sex Reversal
Frogs and other amphibians occupy an interesting middle ground. They don’t change sex the way a wrasse or clownfish does, in which an adult animal voluntarily transforms in response to a social cue. But their sex can be overridden during development by environmental factors, producing what researchers call sex reversal: an individual whose genetic sex says one thing but whose body develops as the other.
A study of wild agile frogs in Hungary found that about 20% of phenotypic males in the populations sampled actually carried female genetic markers. These sex-reversed individuals were more common in areas with agricultural or urban land use, suggesting that human-driven environmental changes contribute to the phenomenon.16PubMed. Novel genetic sex markers reveal high frequency of sex reversal in wild populations of the agile frog (Rana dalmatina) associated with anthropogenic land use Even in the lab, without any exposure to sex-reversing chemicals or extreme temperatures, a small percentage of genetically female juveniles developed as males, suggesting that the process has a baseline rate in some species that gets amplified by pollution or habitat changes.
Many reptiles use temperature during egg incubation to determine sex rather than relying on sex chromosomes at all. In these species, the temperature of the nest during a critical developmental window steers embryos toward male or female development by influencing the same kinds of steroidogenic enzymes involved in fish sex change.17PubMed. Temperature-dependent sex determination in reptiles: proximate mechanisms, ultimate outcomes, and practical applications This isn’t sex change in the strict sense, because it happens once during embryonic development and is permanent. But it shares molecular machinery with the sex-change pathway in fish, particularly the involvement of aromatase and sex steroids, which suggests a deep evolutionary connection between the two systems.
Chemical Pollution and Forced Sex Reversal
The molecular flexibility that makes sex change possible in some species also makes many animals vulnerable to endocrine-disrupting chemicals. Atrazine, one of the most widely used herbicides in the world, provides a stark example. Male African clawed frogs exposed to atrazine at ecologically relevant concentrations were both demasculinized and feminized. About 10% of exposed genetic males developed into fully functional females that mated with unexposed males and produced viable eggs.18PubMed Central. Atrazine induces complete feminization and chemical castration in male African clawed frogs (Xenopus laevis)
This is not natural sex change in the way wrasses or clownfish experience it. It is an externally imposed disruption of the hormonal pathways that govern sexual development, and it happens in species that would never normally switch sex. The concern is that widespread chemical contamination of waterways could be distorting sex ratios in amphibian and fish populations that rely on environmental or hormonal cues for sexual differentiation. When the same aromatase-and-estrogen system that permits adaptive sex change in reef fish gets hijacked by a synthetic chemical in a frog, the outcome is not adaptive at all. It is a reproductive dead end for the affected individuals and a potential population-level threat.
Fishing Pressure and Sex-Changing Species
The fact that many commercially harvested fish and shellfish change sex creates a specific management problem. Fisheries tend to target the largest individuals, and in protogynous species, the largest individuals are the males. Remove too many large males from a grouper population, and you may end up with a population full of females with no males to fertilize their eggs. The remaining females can change sex to replace the lost males, but only up to a point, and the lag time between removing a male and a new one fully developing can leave the population temporarily short on sperm.
Modeling work has explored how fishing pressure interacts with sex-change dynamics. In sex-changing stocks, the proportion of males in the population shifts as fishing intensity increases, and the number of females that change sex adjusts in response.19ICES Journal of Marine Science. Evaluating the impacts of fishing on sex-changing fish: a game-theoretic approach The system has some built-in resilience because the social trigger for sex change means new males are produced when they’re needed. But heavy, sustained fishing pressure can overwhelm that buffering capacity.
The same issue applies to protandrous shrimp. Northern shrimp fisheries harvest individuals as they grow larger, and since larger individuals are the females, the fishery disproportionately removes the egg-producing part of the population. Shifts in the size at which shrimp change sex have been documented in heavily fished populations, suggesting the animals’ life-history strategy is bending under the pressure.12ICES Journal of Marine Science. Influence of decreased biomass on the ogive of sex change of northern shrimp (Pandalus borealis) Managing these species requires understanding not just how many animals are in the water, but what sex they are and when they switch.
Epigenetics and the Flexibility of Sex
One of the more surprising findings in recent years is that epigenetic mechanisms, chemical modifications to DNA and its packaging that change gene activity without altering the underlying genetic code, play a central role in sex determination and sex change across a wide range of animals. Even species with dedicated sex chromosomes can have their sexual development influenced by epigenetic changes. This means sex is not as rigidly locked in by genetics as older textbook models suggested. Epigenetic processes can drive sex changes through an individual’s lifetime and may help species adapt to changing environments by maintaining flexibility in their breeding systems.20PubMed Central. Epigenetics drive the evolution of sex chromosomes in animals and plants
For sex-changing fish, epigenetics helps explain how the same genome can produce both a fully functional ovary and, later, a fully functional testis in the same individual. The genes for both male and female development are present in every cell. What changes during sex transition is which genes are turned on and which are silenced, a process controlled in part by epigenetic marks. This also offers a window into why certain environmental stressors, ranging from temperature extremes to chemical pollutants, can push sexual development off course: they interfere with the epigenetic switches that normally keep sex determination stable. The science here is still evolving, but it is reshaping how biologists think about sex as a trait, not as a permanent binary fixed at conception in every species, but as a continuum of developmental outcomes that, in many lineages, retains the capacity to be redirected.