Aquarium lighting cycles and night rest in fish
Fish rest at night without closing their eyes, and they need a predictable dark period to do it. This guide explains photoperiod, normal resting postures by species group, the early morning oxygen dip, and how to set a lighting routine that stops night-time panic swimming.

Quick answer
Aquarium lighting cycles and night rest in fish
Fish sleep. They do not close their eyes, because they have no eyelids, but they do enter a rest state with reduced activity, slower breathing and lowered responsiveness.
Restless, darting or bumping behaviour after lights out is almost always a lighting problem, a tank mate problem, or a water problem. It is not insomnia in the way an owner would recognise it in a dog.
- Fish need a predictable dark period every night, with no light and no sudden switching.
- Turning a bright tank light straight off in a dark room startles fish and drives collisions with decor.
- Room lamps, televisions and streetlight through a window all count as tank lighting.
- Constant light suppresses the rest state, and long term that shows as poor colour, weak feeding and lower disease resistance.
- Restlessness that continues in a stable dark period is a water or social problem, not a light problem.
- Species
- fish
- Category
- environment
- Risk level
- low
- Content focus
- photoperiod, night rest, and what night-time activity means
- When to escalate
- same day if night activity comes with rapid breathing or surface gasping
Decide in 60 seconds
| What you see at night | Do now |
|---|---|
| Fish hanging still, low in the tank, fins folded, breathing steadily | Normal rest. Leave it undisturbed. |
| Sudden darting when the light goes off | Add a dim room light for a few minutes before and after the tank light switches. |
| Constant swimming up and down the glass all night | Check stocking, tank mates and tank size. Something is keeping the fish alert. |
| Fish at the surface gasping, day or night | Test water today. Treat as an oxygen or ammonia problem. |
| Night activity in a catfish, loach or pleco | Normal. These species are naturally nocturnal. |
Why a dark period matters
Fish run on an internal daily clock in the same way most animals do. Light is the signal that sets it.
During the dark period many species drop into a rest state. They settle against a plant, wedge into a cave, or hover low with reduced fin movement. Metabolism and responsiveness fall.
That rest state is when repair and immune activity are favoured. Suppress it night after night and the animal does not fail suddenly, it just becomes duller, feeds less enthusiastically and gets sick more easily.
Photoperiod also drives colour. Many species darken at night and brighten by day, and a fish that never gets darkness often looks washed out.
There is a second, purely chemical reason. Aquarium plants and algae consume oxygen in the dark instead of producing it, so the tank's lowest oxygen point of the day is just before the lights come on. A heavily planted or algae-covered tank with poor surface movement can dip low enough to cause early morning gasping.
What normal night behaviour looks like
Watch the tank about half an hour after the room has gone quiet and dark, using only enough indirect light to see.
A resting fish typically sits low in the water column or tucks against decor. Fins are held loosely. The gill covers move slowly and evenly. Colour is often darker or duller than in daylight.
Some species have their own resting habits. Many wrasses bury in sand. Some cichlids lie on their side against the substrate, which alarms new owners but is normal for those species. Bettas rest on leaves and near the surface.
Nocturnal species are the mirror image. Plecos, most Corydoras relatives, kuhli loaches and many catfish become active when the lights go out, and their daytime hiding is not illness.
Knowing which pattern your species follows is the whole diagnosis.
Changes that mean act today
Gasping at the surface in the early morning.
This is the oxygen dip described above, worsened by warm water, heavy planting or an algae bloom. Increase surface agitation and test the water.
Panic swimming and collisions after lights out.
Repeated impacts against glass or hard decor cause snout abrasions and torn fins, which then become infection sites. Fix the lighting transition rather than treating the wounds repeatedly.
A previously calm fish now pacing the glass all night.
Look for a new tank mate, a change in the group, or a rise in nitrate. Persistent glass pacing is a distress signal, not a sleep problem.
Any fish resting in an unusual place and then not eating.
Resting on the bottom is normal for some species. Resting on the bottom plus refusing food is not, in any species.
The routine that gives fish a real night
Consistency is what the fish responds to. A timer that runs the same period every day beats an owner who remembers most evenings.
What never to do
Do not leave the aquarium light on overnight to help a sick fish. It removes the dark period, feeds algae, and adds stress to an animal that already has less to give.
Do not switch a bright tank light off in a fully dark room. The sudden change is what triggers collision injuries.
Do not run the light long hours to grow plants faster. Beyond what the plants can use, extra hours mostly grow algae, and algae is what pulls oxygen down at night.
Do not assume a bottom-resting fish is dying. Check the species first, then check whether it is eating.
How many hours of light should my tank get?
My fish lies on the substrate at night. Is it dying?
Does a moonlight setting disturb sleep?
Why is my fish most restless right before the lights come on?
When to get help
Contact an aquatic vet or an experienced local fishkeeping service if:
- Several fish gasp at the surface each morning despite increased aeration
- A fish injures itself repeatedly against decor at night
- Night restlessness continues after four weeks of a stable, timed light period and clean water tests
Bring your water test numbers, the daily light period, the stocking list, and a note of anything added to the tank in the last month.
Most night-time problems are solved by the timer and the transition, not by medication.
My highlights & notes
This article is for general education and is not a substitute for professional veterinary advice. If your pet is unwell, please consult a veterinarian.
Worried about your pet?
Peqaboo’s AI helps you track symptoms, understand lab reports, and know when to see a vet.
Get the Peqaboo app