pH 4 – 7.5
Temperature 22 – 28 °C
GH 1 – 15
Minimum tank 40 L
Difficulty Medium
School size ≥ 6 ud.

Description

At about 3.5 cm, the dwarf pencilfish is a lebiasinid from Guyana, Suriname and the middle and lower Amazon. It stays very popular, although its size and shyness rule it out as a community fish and make it moderately difficult: it asks for a mature tank with steady water.

It carries three dark stripes on the flank, and the males show neither red nor violet between them, unlike Nannostomus mortenthaleri and N. rubrocaudatus, whose males are reddish. Colour changes a lot between populations.

Behavior

Very peaceful and gregarious, and being small it does not compete with other fish. Best in a group of ten or more; there is hardly any fighting between males.

It lives well with peaceful characids of its size, corydoras and small loricariids; it also works as a dither fish for dwarf cichlids, since it moves in the middle and upper zones and does not prey on fry.

Avoid housing it with larger or active fish, which intimidate it.

Habitat

Nannostomus marginatus lives in slow creeks, minor rivers and marshy ground with dense vegetation, sunken wood and leaf litter, often in flooded forest and floodplain ponds. The water there is shallow and nearly still, with barely measurable hardness and a pH of 4 to 6.

It asks for mature, stable water, dense planting, a dark substrate and little current.


Pez lápiz enano is a schooling species, which means that in the wild it lives and moves in large, coordinated groups.
Keep at least 6 individuals so they feel comfortable and their stress level stays low.

Details

Scientific name
Nannostomus marginatus
Difficulty
Medium
Behavior
Peaceful
Diet
Omnivore

🌊 Water parameters

pH
4 - 7.5
GH
1 - 15
Temperature
22 - 28 °C
Current
Slow

🐠 Minimum tank size

Length
45 cm
Height
30 cm
Depth
30 cm
Tank volume
40 L
Volume per fish
5 L

Breeding

It has been bred in aquariums, but seldom. To raise fry a separate tank is set up with mature water, filled with wool mops or fine moss, without strong filtration or light; one or several pairs go in, the adults come out two or three days later, and the first fry appear soon after.

Males are less stocky than females.

Diet

A micropredator of tiny invertebrates.

  • Staple: very small dry food.
  • Supplement: brine shrimp nauplii or grindal worm, live or frozen, daily.

Portions are tiny because of its mouth size.

What about your tank?

Enter your tank's values to see only the compatible species that fit them. Litres apply to fish.

Compatible fish

General guidance based on water parameters, behaviour and known exceptions; always review the individual animals' and aquarium's specific needs.

Ancistrus temminckii

Ancistrus

Imageis licensed under CC BY 3.0(resized)

They share water: pH 6–7.5 and 22–27 °C.

They share water: pH 6–7.5 and 24–28 °C.

They share water: pH 7–7.5 and 26–28 °C.

They share water: pH 6–7.5 and 22–27 °C.

Rohanella titteya

Barbo cereza

Imagebybrian.gratwickeis licensed under CC BY 2.0(resized)

They share water: pH 6–7.5 and 22–27 °C.

They share water: pH 6–7.5 and 22–27 °C.

betta

Betta

ImagebyDaniella Vereekis licensed under CC BY 2.0(resized)

They share water: pH 6–7.5 and 24–28 °C.

Hemigrammus Rhodostomus

Borrachito

ImagebyBernat Arlandisis licensed under CC BY-SA 2.0(resized)

They share water: pH 5.5–7 and 24–27 °C.

They share water: pH 6–7.5 and 22–26 °C.

Yasuhikotakia sidthimunki

Botia enana

ImagebyLerdsuwais licensed under CC BY-SA 3.0(resized)

They share water: pH 5.5–7.5 and 22–28 °C.

Botia lohachata
AI: ChatGPT

Botia lohachata

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 6–7.5 and 24–28 °C.

Chromobotia macracanthus

Botia payaso

ImagebyVlad Butskyis licensed under CC BY 2.0(resized)

They share water: pH 6–7.5 and 25–28 °C.

Botia tigre
AI: ChatGPT

Botia tigre

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 6–7.5 and 24–28 °C.

Crossocheilus siamensis by Ark

Comedor de algas siamés

ImagebyArkis licensed under CC BY 3.0(resized)

They share water: pH 6.5–7.5 and 24–26 °C.

Corydoras aeneus

Corydoras aeneus

ImagebyAndrew Kelleris licensed under CC0(resized)

They share water: pH 6–7.5 and 22–26 °C.

Corydoras panda

Corydoras panda

ImagebyDornenwolfis licensed under CC BY 2.0(resized)

They share water: pH 6–7.5 and 22–25 °C.

Corydoras Sterbai

Corydoras sterbai

ImagebyMatthew Mannellis licensed under CC0(resized)

They share water: pH 6–7.5 and 24–28 °C.

They share water: pH 6.5–7.5 and 22–24 °C.

Blue Discus

Disco

ImagebyPatrick Farrellyis licensed under Public domain(resized)

They share water: pH 5–7 and 27–28 °C.

Pterophyllum scalare

Escalar

ImagebyKareljis licensed under CC0(resized)

They share water: pH 6–7.5 and 24–28 °C.

The guppy

Guppy

ImagebyCarlos Eduardo Joosis licensed under CC BY 2.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Endler Guppy 'Yellow Top Sword'

Guppy Endler

ImagebyDornenwolfis licensed under CC BY 2.0(resized)

They share water: pH 6.5–7.5 and 22–28 °C.

They share water: pH 6–7.5 and 25–28 °C.

Fadenfisch blau männlich

Gurami azul

ImagebyDefenderReginais licensed under Public domain(resized)

They share water: pH 6–7.5 and 22–28 °C.

Colisa chuna male

Gurami miel

ImagebyMarcus Cyronis licensed under CC BY-SA 3.0(resized)

They share water: pH 6–7.5 and 22–28 °C.

Gurami perla

Gurami perla

ImagebyChmee2is licensed under CC BY 3.0(resized)

They share water: pH 6–7.5 and 24–28 °C.

Pelvicachromis pulcher (male)

Kribensis

ImagebyTino Straussis licensed under CC BY-SA 3.0(resized)

They share water: pH 6–7.5 and 24–27 °C.

Kuhli loach in aquarium

Locha kuhli

ImagebyIidkkis licensed under CC BY-SA 4.0(resized)

They share water: pH 5.5–7 and 24–28 °C.

Poecilia sphenops wild form

Molly

ImagebyDnoerholmis licensed under CC BY-SA 4.0(resized)

They share water: pH 7.5 and 24–28 °C. They only meet at the very edge, so the tank has to hold that value.

They share water: pH 7.5 and 24–28 °C. They only meet at the very edge, so the tank has to hold that value.

Paracheirodon innesi

Neón

ImagebyGunnar Ries zwois licensed under CC BY-SA 2.0(resized)

They share water: pH 5.5–7 and 22–26 °C.

They share water: pH 4–6.5 and 23–27 °C.

Poropanchax normani

Ojo de Lámpara de Norman

ImagebyCisamarcis licensed under CC BY-SA 3.0(resized)

They share water: pH 6.5–7.2 and 22–26 °C.

Otocinclus

Otocinclus

ImagebyNico Hernandezis licensed under CC BY 4.0(resized)

They share water: pH 6–7.5 and 22–26 °C.

They share water: pH 6–7.5 and 22 °C. They only meet at the very edge, so the tank has to hold that value.

arassius auratus auratus (goldfish)

Pez dorado

ImagebyJames St. Johnis licensed under CC BY 2.0(resized)

They share water: pH 6.5–7.5 and 22–24 °C.

They share water: pH 4.5–7.5 and 22–28 °C.

Nannostomus unifasciatus
AI: ChatGPT

They share water: pH 4–7 and 23–28 °C.

Nannostomus beckfordi
AI: ChatGPT

Pez lápiz dorado

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 5–7.5 and 22–27 °C.

Two Xiphophorus maculatus in aquarium

Platy

ImagebyCarlosaris licensed under CC BY-SA 3.0(resized)

They share water: pH 7–7.5 and 22–27 °C.

Microgeophagus ramirezi (Ramirezi/Ram)

Ramirezi

Imagebyberarmais licensed under CC BY-SA 2.0(resized)

They share water: pH 5.5–7 and 26–28 °C.

They share water: pH 5.5–7 and 22–26 °C.

Danio margaritatus

Rasbora galaxy

ImagebyBread962is licensed under CC BY 4.0(resized)

They share water: pH 6.5–7.5 and 22–26 °C.

Tetra cardenal

Tetra cardenal

ImagebyCHUCAOis licensed under CC BY-SA 3.0(resized)

They share water: pH 4.5–6.5 and 24–28 °C.

Tetra ember

Tetra ember

ImagebyUsienis licensed under CC BY 3.0(resized)

They share water: pH 5.5–7 and 23–28 °C.

Emperor tetra

Tetra emperador

ImagebyCitronis licensed under CC BY-SA 3.0(resized)

They share water: pH 5–7.5 and 23–27 °C.

Hyphessobrycon pulchripinnis

Tetra limón

ImagebyWaugsbergis licensed under CC BY 2.5(resized)

They share water: pH 5.5–7.5 and 23–28 °C.

Hemigrammus erythrozonus

Tetra luminoso

Imagebyh080is licensed under CC BY-SA 2.0(resized)

They share water: pH 5.5–7.5 and 24–28 °C.

Tetra negro

Tetra negro

ImagebyD.W. (2012)is licensed under CC0(resized)

They share water: pH 6–7.5 and 22–26 °C.

They share water: pH 5.5–7.5 and 23–27 °C.

Hyphessobrycon eques

Tetra serpae

ImagebyDouglas Lopesis licensed under CC BY 4.0(resized)

They share water: pH 5.5–7.5 and 22–27 °C.

Xiphophorus hellerii red male

Xipho

ImagebyWojciech J. Płuciennikis licensed under CC BY-SA 4.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Compatible invertebrates

General guidance based on water parameters, behaviour and known exceptions; always review the individual animals' and aquarium's specific needs.

Ampularia

Ampularia

ImagebyÁngel Ramosis licensed under CC BY-SA 4.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Blue Bolt

Blue Bolt

ImagebyMarcus Hafermannis licensed under CC BY-SA 3.0(resized)

They share water: pH 5.5–6.5 and 22–24 °C.

Cangrejo Thai micro
AI: ChatGPT

Cangrejo Thai micro

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 6.5–7.5 and 22–27 °C.

Cangrejo enano CPO

Cangrejo enano CPO

ImagebyVeitwis licensed under CC BY-SA 3.0(resized)

They share water: pH 7–7.5 and 22–25 °C.

They share water: pH 7.5 and 24–28 °C. They only meet at the very edge, so the tank has to hold that value.

Anentome helena
AI: ChatGPT

Caracol asesino

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Tylomelania zemis
AI: ChatGPT

Caracol conejo

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 7.5 and 26–28 °C. They only meet at the very edge, so the tank has to hold that value.

Caracol cuerno
AI: ChatGPT

Caracol cuerno

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

They share water: pH 6.5–7.5 and 22–26 °C.

Crystal Black
AI: ChatGPT

Crystal Black

ImagebyHéctoris licensed under CC BY 4.0(resized)

They share water: pH 5.8–6.8 and 22–24 °C.

Crystal Red

Crystal Red

ImagebySean Murrayis licensed under CC BY-SA 2.0(resized)

They share water: pH 5.8–6.8 and 22–24 °C.

Gamba Amano

Gamba Amano

ImagebySky99is licensed under CC BY-SA 4.0(resized)

They share water: pH 6.5–7.5 and 22–27 °C.

They share water: pH 7.5 and 27–28 °C. They only meet at the very edge, so the tank has to hold that value.

Melanoides

Melanoides

ImagebyBuchlingis licensed under CC BY-SA 3.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Neocaridina davidi
AI: ChatGPT

Neocaridina Black Rose

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 6.5–7.5 and 22–26 °C.

They share water: pH 6.5–7.5 and 22–26 °C.

Neocaridina Green Jade
AI: ChatGPT

Neocaridina Green Jade

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 6.5–7.5 and 22–26 °C.

They share water: pH 6.5–7.5 and 22–26 °C.

They share water: pH 6.5–7.5 and 22–26 °C.

They share water: pH 6.5–7.5 and 22–26 °C.

Neritina cebra

Neritina cebra

ImagebyEvan Baldonadois licensed under CC BY 4.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Neritina pulligera
AI: ChatGPT

Neritina pulligera

ImagebyHectoris licensed under CC BY 4.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Physa

Physa

ImagebyBarbalalaikais licensed under CC0(resized)

They share water: pH 6.5–7.5 and 22–28 °C.

Planorbis

Planorbis

ImagebyKong of Lasersis licensed under CC BY 3.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Planorbella duryi

Planorbis rojo

ImagebyDat dorisis licensed under CC BY-SA 4.0(resized)

They share water: pH 7–7.5 and 22–28 °C.

Sources

  • FishBase
    Froese, R. and D. Pauly. Editors. 2026. FishBase. World Wide Web electronic publication.
  • Seriously Fish
    Seriously Fish. Nannostomus marginatus. Ficha de especie; consultada 2026-10.

Water: FishBase gives pH 5.8-7.5, up to 15 dH and 24-26 °C; Seriously Fish, pH 4-7, 1-10 dGH and 22-28 °C. The profile uses the widest range. Size: 3.5 cm TL in FishBase and 2.5 cm SL in Seriously Fish; the larger is taken.

Litres per fish and minimum tank height and depth: the profile's own judgement. Seriously Fish gives only the tank base and FishBase gives no tank sizes.

Plan your next aquarium

Is this fish right for you? Plan a suitable aquarium before setting it up.

Register to plan your aquarium