title: "Swordtail: The Complete Care, Tank & Breeding Guide" description: "The definitive swordtail (Xiphophorus hellerii) care guide: hard-water livebearer setup, parameters, the sword tail, feeding, prolific breeding, tank mates, and behavior." slug: swordtail commonName: Swordtail scientificName: Xiphophorus hellerii family: Poeciliidae order: Cyprinodontiformes difficulty: Beginner minTankSize: 20 temperature: "72–80°F (22–27°C)" ph: "7.0–8.2" hardness: "10–25 dGH" lifespan: "3–5 years" maxSize: "5.5 inches (14 cm) incl. sword" origin: "Mexico, Central America" publishedAt: "2026-06-04"
Swordtail: The Complete Care, Tank & Breeding Guide
The swordtail is a livebearer classic — hardy, active, colourful, and instantly recognisable by the long sword-like tail extension that gives males their name. Xiphophorus hellerii delivers everything that made livebearers a hobby cornerstone: easy care, constant activity, brilliant colour varieties, and breeding so effortless it happens whether you plan it or not. Closely related to the platy and easy enough for any beginner, the swordtail is a livebearer with a bit more size, swimming power, and presence.
This guide is the complete reference: the swordtail's biology and that famous sword, the hard water it prefers, how to set up its tank, what to feed it, its prolific livebearing, which tank mates suit it, and how to manage breeding.
Species Overview
The swordtail (Xiphophorus hellerii) is a livebearer from Central America, in the family Poeciliidae alongside guppies, mollies, and platies. Males reach about 14 cm (5.5 inches) including the sword, females a stockier 12 cm or so. The defining feature is the male's "sword" — a long extension of the lower tail-fin rays — used in display. Decades of selective breeding have produced a huge range of colours and forms: red, green (wild-type), black, pineapple, tuxedo, lyretail, and hi-fin varieties among them.
The swordtail is hardy, active, adaptable, and prolific, making it an ideal beginner livebearer. It's a strong, energetic swimmer that appreciates length of tank, and like all livebearers it gives birth to fully-formed live fry rather than laying eggs. It prefers harder, alkaline water (a key difference from soft-water tetras). With good care it lives 3–5 years. Its hardiness, colour, activity, and easy breeding have kept it a hobby staple for generations.
Natural History and Origin
Xiphophorus hellerii is native to Central America, from Mexico through Guatemala and Honduras, living in fast-flowing, well-vegetated rivers, streams, and warm springs — often hard, mineral-rich, alkaline water with current and dense plant growth. This hard-water, flowing-stream habitat shapes its care: it prefers harder, alkaline water and appreciates swimming room and some current, more so than the calmer-water platy.
In the wild, swordtails forage among plants and along the substrate for algae, plant matter, and small invertebrates, and males display their swords to females and rivals. As livebearers, females give birth to broods of live fry, and the species reproduces continuously and readily. Generations of selective breeding for colour and finnage have produced the many ornamental forms, all sharing the same hardy, adaptable, hard-water-loving care.
Water Parameters — Hard and Alkaline
| Parameter | Range | Notes |
|---|---|---|
| Temperature | 72–80°F (22–27°C) | Warm tropical; adaptable. |
| pH | 7.0–8.2 | Neutral to alkaline preferred. |
| Hardness (GH) | 10–25 dGH | Moderately hard to hard — important for livebearers. |
| Carbonate hardness (KH) | 6–15 dKH | Buffers the higher pH. |
| Ammonia / Nitrite | 0 ppm | Keep the tank cycled. |
| Nitrate | < 30 ppm | Keep reasonable with water changes. |
Like all livebearers, swordtails do best in hard, alkaline, mineral-rich water — soft, acidic water causes poor colour, weak fry, and health problems. This makes them (like mollies, platies, and Boesemani rainbows) ideal for keepers with hard tap water. Confirm cycling with the nitrogen cycle tracker, and use the GH/KH converter and water parameters reference to confirm hard, alkaline conditions.
Tank Setup Guide
Tank size
Because they're active and reach a fair size, swordtails need a minimum of 20 gallons (75 litres), with 29+ gallons better, and length matters for these strong swimmers. A group does best with room to swim and dense planting for fry and cover.
Aquascape — plants and swimming room
Provide open swimming space for their activity, framed by dense planting (especially around the edges and surface) that gives fry somewhere to hide and reduces male harassment of females. A planted tank with Java moss, broad-leaved plants, and floating plants like duckweed suits them and protects newborn fry from being eaten. Hard, alkaline water (a crushed-coral or aragonite element helps in soft-water areas) and some current complete the setup.
Filtration, flow, lid
Swordtails appreciate moderate flow and good filtration, reflecting their flowing-stream origins. A lid is recommended — male swordtails in particular are known jumpers. Reliable filtration handles their moderate waste.
Feeding Guide
Swordtails are omnivores with a notable appetite for vegetable matter as well as protein.
What to feed
- Quality flake and pellets — a convenient staple.
- Vegetable/spirulina content and blanched vegetables — important, as swordtails graze algae and plant matter in the wild.
- Live and frozen daphnia and baby brine shrimp — relished, excellent for colour and conditioning.
How often
Feed two to three small meals daily, including some vegetable content. A varied, balanced diet keeps them colourful and healthy and conditions females for breeding. Swordtails are enthusiastic feeders; avoid overfeeding. They'll also graze algae in the tank, which is a useful bonus.
Behavior and Temperament
Swordtails are active, peaceful, and gregarious, constantly swimming and foraging through the tank — energetic and engaging without aggression toward other species. They're best kept in a group, and the key social consideration is the male-to-female ratio: males relentlessly pursue females to mate, so keeping 2–3 females per male spreads the attention and prevents any one female from being harassed and stressed.
Males also display their swords to one another and may spar for dominance, generally harmlessly, especially with swimming room. Toward other species swordtails are peaceful community citizens. Their constant activity, colour, and easy temperament make them a lively, beginner-friendly choice — just plan the sex ratio and provide cover, and they're trouble-free.
Compatibility
Swordtails are excellent peaceful community fish for hard-water tanks.
Good tank mates: platy fish, molly fish, guppy, corydoras, bristlenose pleco, peaceful barbs and tetras tolerant of harder water, and other livebearers and hard-water community fish.
Cautions:
- Soft-water-only fish — prefer different water chemistry (though many adapt).
- Aggressive or fin-nipping fish — may harass the swordtails or nip male swords.
- Very small fish/shrimp/fry — swordtails will eat fry and tiny shrimp.
- Male-heavy groups — cause female harassment; keep more females than males.
Swordtails mix readily with other livebearers and hard-water community fish. Use the compatibility checker to plan, and remember the female-heavy ratio.
Breeding Guide
Swordtails are livebearers and breed so readily that the main challenge is managing the population, not achieving it. Sexing is easy: only mature males develop the sword and the rod-like gonopodium (modified anal fin); females are larger-bodied with a normal fan-shaped anal fin. (Interestingly, swordtails can occasionally undergo functional sex reversal, with a dominant female developing male features.)
A single mating lets a female produce multiple broods, as she can store sperm — so a female bought already mated will give birth without a male present. Females give birth to broods of 20–80+ fully-formed live fry roughly every four to six weeks. The fry are immediately free-swimming and able to eat. The catch is that adults (including the parents) eat the fry, so to save them, provide dense planting (especially floating plants and Java moss) for fry to hide in, or move pregnant females to a separate birthing/nursery tank. Fry grow quickly on crushed flake, microworms, and baby brine shrimp. Be prepared for continuous reproduction — a mixed group produces fry indefinitely.
Health and Disease
Swordtails are hardy, and disease is uncommon with good care in hard water.
Ich can follow temperature swings or stress; treat promptly. Bacterial and fungal infections, fin rot follow poor water or injury. "Shimmying" (a swaying, distressed swimming motion) in livebearers often signals soft water or poor water quality — a reminder of their need for hard, mineral-rich water. Fungal/columnaris and internal issues can appear in stressed or soft-water-kept fish. Overcrowding from runaway breeding can degrade water quality.
Prevention: hard, alkaline, clean, cycled water; a sensible male-to-female ratio; dense planting; a varied diet with vegetable content; a secure lid; and quarantine of new arrivals. Given hard water and basic care, swordtails are robust, active, trouble-free fish.
Interesting Facts
- The sword. Only mature males develop the long lower-tail "sword," used to display to females and rivals — the source of the name.
- Sperm storage. A female can store sperm from one mating and produce several broods, so she'll give birth even without a male present.
- Occasional sex reversal. Swordtails can undergo functional sex change, with a dominant female sometimes developing male characteristics.
- A hard-water livebearer. Like its relatives, it needs hard, alkaline water — perfect for hard-tap-water keepers and a contrast to soft-water tetras.
- Endless colour forms. Red, green, black, pineapple, lyretail, and hi-fin are just some of the selectively-bred varieties.
Bringing It Together
The swordtail is a hardy, active, colourful livebearer that's perfect for beginners and hard-water tanks alike — all the easy charm of the livebearer family with a bit more size, swimming power, and the males' distinctive sword. Give it a 20-gallon-plus planted tank with swimming room, hard alkaline water, moderate flow, a varied diet with vegetable content, a secure lid, and a female-heavy group — and it will be a lively, colourful community centerpiece that breeds effortlessly (be ready to manage the fry). It pairs naturally with other livebearers like platies, mollies, and guppies, plus corydoras and a bristlenose pleco. Plan the build with the AI Tank Blueprint generator and dial in hardness with the GH/KH converter.
Live Foods from Blackwater Aquatics
Swordtails are active omnivores that breed faster and colour up brighter on a varied diet — live daphnia provide both exercise and the roughage that keeps prolific livebearers healthy.
Compatibility
The Swordtail has a peaceful temperament. Choosing the right tank mates is essential for a stable aquarium.
✓ Compatible Tank Mates
✗ Incompatible Species
Frequently Asked Questions — Swordtail
Do swordtails need hard water?↓
Yes — like most livebearers, swordtails prefer moderately hard, slightly alkaline water (GH 10–25, pH 7.0–8.2). Very soft, acidic water causes poor colour and weak fry.
How can I tell male from female swordtails?↓
Only males develop the long sword extension on the lower tail fin and a gonopodium (a modified, rod-like anal fin used for mating). Females are larger-bodied with a rounded anal fin.
AI-Powered
Need Help Building The Perfect Setup?
Describe your goals and SpawnOS AI will generate a complete tank blueprint including compatible species, substrate, plants, hardscape, equipment, and a maintenance schedule.
Generate Aquarium Blueprint