Advertisement
← Fish Database Nano Fish Easy

Dwarf Pencilfish Nannostomus marginatus

Advertisement
Last updated:

A slim, peaceful nano fish with horizontal stripes — looks like it was drawn with a pencil. The only fish in the hobby whose stripe pattern shifts angle depending on its mood: horizontal when calm, diagonal when displaying. Perfect dither fish for a 10 gallon shrimp tank.

📏 Size: 3–4 cm
🐠 Tank: 10 gal
🌡️ Temp: 24–28°C
Easy

Quick Stats

Adult Size3–4 cm
Minimum Tank10 gal
Temperature24–28°C
pH Range5.0–7.0
Hardness (GH)2–10 dGH
DifficultyEasy
TemperamentPeaceful, schooling
DietOmnivore — micro pellets, crushed flakes, frozen bloodworm, brine shrimp
Schooling6+ required (10+ better)

Tank Setup

The Dwarf Pencilfish (Nannostomus marginatus) is the kind of nano fish that gets under your skin the first time you see the stripes shift. It is a slim, torpedo-shaped characin from the slow blackwater tributaries of the Amazon and Orinoco basins, where it lives in marginal vegetation along the banks — hanging in still, tannin-stained water between the roots and the floating plants. In the aquarium it stays small (3–4 cm), schools loosely rather than tightly, and spends its time in the upper third of the water column picking at microscopic food from the surface and the plants. A 10 gallon is the floor; a 20 gallon long is where the species actually shows you what it does, because the extra horizontal space lets a group of 10–15 males set up tiny display territories and spar without anyone getting cornered.

Water parameters: temperature 24–28°C, pH 5.0–7.0, hardness 2–10 dGH. That range is on the soft-and-acidic side — pencilfish come from blackwater and do not love hard alkaline tap. Captive-bred stock (which is almost everything in shops now) tolerates pH 6.5–7.2 fine, but they show better colour, live longer, and breed more readily at pH 5.5–6.5. If your tap water is liquid rock (pH 8+, GH 15+), dilute 30–50% with RO water; it costs very little per month for a 10 gallon and the colour payoff is dramatic. I run my marginatus group at 26°C, pH 6.2, GH 4 — a 50/50 tap-and-RO mix — and they are out in the open all day. Avoid sustained temperatures below 22°C, which suppress immunity; the species is tropical, not subtropical.

Set up the tank with a dark sandy substrate (the fish doesn't care about the substrate directly, but the colour contrast matters — over white sand they look washed-out and shy), driftwood, leaf litter (Indian almond leaves), and dense planting along the back and sides. Floating plants (Salvinia, frogbit, red root floaters) are non-negotiable: pencilfish live in the shade of floating vegetation in the wild and will hang just under the surface all day if you give them cover. Filtration should be gentle — a sponge filter, an air-driven corner box, or a low-flow hang-on-back turned right down. Strong current pushes pencilfish to the bottom and stresses them. Tannins from the leaf litter and the wood will gradually stain the water tea-coloured; that is the look you want. The "pencil" pattern — three horizontal stripes running nose-to-tail — is the species' signature, and it shifts to a diagonal angle when the fish is displaying or agitated. Pencilfish are the only fish in the hobby that does this, and the first time you see a school of males light up and shift their stripes simultaneously is the moment you understand why people keep them.

Tank Mates

Dwarf Pencilfish are peaceful to the point of being timid. They cannot outcompete boisterous feeders and will simply stop eating if a hyperactive school of danios or barbs is pushing them off the food. Plan tank mates around the feeding hierarchy: small, slow, mouth-sized. Anything that fits the same description will work; anything fast, nippy, or large enough to swallow a 3 cm fish will not.

Compatible tank mates: other soft-water nano fish at the same temperaments — Ember Tetras, Green Neon Tetras, Chili Rasboras, Galaxy Rasboras (Celestial Pearl Danios), Pygmy Corydoras (habrosus, pygmaeus, hastatus), Otocinclus, and small peaceful dwarf shrimp (Cherry Shrimp, Amano Shrimp, Caridina species). Apistogramma borellii and Apistogramma cacatuoides work in a 20 gallon — the pencilfish stay at the top, the apistos stay at the bottom, and neither competes with the other. Kuhli loaches are fine. A single Betta can work in a 10 gallon if the betta is mellow, but pencilfish can be nippy with long-finned fish — skip the betta if you are not sure. Snails (Nerite, Ramshorn, Mystery) are completely ignored.

Avoid: any fish large enough to eat a 3 cm pencilfish (angelfish, gouramis except Chocolate and Licorice, rainbowfish larger than Melanotaenia praecox, goldfish, all cichlids except dwarf Apistogramma and rams), nippy fish (tiger barbs, serpae tetras, silver dollars — they will shred the pencilfish's fins), and fast-feeding schooling fish that will starve them (danios, most barbs, larger tetras like Black Skirt or Buenos Aires). The single most common mistake is housing pencilfish with Cherry Barbs — it works on paper (same temperature, same pH) but the cherries outfeed the pencils at every meal and the pencils slowly lose condition. If you want a community tank, build it around the pencilfish, not the other way around.

Diet & Feeding

Dwarf Pencilfish are omnivores with a strong carnivorous lean. In the wild they eat insect larvae, micro-crustaceans, and the microscopic organisms that live on the surface of plants — they are surface and midwater feeders by design, with an upturned mouth that is built for picking food off the underside of floating leaves. In the aquarium they accept crushed flake, micro pellets (Hikari Micro Pellets, New Life Spectrum Nano, Fluval Bug Bites), frozen bloodworm (chopped — full-size bloodworm is too big for a 3 cm fish), frozen brine shrimp, live baby brine shrimp, and vinegar eels. They will not eat from the bottom; anything that sinks past them is lost.

Feed small amounts twice a day. The single biggest diet mistake with pencilfish is feeding floating pellets that are too big — they will try to eat them, fail, and the pellets will sit on the surface until they sink and rot. Crush flake between your fingers until it is powder-fine; buy micro pellets specifically; chop frozen bloodworm with a razor on a tile. Pencilfish have tiny mouths and need tiny food. Colour and condition respond fast to live food — a week of baby brine shrimp morning and night will turn a pale, shop-fresh group into a brightly-marked, displaying school. Live food is also the trigger for spawning.

The other Nannostomus species worth knowing about — because shops sell them under the generic "pencilfish" label and they are not interchangeable — are: Nannostomus beckfordi (Beckford's Pencilfish, the most common in shops, 5–6 cm, hardier, red-and-gold colour form, tolerates harder water and is the species to start with if your tap is alkaline); Nannostomus eques (Harrison's Pencilfish, 4–5 cm, swims at a head-up oblique angle and has a single bold stripe); and Nannostomus trifasciatus (Three-Stripe Pencilfish, 4–5 cm, three stripes like marginatus but a chunkier body and slightly larger). All four share the same care, but marginatus is the smallest, the most delicate, and the one whose stripe-angle shift is most pronounced. If you are unsure which one you are buying, count the stripes and check the adult size on the label — or just ask the shop. They are not interchangeable in a 10 gallon.

Common Health Issues

Dwarf Pencilfish are hardy once acclimated but fragile in the first two weeks — they are shipped in from collectors or commercial farms in soft acidic water, and the shock of hard alkaline shop water (and then your tap water) can wipe out a group in 48 hours. Acclimate them slowly — drip acclimation over an hour, minimum — and quarantine for two weeks before adding them to a display tank. The most common health issues are ich (triggered by temperature swings during shipping), bacterial infections (often secondary to stress-induced immune suppression in the first week), and starvation (when housed with faster-feeding fish).

Ich is treated with the standard heat-and-salt or formalin/malachite protocol, but pencilfish are scaleless-ish (their scales are tiny) and tolerate salt poorly — do not exceed 1 teaspoon per 10 gallons, and prefer formalin-based medications (Rid-Ich, Kordon Rid-Ich Plus) at 75% of label dose. Copper-based treatments are toxic; avoid them entirely. Raise temperature to 28°C (do not exceed 30°C — pencilfish stress above that) and treat for the full 14-day life cycle. The bacterial infections I see most often present as red, ulcerated patches near the vent or on the flanks; treat with a broad-spectrum antibiotic (Maracyn, Kanaplex) in a hospital tank, and address the underlying water quality — nitrate above 30 ppm is the usual trigger.

Prevention is straightforward: weekly 25–30% water changes with soft, temperature-matched water; no ammonia, no nitrite, nitrate below 20 ppm; stable temperature (a 50-watt heater with a thermostat in a 10 gallon is enough — pencilfish do not tolerate wide temperature swings); and a mature, cycled tank. Pencilfish do not belong in a freshly-cycled aquarium — the biofilm and micro-crustacean population of a 3-month-old tank is part of what keeps them fat between feedings. Lifespan in good conditions is 3–5 years — longer than most nano tetras, which is one of the underrated things about the genus. If your pencilfish are dying within six months of purchase, look at water parameters and tank mates, not the species.

Breeding

Dwarf Pencilfish are egg-scatterers and reasonably easy to spawn — the challenge is raising the fry, not triggering the spawn. Sexing is straightforward: males are slimmer, brighter, and develop red pigmentation in the fins and on the anal fin specifically; females are rounder, especially when gravid, and paler. Condition a group with live baby brine shrimp and frozen bloodworm for two weeks, then move a fat female and the brightest male to a 5 gallon spawning tank with soft acidic water (pH 5.5–6.5, GH 2–4, 26–28°C), a spawning mop or fine-leaved plant (Java moss, guppy grass), and a sponge filter. No substrate — you want to be able to see and remove the eggs.

Spawning happens at dawn — the male displays by shifting his stripes to the diagonal angle, hovering beside the female among the moss, and the pair releases 30–80 eggs over the course of an hour. The eggs are adhesive and stick to the moss. Remove the parents immediately after spawning — both will eat eggs and fry given the chance. Eggs hatch in 24–36 hours at 27°C; the fry are tiny and free-swimming on day 4–5. The single biggest killer at this stage is the wrong first food — the fry are too small for baby brine shrimp nauplii and need infusoria, green water, or commercial liquid fry food (Sera Micron, SeaChem Paracare Fry Starter) for the first 3–5 days. Graduate to vinegar eels at day 5, then baby brine shrimp at day 8–10.

Fry grow fast on BBS — 1 cm at 6 weeks, sexable at 3 months, sexually mature at 6 months. Yields are low compared to livebearers: a single pair might give you 15–25 survivors per spawn if you do everything right, and 0–5 if you get the first food wrong. The trick is to set up multiple spawning tanks and run them in rotation — a pair will spawn every 7–10 days if conditioned and removed after each spawn. Pencilfish do not parent; there is no fry-care behaviour to lose by removing the adults. The other Nannostomus species (beckfordi, eques, trifasciatus) spawn with the same protocol and produce slightly larger, slightly easier fry — if your goal is to breed pencilfish commercially rather than as a challenge, start with N. beckfordi.

Frequently Asked Questions

How many Dwarf Pencilfish should I keep together?

A minimum of 6 — but 10+ is better. Pencilfish are schooling fish and a group of 6 is the absolute floor; below that they become skittish, hide most of the day, and lose colour. In a 10 gallon, 8–10 is the comfortable upper end. In a 20 gallon, push for 12–15 — the males will start displaying to each other and you'll see the stripe-angle mood changes that make this fish worth keeping.

Why do pencilfish stripes change angle?

It's a mood signal. When relaxed, the three horizontal stripes run straight along the body. When a male is displaying or aggressive, the stripes shift to a diagonal angle — sometimes nearly vertical near the tail. Pencilfish are the only fish in the hobby that does this; it's the easiest way to read what your school is doing. The shift takes about a second and reverses when the fish calms down.

Can I keep Dwarf Pencilfish with shrimp?

Yes — pencilfish are shrimp-safe with adult shrimp. Their mouths are too small to take anything but newly-hatched shrimplets, and even then a dense moss carpet will out-produce the losses. They are one of the safest nano fish to house with Cherry Shrimp or Caridina colonies, alongside Chili Rasboras and Ember Tetras. Avoid housing with Crystal Red Shrimp if the tank is over 24°C — CRS prefer cooler water than pencilfish thrive in.

What is the difference between Dwarf Pencilfish and Beckford's Pencilfish?

They are different species in the same genus. Dwarf Pencilfish (Nannostomus marginatus) maxes out at 3–4 cm and stays slim with three straight horizontal stripes. Beckford's Pencilfish (N. beckfordi) grows to 5–6 cm, is chunkier, and has a red-and-gold colour form that's more common in shops. Beckfordi is the more hardy and forgiving species; marginatus is the more delicate, more characterful nano fish. For a 10 gallon with Cherry Shrimp, marginatus is the better choice.