Can Knight Goby and Rainbow Shark Live Together?

🟡Possible with Caution

Keeping Knight Goby and Rainbow Shark together is possible but requires caution due to potential behavioral clashes. Provide a spacious tank of at least 240 litres with plenty of hiding spots to reduce stress. Monitor behaviour closely, especially during the first few weeks.


At a Glance

Knight Goby

Stigmatogobius sadanundio

Rainbow Shark

Epalzeorhynchos frenatum

🐠Family Group
Knight Goby
Gobies & Gudgeons
Rainbow Shark
Cyprinids
Temperament
Knight Goby
Semi-Aggressive (6/10)
Rainbow Shark
Aggressive (7/10)
Temperature
✓ Compatible
Knight Goby
20–28°C
Rainbow Shark
22–28°C
pH Range
✓ Compatible
Knight Goby
7–8.5
Rainbow Shark
6.5–7.5
Hardness (dGH)
✓ Compatible
Knight Goby
10–30
Rainbow Shark
5–15
Water Type
✓ Compatible
Knight Goby
Brackish Tolerant
Rainbow Shark
Freshwater Only
Flow Preference
✓ Compatible
Knight Goby
Moderate
Rainbow Shark
Moderate
Min Tank Volume
Combined: 240 L
Knight Goby
75 L
Rainbow Shark
200 L
Swimming Level
Shared: 1 zone
Knight Goby
MiddleBottom
Rainbow Shark
Bottom
🏷️Behavior Tags
Knight Goby
Fin NipperShrimp EaterFry PredatorTerritorial (Defends specific area)Digger (Disturbs Substrate)Aggressive to same species/look-alikes
Rainbow Shark
Territorial (Defends specific area)Aggressive to same species/look-alikesHyperactive / Fast SwimmerJumper (Lid Required)

Behaviour & Temperament

Knight Goby is a moderately assertive species (6/10), while Rainbow Shark is semi-aggressive (7/10). This modest difference means Rainbow Shark may occasionally assert dominance over Knight Goby.

Knight Goby and Rainbow Shark both frequent the Bottom (Substrate) region of the setup. This overlap can increase competition for space, so providing ample room and cover is important to keep both species comfortable.

Additional behavioural considerations to keep in mind: Two territorial species may clash over territory, especially in smaller tanks.

Worth noting: Rainbow Shark 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 Knight Goby and Rainbow Shark to establish separate territories. Add plenty of line-of-sight breaks using driftwood, rocks, and dense planting to reduce territorial confrontations. Keep fin nippers in larger groups to distribute nipping behaviour among conspecifics rather than tank mates.

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 7 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 10–15 dGH. Regular testing will ensure conditions stay within this range. An aquarium test kit is recommended for monitoring.

Tank Setup

To house Knight Goby and Rainbow Shark together, plan for an aquarium of at least 240 litres with a minimum length of 120 cm. This accounts for the larger species' space requirements with an additional 20 % buffer to reduce territorial tension.

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: Sand (Sifters), Shells (Breeding/Hiding), Driftwood (Digestion/Hiding), Smooth Gravel (Sensitive Barbels), Plants - Densely covered. Meeting these requirements will help both species thrive.

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

Find the right tank equipment

Browse tanks, décor, and equipment suited for this setup.

Frequently Asked Questions

Can Knight Goby and Rainbow Shark live together?

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

What size tank do Knight Goby and Rainbow Shark need?

A minimum of 240 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 Knight Goby 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 Knight Goby or Rainbow Shark aggressive?

Knight Goby is moderately assertive (6/10) and Rainbow Shark is semi-aggressive (7/10). Their similar temperaments generally lead to a peaceful coexistence.

What pH do Knight Goby and Rainbow Shark need?

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

Will Knight Goby nip Rainbow Shark's fins?

Knight Goby is a known fin nipper. If Rainbow Shark has long or flowing fins, there is a real risk of fin damage. Keeping Knight Goby in a larger group can help redirect nipping behaviour toward conspecifics.

How do I manage Knight Goby's territorial behaviour?

Provide line-of-sight breaks using rocks, driftwood, and dense planting. A larger tank gives Knight Goby 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.


Related Comparisons