Dwarf Pencilfish

Nannostomus marginatus

Characins

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

Adult Size3.5 cm
Body ShapeFusiform
Growth RateModerate
TemperamentPeaceful
Water TypeFreshwater Only
Flow PreferenceLow
Waste OutputLow
StockingSchool of 6+

Dwarf Pencilfish Tank Requirements

Minimum Volume40 L
Minimum Length45 cm
FlowLow
Water TypeFreshwater Only
Must-Haves in the Tank
Plants - Densely coveredPlants - FloatingLeaf Litter/Blackwater
Stocking calculator

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
Test in my tank

Dwarf Pencilfish Water Parameters

Temperature2228°C
pH47
Hardness110 dGH

Dwarf Pencilfish Temperament & Compatibility

Aggression LevelPeaceful
1/10
Where They Swim
Surface
Mid-level
Bottom
Stocking Guidelines
Keep at Least6 fish
Max per TankNo limit
Can Live Alone?No — needs a group
Behavior Traits
Nano / Bite-sized (Predation Risk)Shy / Slow Moving (Easily Stressed)Jumper (Lid Required)

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 47 and a general hardness of 110 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.

Dwarf Pencilfish Recommended Tank Sizes

Standard aquarium sizes that meet the minimum volume and length requirements for Dwarf Pencilfish.

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.


Fish Similar to Dwarf Pencilfish

Beckford's Pencilfish

Nannostomus beckfordi

Characins
6.5 cm Peaceful

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.

Dwarf Rasbora

Boraras maculatus

Cyprinids
2.5 cm Peaceful

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

Rainbowfish
7 cm Peaceful

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

Cichlids - South American
7.5 cm Semi-Aggressive

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.

Dwarf Flag Cichlid

Laetacara curviceps

Cichlids - South American
9 cm Mostly Peaceful

A small, colorful, and surprisingly peaceful dwarf cichlid native to the Amazon Basin. Known for their 'smiling' facial markings and iridescent blue/green flanks. Unlike many of their larger cousins, they are excellent community fish, though they may become mildly territorial when breeding.

Checkerboard Cichlid

Dicrossus filamentosus

Cichlids - South American
8 cm Mostly Peaceful

A striking, slender South American dwarf cichlid known for its distinct black checkerboard pattern along its flanks. Unlike many cichlids, they are exceptionally peaceful community fish. They are strict blackwater species, requiring very soft, acidic water, sand substrate, and leaf litter to thrive.