How to Get Rid of Aquarium Algae (and Keep It Away)

By Farhan · Updated June 29, 2026

Disclosure: This guide may contain affiliate links. If you buy through them, TankHabit may earn a small commission at no extra cost to you. We only recommend gear we would use ourselves. Learn more.

Green film on the glass, hazy water, fuzzy tufts on your plants — algae shows up in almost every new aquarium, and it’s one of the most common things that makes beginners think they’re doing something wrong. The truth is simpler and more fixable than it looks. Algae is a plant-like organism; it grows when it gets too much of two things — light and nutrients — so the entire fix comes down to taking those away.

Quick answer: To get rid of aquarium algae, cut your lighting to 6–8 hours a day (use a timer), keep the tank out of direct sunlight, feed less, and do larger or more frequent water changes to lower nitrate and phosphate. Then keep it away long-term by adding live plants to outcompete it and, optionally, a few algae-eaters like nerite snails or amano shrimp. Manual scrubbing handles whatever’s left.

Work through the causes below in order. Most beginners clear an outbreak by fixing light and feeding alone, so start there before buying anything.

Quick diagnosis: what kind of algae do you have?

A quick scan of the type points you at the cause:

Now the fixes.

1. Too much light (the number one cause)

Algae runs on light. The single most common reason a beginner tank goes green is simply leaving the light on too long — all day, or “so the fish can see.” Aquarium fish don’t need that, and the extra hours feed algae far more than they help anything.

Fix: Reduce your photoperiod to 6–8 hours per day and put the light on an inexpensive outlet timer so it’s consistent. Consistency matters as much as duration — random on/off cycles stress plants and favor algae. If you’re running a bright planted-tank light, also try lowering its intensity (many modern LEDs have a dimmer) before anything else.

2. The tank gets direct sunlight

A tank near a window can look beautiful for a week and then turn into pea soup. Direct sun is far stronger and less controllable than any aquarium light, and it’s the classic trigger for green water.

Fix: Move the tank away from windows, or block the sun with a blind or curtain during the brightest part of the day. If relocating a full tank isn’t practical, at least shade the side facing the window. Sunlight is the one light source you can’t put on a timer, so eliminating it is often the whole solution.

3. Overfeeding (excess nutrients)

Every uneaten flake and every bit of fish waste breaks down into nitrate and phosphate — the exact nutrients algae feeds on. New aquarists almost always overfeed, and that surplus goes straight into algae growth.

Fix: Feed only what your fish finish in about 1–2 minutes, once a day, and remove anything left over. Most community fish are perfectly healthy with a small daily portion (and the occasional skipped day). Less food in means fewer nutrients for algae — this is one of the highest-impact changes you can make.

4. High nitrate and phosphate (not enough water changes)

Even with careful feeding, nutrients accumulate over time. If your water changes are too small or too infrequent, nitrate and phosphate climb until algae has an endless buffet. This is also a frequent cause of cloudy aquarium water, so the two problems often appear together.

Fix: Increase your water changes to bring nutrients down. During an active outbreak, doing a 25–50% change weekly (or even twice a week briefly) makes a real difference. An inexpensive liquid test kit lets you actually see nitrate dropping — aim to keep nitrate low (commonly under ~20 ppm in a typical community tank). Not sure how much or how often? See how often to do aquarium water changes. Always use dechlorinated water of a similar temperature.

5. Brown diatoms in a brand-new tank

If your tank is just a few weeks old and coated in brown dust, you almost certainly have diatoms. They’re extremely common while a new tank stabilizes and feed partly on silicates and other surplus nutrients in fresh setups.

Fix: Mostly, wait. Diatoms usually fade on their own as the tank matures and the nitrogen cycle finishes establishing. In the meantime, wipe the glass, vacuum the substrate during water changes, and keep light moderate. A few otocinclus or nerite snails also graze diatoms enthusiastically once the tank is fully cycled and stable.

6. Not enough live plants

In a tank with few or no plants, algae has zero competition for light and nutrients — so it takes everything. Healthy live plants are your best long-term defense because they soak up the same nitrate and phosphate algae wants.

Fix: Add live plants, and lean on fast-growing, beginner-friendly ones that pull nutrients quickly — hornwort, water sprite, anacharis, and floating plants like duckweed or frogbit are common choices, while easy rooted plants like java fern and anubias help over time. A well-planted tank that’s been running a while is remarkably resistant to algae. (Floating plants do double duty by shading the water and starving green-water algae of light.)

7. Add algae-eaters (with realistic expectations)

A clean-up crew helps, but it’s a supplement to the fixes above — not a cure. No animal will out-eat a tank that’s overlit and overfed. Add them once conditions are under control, and only if your tank is the right size and fully cycled.

Fix: Reasonable, widely recommended options for beginners include:

Caveats to know: avoid the “common pleco,” which gets huge (often over a foot long) and produces a lot of waste; many algae-eaters need supplemental food once the algae is gone; and never add animals just to fix a problem you can fix with light and water changes.

8. Manual removal (finish the job)

Whatever’s left after you’ve corrected the conditions, you remove by hand. This gives you an instant clean look while the underlying changes take effect.

Fix: Use an algae scraper or magnet for glass, an old toothbrush or your fingers for decor, and trim badly affected leaves off plants. For stubborn black beard algae, spot-treat affected hardscape and decor outside the tank, and improve flow/stability — it clings hard and won’t simply wipe away. Vacuum loosened debris out during your next water change so it doesn’t recycle back into nutrients.

The keep-it-away checklist

  1. Light on a timer, 6–8 hours a day ✔
  2. Tank out of direct sunlight
  3. Feeding once a day, finished in 1–2 minutes ✔
  4. Regular water changes, nitrate kept low ✔
  5. Live plants growing and competing ✔
  6. A small clean-up crew if appropriate for your tank ✔

Hit all six and algae stops being a recurring battle — it becomes a minor, occasional wipe-down.

Frequently asked questions

How long does it take to get rid of aquarium algae? Manual removal is instant, but stopping regrowth depends on fixing the root cause. After you cut light and lower nutrients, expect noticeable improvement over 1–2 weeks, and a few weeks for a tank to fully stabilize. Patience beats harsh chemicals here.

Will algae hurt my fish? Algae itself is generally harmless to fish and is a natural part of a healthy tank — it’s mostly an appearance problem. The exception is a severe green-water bloom: a dense bloom can lower oxygen overnight, and a sudden die-off can crash oxygen levels, so it’s worth correcting promptly. Treat persistent algae as a signal that light or nutrients are out of balance.

Should I use an algaecide or chemical treatment? For beginners, usually no. Chemical algaecides treat the symptom, not the cause, and some can harm plants, shrimp, or snails. Fixing light, feeding, and water changes is safer and longer-lasting. Reserve chemicals for stubborn cases after the basics are dialed in, and follow the label carefully.


Related guides:

Get the beginner houseplant care cheat-sheet

Join the TankHabit list for simple plant-care fixes and picks — no spam, unsubscribe anytime.