Why Is My Aquarium Water Yellow or Brown
Yellow or brown aquarium water is often harmless tannins or diatoms. Learn how to tell them apart by color and fix each one.

Jack·7 min read·July 13, 2021·Updated November 21, 2026
You've pulled a rock out of your tank and it's coated in green fuzz, or you've just come home with a bag of river stones and you're wondering what to do before they go in the water. Either way, the answer isn't just "scrub it." Different rocks need different treatment—and using the wrong method can harm your fish or even crack a rock in half. Here's how to do it right.
---
The right cleaning method depends on where the rock came from and what it's made of. Before you do anything else, figure out which category you're working with:

---
Before you clean a wild or found rock, drop it in a cup of plain white vinegar. If it fizzes, it contains calcium carbonate. That means it will slowly raise your water's pH and hardness once it's in the tank.
Whether that's a problem depends on your fish. African cichlids actually prefer harder, more alkaline water, so a carbonate-rich rock suits them well. Soft-water species like tetras or discus don't—a fizzing rock will stress them over time.
If a rock fizzes and your fish don't want harder water, that rock stays out of the tank. No amount of cleaning changes what it's made of.
---
Vinegar is the go-to for regular cleaning. Mix a 50/50 solution of water and white vinegar, soak the rocks for about 30 minutes, then scrub with a stiff brush and rinse thoroughly. For stubborn algae that won't budge, an overnight soak in the same 1:1 ratio will usually break it loose.
Do not use vinegar on lava rock. Lava rock is porous, and soaking it in acid can harm fish down the line.
Never use soap or detergent on aquarium rocks. Soaps leave toxic residues that are difficult to rinse out completely and can kill fish. This includes dish soap, antibacterial soap, laundry detergent, and anything similar. Vinegar and water is enough.
If you want something with a lower residue risk than bleach, 3% hydrogen peroxide is a solid option. Spray it directly onto the rock, let it foam for about 30 seconds, scrub, and rinse in cool tap water. Peroxide breaks down into oxygen and water, so it leaves little behind—it's a good choice for smaller or more decorative pieces.
Bleach is the heaviest-duty option and needs to be handled carefully. Use only plain sodium hypochlorite bleach—never splashless, scented, or any other formulation. Those additives can be toxic in a fish tank even after rinsing.
For general cleaning, the ratio is 1 part bleach to 20 parts water—roughly 6.5 fluid ounces of bleach per gallon of water. Soak for 30 minutes.
For sterilization after a disease outbreak, a stronger solution is sometimes used: 1 part bleach to 10 parts water, for up to 30 minutes.
After any bleach soak, you have two options to remove the chlorine:
To neutralize quickly: Soak the rocks in water with 5 times the normal dose of dechlorinator (a product like Prime works well). Do multiple soaks until there is no chlorine smell remaining.
To air-dry instead: Lay the rocks out and allow chlorine to off-gas for at least 36 hours—or ideally three days. Only return them to the tank when no bleach smell remains.
---
Boiling kills pathogens and is a recommended cleaning step. Boil rocks for 20 to 30 minutes for general sterilization. After an illness in your tank, 5 to 10 minutes in a rolling boil is often enough.
But boiling has real risks. Some rocks contain trapped gas pockets. When heated rapidly, that gas can cause the rock to crack or even explode. A safer approach than submerging rocks in boiling water is to place them in cold water and heat slowly—or to pour boiling water over the rocks in a bucket rather than boiling them on the stove. If you see foaming or an oily sheen coming off a rock while it's being boiled, pull it out and discard it. That rock is not safe for your tank.
After boiling, let rocks cool completely before placing them in the aquarium.
Never boil or bake lava rock. Trapped air in the porous structure can cause it to blow apart. And never put any rock in the microwave—that's another way to get an explosion.
---
Rocks you pick up from outside carry more unknowns than anything from a store. Start with a pressure wash or a thorough scrub with a wire brush to remove mud and debris. Then soak in a bucket with an airstone running, changing the water every few days, for a minimum of 7 to 14 days before you test.
Before those rocks go in the tank, test the water hardness and pH before the soak and again after to see what the rocks are doing to your water chemistry. That tells you whether they're safe for your specific fish.
---
Ocean rocks carry salt and sand that need to come off before anything else. Rinse them under hot water to remove the debris, then follow the cleaning steps above. Test the water chemistry after soaking—salt minerals can persist and affect readings.
---
Backyard rocks picked up near a treated lawn or garden raise the question of pesticide contamination. The practical guidance from hobbyists is that pesticides lose their effectiveness within about 30 days, but a long soak adds certainty. Soak with an airstone, change the water every few days, and run a full 7 to 14 days before testing water chemistry. The longer you soak, the more you're rinsing out anything that might be there.
---
A few things that are worth stating plainly:
---
If you're not sure which method fits your situation, here's how they compare:
Vinegar — Low cost, good for routine algae removal and maintenance. Takes 30 minutes for a standard soak or overnight for stubborn buildup. No special neutralization needed; rinse well. Not safe for lava or porous rock.
Hydrogen peroxide (3%) — Moderate cost, low residue risk. Foams on contact, breaks down into oxygen and water. Good for delicate decorative pieces. Rinse in cool tap water after scrubbing.
Bleach (plain sodium hypochlorite only) — Low cost, strongest sterilization. Use at 1:20 for general cleaning or 1:10 for disease decontamination. Requires either a 5× dechlorinator soak or 36+ hours of air drying before the rocks go back in the tank.
---