Aquastockstocking data
HomeFish › Swordtail

Swordtail — Tank Size, Adult Size, Lifespan & Full Care Guide

Xiphophorus hellerii

Swordtail (Xiphophorus hellerii) in a freshwater aquarium
Photo: Corydoras-adolfoi · CC BY-SA 4.0 · Wikimedia Commons
Active livebearer with a distinctive sword on the male tail. Can be a jumper — keep it covered.
Min 20 gal 5.5" adult Peaceful Easy care 72-82°F
5.5″adult size
20 galminimum tank
3+group size
4 yrlifespan
72–82°Ftemperature
Easycare level
Quick answer: swordtails reach 5.5″ (14.0 cm), need a minimum of 20 gallons (40 gallons recommended), live 4 years, and do best at 72–82°F with pH 7–8.4. Keep a group of at least 3.

Care requirements at a glance

Scientific nameXiphophorus hellerii
GroupLivebearer
Adult size5.5 in (14.0 cm)
Minimum tank20 gallons
Temperature72-82°F
pH7-8.4
Hardness12-30 dGH
TemperamentPeaceful
SocialGroup (3+)
DietOmnivore
Swim levelMid
Care levelEasy
Lifespan~4 years

How big do Swordtails get? Adult size explained

Adult size at a glance5.5″ (14.0 cm)0″1″2″3″4″5″6″051015inchescm
Swordtail adult size against an inch and centimetre ruler.

Swordtails are a mid-size species. This is the point where tank footprint starts to matter more than raw gallons — a long tank beats a tall one of the same volume. Adult swordtails reach 5.5 inches (14.0 cm). Fish you buy are almost always juveniles at roughly 2.5″, so plan the tank around the adult number, never the size in the bag.

StageTypical length
Size sold in storesabout 2.5″ (6.3 cm)
Half-grown4.1″ (10.4 cm) at roughly 8 months
Full adult size5.5″ (14.0 cm) by 14 months
Sexual maturityusually before full size, around 6–8 months

Growth rate depends mostly on feeding quality and water changes in the first six months. Stunted growth from poor water does not make the fish 'stay small' safely — internal organs keep growing, which shortens lifespan considerably.

Swordtail tank size: minimum vs recommended

Tank size for a group of 3 Swordtail20 gal · 76 Labsolute minimum40 gal · 151 Lrecommended — better colour, less stressDrawn to relative footprint. Wider beats taller for schooling fish.
Minimum vs recommended tank for Swordtail, drawn to relative footprint.
Short answer: the absolute minimum tank size for swordtail is 20 gallons (75 litres). For a healthy long-term setup we recommend 40 gallons (151 litres) or larger.

The 20-gallon figure is a floor, not a target. It assumes a cycled, filtered, planted tank and an owner who does weekly water changes.

Remember that the minimum tank and the minimum group interact. Swordtails need at least 3 individuals, so the real question is not “will one fit in 20 gallons” but “will 3 of them fit”. That is why we recommend 40 gallons as the practical starting point.

How many Swordtail fit per tank sizetoo small5 galtoo small10 gal320 gal429 gal640 gal855 galGrey = below the 20-gallon minimum for this species.
Tank sizeSwordtails it supportsVerdict
5 gallonsToo small
10 gallonsToo small
20 gallons3 in one groupWorkable minimum
29 gallons4 in one groupWorkable minimum
40 gallons6 in one groupComfortable
55 gallons8 in one groupComfortable
75 gallons9 in one groupComfortable

Numbers assume swordtails are the main occupants with light additional stocking, a filter rated for the tank, and weekly 25–30% water changes. Use the stocking calculator to model a mixed community.

Swordtail group size: how many should you keep together?

Why group size matters2–3 fish — skittish, hiding3+ fish — confident shoalpale colour, stressnatural schooling, best colour
Under-stocked group vs a proper shoal of 3+ Swordtail.

Swordtails are a shoaling species. In groups below 3 they show measurable stress behaviour: faded colour, hiding, refusing food and darting at the glass. This is not a preference — it is how the species regulates its own sense of safety.

Minimum: 3. Better: 5–6. Colour and natural behaviour improve noticeably once the group passes about 7. If your budget forces a choice between more species and bigger groups, always choose bigger groups — a tank with two well-sized shoals looks far better than one with six lonely singletons.

Swordtail water parameters

Temperature72–82°FpH7–8.4Hardness12–30 dGH60°F / pH 5 / 0 dGH90°F / pH 9 / 30 dGH
ParameterRangeNotes
Temperature72–82°F (22–28°C)aim for 77°F and keep it stable
pH7–8.4target 7.7; stability beats the exact number
Hardness (GH)12–30 dGHmoderate to hard
Ammonia (NH₃)0 ppmany reading means the tank is not cycled
Nitrite (NO₂)0 ppmany reading is an emergency — water change now
Nitrate (NO₃)under 20–40 ppmcontrolled by water changes and live plants

This species tolerates — and in fact prefers — harder water, which makes it a good match for most municipal tap water in the UK, US Midwest and much of Europe.

Stability matters more than perfection. A tank sitting steadily at pH 8 is healthier than one swinging between 7 and 8.4 every week. Test your tap water first, then choose fish that match it, rather than buying the fish and fighting the water afterwards.

Ideal swordtail tank setup

Active swimmers that need horizontal space. A 20-gallon long is better than a tall 20-gallon. Keep a group of 5+ with peaceful tankmates. They can jump — use a tight-fitting lid.

SubstrateDark substrate brings out colour; the choice is otherwise up to you.
PlantingPlant the back and sides, leave open swimming space down the middle.
FlowModerate flow suits this species well.
LightingModerate. Floating plants diffuse the light and make shy fish bolder.
LidRecommended — it also reduces evaporation and heat loss.

What do Swordtails eat? Diet and feeding

Omnivorous — flakes, pellets, frozen bloodworms, and blanched vegetables. They are active swimmers and need good nutrition. Feed 1-2 times daily.

The single most common feeding error is quantity, not quality. Swordtails have a stomach roughly the size of their eye. Feed what disappears in about two minutes, once a day, and the tank stays clean.

Staple: quality flake or micro-pellet as the staple.

FrequencyWhat to do
DailyOne small feeding of quality flake or micro-pellet as the staple. Everything eaten within 2 minutes.
2–3× weeklyRotate in a second food type for variety and micronutrients.
WeeklyOne fasting day gives the gut time to clear. Skip this for fry and for shrimp.

Swordtail behaviour and temperament

Swordtails are peaceful and will not start trouble. Their weakness is the opposite — they are easily bullied or outcompeted for food by faster or bolder species. They spend most of their time in the middle of the tank.

Signs of a settled, healthy specimen: strong colour, fins held open, active foraging, and a normal reaction to your hand near the glass. Signs of a stressed one: clamped fins, faded colour, hovering in a corner, gasping at the surface, or hiding constantly during daylight hours.

How long do Swordtails live?

about 4 years is the typical lifespan for swordtails in a well-maintained aquarium. Most fish that die early do not die of old age — they die of water quality in the first three months.
FactorEffect on lifespan
Stable, cycled waterAdds years. The most common cause of early death in swordtails is ammonia exposure in an uncycled tank.
Correct temperatureRunning warmer than 82°F speeds metabolism and shortens life; running cold invites disease.
Varied dietSingle-food diets cause organ problems and colour loss over time.
Right group sizeChronic stress from wrong social setup measurably shortens lifespan.
GeneticsMass-bred stock from large farms often lives noticeably shorter than quality or local stock.

Swordtail tank mates: what works and what does not

Compatibility is decided by four things, in this order: water parameters (72–82°F, pH 7–8.4), adult size, temperament, and swimming level. A fish that matches on three and fails on one is not a match.

Good tank mates

Check any pairing in the compatibility tool →

Breeding swordtails

Livebearers that produce 50-100 fry every 28 days. Males can be persistent — keep a 1:2 or 1:3 male-to-female ratio. Fry are large and easy to raise.

If you want fry to survive, the practical route is a separate, gently filtered grow-out tank. In a community tank almost every egg or fry becomes food, which is normal and not a sign that anything is wrong.

Male vs female swordtails

Males are smaller (4") with the distinctive sword extension on the tail. Females are larger (5.5") without the sword. Males are more colorful and active.

Swordtail health, diseases and prevention

Generally hardy. Susceptible to ich and fin rot in poor conditions. Males with long swords can develop fin rot if water quality drops. Keep water clean and well-oxygenated.
ProblemWhat you seeWhat to do
Ich (white spot)Salt-grain white dots, flicking against decorRaise temperature slowly to 82°F and treat; aquarium salt is usually tolerated.
Fin rotRagged, receding or blackened fin edgesAlmost always water quality. Increase water changes before reaching for medication.
Bloat / constipationSwollen belly, stringy white wasteFast 2–3 days, then feed blanched deshelled pea or daphnia.
Bacterial infectionRed streaks, ulcers, lethargyQuarantine and treat with a broad-spectrum antibacterial; review water quality.
Stress / chronic hidingFaded colour, clamped finsCheck parameters, group size and tank mates before medicating.

Prevention beats treatment every time: quarantine new arrivals for two weeks, keep the tank understocked rather than at maximum capacity, and do a consistent weekly water change instead of a large emergency one every month.

First 30 days with Swordtails: a practical checklist

Most losses happen in the first month, and almost all of them are avoidable. This is the schedule we recommend.

Before you buyDo not add fish yet. The tank must be fully cycled: ammonia 0, nitrite 0, nitrate present. A cycled tank is the single biggest predictor of whether these animals survive.
Day 1 — acclimationFloat the bag 20 minutes to match temperature, then drip acclimate over 45–60 minutes. Never pour store water into your tank.
Days 1–3Lights off or dimmed. Do not feed on day one. Expect hiding and pale colour; this is normal.
Days 4–14Test ammonia and nitrite every second day — new stock is the classic trigger of a mini-cycle. Feed lightly. Watch that every individual is eating.
Days 14–30Colour should be full and behaviour settled. This is the window where ich typically shows up — check body condition from above, not just from the side.
After day 30Now you can add the next species. Adding stock in stages rather than all at once is what keeps the filter ahead of the bioload.

Common mistakes when keeping Swordtails

What does a swordtail setup cost?

ItemTypical cost
Aquarium, 40 gal$108
Filter$45
Heater$30
Light$55
Substrate & decor$46
Liquid test kit$32
3× swordtail$60
Estimated total$376

Indicative US retail prices for a new setup. Running cost is modest: mostly electricity for the heater and filter, plus food and a water conditioner. Buying a larger tank up front is almost always cheaper than upgrading twice.

Swordtail compatibility: verdict per tank mate

Each pair below is a full comparison of temperature, pH, adult size and temperament. Green means compatible, amber means workable with conditions, red means avoid.

Open the full compatibility matrix

Swordtail FAQ

What size tank do swordtails need?

The minimum tank size for swordtails is 20 gallons (75 litres). Because they need a group of at least 3, we recommend 40 gallons or larger for a healthy long-term setup.

How big do swordtails get?

Adult swordtails reach 5.5 inches (14.0 cm). Store specimens are usually juveniles at around 2.5 inches, so always plan the tank around the adult size.

How long do swordtails live?

Swordtails typically live about 4 years in a well-maintained aquarium. Stable water quality and a varied diet are the two biggest factors in reaching the upper end of that range.

How many swordtails should I keep together?

Keep at least 3 together. Groups of 5 to 6 show noticeably better colour and more natural behaviour. Below 3 they become stressed, hide and lose colour.

What water parameters do swordtails need?

Keep swordtails at 72–82°F (22–28°C), pH 7–8.4, and hardness 12–30 dGH. Ammonia and nitrite must both read zero at all times.

Are swordtails good for beginners?

Yes. Swordtails are rated easy to keep and are a solid choice for a first tank, provided it is fully cycled before they go in.

What do swordtails eat?

Omnivorous — flakes, pellets, frozen bloodworms, and blanched vegetables. They are active swimmers and need good nutrition. Feed 1-2 times daily.

Do swordtails need a heater?

Yes. Swordtails need 72–82°F, which is above typical room temperature. An adjustable heater sized to the tank is essential — temperature swings cause more disease than a slightly wrong average.

Do swordtails need a filter?

Yes. A filter houses the bacteria that convert ammonia to nitrate. Choose a filter rated for at least your tank volume, ideally a size up.

Can swordtails live alone?

They can survive alone but should not be kept that way. Swordtails are a shoaling species and a lone individual is a chronically stressed one, which shortens its life.

What fish can live with swordtails?

Good tank mates include Cardinal Tetra, Guppy, Platy, Molly, Dwarf Gourami, Pearl Gourami. Match water parameters first, then temperament, then adult size — anything that can fit them in its mouth eventually will.

Are swordtails aggressive?

No. Swordtails are peaceful and will not harass other fish. The risk runs the other way — they are easily bullied or outcompeted for food.

How do you tell male from female swordtails?

Males are smaller (4") with the distinctive sword extension on the tail. Females are larger (5.5") without the sword. Males are more colorful and active.

Do swordtails breed in a home aquarium?

Livebearers that produce 50-100 fry every 28 days. Males can be persistent — keep a 1:2 or 1:3 male-to-female ratio. Fry are large and easy to raise.

Why are my swordtails hiding or losing colour?

In order of likelihood: the tank is not fully cycled (test ammonia and nitrite), the group is too small, the temperature is unstable, or a tank mate is harassing them. Fading colour is the earliest visible stress signal in this species — test the water before treating for anything.

How much does a swordtail setup cost?

Expect roughly $371 for a complete new 40-gallon setup including tank, filter, light, substrate, a test kit and the animals themselves. Buying the right size once is cheaper than upgrading twice.

Plan a tank with swordtails →

Marcus Rivera · Freshwater aquarist, 14 years fishkeeping

Every number on this page is cross-checked against at least four published sources and our own tank logs. Ranges reflect what keeps fish healthy long term, not the smallest tank an animal can survive in. See how we source data or our editorial policy.

✓ Reviewed 2026-08-21