Swordtail Fish Tank Size Calculator

Work out the right swordtail fish tank size for your group in seconds β€” or flip it around and see how many swordtails fit in the aquarium you already own.

Swordtail tank size calculator

How many Swordtails do you want to keep?
6
swordtails

Swordtail Fish at a glance

Care levelBeginner
Adult size4–6 inches (10–15 cm)
Lifespan3–5 years
Min tank20 gal for a group of 5
Recommended30 gal
Temperature72–82Β°F (22–28Β°C)
pH7.0–8.3

What swordtail fish tank size do you need?

Swordtails (Xiphophorus hellerii) are active, fast-swimming livebearers that reach 4–6 inches (10–15 cm) including the distinctive caudal sword of the male, so swordtail fish tank size is mostly a question of swimming length. Plan for a minimum of 20 gallons for a starter group of 5, with a 30-gallon long tank as the comfortable size for a small mixed-sex group. Always choose a long, low tank over a tall one: swordtails swim in the upper and middle water column and use horizontal space far more than depth.

The rule behind this swordtail tank size calculator is simple: 20 gallons covers the first 5 fish, and every extra adult adds about 5 gallons. That works out to roughly 4–5 gallons per swordtail, which is more than a guppy or platy needs because swordtails are larger, faster and messier. If you are unsure of your aquarium's true volume, the aquarium volume calculator converts tank dimensions to gallons and litres.

Keep swordtails in a group ratio of 1 male to 2–3 females. Male swordtails persistently chase females; having more females per male distributes the mating pressure and prevents a single female from being constantly harassed. Groups of all males are usually peaceful, though a dominant male may still bully in a cramped tank β€” another reason to size generously.

Swordtails are livebearers that reproduce readily in any mixed-sex tank, producing a batch of fry roughly every four weeks. If you are not set up to manage fry, keep an all-male group or only females. A 30-gallon long tank with 5–6 swordtails is an active, colourful display that is easy to maintain, and the extra volume gives you headroom while the fry grow out.

Unlike some livebearers, swordtails are not brackish-water fish. They prefer slightly alkaline freshwater (pH 7.0–8.3), moderate hardness and temperature stability over warm temperatures. A simple community tank setup suits them well.

Swordtail fish tank size rules: 20 gallons for a group of 5, 5 gallons per extra fish, 1 male to 2–3 females
Three numbers drive swordtail fish tank size: 20 gallons for the first 5, 5 gallons per extra adult, and a 1:2–3 male-to-female ratio.

How many swordtails in a 20 gallon tank, 30 gallon tank or larger?

The table applies the same rule the swordtail tank size calculator uses β€” 20 gallons for the first 5 fish, then 5 gallons per adult β€” assuming a cycled tank, weekly water changes and no other fish. Swordtails are heavy feeders and produce more waste than guppies, so treat the upper number as a ceiling that needs strong filtration, not a target.

Swordtail fish tank size chart showing how many swordtails fit in 20, 29, 40 and 55 gallon tanks
How many swordtails per tank size at 20 gallons for 5 fish plus 5 gallons per extra adult.
Tank sizeSwordtails (comfortable–max)Notes
10 gal (38 L)Not recommendedToo short for fish that reach 4–6 inches; males fight and females get chased into corners.
20 gal long (76 L)5–6Minimum swordtail fish tank size. Pick the 30-inch "long" footprint, not the tall 20-gallon high.
29–30 gal (110 L)6–7Recommended starter size; comfortable for 1 male, 3–4 females and some fry cover.
40 gal breeder (151 L)9–10Roomy for two males with their own females, or a swordtail-plus-platy livebearer community.
55 gal (208 L)12–14The 4-foot length suits their fast, open-water swimming; good for a colony that breeds.
75 gal (284 L)16–18Large colony or a full community where swordtails are one of several species.

Tank length matters more than gallons. A 20-gallon long (30 Γ— 12 Γ— 12 in) is a far better swordtail tank than a 20-gallon high (24 Γ— 12 Γ— 16 in) with the same volume, because the fish cover the whole length in a couple of tail beats. When two tanks hold the same water, choose the longer footprint.

Sharing the tank with other fish? Size the tank for the largest or messiest species first, then use what is left for swordtails. Because they like slightly alkaline water and open swimming room, pair them with fish that share it β€” platies, mollies and larger tetras are the easy choices; skip long-finned tank mates that a boisterous male might nip. Check any pairing in the swordtail tank mates hub or the fish compatibility checker. For the species' natural range and biology, see the green swordtail entry on Wikipedia.

Frequently asked questions

What size tank do swordtails need?
The minimum swordtail fish tank size is 20 gallons for a small group of 5. A 30-gallon tank is the recommended size for a comfortable swordtail community. Swordtails grow to 4–6 inches and are active, fast-swimming fish that benefit from a long tank with horizontal swimming space.
How many swordtails can I keep in a 20-gallon tank?
A 20-gallon long tank holds a starter group of 5 swordtails comfortably, or 6 at most with strong filtration. Every extra adult needs about 5 more gallons. Keep a ratio of 1 male to 2–3 females if mixing sexes; an all-male group of 5 swordtails in a 20-gallon tank is peaceful and colourful.
Can swordtails live in a 10-gallon tank?
A 10-gallon tank is not recommended for swordtails. They grow to 4–6 inches and are very active swimmers that need horizontal space. A 10-gallon tank is too small for a proper group, and the limited space increases aggression between males and stress on females from constant male attention.
Do swordtails need to be in groups?
Swordtails benefit from being kept in small groups of 4–6 fish with a ratio of 1 male to 2–3 females. This distributes mating pressure so no single female is constantly chased. All-male groups of swordtails are usually peaceful. Keeping a lone swordtail is not ideal, but a single swordtail in a peaceful community tank can do well.
Can male and female swordtails be kept together?
Yes, but plan carefully. Male swordtails persistently court females, which can stress individual females if there are too few. The standard ratio is 1 male to 2–3 females. Swordtails are livebearers and will produce fry in a mixed-sex tank β€” be prepared to manage the population by separating or rehoming fry, or keep an all-male or all-female group.

Updated September 11, 2026 Β· Reviewed by the FishCare AI editorial team Β· Editorial policy