A fish that suddenly scrapes its flank against a rock, skims along the gravel, or twists to rub its gill cover against the tank wall is doing something called flashing. The movement is quick, often repeated, and easy to dismiss as quirky behaviour. It is not. Flashing is the fish equivalent of scratching an itch, and like scratching, it points to something causing irritation on or under the skin.
What flashing actually is
The technical name is glancing behaviour, but flashing is the term most aquarists and vets use because of the brief silvery flash the fish's side makes as it rolls. The fish turns its body at an angle and makes contact with a hard surface, gravel, a rock, driftwood, the tank wall, using the flank, the gill area, or the underside. It lasts a fraction of a second. A fish that does it once or twice in a day is not necessarily in trouble. A fish that does it repeatedly, or does it alongside other changes in behaviour or appearance, is telling you something is wrong.
The most common causes
Parasites sit at the top of the list. Ich (Ichthyophthirius multifiliis) is the most frequently diagnosed cause of flashing in freshwater tanks. The parasite burrows under the mucus layer of the skin and gills, and the fish's response is to try to dislodge it mechanically. You may see the white spots that give ich its common name, white spot disease, but not always, especially early in an infection when the parasite count is still low. Velvet disease (Oodinium in freshwater, Amyloodinium in marine tanks) causes similar irritation and is harder to spot; the dusting of fine gold or rust-coloured powder on the body is often only visible under a torch held at an angle.
Gill flukes (Dactylogyrus species) and skin flukes (Gyrodactylus species) are flatworm parasites that attach to the gills and skin respectively. A fish with gill flukes often flashes specifically near the gill covers and may show rapid gill movement or come to the surface for air. Skin flukes produce a general body flash and sometimes a visible excess of mucus, giving the fish a slightly milky look.
Water quality is the second major cause. Ammonia and nitrite, even at levels that do not kill fish outright, irritate the skin and gill tissue. A fish in a tank with rising ammonia will often flash before it shows any other sign of distress. The same is true for chlorine in tap water that has not been fully dechlorinated, a pH that has shifted outside the species' tolerance, or water that is too hard or too soft for the fish being kept. These are not parasite problems, but they produce the same surface irritation and the same behavioural response.
Bacterial and fungal infections can cause localised skin irritation that leads to flashing, though these usually produce visible lesions, redness, ulcers, white patches, that make the cause easier to identify. A new fish introduced without quarantine is a common entry point for all of the above.
What to check first
Before reaching for any treatment, test the water. Ammonia, nitrite, nitrate, and pH are the four numbers that matter most. A reliable liquid test kit gives more accurate readings than strip tests. If ammonia or nitrite is above zero in an established tank, a partial water change is the first step, not a medication. Many cases of flashing in otherwise healthy-looking fish resolve once water quality is corrected.
Look at the fish closely, ideally with a small torch. Check for white spots (ich), a fine dusty coating (velvet), excess mucus, redness around the gills or base of the fins, or any ulcers. Check whether the flashing is concentrated near the gills or distributed across the body, this can help narrow the cause. Watch whether other fish in the tank are flashing too, which suggests a tank-wide problem rather than an individual one.
Note how often it is happening. Occasional flashing in a fish that is eating well, swimming normally, and showing no visible marks on its body is lower urgency than repeated flashing in a fish that is also clamping its fins, losing colour, or sitting near the surface.
When this needs a vet or a specialist
Flashing that continues for more than two or three days, flashing paired with visible spots or coating on the body, rapid gill movement, loss of appetite, or fish dying in the tank, any of these means the problem has moved past what a water change will fix. A vet with aquatic experience, or an experienced aquatic specialist, can examine a gill scraping or skin scraping under a microscope and identify the parasite precisely. Treatment depends entirely on what is present: the medication that works on ich does not work on flukes, and treating for the wrong thing wastes time while the fish deteriorates. Marine tanks add another layer of complexity because many treatments safe in freshwater are toxic to invertebrates and corals.
Flashing is a signal, not a diagnosis. The fish is telling you the surface of its body is being irritated. Your job is to find out why, starting with the water, then looking at the fish, then getting a proper identification if the cause is not obvious. The sooner the cause is found, the more options remain open.