One-lined pencilfish (Nannostomus unifasciatus)
A slim pencilfish with one black stripe that swims tilted head-up, about 4 cm long. Keep ten or more in a heavily planted soft-water tank with floating plants and gentle flow. Feed small live and frozen foods every day.
Also known as: One line pencilfish, Oneline pencilfish, Red fin pencilfish

Quick facts
- Temperature23–28 °C73–82 °FHigh confidence[1][2]
- pH5–6.5Medium confidence[1][2]
- General hardness (GH)1–10 dGH18–178 ppmLow confidence[1]
- Carbonate hardness (KH)12 dKH214 ppmLow confidence[2]
- Adult size3.5–4 cm1.4–1.6 inHigh confidence[1][2]
- Minimum tank68 L18 US galMedium confidence[1][3]
- Minimum tank length75 cm30 inLow confidence[1]
- Minimum groupGroup of at least 10High confidence[1][2]
- TemperamentPeacefulHigh confidence[1][2]
- Swimming zoneTopMedium confidence[1][2]
- DietCarnivoreHigh confidence[1][2][3]
- Lifespan5 yearsLow confidence[4]
- DifficultyIntermediateMedium confidence[1][2]
- With shrimpCautionLow confidence[3]
- With snailsSafeLow confidence[1]
- With plantsSafeHigh confidence[1][2]
Values are from our sourced catalog; a human review of this page is in progress.
Where sources disagree
Our sources don't always agree. Here is where they differ and what we chose.
- pH: Seriously Fish 4.0-7.0; Fishkeeper 5.0-6.5.
- Carbonate hardness (KH): Fishkeeper: KH up to 12.
- Adult size: Seriously Fish 4 cm SL; Fishkeeper 4 cm.
- Minimum tank: Seriously Fish 75 x 30 cm base; Aquarium Co-op 10 gal minimum for pencilfish.
- Minimum group: Seriously Fish advises 10 or more; Fishkeeper agrees.
- Temperament: Timid; best with other small, calm fish.
- Lifespan: Genus-level: Aquariadise says pencilfish usually live around 5 years, longer in ideal conditions.
- Active: Takes on a different, paler night pattern as part of a daily rhythm.
Behaviour and tank mates
Good with
With conditions
- Amano shrimpOne-lined pencilfish may eat or harass Amano shrimp; give dense cover.
- Buenos Aires tetraWatch for chasing between Buenos Aires tetra and One-lined pencilfish; add hiding places.
- Cherry shrimpOne-lined pencilfish may eat or harass Cherry shrimp; give dense cover.
- Colombian tetraWatch for chasing between Colombian tetra and One-lined pencilfish; add hiding places.
- KribensisWatch for chasing between Kribensis and One-lined pencilfish; add hiding places.
- Rosy barbAn adult Rosy barb may eat small fish like One-lined pencilfish.
Avoid
- AngelfishAngelfish can eat small fish like One-lined pencilfish.
- AxolotlAxolotl needs 14–20 °C; your animals need 23–28 °C.
- Bala sharkBala shark can eat One-lined pencilfish.
- Boesemani rainbowfishBoesemani rainbowfish and One-lined pencilfish need opposite water: soft and acidic versus hard and alkaline.
- Chinese algae eaterChinese algae eater can eat small fish like One-lined pencilfish.
- Cobalt blue zebra cichlidCobalt blue zebra cichlid is aggressive and would harass One-lined pencilfish.
- Common goldfishCommon goldfish is a coldwater animal; One-lined pencilfish is tropical.
- Dojo loachDojo loach is a coldwater animal; One-lined pencilfish is tropical.
Computed by the same rules as Aquiio's Can I add?, for a typical tank: cycled, filtered and big enough for both species at their minimum group size. Your own tank can change the result.
Check it against your own tank
Tank and setup
| Water type | Tropical freshwater[1][2] |
|---|---|
| Flow | Low flow[1][2] |
| Substrate | Any substrate[1] |
| Decor | Dense plants, Floating plants, Driftwood, Leaf litter[1][2] |
| Special needs | Needs soft, acidic water, Needs plants, Needs low flow, Jumper: needs a lid[1][2][3] |
| Active | By day[1] |
| Social structure | Group[1][2] |
| Schooling | Loose shoal[1] |
Feeding
| Foods | Flakes, Micro pellets, Frozen bloodworms, Frozen daphnia, Frozen brine shrimp, Live foods[1][2][3] |
|---|---|
| Feeding (adults) | 2-3 small meals daily, only what is eaten in a few minutes[5][6] |
| Feeding (juveniles) | several small meals daily[6] |
| Can go without food | 3 days[5][6] |
| Feeding zone | Midwater[1][3] |
Breeding and sexing
| Breeding difficulty | Rarely bred[1] |
|---|---|
| Telling the sexes apart | Males are more colourful, usually slimmer, and have an enlarged anal fin.[1][2] |
| Breeding notes | Seriously Fish doubts it has been bred. Fishkeeper describes the usual pencilfish method: soft acidic water, fine plants or marbles, remove egg-eating parents; eggs hatch in 24-36 hours and fry swim 5-6 days later.[1][2] |
Never release aquarium animals or plants into the wild.
Look-alikes
- Barred pencilfish Nannostomus espei
- Coral red pencilfish Nannostomus mortenthaleri
- Dwarf pencilfish Nannostomus marginatus
- Golden pencilfish Nannostomus beckfordi
- Greenstripe pencilfish Nannostomus marilynae
- Hockeystick pencilfish Nannostomus eques
Not sure which one you have? Identify it from a photo.
Frequently asked questions
What temperature does a One-lined pencilfish need?
The One-lined pencilfish does best at 23–28 °C (73–82 °F) and pH 5–6.5, based on the sources listed on this page.
What size tank does a One-lined pencilfish need?
At least 68 L (about 18 US gallons) for adults in a group of 10. Bigger is easier to keep stable.
How long does a One-lined pencilfish live?
Usually 5 years with good care.
How many One-lined pencilfish should be kept together?
Keep at least 10 together; the species feels safer and shows natural behaviour in a group.
Can a One-lined pencilfish live with a Black neon tetra?
Our rules rate One-lined pencilfish with Black neon tetra as “Good match” for a typical tank.