Can Beckford's Pencilfish and Rainbow Shark Live Together?

Reviewed by Guidarium Editorial DeskUpdated April 28, 2026
Possible with Caution

Keeping Beckford's Pencilfish and Rainbow Shark together is possible but requires caution due to differing aggression levels and potential behavioral clashes. Provide a spacious tank of at least 200 litres with plenty of hiding spots to reduce stress. Monitor behaviour closely, especially during the first few weeks.


At a Glance

Beckford's Pencilfish

Nannostomus beckfordi

Rainbow Shark

Epalzeorhynchos frenatum

🐠Family Group
Beckford's Pencilfish
Characins
Rainbow Shark
Cyprinids
Temperament
Beckford's Pencilfish
Peaceful (2/10)
Rainbow Shark
Aggressive (7/10)
Temperature
✓ Compatible
Beckford's Pencilfish
22–28°C
Rainbow Shark
22–28°C
pH Range
✓ Compatible
Beckford's Pencilfish
5–7.5
Rainbow Shark
6.5–7.5
Hardness (dGH)
✓ Compatible
Beckford's Pencilfish
1–15
Rainbow Shark
5–15
Water Type
✓ Compatible
Beckford's Pencilfish
Freshwater Only
Rainbow Shark
Freshwater Only
Flow Preference
✓ Compatible
Beckford's Pencilfish
Low
Rainbow Shark
Moderate
Min Tank Volume
Combined: 200 L
Beckford's Pencilfish
60 L
Rainbow Shark
200 L
Swimming Level
✓ Different zones
Beckford's Pencilfish
TopMiddle
Rainbow Shark
Bottom
🏷️Behavior Tags
Beckford's Pencilfish
Nano / Bite-sized (Predation Risk)Hyperactive / Fast SwimmerJumper (Lid Required)Shy / Slow Moving (Easily Stressed)
Rainbow Shark
Territorial (Defends specific area)Aggressive to same species/look-alikesHyperactive / Fast SwimmerJumper (Lid Required)
Stocking calculator

Can your tank handle Beckford's Pencilfish and Rainbow Shark?

Compatibility is only part of the answer. Test both fish with your real tank size, current stock, and maintenance needs to see if you have enough space and a safe stocking level before you add them.

Beckford's Pencilfish
Rainbow Shark
Test both in my tank

Behaviour & Temperament

Beckford's Pencilfish is a peaceful species (2/10), while Rainbow Shark is semi-aggressive (7/10). This notable difference means Rainbow Shark may occasionally assert dominance over Beckford's Pencilfish.

In terms of spatial distribution, Beckford's Pencilfish prefers the Top (Surface) and Middle (Open Water) zones, whereas Rainbow Shark occupies the Bottom (Substrate) zone. Because they use different levels of the water column, territorial disputes are less likely and the tank will appear more balanced.

Additional behavioural considerations to keep in mind: Hyperactive swimmers can stress shy, slow-moving species through constant motion.

Worth noting: Beckford's Pencilfish is a known jumper, so a tight-fitting lid is essential.

To improve the chances of a peaceful coexistence in this community tank: Provide a significantly larger tank (at least 50% more volume than the minimum) to allow both Beckford's Pencilfish and Rainbow Shark to establish separate territories. Add plenty of line-of-sight breaks using driftwood, rocks, and dense planting to reduce territorial confrontations. A larger aquarium with ample hiding spots can help diffuse aggression and give the less dominant fish space to retreat.

Water Parameters

The safe temperature window for both species falls between 22°C and 28°C. Aim for the midpoint of this range (around 25.0°C) for optimal comfort.

Both fish can tolerate a pH between 6.5 and 7.5. Maintaining a stable value within this band is more important than hitting an exact number.

For general hardness, the shared comfort zone is 5–15 dGH. Regular testing will ensure conditions stay within this range.

Tank Setup

To house Beckford's Pencilfish and Rainbow Shark together, plan for an aquarium of at least 200 litres with a minimum length of 120 cm. This recommendation combines the stricter species minimums with a community-load allowance so the pairing has realistic long-term space and filtration headroom.

Because this pairing requires extra vigilance, include plenty of hiding spots — caves, driftwood, and dense plant clusters — so the less dominant fish can retreat when needed.

Specific environmental needs for this combination include: Plants - Densely covered, Plants - Floating, Leaf Litter/Blackwater, Sand (Sifters), Smooth Gravel (Sensitive Barbels), Driftwood (Digestion/Hiding). Meeting these requirements will help both species thrive.

Both species do well with low (still water) water movement, so a standard filtration setup rated for the tank volume should suffice.

Why This Pairing Needs Extra Planning in Practice

This pairing usually fails when the tank is treated like a standard mixed community and the caution flags are ignored. Beckford's Pencilfish and Rainbow Shark need extra room, more cover, and closer observation during the first few weeks so small aggression, feeding, or territory issues do not snowball into a long-term problem.

Suitable Tank Sizes

Standard aquarium sizes large enough for both Beckford's Pencilfish and Rainbow Shark.

Show 5 more tank sizes

Frequently Asked Questions

Can Beckford's Pencilfish and Rainbow Shark live together?

They can coexist, but the pairing requires careful monitoring. Provide ample space (at least 200 litres), plenty of hiding spots, and watch for signs of stress or aggression.

What size tank do Beckford's Pencilfish and Rainbow Shark need?

A minimum of 200 litres (tank length at least 120 cm) is recommended. This provides enough space for both species to establish their own areas and reduces the likelihood of territorial disputes.

What water temperature is best for Beckford's Pencilfish and Rainbow Shark together?

Keep the aquarium between 22°C and 28°C. A target of around 25.0°C sits comfortably within both species' preferred ranges.

Are Beckford's Pencilfish or Rainbow Shark aggressive?

Beckford's Pencilfish is peaceful (2/10) and Rainbow Shark is semi-aggressive (7/10). The gap in aggression levels means the calmer fish may experience stress from the more assertive one.

What pH do Beckford's Pencilfish and Rainbow Shark need?

Both species overlap in the 6.5–7.5 pH range. Consistency is key — avoid sudden swings, and test regularly to stay within this window.

How do I manage Rainbow Shark's territorial behaviour?

Provide line-of-sight breaks using rocks, driftwood, and dense planting. A larger tank gives Rainbow Shark space to claim a territory without encroaching on the other fish's area. Adding décor that divides the tank into distinct zones works especially well.

Editorial Review

Guidarium Editorial Desk

Reviewed against Guidarium care, stocking, and compatibility standards. Read the editorial policy.

Last reviewed
April 28, 2026
Last updated
April 28, 2026
Issues or corrections?
Contact the editorial team

Related Comparisons