Swordtails tap the tank glass primarily as a reflex to floating food, a response to their own reflection, or a sign of mild stress from cramped conditions or poor water quality. This behavior is common and usually harmless, but it can indicate an issue you should address.
What the Tapping Means
Swordtails (Xiphophorus hellerii) are active, curious livebearers. When they tap the glass, they are usually trying to do one of three things:
- Feeding response: If you feed flakes or pellets that drift near the surface, swordtails learn to associate movement at the glass with food. They may tap or nip the glass in anticipation.
- Reflection confusion: In a brightly lit tank with darker surroundings, the glass acts like a mirror. A swordtail sees its own reflection and may try to chase or display at it, especially males during breeding season.
- Stress or boredom: In a tank that is too small, overcrowded, or lacking hiding spots, swordtails may pace and tap the glass as a repetitive behavior. Poor water quality (high ammonia or nitrites) can also cause erratic swimming and glass-tapping.
How to Tell Which Cause It Is
Observe the context of the tapping:
- If it happens right before feeding or when you approach the tank, it’s likely a food response.
- If it happens when the tank light is on and the room is dark, or when a swordtail is alone near a corner, it’s likely reflection.
- If it happens constantly throughout the day, even when no one is near, check water parameters and tank size.
Also note the swordtail’s body language. A stressed fish may clamp its fins, breathe rapidly, or hide. A fish chasing its reflection will often flare its fins and make quick darting movements.
When Tapping Is a Problem
Tapping itself rarely injures a swordtail, but the underlying cause can. Persistent stress weakens the immune system, making fish more prone to ich and fin rot. If the tapping is due to reflection, the fish may exhaust itself or damage its snout from repeated contact. Stress from poor water quality can be fatal if left unaddressed.
If you see any of the following, take action:
- Redness or abrasions on the snout
- Rapid gill movement or gasping at the surface
- Clamped fins, loss of appetite, or lethargy
- Repeatedly swimming into the glass with force
How to Stop the Tapping
Depending on the cause, you can try these fixes:
- For food response: Feed at a consistent time and in a specific corner. Use a feeding ring to keep food in one spot. This teaches the fish that food comes from the surface, not the glass.
- For reflection: Reduce the tank’s internal lighting or increase ambient room light. Add a background to the outside of the tank (dark or frosted) to break the mirror effect. You can also add floating plants to diffuse light.
- For stress: Check water parameters (ammonia, nitrite, nitrate, pH) and perform a partial water change if needed. Ensure the tank is at least 20 gallons for a small group, and provide hiding spots like caves, driftwood, or dense plants.
- For boredom: Add tankmates (other livebearers, tetras, or corydoras) to provide social interaction, but avoid overcrowding. Rearrange decorations occasionally to stimulate exploration.
Preventing Future Tapping
Once you’ve identified and fixed the cause, you can prevent recurrence with these habits:
- Maintain a regular feeding schedule with high-quality food.
- Keep the tank in a well-lit room or use a timer for the aquarium light (8–10 hours per day).
- Test water weekly, especially if you have a new tank or recently added fish.
- Provide a balanced environment: open swimming areas plus planted zones.
- Avoid keeping swordtails in tanks under 20 gallons; they are active swimmers.
Related Misconception: Tapping Means the Fish Is Hungry
Many owners assume tapping always means hunger. While it can be a learned feeding behavior, it is not a reliable sign of hunger. Swordtails have small stomachs and should be fed 2–3 times a day in small amounts. Overfeeding can cause water quality issues, which in turn can cause stress and more tapping. If your fish taps after a meal, it’s likely not hunger.
Frequently Asked Questions
Do swordtails tap the glass more at night?
Yes, if the tank light is on and the room is dark, the reflection is stronger, so tapping may increase. Turn off the tank light or add a dimmer to reduce this.
Can tapping hurt the fish?
Usually not, but repeated forceful tapping can cause snout abrasions. If you see redness, treat the water with a mild antiseptic (aquarium-safe) and fix the cause.
Is tapping a sign of illness?
Not directly, but it can be a symptom of stress caused by poor water quality or overcrowding, which can lead to illness. Check water parameters and observe for other signs.
Will adding more swordtails stop the tapping?
Sometimes, if the tapping is due to loneliness or boredom. Swordtails are social, but adding too many can increase stress. Add 2–3 females per male to reduce aggression and provide a more natural social structure.
Should I tap back on the glass?
No. Tapping back can startle the fish and increase stress. It may also reinforce the behavior if the fish thinks it’s a game.