A fish floating sideways, sinking uncontrollably or struggling to stay upright has a buoyancy problem that needs investigation. “Swim bladder disease” is a description often applied to several different conditions, not a diagnosis that automatically calls for peas, salt or antibiotics.

Check urgent environmental problems first
Test ammonia, nitrite, temperature and pH, and check filtration and aeration. If several fish are affected at once, investigate the shared environment promptly. Correct unsafe water with appropriate conditioned, temperature-matched replacement water.
Gasping at the surface, abnormal posture and weak swimming can overlap. Head-up swimming alone does not prove low oxygen or rule out internal disease. Severe breathing difficulty, inability to reach air in an air-breathing species, marked swelling or persistent inability to feed warrants prompt veterinary help.
Possible causes

Problems can involve abnormal gas regulation, inflammation, infection, injury, developmental changes or pressure and displacement from other internal structures. Not every fish swimming abnormally has a damaged swim bladder. Its shape, recent history, diet and water conditions all help narrow the possibilities.
The Canadian Veterinary Medical Association discusses buoyancy problems in fancy goldfish, whose body shape can complicate the issue. This does not establish that every affected goldfish has the same cause or that an upside-down betta is necessarily constipated.
What the swim bladder does

The swim bladder is a gas-filled organ that helps many bony fish control buoyancy. Some species retain a connection with the digestive tract; others regulate gas through specialized tissues. It is not present in all fish, and a generic anatomy picture cannot guide a procedure on an individual animal.
Supportive care while arranging assessment
Protect the fish from harassment and strong currents. A suitable hospital tank can improve observation and access to food, but it needs reliable temperature control, oxygen and water-quality monitoring. Do not repeatedly move the fish between uncycled containers.
Offer an appropriate diet in manageable portions where the fish can reach it, and remove leftovers. Discuss any temporary feeding change with the veterinarian. Peas may be discussed for particular goldfish cases, but they are not a universal laxative or a proven cure for every buoyancy disorder. Feeding large amounts of daphnia is not a diagnostic treatment either.
Diagnosis and targeted treatment

An aquatic veterinarian may examine the fish and use imaging to distinguish enlargement, displacement, fluid or other internal abnormalities. Merck Veterinary Manual describes gas-bladder repair among specialist fish procedures. Do not puncture the fish, squeeze its abdomen or improvise weights and flotation devices.
Treatment depends on the findings. Antibiotics are appropriate only for a relevant infection and a suitable treatment plan; a product marketed for general bacterial problems is not automatically effective inside the swim bladder. Avoid arbitrary heat increases, repeated salt baths and combinations of medicines.
Recovery and long-term welfare
Outcome depends on the cause and severity. There is no reliable survival countdown based only on whether a fish floats or sinks. Monitor breathing, feeding, skin condition and the ability to rest without struggling. Persistent exposure of skin above water or rubbing against the bottom can create further problems.
Some fish recover; others need ongoing management or a veterinary welfare decision. Continue good water care while investigating rather than waiting for the fish to “pass gas” or recover on its own.






