Freshwater Fish · Livebearer
Pineapple Swordtail Care Guide: Vibrant Color for the Community Tank
Xiphophorus hellerii
Learn how to care for the Pineapple Swordtail (Xiphophorus hellerii). Expert tips on water parameters, diet, and choosing healthy fish at your local store.
Species Overview#
The Pineapple Swordtail (Xiphophorus hellerii) is one of the most recognizable color morphs of the green swordtail, prized for the warm yellow-orange gradient that runs from gill plate to tail. It is a classic livebearer in the Poeciliidae family — hardy, active, prolific, and an easy gateway fish for hobbyists who want movement and color without the demands of a soft-water blackwater setup. Where neon tetras want acidic Amazon water, swordtails want exactly the opposite: hard, alkaline, mineral-rich water that comes straight out of most municipal taps in the United States.
A well-bred Pineapple Swordtail looks like a small, swimming sunset. A poorly-bred one looks faded and washed out. The difference comes down to genetics and feeding — both of which you control once the fish is in your tank, but only one of which you can correct after purchase. That makes the moment you choose your fish at the store more important than most beginners realize.
- Adult size
- 3-5 in (8-13 cm)
- Lifespan
- 3-5 years
- Min tank
- 20 gallons
- Temperament
- Peaceful, active
- Difficulty
- Beginner
- Diet
- Omnivore
The "Pineapple" Morph: Identifying the Yellow-Orange Gradient#
The Pineapple Swordtail is a selectively-bred line of Xiphophorus hellerii, the green swordtail native to the freshwater streams and springs of southern Mexico and Central America. The wild ancestor is olive-green with a faint red lateral line; decades of line-breeding produced the modern Pineapple morph, which features a saturated yellow body, a distinct orange-red wash along the dorsal and caudal regions, and — in top-quality specimens — a clean black margin tracing the sword.
True Pineapples should look vivid even under daylight LED lighting. If a fish in the store tank looks pale yellow with no orange, you are likely seeing either a juvenile that has not yet developed adult color or a poorly line-bred individual that will never develop it. Color enhancement through diet (carotenoids and astaxanthin in pellets) helps fish express their genetic potential, but it cannot create color that is not coded in the genes.
Sexual Dimorphism: Identifying the "Sword" in Males#
Sexing swordtails is straightforward once they reach about two inches. Males develop a long, pointed extension on the lower lobe of the caudal fin — the "sword" the species is named for. This sword can grow nearly as long as the body itself in mature males and is usually edged in black against the yellow-orange base color. Males also develop a gonopodium, a modified anal fin used for internal fertilization, which gives the underside of the fish a stick-like appearance instead of the broader fan-shaped fin of females.
Females are larger overall, deeper-bodied, and lack both the sword and the gonopodium. They will display a dark "gravid spot" near the vent when carrying fry, which becomes one of the easiest cues for predicting birth.
Average Lifespan and Growth Expectations#
A healthy Pineapple Swordtail lives 3 to 5 years in a properly maintained tank. They grow quickly during the first year — fry born at about a quarter-inch can reach full adult size in 8 to 10 months given consistent feeding and stable parameters. Growth slows considerably after maturity, and a fish that has not reached at least 3 inches by its first birthday is unlikely to ever hit the upper end of the size range.
Water Parameters & Tank Requirements#
Swordtails are not delicate, but they are big enough and active enough that the common "10-gallon livebearer tank" recommendation underestimates them. Plan for length, plan for hard water, and plan for a tight lid.
Minimum Tank Size: Why 20+ Gallons is Essential for Active Swimmers#
A 20-gallon long is the practical minimum for a small group of Pineapple Swordtails. The footprint matters more than the volume — these fish cruise the middle and upper levels constantly and need horizontal swimming room to do it. A 20-tall holds the same water as a 20-long but offers about a third less length, which cramps swordtail behavior noticeably.
For a breeding group of one male and three to four females, jump to 29 or 30 gallons. If you want to keep multiple males without constant chasing, 55 gallons is the realistic threshold. Cycle the tank fully before adding fish — see our aquarium dimensions guide for footprint comparisons across common sizes, and our 20-gallon fish tank setup guide for a livebearer-friendly build.
Swordtails are among the most notorious jumpers in the freshwater hobby. A startled fish can clear an open-top rim from a dead stop, and a Pineapple female lost to the carpet behind the stand is a common and entirely preventable casualty. Cover every opening, including the cutouts for HOB filters and heater cords.
Ideal Parameters: Temperature (70°F-82°F) and Hardness (12-30 dGH)#
Pineapple Swordtails tolerate a wide temperature band of 70 to 82 degrees Fahrenheit, with 74 to 78 degrees being the sweet spot for both health and breeding. Cooler temperatures slow metabolism and reduce fry production; warmer temperatures shorten lifespan and increase aggression. A reliable heater and a glass thermometer (separate from the heater's built-in dial) keep this range stable.
Hardness is where many new keepers go wrong. Swordtails are hard-water fish, full stop. They want general hardness (GH) between 12 and 30 dGH and carbonate hardness (KH) of at least 10 dKH. Soft water — the kind that suits tetras and rasboras — leaves swordtails prone to fin clamping, shimmies, and a host of vague stress diseases. If your tap water is naturally soft, dose a remineralizer like Seachem Equilibrium or add crushed coral to the filter to bring hardness up before you add fish.
The Importance of High pH (7.0-8.4) and Mineral Content#
Target pH is 7.0 to 8.4, with most established swordtail tanks settling around 7.6 to 8.0. The high pH and high mineral content go hand in hand — both are stabilized by the same buffering minerals (carbonates and bicarbonates) that hard water carries. A tank that holds steady at pH 7.8 with KH of 12 dKH is essentially self-regulating against the slow acidification that happens as nitrification produces nitrate.
Speaking of nitrification — do not skip the cycle. Swordtails are forgiving of mature water but very unforgiving of ammonia spikes. A fishless cycle takes four to six weeks and pays for itself in the first month of stocking.
Diet & Feeding#
Swordtails are true omnivores and will eat almost anything that fits in their mouths. Variety, not any single food, is what produces the deep Pineapple color and consistent breeding behavior.
High-Protein Flakes and Color-Enhancing Pellets#
The base of the diet is a quality flake or micro-pellet — Hikari Tropical Micro Pellets, New Life Spectrum AllPurpose, or Cobalt Aquatics Color Flakes are all reliable. Look specifically for foods that list astaxanthin, spirulina, or natural carotenoids in the first five ingredients. These are the pigments responsible for orange and red expression in fish skin; without them in the diet, even a genetically strong Pineapple will dull over time.
Feed two small meals a day, only what the school clears in about 90 seconds. Overfeeding is the leading cause of swim-bladder issues and water-quality crashes in livebearer tanks.
Supplementing with Spirulina and Vegetable Matter#
Wild Xiphophorus hellerii graze heavily on algae and biofilm. In the home tank, replicate that with spirulina-based wafers or flakes a few times a week, plus the occasional blanched vegetable — zucchini medallions, deshelled peas, or leaves of spinach. Vegetable matter keeps the digestive system moving, prevents bloat, and supports the green-yellow components of the Pineapple color palette.
Live and Frozen Treats: Bloodworms and Brine Shrimp#
Once or twice a week, offer frozen bloodworms, frozen or live brine shrimp, or daphnia. These high-protein treats condition adults for breeding and are particularly useful for fattening females before they drop fry. Thaw frozen foods in a small cup of tank water before adding to avoid feeding cold lumps that can shock the fish.
Tank Mates & Compatibility#
Swordtails are generally peaceful in a community tank but bring two specific complications: male-on-male aggression and constant breeding. Plan around both.
Managing the Male-to-Female Ratio (1:3) to Prevent Stress#
The single most important rule for swordtail community keeping is the male-to-female ratio. Keep one male per three or four females. With a 1:1 ratio, the male will harass the lone female relentlessly during breeding attempts, often to the point of exhaustion. With multiple males in a tank under 55 gallons, the dominant male will chase subordinates out of feeding zones and shelter.
If you want an all-male display tank for the sword fins without breeding, that works in 40 gallons or larger with at least four males so no single fish becomes a permanent target. All-female tanks are the calmest configuration but lose half the visual appeal of the species.
Best Community Partners: Mollies, Platies, and Corydoras#
Pineapple Swordtails pair naturally with other hard-water community fish. Best partners include black mollies, dalmatian mollies, mickey mouse platies, variatus platies, and bottom-dwelling bronze corydoras or peppered corydoras. All share the same parameter preferences and occupy different levels of the tank, which prevents direct competition.
Otocinclus catfish work well as algae crew if your tank is mature, and a small group of cherry barbs or harlequin rasboras adds midwater variety. Snails such as the nerite snail varieties and mystery snails appreciate the same hard, alkaline water and help with algae control.
Species to Avoid: Fin-Nippers and Large Predators#
Avoid known fin-nippers — tiger barbs, serpae tetras, and black skirt tetras will all target the male's sword. Skip large cichlids and any predatory fish that view a 4-inch livebearer as a meal. Angelfish and oscars are obvious nos. Bettas in the same tank will sometimes tolerate swordtails and sometimes flare at the elaborate finnage — best to keep them separate.
Breeding Pineapple Swordtails#
If you keep a male and a female swordtail in the same tank with reasonable conditions, you will get fry. The harder problem is keeping any of them alive.
Recognizing a Gravid Female#
Gestation runs 28 to 30 days. A gravid female develops a visibly distended belly and a darkening "gravid spot" near the anal fin — a patch of dark pigment caused by the developing fry visible through the body wall. In the final days, the spot becomes nearly black and the belly squares off rather than tapering, a sign that birth is within 48 to 72 hours.
Using Breeding Boxes vs. Dense Floating Plants (Guppy Grass/Hornwort)#
Swordtail adults — including the mother — will eat fry on sight. You have two options to save them. The first is a breeding box (a clear plastic container with a removable divider and slotted floor) suspended in the tank. The mother goes in shortly before dropping; fry fall through the slots into a protected lower chamber. The catch: stressed females in too-small boxes sometimes reabsorb a brood or release prematurely.
The second option, and the one most experienced breeders prefer, is dense floating cover. A thick mat of guppy grass (Najas guadalupensis), hornwort, water sprite, or Amazon frogbit gives newborn fry an instant hiding place at the surface, where they naturally retreat for their first feedings. With heavy enough cover in a well-fed tank, 30 to 50 percent of fry survive without intervention.
A 20-gallon long with a half-covered surface of guppy grass and a few clumps of java moss along the back wall will yield more grown-out fry per drop than any plastic isolation box. Floating plants also dim the light from above, which keeps adults calmer and reduces predation pressure on the fry.
Raising Fry: First Foods and Water Quality#
Newly-dropped fry are large enough to take crushed flake or powdered fry food immediately. Within a week they will eat baby brine shrimp, which dramatically accelerates growth and color development. Feed three to four small meals a day and perform 20 percent water changes twice weekly to keep nitrate low. Fry that grow up in clean, well-fed conditions develop full Pineapple color by the four-month mark; fry stunted by overcrowding or poor water rarely catch up.
Common Health Issues#
Healthy swordtails in stable hard water are tough. Most disease in livebearer tanks traces back to either temperature swings, soft water, or a missed cycle.
Ich (White Spot Disease) and Temperature Fluctuations#
Ich (Ichthyophthirius multifiliis) presents as small white spots scattered across the body and fins, often accompanied by flashing — the fish darting and rubbing against decor. It almost always follows a temperature drop, an unheated quarantine tank, or new fish added without quarantine. Treat by raising temperature gradually to 82 degrees Fahrenheit and dosing a copper- or formalin-based ich medication per the label, with a partial water change between doses.
Fin Rot and Shimmies: Signs of Poor Water Hardness#
The "shimmies" — a side-to-side rocking motion without forward progress — is a classic livebearer-in-soft-water symptom. The fix is mineral content: bring GH up to at least 12 dGH and KH to at least 6 dKH using crushed coral, aragonite substrate, or a commercial remineralizer. Fin rot, which presents as ragged or whitened fin edges, responds to a 25 percent water change followed by a course of furan-2 or kanamycin if the rot is advancing.
The single most useful piece of equipment you can own as a livebearer keeper is a 10-gallon quarantine tank with a sponge filter and a heater. Two weeks of observation before adding new fish to your display tank prevents nearly every disease outbreak the average hobbyist will ever face.
Where to Buy & What to Look For#
This is where the Pineapple part of "Pineapple Swordtail" matters most. Color is genetic, and you cannot feed your way out of a poor purchase.
Inspecting for Clamped Fins and Spinal Deformities#
Watch the store tank for at least five minutes before buying. Healthy swordtails cruise actively at all levels and hold their fins fully erect. Pass on any tank where multiple fish are clamped (fins held tight against the body), hovering near the heater, sitting on the substrate, or breathing rapidly at the surface. Spinal deformities — a curved or hunched back — appear in about one to two percent of mass-produced swordtails and indicate inbreeding; even one visibly deformed fish in the tank is a reason to look elsewhere for stock.
Sourcing from Local Fish Stores (LFS) vs. Big Box Retailers#
A good local fish store will hold its Pineapples in mature, hard-water systems and quarantine new shipments for at least a week before selling. A big-box pet retailer typically rotates stock every three to seven days through a centralized water system, which means recently-arrived fish go straight onto the sales floor with shipping stress unresolved. The mortality difference in the first 30 days at home is significant — some hobbyists report losing 40 to 60 percent of big-box livebearers in the first month versus near-zero from a quality LFS.
At the store, find the brightest individuals in the tank and compare them side-by-side. A true Pineapple shows a saturated yellow base with a clear orange wash along the dorsal and caudal fins — the color of a ripe pineapple, not a banana. If the entire tank looks washed-out or pale lemon-yellow, the line has been diluted by poor breeding and the fish will not "color up" in your tank no matter what you feed them. Walk away and check back when fresh stock arrives, or ask the staff which suppliers their best-colored Pineapples come from. A staff member who knows the answer is the staff member to buy from.
Quick-Reference Cheat Sheet#
| Parameter | Target | Notes |
|---|---|---|
| Scientific name | Xiphophorus hellerii | Poeciliidae family livebearer |
| Adult size | 3-5 in (8-13 cm) | Females larger; males appear longer with sword |
| Lifespan | 3-5 years | Stable parameters extend the upper end |
| Min tank size | 20 gallons (long) | 29-30 gal for breeding groups; 55 gal for multiple males |
| Temperature | 70-82 F (21-28 C) | 74-78 F is the sweet spot |
| pH | 7.0-8.4 | Hard, alkaline tap water is ideal |
| GH (general hardness) | 12-30 dGH | Remineralize soft tap water before stocking |
| KH (carbonate hardness) | 10+ dKH | Stabilizes pH and prevents shimmies |
| Diet | Omnivore | Quality flake plus spirulina, frozen, and veggies |
| Temperament | Peaceful, active | Males territorial with other males |
| M:F ratio | 1 male : 3-4 females | Critical for reducing female harassment |
| Breeding | Livebearer, 28-30 day gestation | 20-80 fry per drop; cover heavily for survival |
- Saturated yellow base with clear orange-red wash on dorsal and caudal fins
- Sword (males) cleanly edged in black, no kinks or split rays
- Active swimming at multiple tank levels, fins fully erect (no clamping)
- Straight spine viewed from above - no humps, curves, or stunted body shape
- Clean gill covers, clear eyes, no white spots or torn fins
- Tank water tested hard and alkaline (ask staff for GH/pH readings)
- Store has held the shipment at least 7 days; ask when stock arrived
- Confirm sex ratio you want - bring a 1:3 male-to-female group home
The Pineapple Swordtail is one of the most rewarding starter fish in the freshwater hobby — colorful, hardy, social, and willing to breed without much intervention from the keeper. Get the hardness right, get the male-to-female ratio right, and pick well-colored stock from a store that knows its suppliers, and you will have a tank full of swimming sunset for the next half-decade.
Related species
Similar species you might also be considering for your tank.
Thayeria boehlkei
Osteoglossum ferreirai
Hypselecara temporalis
Xiphophorus hellerii
Parosphromenus deissneri
Trichopsis vittata