A calm cardinalfish with a yellowish head, a dark waistband and a spotted rear. It is reef safe, lives in groups and feeds mostly at dusk and night.
Temperature
22–28 °C72–82 °F
pH
8.1–8.4 pH
Smallest tank
114 litres30 US gal
Adult size
8–9 cm3.1–3.5 in
Group size
8
Care level
Beginner
Care sheet
Care
Adult size
8–9 cm3.1–3.5 inTotal length.
Minimum tank size
114 litres30 US galA group needs plenty of space and several retreats.
Recommended group
8Small groups, pairs and single fish also work.
Water
Temperature
22–28 °C72–82 °F
pH
8.1–8.4 pH
Specific gravity
1.02–1.025 SG
Safe with
Invertebrates
With caution
Plants
Yes
About this species
Scientific name
Sphaeramia nematoptera
Also known as
Coral cardinalfish
Also known as
Pajama cardinalfish
Also known as
Polkadot cardinalfish
Also known as
Pyjama cardinalfish
Also classified as
Apogon nematopterus
Family
Apogonidae
Found in
The western Pacific, from Java east to Fiji and Tonga, north to the Ryukyu Islands and south to the Great Barrier Reef. Groups hover among branching Porites corals in sheltered bays and lagoons, from 1 to 14 m deep. At night they spread out to feed near the bottom.
Water
Marine
Temperament
Peaceful
Diet
Carnivore
Swimming level
Middle
Activity
Low
These ranges are a guide to healthy conditions, not a guarantee. Footprint, group size, temperament and existing tankmates matter as much as volume and water values.
Overview
The pyjama cardinalfish, also spelt pyjama, is a calm, slow-moving fish with a three-part colour pattern. In the wild it lives in groups among branching corals and comes out to feed at night. It is hardy, peaceful and reef safe, so it suits a quiet reef tank. It has spawned in home aquariums and been reared in captivity.
Keeping pyjama cardinalfish
Give it a tank of at least 114 litres, with shady overhangs, good filtration and decent water movement. Keep the water at 22 to 28 °C and pH 8.1 to 8.4. A group of eight or more works well if bought at the same size and added together. Smaller groups, pairs or single fish also work. Some chasing within a group is normal, but check that weaker fish can still feed. Choose small, peaceful tankmates such as other cardinalfish, and avoid large, boisterous or predatory fish.
A short, deep-bodied cardinalfish up to about 8.5 cm long. The head is yellowish to yellow-green, and a broad dark brown bar crosses the middle of the body. The pale rear half is covered in reddish to purple spots. The first dorsal and pelvic fins are dark, and a red bar runs through the eye. The name is also spelt pyjama, and it is sold as the spotted cardinalfish.
Feeding
A small predator that feeds mostly at night on small crustaceans, worms and other tiny animals. Offer small meaty foods such as mysis, enriched brine shrimp, copepods, chopped krill or clam and marine pellets. Feed small amounts two or three times a day, with at least one feed after the lights go out.
Breeding
A mouthbrooder. A pair forms during courtship, and the male holds the eggs in his mouth for several days before releasing the larvae. The larvae are very hard to feed and need rotifers or plankton, so raising them at home is a challenge. It has spawned in home aquariums and been reared in captivity.
Telling the sexes apart
Mature males are slightly larger. Females in breeding condition look fuller-bodied.
Special requirements
Keep a group of fish of similar size, added together, in a tank with shady shelter and good filtration. It is slow and easily intimidated, so avoid boisterous or predatory tankmates. It is reef safe with corals, but tiny shrimp, small worms and very small fish may be eaten.
Sources and references
Sphaeramia nematoptera summary, FishBase. Accessed 11 November 2026
Pyjama Cardinalfish, Fishkeeper (Maidenhead Aquatics). Accessed 11 November 2026
Pajama Cardinalfish, Quality Marine. Accessed 11 November 2026
Pajama Cardinalfish, Top Shelf Aquatics. Accessed 11 November 2026
Sphaeramia nematoptera, Fishes of Australia, Museums Victoria (Bray DJ). Accessed 11 November 2026
How to look after basslets & dottybacks, Ornamental Aquatic Trade Association (OATA). Accessed 11 November 2026