Swordtail Care Guide
That long lower lobe trailing off a male's tail — the "sword" the fish is named for — is a piece of evolutionary theatre: female swordtails prefer males with longer swords, which makes the species one of biology's textbook cases of sexual selection. Underneath the ornament sits a big, fast stream fish, the largest of the common community livebearers, carrying two habits that ambush new keepers — the males spar with one another, and the whole species jumps. Tilt the sex ratio toward females, seal the tank with a gap-free lid, and keep the water hard, and a swordtail is hardy, long-lived and forgiving.
Swordtail at a glance
The sourced figures the welfare engine uses to judge Swordtail — the parseable key facts.
| Adult size | 12 cm |
|---|---|
| Minimum tank | 20 US gal |
| Minimum group | 3+ (pair/group) |
| Temperament | Peaceful |
| Temperature range | 22–28°C |
| pH range | 7–8.3 |
| Bioload | Medium |
| Swim level | All levels |
| Beginner-friendly | Yes |
Swordtail care profile
How demanding Swordtail is across five axes — each score derived straight from the sourced facts above.
How we score this
- Tank demand — from the minimum tank size: ≤10 gal=1, ≤20=2, ≤30=3, 31–74=4, ≥75=5.
- Group commitment — from the minimum group: alone=1, pair=2, 3–4=3, 5–6=4, 8+=5.
- Compatibility caution — from temperament and the fin-nipper / own-kind-aggression / community-safe flags (peaceful=1 up to predatory or not-community-safe=5).
- Water range — how narrow the comfortable temperature and pH bands are (a wider band is easier to hit; the tighter of the two sets the score). It rates band width only — not GH, oxygen or flow.
- Waste / bioload — from adult size and waste class (a bigger or messier fish needs more filtration and water changes).
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
Don't size a swordtail tank the way you'd size a guppy tank: this is the biggest of the common livebearers, and even a small group wants a 20-gallon "long" or larger. Seriously Fish specifies a base footprint of about 120 x 30 cm, FishBase a minimum tank length of 80 cm. The limit is swimming room, adult size and aggression together, not bioload alone — these are fast stream swimmers that patrol a tank end to end, and crowding males into a short tank turns that patrol into chasing. Favour length and footprint over height, and break up the open water with planted edges so harassed females and subordinate males can drop out of each other's 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.
How big does it really get?
Full-grown Swordtail reach about 12 cm (4.7 in) long, but they are usually sold at only about 2.5 cm (1 in) — a typical shop size (estimate). At full size, Swordtail needs roughly a 20-gallon tank, about 76 cm long; a common 10-gallon starter kit is only about 51 cm.
Adult size is sourced; the shop size is a typical-juvenile estimate; tank length is approximate for a standard 20-gallon aquarium.
Will it fit your tank?
As an adult, Swordtail needs at least a 20-gallon tank (about 76 cm long) — and the floor assumes you keep a group of 3+. Enter your tank below to check it against that minimum.
No JavaScript? The short version: aim for 20 gallons or more, a footprint around 76 cm long or longer, and room for 3+ of them.
A quick welfare check against the sourced minimum — not a stocking calculator. For exact numbers at a given tank size, use the planner.
Water parameters in practice
Hard, alkaline water is a need here, not a preference — and keeping a swordtail in soft "community" water is the mistake beginners make most often. Aim for moderately hard to hard, mineral-rich water at a pH around 7.0-8.0 (many keepers run up to ~8.2-8.4 without trouble) and 22-26 C. The sources split on the cold end: Seriously Fish and hobby guides stretch the tolerated low to 16-18 C, below FishBase's 22 C floor — but those figures describe bare survival, not the band where a fish actually breeds and thrives. If your tap runs soft, remineralise with crushed coral, a Wonder Shell or Seachem Equilibrium, the same fix used for the closely related platy. What the fish rewards is a steady hand: hold the parameters level and stay out of soft, acidic, swinging water rather than fussing over a perfect number.
Will it thrive in your water?
The comfortable range for Swordtail is about 22–28 °C (72–82 °F) and pH 7–8.3. Test your own tap water against it below.
These are the sourced comfortable ranges. Stable water matters more than chasing an exact number — a steady reading inside the band beats a "perfect" one that drifts. Some fish also need a particular water hardness (GH); where that applies, the prose above covers it.
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
Toward other species a swordtail is genuinely peaceful; toward other males it is not. FishBase says it plainly — males are aggressive to each other — and a group of them builds a dominance hierarchy they then spend real energy defending. That male-on-male friction, not community aggression, is the swordtail's defining social problem, which is why calling the fish simply "peaceful" undersells what happens once a second male is in the tank. The chasing can spill over and wear down slow or long-finned tankmates, even though swordtails are not deliberate fin-nippers. Give them length and the right ratio and most of it dissipates.
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 a name for its care guide, or use + 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
- Bolivian Ram+Peaceful temperament, similar adult size
- Brilliant Rasbora+Peaceful temperament, similar adult size
- Bristlenose Pleco+Peaceful temperament, similar adult size
- Bronze Corydoras+Peaceful temperament, similar adult size
- Celebes 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 →
Quick quiz: who can live with Swordtail?
Guess each verdict, then reveal what TankStocking's welfare engine actually says — the same check behind every can-they-live-together page.
-
Good Engine-cleared: compatible on size, water and temperament.
-
Good Engine-cleared: compatible on size, water and temperament.
-
With care Territorial
-
With care Aggression
-
Avoid Species-only fish
-
Avoid Species-only fish
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 — among the largest of the common livebearers, noticeably bigger than guppies, platies and most mollies, with males to 14 cm TL (mostly sword) and females to 16 cm; a 5-10 gallon nano is no place for it.
- 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.
Your tank
no size setPick a common size, or enter your own 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.
- FishBase — Xiphophorus hellerii (Green swordtail)
- Seriously Fish — Xiphophorus hellerii (Green Swordtail)
- Wikipedia — Green swordtail
- USGS NAS — Xiphophorus hellerii fact sheet
- AquariumSource — Swordtail Fish 101
- AquariumStoreDepot — Swordtail Fish Care
- Fish Laboratory — Swordtail Fish care guide
- Fishes (MDPI) 2023, 8(8):407 — Sex Determination and Male Differentiation in Southern Swordtail Fishes
- Lodi — Instances of sex inversion in the domesticated swordtail, Xiphophorus helleri (PubMed 510470)
More on Swordtail
Related guides on TankStocking — each scored by the same welfare engine as the planner.
Tank-mate guides
Compatibility checks
Browse all fish
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 →