Fish Swimming Erratically: Causes & Fixes
Darting, glass surfing, and shimmying usually mean a water quality problem. Learn how to diagnose erratic swimming fast and fix it before fish get sick.
If your fish are swimming erratically, the most likely cause is a water quality problem, usually ammonia or nitrite stress in a new or recently disrupted tank. The first action is to test your water for ammonia, nitrite, and nitrate. If you see any ammonia or nitrite, do a partial water change and dose a detoxifier like Seachem Prime right away. Erratic swimming is a symptom, not a disease, so the goal is to find what is irritating or stressing the fish.
Erratic swimming covers several behaviors: fast darting around the tank, glass surfing up and down the front pane, flashing or rubbing against surfaces, shimmying in place, and spiraling or swimming sideways. Each pattern hints at a different cause, but water quality sits behind a surprising number of them.
Diagnose and Stabilize Toolkit
API Freshwater Master Test Kit
$35.98 on Amazon
Test ammonia, nitrite, nitrate, and pH together to find the real cause fast.
$9.95 on Amazon
A dedicated liquid ammonia test for quick, accurate emergency readings.
Seachem Prime Water Conditioner
$16.62 on Amazon
Detoxifies ammonia and nitrite for 24 to 48 hours and dechlorinates new water.
Kordon AmQuel Plus Conditioner
$10.39 on Amazon
Instantly detoxifies ammonia, nitrite, and chloramine as a strong backup.
The most common causes
Before you reach for medication, run through these causes in order. Most cases trace back to one of the first three.
1. New-tank ammonia and nitrite
In a tank that is not fully cycled, ammonia and nitrite build up because there are not enough beneficial bacteria to process waste. These toxins burn the gills and stress the nervous system, which shows up as darting, flashing, and glass surfing. This is the classic cause of erratic swimming in tanks set up within the last six weeks. Read ammonia in the aquarium and our guide to new tank syndrome to confirm the picture, then learn how to cycle a fish tank properly.
2. Poor or swinging water parameters
Wrong temperature, a pH crash, or hardness that does not suit the species all cause stress. A heater stuck off lets the tank run cold, and a sudden swing during a careless water change can shock fish into frantic swimming. Match new water to the tank in temperature and treat it before it goes in. See pH in the aquarium and aquarium water temperature for target ranges.
3. Stress, aggression, and a bare environment
Newly added fish often dart and surf for a day or two while they settle. Persistent glass surfing can mean the fish feels exposed in a tank with no plants or hiding spots, or that it is being chased by a tankmate. Schooling fish kept in groups that are too small also act nervous. Add cover, confirm group sizes, and watch for a bully.
4. Ich and external parasites
Flashing and rubbing against rocks is a classic early sign of ich, before the white spots appear. Rapid gill movement, clamped fins, and scratching point to a parasite or gill irritation. Inspect closely under good light and quarantine new fish to keep parasites out of an established tank.
5. Swim bladder issues
If a fish swims sideways, spirals, floats, or sinks and cannot stay level, a swim bladder disorder is likely. It is common in fancy goldfish and bettas and is often tied to overfeeding, constipation, or gulping air with floating food.
How to diagnose it step by step
- Test the water. Check ammonia, nitrite, nitrate, and pH. Ammonia or nitrite above zero is your answer until proven otherwise.
- Check the temperature. Confirm the heater holds a steady, species-appropriate reading and is not stuck on or off.
- Count the affected fish. Many fish acting up points to water or temperature. One fish points to injury, illness, or bullying.
- Inspect the body. Look for white spots, frayed fins, red or inflamed gills, bloating, or wounds.
- Note the pattern. Darting and flashing differ from sideways or spiraling swimming, which differs from steady glass surfing.
- Review recent changes. New fish, a big water change, a new decoration, or a missed dechlorinator can all be the trigger.
How to fix erratic swimming
- If ammonia or nitrite is present: Do a 25 to 50 percent water change with dechlorinated, temperature-matched water, dose a detoxifier like Seachem Prime, stop feeding for a day, and test daily. Size the change with our water change calculator.
- If temperature or pH is off: Correct it slowly over hours, not minutes. Sudden swings cause more shock than the original problem.
- If it looks behavioral: Add plants and hiding spots, confirm schooling fish are in proper groups, and separate any aggressor. Make sure you are not overstocked using the stocking calculator.
- If you suspect ich: Raise temperature gradually within the species range, keep water pristine, and treat with a proven ich medication following the label.
- If it looks like swim bladder: Fast for one to two days, then offer soaked or sinking food, and cut back on overfeeding going forward.
How to prevent it
- Cycle before stocking. Never add fish to an uncycled tank. A fishless cycle takes four to six weeks and prevents the most common cause outright.
- Test weekly. A quick check catches a mini-cycle before fish suffer.
- Stock slowly and within limits. Add a few fish at a time and respect your tank size.
- Feed sparingly. Offer only what fish finish in a couple of minutes and remove leftovers.
- Quarantine new arrivals. A two to four week quarantine keeps parasites and disease out.
- Keep maintenance gentle. Match new water and always dechlorinate.
Erratic swimming is your fish telling you something is wrong, and water quality is the place to start almost every time. This guide is educational, not veterinary advice. If a fish keeps struggling after you correct the water, or you see clear disease signs, a local fish store or aquatic vet can help you identify and treat the problem. Explore the full Water and Care hub and our troubleshooting guides for related issues like fish staying at the bottom.
Aquarium Setup & Maintenance Planner
Stocking planner, water-test log, cycling tracker, maintenance schedule, and more, in one printable planner that keeps your tank on track.
Frequently Asked Questions
Why is my fish suddenly swimming erratically?
The most common cause of sudden erratic swimming is a water quality problem, usually ammonia or nitrite in a new or disrupted tank. These toxins irritate the gills and nervous system, which triggers darting, twitching, and glass surfing. Test your water for ammonia, nitrite, and nitrate first. If any ammonia or nitrite shows up, do a partial water change and dose a detoxifier right away.
What is glass surfing in fish?
Glass surfing is when a fish swims up and down the front pane of the tank over and over, as if trying to get out. It usually signals stress from new-tank ammonia, poor water parameters, an unfamiliar environment, aggression from tankmates, or boredom in a bare tank. Check your water first, then look at stocking, hiding spots, and how recently the fish was added before assuming it is behavioral.
Why is my fish shimmying and shaking in place?
Shimmying, where a fish wiggles its body but barely moves forward, is most common in livebearers like mollies and guppies. It often points to water that is too cold, the wrong hardness or pH, or ammonia and nitrite stress. Mollies in particular need stable, harder, slightly alkaline water. Test parameters, confirm the heater holds the right temperature, and correct any swing slowly rather than all at once.
Is erratic swimming a sign of ich or disease?
It can be. Fish with ich often dart and flash, rubbing against rocks and decorations to relieve irritation before the telltale white spots appear. Erratic swimming with rapid gill movement, clamped fins, or scratching suggests a parasite or gill problem. Look closely for white specks, frayed fins, or red gills, and quarantine new arrivals so you do not introduce disease to an established tank.
Can a swim bladder problem cause erratic swimming?
Yes. A swim bladder disorder can make a fish swim sideways, spiral, float to the top, or sink and struggle to stay level. It is common in fancy goldfish and bettas and is often linked to overfeeding, constipation, or gulping air with floating food. Fasting for a day or two, then feeding a soaked or sinking food, helps many cases, but persistent symptoms need a closer look at water quality and diet.
Should I be worried if only one fish swims erratically?
If one fish acts strangely while the others are fine, water quality is less likely to be the sole cause, though you should still test. A single affected fish points more toward injury, individual illness, swim bladder trouble, or stress from being bullied. Watch that fish closely, check for visible damage or disease signs, and consider moving it to a quarantine tank where you can observe and treat it safely.
Planning or running a tank?
Use our free calculators and guides to get every number right.
Aquarium Planner: $39