How to control algae in a fish tank

Some algae is normal in any aquarium. When it takes over, the cause is almost always too much light, too many nutrients, or both.

Updated November 26, 2026

Short answer: put your light on a timer for about 6 to 8 hours a day if you have no live plants, keep the tank out of direct sunlight, feed less and keep up with water changes. Then remove the algae that is already there.

Why algae grows

Algae are simple plants. WebMD puts it plainly: too much light or too many nutrients in the water make them grow fast. In a fish tank, nutrients come mostly from fish waste and uneaten food.

How many hours of light?

Aqueon suggests a maximum of 6 to 8 hours of light a day for tanks without live plants and 10 to 12 hours for planted tanks, on a timer so the schedule stays consistent. For a fish-only tank with a bad algae problem, Practical Fishkeeping goes further and suggests cutting the light to just the hours you are watching. Fish do not need bright light.

Sunlight is the other big source. Aqueon advises against placing a tank where it gets direct sun, even for a few hours a day.

Common types

  • Green film or spots on the glass: normal in small amounts. Scrape it off during maintenance.
  • Green water: algae floating in the water. It cannot be wiped off and needs less light and fewer nutrients.
  • Brown dust on surfaces: common in new tanks.
  • Blue-green slime: despite the name, WebMD notes it is cyanobacteria, linked to excess nitrate and phosphate, and it spreads fast.

A plan that works

  1. Set a timer for the light and block direct sunlight.
  2. Feed less. Only what your fish finish in about a minute.
  3. Keep to a regular water change routine and vacuum debris from the gravel.
  4. Remove existing algae by hand: scrape the glass, pull out loose strands.
  5. Check you are not overstocked with the stocking calculator.

Be careful with chemical algae treatments. They treat the symptom, not the cause, and some can harm the bacteria in your filter; follow any product’s label exactly.

Sources