Swordtail Care Guide

The swordtail is one of the largest of the common community livebearers — a fast, hard-water stream fish whose two defining quirks are that the males fight each other and the whole species jumps. Skew the sex ratio, fit a tight lid, and keep the water hard, and it is a hardy, handsome beginner fish.

Swordtail at a glance

The sourced figures the welfare engine uses to judge Swordtail — the parseable key facts.

Key facts — Swordtail (Xiphophorus hellerii)
Adult size12 cm
Minimum tank20 US gal
Minimum group3+ (pair/group)
TemperamentPeaceful
Temperature range22–28°C
pH range7–8.3
BioloadMedium
Swim levelAll levels
Beginner-friendlyYes

Where it comes from

The green swordtail (Xiphophorus hellerii) comes from the Atlantic slope of Middle America, from Rio Nautla in Veracruz, Mexico, south to north-western Honduras. Unusually for a community livebearer it is a generalist of moving water, found from sea level to about 1500 m in fast, rocky, vegetated streams and rivers as well as warm springs, weedy canals and ponds — adults prefer flowing, planted water while juveniles hold in quiet margins. That wild water is warm (about 22-28 C), neutral-to-alkaline (pH 7.0-8.0), moderately hard to hard, fresh and tolerant of some brackish. The flowing-stream origin explains the care: these are strong, active swimmers that want length and swimming room, tolerate and even appreciate decent filter flow, and are powerful jumpers. Their fast doubling time and brackish tolerance are also why they have gone feral on every continent except Antarctica.

Did you know?

  • Xiphophorus means "sword-bearer" in Greek, but the species epithet hellerii honours the collector Karl B. Heller, not the sword.
  • The male's sword is an extension of the lower tail-fin lobe, and because maximum lengths are given as total length, a "14 cm male" is mostly sword — its body is closer to a female's.
  • It is a flagship model for sexual selection: females prefer longer swords, and the genus is also famous in melanoma research via platy-swordtail hybrids.
  • Most "my female turned into a male" stories are late-maturing genetic males finally developing after a dominant male's chemical suppression was removed — genuine sex change is not an established normal trait.
  • It crosses freely with platies, which is why so many colour and finnage strains exist.
  • A global invader: released for mosquito control and via aquarium dumping, it is feral on every continent except Antarctica and is IUCN Least Concern — if anything, too successful.

Tank size — and why

Give a small group a 20-gallon "long" or larger; Seriously Fish specifies a base footprint of about 120 x 30 cm and FishBase a minimum tank length of 80 cm. The constraint is swimming room plus adult size plus aggression, not bioload alone: these are big, fast stream swimmers that patrol the length of a tank, and crowding males triggers chasing. Prioritise length and footprint over height, and provide open swimming lanes flanked by planted edges so harassed females and subordinate males can break line of sight.

As a guide, a 20-gallon tank comfortably suits about 3–5 Swordtail as a single-species display, leaving room for tankmates.

Water parameters in practice

In the tank: 22–28°C · pH 7–8.3 · Medium bioload · group 3+ (pair/group)

A hard-water, alkaline fish — a need, not a preference, and the thing beginners get wrong by keeping them in soft "community" water. Aim for moderately hard to hard, mineral-rich water with a pH around 7.0-8.0 (hobby keepers run up to ~8.2-8.4 without trouble) and temperatures of 22-26 C. Sources disagree on cold tolerance: Seriously Fish and hobby guides extend the tolerated low to 16-18 C, below FishBase's 22 C floor, but those low numbers are survival tolerance, not the ideal breeding range. If your tap is soft, remineralise with crushed coral, a Wonder Shell or Seachem Equilibrium, exactly as for the closely related platy. As ever, stability beats chasing a precise number — avoid pH and temperature swings and soft, acidic water.

Diet & feeding

In the wild the swordtail is a generalised omnivore, taking aquatic and terrestrial invertebrates — worms, crustaceans, insects — alongside algae, plant matter and detritus. In the tank it readily takes a dried flake or pellet staple; supplement with live or frozen daphnia, brine shrimp and bloodworm plus some vegetable and algae matter, since the herbivorous component matters more than for strictly insectivorous fish. Feed one to two (up to three) small meals a day, only what is cleared in a minute or two, to avoid fouling the water. Between feeds they forage at all levels and graze biofilm and plants.

Gear & setup

Heated, hard-water, lidded and roomy is the brief. Run a heater for 22-26 C and a filter that gives moderate flow — one of the few community livebearers that genuinely appreciates current. Remineralise soft tap water with crushed coral, a Wonder Shell or Equilibrium. Any substrate works; aim for a long tank with open swimming lanes plus vegetated edges and cover for fry and harassed fish. The headline piece of kit is a tight, gap-free lid: swordtails are notorious, powerful jumpers that will leap out of an open or gappy tank and die — this is the single most-cited swordtail-specific warning.

Temperament & behaviour

Peaceful toward other species but the males are aggressive toward each other — FishBase states it plainly, and groups of males form dominance hierarchies that they spend real effort maintaining. That intraspecific male aggression, not community aggression, is the defining swordtail social issue, and it is why several sources flag that a single "peaceful" boolean undersells the fish. Chasing can also stress slow or long-finned tankmates even though swordtails are not dedicated fin-nippers. Give them length and the right ratio and the aggression largely disperses.

Group & social needs

Keep at least 3, but the sex ratio matters far more than the count: run at least 2-4 females per male — the common rule is one male to three females minimum — or keep a single male with a female group, or an all-female group. Break that ratio, especially by keeping two males in a small tank, and you will see relentless chasing. A larger tank lets dominance hierarchies spread out.

Compatible tank mates (preview)

A short, engine-cleared shortlist — the species TankStocking's welfare engine clears with Swordtail and that suit its size and temperament best. Tap any to load the pairing in the planner.

  • Bamboo Shrimp (Wood/Fan Shrimp) — Peaceful temperament, similar adult size.
  • Bleeding Heart Tetra — Peaceful temperament, similar adult size.
  • Boesemani Rainbowfish — Peaceful temperament, similar adult size.

A note on the shrimp and snails here: Swordtail is peaceful and generally invertebrate-safe — but almost any fish will take very small shrimplets given the chance, so give shrimp dense cover (moss, leaf litter) if you want a colony to grow, rather than expecting every baby to survive.

See the full Swordtail tank mates guide →

Breeding & sexing

Sexing adults is unambiguous: males develop the sword (an elongated lower lobe of the tail fin, usually edged in black) and a gonopodium, while females have neither, with a deeper body and a gravid spot when pregnant. Breeding is easy — a livebearer that breeds readily in mixed-sex groups with no intervention, and females store sperm for months, so one female can stock a tank from a single mating. Gestation is about 28 days; fry are born free-swimming and fully formed, in broods that rise with female size. Adults eat fry, so use dense cover or move the gravid female. Swordtails are a textbook sexual-selection model — females show a strong preference for longer swords, alongside colour and body size. On the persistent claim that female swordtails "turn into males," hedge: most such cases are late-maturing genetic males, not sex reversal — the species has early- and late-maturing male types, and a dominant male chemically suppresses nearby juvenile males, so removing the alpha can let a "female-looking" late male finally grow its sword. Genuine female-to-functional-male change is not an established normal trait; a few true protogynous hermaphrodites are documented in some domesticated strains, but they are exceptional, and even when an old female develops a sword and gonopodium she generally develops the male appearance without functional testes and cannot actually fertilise females.

Lifespan

Typically 3-5 years in well-maintained aquaria, with about 5 the usual upper end. The shorteners are persistently high temperature, chronic harassment from a wrong sex ratio, soft or unstable water, disease, and weak mass-bred or hybrid genetics. Lead with the lid, the ratio and hard water and most swordtails reach the upper range.

Common mistakes

  • Running an open or gappy top — they are powerful jumpers and will leap out; a tight, gap-free lid is non-negotiable.
  • Keeping too many males or a male-heavy ratio, which triggers relentless chasing; use 2-4 females per male, a single male, or all-female.
  • Keeping a hard-water fish in soft, acidic water without remineralising.
  • Underestimating size and swimming room — one of the largest community livebearers (males to 14 cm TL including the sword, females to 16 cm) does not belong in a 5-10 gallon nano.
  • Underestimating breeding: mixed sexes plus stored sperm means continuous fry — plan population control.
  • Buying balloon, extreme hi-fin or heavily inbred lines that are less hardy and prone to deformities and swim-bladder issues.

Signs of trouble

  • Clamped fins, hiding or colour loss.
  • Shimmying or swaying in place — a classic livebearer sign often linked to soft water, wrong parameters or chill.
  • Hanging at the surface or bottom, refusing food, sunken belly, stringy white faeces.
  • White spots (ich), frayed fins (fin rot), dusty gold film (velvet) or fast-spreading pale patches (columnaris).
  • Buoyancy problems (swim-bladder disorder), often diet- or constipation-linked.

Is this fish right for you?

Don't buy a swordtail if you can't fit and securely lid a long tank, if your water is soft and acidic and you won't remineralise it, if you intend to keep multiple males in a small tank, or if you can't manage continuous breeding. Most trade swordtails are platy-hybrid, line-bred strains, so avoid balloon bodies, extreme hi-fin forms and heavily inbred lines, which are less hardy and prone to deformity and swim-bladder problems — prefer healthy, well-formed stock from a reputable source.

Bringing one home

Quarantine new swordtails before adding them — mass-bred hybrid stock can arrive stressed and disease-prone. Acclimatise gradually to hardness and pH, and make sure the destination tank is already hard, alkaline and securely lidded before the fish goes in.

Common questions

Do swordtails jump?

Yes, and they are powerful jumpers — the single most-cited swordtail warning. They leap when startled, chasing food or during breeding chases and will jump out of an open or gappy tank. A tight, gap-free lid is essential.

Can I keep two male swordtails together?

Not in a small tank. Males are aggressive toward each other and form dominance hierarchies. Keep at least 2-4 females per male (one male to three females is the common minimum), a single male, or an all-female group; only a large tank lets multiple males disperse.

Do female swordtails really change into males?

Mostly no — most cases are late-maturing genetic males that finally develop a sword once a dominant male's suppression is removed. True female-to-functional-male sex change is not an established normal trait; rare protogynous individuals exist in some strains but typically do not become fertile males.

How big do swordtails get?

Among the largest community livebearers: males to about 14 cm and females to about 16 cm total length. The male's headline length is mostly the sword, so its body is closer to a female's body length.

Do swordtails need hard water?

Yes — they are a hard-water, alkaline fish. Keep them moderately hard to hard with a pH around 7.0-8.0; remineralise soft tap water with crushed coral, a Wonder Shell or Seachem Equilibrium.

Plan your tank: the planner below is pre-set to 20 gallons. Add Swordtail and any tankmates for a live welfare verdict.

Your tank

no size set

Pick a common size, or enter your own dimensions.

Inside dimensions

Add fish & invertebrates

Search 126 freshwater species by name or group.

      Verdict

      Sources & confidence

      Sources & confidence (9 species)

      These back the Swordtail figures and the previewed tank mates above. Each figure is read from the TankStocking species database (v2026.06); below is the care reference behind it and how confident we are in that data. Confidence reflects the source quality, not whether any pairing is safe. Full source list and the welfare model are on the methodology page.

      • Swordtail Xiphophorus hellerii — Fishlore swordtail profile / FishBase Xiphophorus hellerii high confidence
      • Bamboo Shrimp (Wood/Fan Shrimp) Atyopsis moluccensis — Aquariadise (aquariadise.com/caresheet-bamboo-shrimp-atyopsis-moluccensis) high confidence
      • Bleeding Heart Tetra Hyphessobrycon erythrostigma — Seriously Fish (Hyphessobrycon erythrostigma) high confidence
      • Boesemani Rainbowfish Melanotaenia boesemani — Seriously Fish; Aquarium Co-Op Boesemani guide high confidence
      • Bolivian Ram Mikrogeophagus altispinosus — Seriously Fish (seriouslyfish.com/species/mikrogeophagus-altispinosus) high confidence
      • Brilliant Rasbora Rasbora einthovenii — Seriously Fish (seriouslyfish.com/species/rasbora-einthovenii) high confidence
      • Bristlenose Pleco Ancistrus sp. — Aquarium Source / aqua-fish.net Ancistrus care guides high confidence
      • Bronze Corydoras Corydoras aeneus — Seriously Fish (seriouslyfish.com/species/corydoras-aeneus) high confidence
      • Celebes Rainbowfish Marosatherina ladigesi — Seriously Fish (seriouslyfish.com/species/marosatherina-ladigesi) high confidence
      Care-guide sources (9)

      This guide synthesises the references below; where they disagree, the range and the disagreement are noted in the text above. The figures in the key-facts box are read from the TankStocking species database (v2026.06). Full welfare model on the methodology page.

      More on Swordtail

      Related guides on TankStocking — each scored by the same welfare engine as the planner.

      This care guide is a sourced planning reference, not veterinary advice — individual fish, filtration and maintenance all matter. Cycle the tank, test your water, and observe your fish. How TankStocking works →