Care guide

Dwarf pencilfish with shrimp

Research-based, not hands-on. We haven't run controlled trials ourselves. This guide compiles hobby references, manufacturer documentation and recurring owner reports (e.g. r/shrimptank, 2024–2026). Checked October 2026. How we research

The dwarf pencilfish (Nannostomus marginatus) is a tiny South American lebiasinid with three dark stripes along each side. Seriously Fish lists it from Guyana, Suriname and the middle-to-lower Amazon in Peru, Colombia and Brazil, where it lives in sluggish streams, swamps and areas with dense plants, wood and leaf litter. AquaInfo notes that the stripes fade at night and two oblique bands appear instead, so a fish that looks odd first thing in the morning is usually fine.

Quick version: Fine with adult shrimp, risky for shrimplets. Dwarf pencilfish reach only about 1 in (25 mm standard length) (Seriously Fish), but they are micropredators of tiny invertebrates, and Aquarium Co-Op says cherry and crystal shrimp are not recommended with pencilfish because pencilfish are known to prey on them. In our reading, the main risk from a fish this small is to baby shrimp. Keep them only in a mature, heavily planted display tank with lots of moss, in a group of 10 or more, at about 74–78 °F and pH 6.5–7.0 with cherry shrimp. If you breed shrimp to sell, skip them.

Dwarf pencilfish at a glance

Dwarf pencilfish (Nannostomus marginatus)
Adult size25 mm (1.0 in) standard length (Seriously Fish); about 3.5 cm total length per FishBase (AquaInfo)
Temperature72–82 °F (Seriously Fish); 22–28 °C, about 72–82 °F (AquaInfo)
pH4.0–7.0 (Seriously Fish); preferably 5.5–7.0 (AquaInfo)
Hardness1–10 dGH (Seriously Fish, AquaInfo), preferably soft
TankBase of at least 45 × 30 cm (18 × 12 in) (Seriously Fish); from about 60 cm, preferably 80 cm or more for a larger group (AquaInfo)
GroupIdeally 10 or more (Seriously Fish, AquaInfo)
DifficultyModerate: needs a well-established tank and stable water (Seriously Fish)
TemperamentVery peaceful but timid (Seriously Fish)

Will dwarf pencilfish eat shrimp?

If you want a striped microfish that is gentler on shrimplets, compare ember tetras with shrimp, chili rasboras with shrimp and kubotai rasboras with shrimp, or see the full cherry shrimp tank mates list.

Matching the water

Seriously Fish lists 72–82 °F, pH 4.0–7.0 and 1–10 dGH; AquaInfo prefers pH 5.5–7.0 and says a stable 24–25 °C (about 75–77 °F) suits most fish. Cherry-type shrimp tolerate 65–85 °F, pH 6.2–8.0 and GH 4–8 (The Shrimp Farm). By our comparison:

Stability matters most. Seriously Fish says the species needs stable water and should never be added to an immature tank, and AquaInfo warns that low KH makes pH swings more likely. See GH and KH explained, shrimp tank pH and shrimp tank water changes.

Tank size and setup

Keep a real group

Seriously Fish says to buy as many as possible, ideally 10 or more: in bigger groups any squabbling is spread out and the fish are bolder. AquaInfo also recommends at least ten and says serious aggression between males is uncommon in this species. Females are fuller-bodied; males stay slimmer (AquaInfo).

Other good tankmates

Seriously Fish calls the species a poor general community fish because it is small and timid, and suggests similar-sized peaceful characins and small catfish. See pygmy corydoras with shrimp and otocinclus with shrimp. Avoid fast or boisterous fish that grab food first; AquaInfo notes the species feeds slowly.

Feeding both

Seriously Fish says dwarf pencilfish take small dried foods but should get small live or frozen foods such as Artemia nauplii, Moina or grindal worms every day. Aquarium Co-Op adds that their small, upturned mouths do best with tiny foods that float or sink slowly, such as baby brine shrimp, cyclops, daphnia and crushed flakes. AquaInfo suggests several small portions a day. Well-fed fish are less likely to hunt shrimplets (our reading), and sinking shrimp food can go in a separate corner. See best shrimp food.

How to add dwarf pencilfish to a shrimp tank

Common mistakes

Track it

Log temperature, pH, GH and TDS on the free Water Parameter Log printable so you can keep the tank in the range both species share.

Frequently asked questions

Will dwarf pencilfish eat cherry shrimp?

Baby shrimp, yes. Seriously Fish calls them micropredators, and Aquarium Co-Op does not recommend pencilfish with cherry or crystal shrimp. Adults are usually too big for a fish about an inch long, in our reading.

Can dwarf pencilfish live in a shrimp tank?

In a mature, heavily planted display tank with dense moss, often yes. Expect shrimplet losses, and skip them in a shrimp breeding or selling tank.

What water do dwarf pencilfish need?

Seriously Fish lists 72 to 82 °F, pH 4.0 to 7.0 and 1 to 10 dGH, with stable conditions. With cherry shrimp, aim for about 74 to 78 °F, pH 6.5 to 7.0 and GH 4 to 6.

How many dwarf pencilfish should I keep?

Ideally 10 or more, according to Seriously Fish and AquaInfo.

How big do dwarf pencilfish get?

About 1 inch (25 mm standard length) according to Seriously Fish, or about 3.5 cm total length per FishBase.

What do dwarf pencilfish eat?

Tiny live and frozen foods such as baby brine shrimp, Moina and grindal worms, plus fine dry food. Seriously Fish recommends small live or frozen food every day.

Sources: Seriously Fish, Nannostomus marginatus (dwarf pencilfish) (Guyana, Suriname and middle-to-lower Amazon; sluggish tributaries, small rivers and swamps with dense vegetation, wood and leaf litter; 25 mm SL; 45 × 30 cm base; 22–28 °C, pH 4.0–7.0, 1–10 dGH; rated moderate because it needs a well-established tank and stable water; heavily planted, dark substrate, floating plants, wood and leaf litter; gentle air-powered sponge filtration; never add to an immature aquarium; micropredator of tiny invertebrates and zooplankton; small dried foods plus daily small live or frozen foods; very peaceful but timid, poor community fish; similar-sized peaceful characins and small catfish; ideally 10 or more); Aquarium Co-Op, Care guide for pencilfish (pencilfish genus guide: at least six of a species; 10 gallons possible, 20-gallon high or 29-gallon preferred; most store fish wild-caught; may jump if startled, tight lid; peaceful community tankmates; tiny floating or slow-sinking foods; cherry and crystal shrimp not recommended since pencilfish are known to prey on them); AquaInfo, Nannostomus marginatus (dwarf pencilfish) (about 3.5 cm TL per FishBase, around 2.5 cm SL; stripes change at night; serious aggression uncommon; micropredator hunting small moving prey; several small feeds a day, slow feeder; tank from about 60 × 30 cm, preferably 80 cm; at least 10; 22–28 °C, stable 24–25 °C; pH preferably 5.5–7.0; 1–10 dGH; low KH and pH stability; dark substrate, fine-leaved and floating plants); Practical Fishkeeping, What can I keep with shrimp? (pencilfish among fish that will almost certainly eat young shrimp; build the shrimp colony first; many fish medications unsafe for invertebrates); The Shrimp Farm, Red rili shrimp tank set-up and care (cherry-type Neocaridina: 65–85 °F, pH 6.2–8.0, GH 4–8). The shared water zones and the adult-shrimp assessment are our own reading.