A tank size of at least 20 gallons (75 liters) is recommended for a swordtail community. Swordtails are active swimmers and appreciate ample space to explore. A larger tank also helps maintain stable water parameters and reduces aggression among tank mates.