Dwarf Pencilfish
Nannostomus marginatus
A tiny, peaceful schooling fish native to the Amazon and Orinoco basins. Known for their torpedo shape, striking horizontal stripes, and fascinating hovering behavior. Their tiny mouths make them one of the few truly dwarf-shrimp-safe fish. They require densely planted tanks with subdued lighting, soft acidic water, and gentle flow to thrive.
Dwarf Pencilfish At a Glance
Dwarf Pencilfish Tank Requirements
Will Dwarf Pencilfish fit in your tank?
Care guides tell you what Dwarf Pencilfish needs, the next question is whether your tank can safely provide it. Test Dwarf Pencilfish against your tank size, maintenance needs, and the fish you already keep before you buy.
Dwarf Pencilfish Water Parameters
Dwarf Pencilfish Temperament & Compatibility
Dwarf Pencilfish Varieties
Each variety inherits the species defaults above. Only differences are highlighted.
Standard
The standard form found in the aquarium trade. Must be kept in a shoal of at least 6 to feel secure and display their natural social behaviors and distinct day/night coloration changes.
Same care requirements as the base species
Also known as: Wild Type
Dwarf Pencilfish Care Guide Summary
The Dwarf Pencilfish, scientifically known as Nannostomus marginatus, belongs to the Characins family group. Adults reach a maximum size of approximately 3.5 cm and have a fusiform body shape with a moderate growth rate. Classified as peaceful, this species primarily occupies the surface and mid-level zones of the aquarium and produces a low level of biological waste.
To thrive, the Dwarf Pencilfish requires a freshwater only aquarium with a minimum volume of 40 litres and a tank length of at least 45 cm. Water temperature should be maintained between 22°C and 28°C, with a pH range of 4–7 and a general hardness of 1–10 dGH. A low water flow is preferred.
Due to its specialist needs, the Dwarf Pencilfish is best suited for fishkeepers who can provide a carefully planned setup. The Dwarf Pencilfish is typically available in one standard form.
Dwarf Pencilfish Habitat Setup
When setting up an aquarium for the Dwarf Pencilfish, a low water flow best suits their natural preferences. Because this species occupies the surface and mid-level zones, the aquarium layout should prioritise adequate surface area with floating cover to make them feel secure near the waterline and open swimming space in the centre of the tank for free movement. Useful additions include leaf litter or blackwater tannins to replicate their natural soft-water habitat, dense planting to provide cover, break sightlines, and reduce stress, and floating plants to diffuse overhead light and create shaded areas. Keepers should note that a tight-fitting lid is essential, as this species is a known jumper.
Dwarf Pencilfish Compatibility Notes
Classified as peaceful, the Dwarf Pencilfish is a schooling species that feels most secure in a sizeable group, where natural shoaling behaviour reduces stress and brings out their best colours. When choosing tankmates, boisterous or fast-moving tankmates may cause this species undue stress. Selecting tankmates that favour different water layers from the surface and mid-level zones can help reduce competition and territorial overlap.
Who Dwarf Pencilfish Is Actually For
Dwarf Pencilfish is best for a fishkeeper who wants a species that can settle into a calmer community setup and can provide a keeper who can commit to a proper group of at least 6. It makes the most sense for a hobbyist who will actually build around its needs, especially plants.
The most common mistake is buying Dwarf Pencilfish for looks first and only later discovering how its adult size, behavior, or bioload changes the whole tank plan. Another frequent problem is underestimating its social needs. A token pair or trio often behaves very differently from a real group.
Dwarf Pencilfish Recommended Tank Sizes
Standard aquarium sizes that meet the minimum volume and length requirements for Dwarf Pencilfish.
15 Gallon Standard
20 Gallon High
20 Gallon Long
29 Gallon Standard
30 Gallon Breeder
36 Gallon Bowfront
Show 21 more tank sizes
Frequently Asked Questions About Dwarf Pencilfish
How big does Dwarf Pencilfish get?
Dwarf Pencilfish (Nannostomus marginatus) typically reaches a maximum adult size of approximately 3.5 cm. They have a fusiform body shape and a moderate growth rate.
What tank size does Dwarf Pencilfish need?
A minimum aquarium volume of 40 litres and a tank length of at least 45 cm are recommended for Dwarf Pencilfish. This ensures enough swimming space and helps maintain stable water conditions.
What water parameters does Dwarf Pencilfish need?
Dwarf Pencilfish thrives in freshwater only conditions with a temperature range of 22–28°C, a pH between 4 and 7, and a general hardness of 1–10 dGH. A low water flow is preferred.
Is Dwarf Pencilfish peaceful or aggressive?
Dwarf Pencilfish is classified as peaceful with an aggression score of 1 out of 10. They are generally well-suited to peaceful community tanks.
How many Dwarf Pencilfish should be kept together?
Dwarf Pencilfish is a schooling species and should be kept in groups of at least 6. Larger groups help distribute aggression and encourage natural schooling behaviour.
Does Dwarf Pencilfish have any special tank requirements?
Yes. Dwarf Pencilfish benefits from plants - densely covered, plants - floating, and leaf litter/blackwater in the aquarium. These features help replicate their natural habitat and promote overall health and well-being.
Does Dwarf Pencilfish need a lid on the tank?
Yes. Dwarf Pencilfish is a known jumper, and a tight-fitting lid or cover is essential to prevent escape. Even a small gap can be enough for a determined fish to leap out.
Useful setup supplies
We may earn from qualifying purchases
Guidarium Editorial Desk
Reviewed against Guidarium care, stocking, and compatibility standards. Read the editorial policy.
- Last reviewed
- May 4, 2026
- Last updated
- May 4, 2026
- Issues or corrections?
- Contact the editorial team
Top Tank Mates for Dwarf Pencilfish
These fish are strong compatibility matches for Dwarf Pencilfish based on water preferences, temperament, adult size, and tank behavior.
Tiger Pleco (L002)
Panaqolus sp. L002
Ideal Tank MatesStarlight Bristlenose Pleco (L183)
Ancistrus dolichopterus
Ideal Tank MatesParallel Cory
Corydoras parallelus
Ideal Tank MatesPurple Zebra Shrimp
Potamalpheops sp.
Ideal Tank MatesMarbled Whiptail
Loricaria simillima
Ideal Tank MatesLoricaria spinulifera
Loricaria spinulifera
Ideal Tank MatesPlants That Suit Dwarf Pencilfish
These plants pair well with Dwarf Pencilfish based on shared water preferences, layout fit, and how likely they are to hold up in the same aquarium.
Amazon Frogbit
Limnobium laevigatum
Asian Watergrass
Hygroryza aristata
Asian Watermoss
Salvinia cucullata
Carolina Mosquito Fern
Azolla caroliniana
Common Duckweed
Lemna minor
Crystalwort
Riccia fluitans
Fish Similar to Dwarf Pencilfish
Beckford's Pencilfish
Nannostomus beckfordi
A peaceful, slender schooling fish native to the sluggish rivers and swamps of South America. They are famous for the males' harmless but spectacular lateral sparring displays. They require heavily planted aquariums with gentle flow and make excellent tank mates for other peaceful, soft-water species. A tight-fitting lid is essential as they are known to be proficient jumpers.
Golden Dwarf Barb
Pethia gelius
The Golden Dwarf Barb is a diminutive, peaceful schooling fish native to South Asia. It is often confused in name with the much larger 'Golden Barb' (Barbodes semifasciolatus), but it is a distinct nano species. Due to their small size and slightly timid nature, they do best in heavily planted, peaceful setups and are considered safe to keep with adult dwarf shrimp. They prefer slightly cooler, sub-tropical water temperatures.
Dwarf Rasbora
Boraras maculatus
A tiny, peaceful shoaling fish native to the blackwater streams and peat swamps of Southeast Asia. Known for their striking red/orange coloration and distinct dark body spots. They are an excellent choice for heavily planted nano tanks and peaceful dwarf shrimp setups. Because of their minute size, they are easily outcompeted for food and predated upon by larger fish.
MacCulloch's Rainbowfish (Dwarf Rainbowfish)
Melanotaenia maccullochi
A smaller, peaceful species of rainbowfish native to Australia and Papua New Guinea. They feature striking silver/yellow bodies with horizontal red, brown, or orange stripes. Unlike larger Melanotaenia species, their smaller size makes them suitable for medium aquariums. They are highly active schooling fish that require open swimming space and display their best colors in the morning.
Cockatoo Dwarf Cichlid
Apistogramma cacatuoides
A highly popular and vibrant dwarf cichlid native to the Amazon basin. Named for the male's flamboyant, crest-like dorsal fin. They are cave-spawners that require a fine sand substrate (which they sift through their gills) and plenty of hiding spots. While generally peaceful in community tanks, they become fiercely territorial when breeding.
Ornate Rainbowfish
Rhadinocentrus ornatus
A highly sought-after, elegant dwarf rainbowfish native to the coastal 'wallum' habitats and sand dune lakes of eastern Australia. Known for its intricate scale patterns and iridescent colors, it thrives in soft, slightly acidic, tannin-stained waters (blackwater). Unlike many larger rainbowfish, they are adapted to calm backwaters and prefer gentle flow. They are active but peaceful schooling fish that display fascinating courtship behaviors.



