AquariumHQ
Search
FishfreshwaterModerate

African knifefish

A nocturnal knifefish that swims by undulating a single long anal fin, forwards and backwards with equal ease, and that produces an audible bark by expelling air from its swim bladder. It has no dorsal fin at all.

Quick profile

Scientific name
Xenomystus nigri
Adult size
20–30 cm (7.9–11.8 in)
Lifespan
8–12 years
Temperature
24–28 °C (75–82 °F)
pH
6–7.5
Hardness
2–15 °dGH
Minimum tank
200 L (53 US gal)
Minimum length
105 cm
Swimming zone
Bottom
Social
Solitary
Diet
Carnivore
Overall confidence
moderate confidence

What keeping this species involves

Hardy and long-lived given a cave, dim light and meaty food after dark. Its requirements are about routine rather than chemistry.

Slow, shaded, heavily vegetated river margins and swamps.

Identity and names

Common name
African knifefish
Scientific name
Xenomystus nigri
Family
Notopteridae
Order
Osteoglossiformes
Class
Actinopterygii
Also sold as
African brown knife, Xenomystus nigri

Adult size and growth

20–30 cm (7.9–11.8 in) — Commonly around 20 cm in aquaria; larger in the wild.

Typical lifespan in an aquarium: 8–12 years. Almost every animal sold in a shop is a juvenile, so the tank has to suit the size in the first line rather than the size in the bag.

Water and tank requirements

A 20 cm nocturnal fish that needs a daytime retreat it can fully enter, plus open water to work at night.

RequirementValueNotes
Temperature24–28 °C (75–82 °F)Stability matters more than hitting an exact figure.
pH6–7.5A stable pH outside the ideal band is usually better than an unstable one inside it.
General hardness2–15 °dGHCheck your supplier's published figure before choosing species.
Minimum volume200 L (53 US gal)A floor, not a recommendation.
Minimum footprint105 cm longA 20 cm nocturnal fish that needs a daytime retreat it can fully enter, plus open water to work at night.
Water flowlowMatch the outflow to this rather than to the filter's rating.
Lid requiredYesThis species jumps.
StructureCaves, dense wood and dim lighting. Without a retreat it is stressed and stays that way.

Group size and social behaviour

Territorial towards its own kind in anything but a very large tank. Usually kept singly.

Structure
Solitary

Behaviour

  • Undulates the anal fin to move forwards or backwards without turning.
  • Produces an audible bark by expelling air from the swim bladder.

Feeding

Feeds after dark. In a community tank it needs food placed after lights-out.

Diet type
Carnivore
Staples
Frozen bloodworm, mysis and prawn, Live earthworm, Sinking carnivore pellets

Breeding

Strategy
Egg-depositing on a substrate, rarely achieved in aquaria
Difficulty
rarely achieved
Parental care
guarding

Tankmates and compatibility

Assessments are derived from stored traits by the compatibility engine, with the reasoning shown. A verdict is a statement about probability, not a guarantee — individual temperament can override it.

Risk this species poses to common tankmates
TowardsRiskWhat it means
Small fishnear-certainAnything that fits in the mouth is at risk once this species reaches adult size.
Adult dwarf shrimpnear-certainCover reduces losses but rarely prevents them where the risk is high.
Shrimpletsnear-certainDetermines whether a shrimp colony can grow rather than merely persist.
SnailsmoderateApplies to snails you wanted as well as snails you did not.
Long or trailing finsnoneFin damage is an entry point for secondary infection.
PlantsnoneTough species such as Anubias and Java fern survive most grazers.

Any pair in the catalogue can be assessed with the compatibility checker.

Welfare considerations

Points where the way this species is commonly sold or kept differs from what it actually needs.

  • Takes any fish small enough to swallow, which at 20 cm is most community species.
  • Aggressive to its own kind. Two in a tank is a fight rather than a pair.
  • Sensitive to copper and to standard-dose medication.

Problems to watch for

Most problems in a tank containing this species are general rather than species-specific. Start with the troubleshooting index and work from the observation rather than from a guess at the cause.

What AquariumHQ does not yet hold

Species-level disease susceptibility is modelled in the graph and is not yet populated. Health pages will not be published until each condition has veterinary sourcing, because health content written without evidence is the most harmful thing this product could publish. The gap is recorded in the coverage report.

Where it comes from

Native range
West and Central African river basins including the Nile, Niger and Congo
Habitat
Slow, shaded, heavily vegetated river margins and swamps.

What the checklists say

3 distribution statements retrieved from GBIF checklists. Establishment means is reproduced from the source where it states one, and left unstated where it does not — a record of presence is not a record of origin.

StatusPlacesWhat this means
Recorded as present, establishment means not stated3The source records the species as present and does not say whether it is native or introduced. AquariumHQ does not fill that in.

No checklist AquariumHQ holds positively calls this species native anywhere, so the native range above rests on AquariumHQ’s own reading of the literature rather than on a cited checklist.

Evidence

Every stored value with the kind of support behind it and where to check it. Evidence type and confidence are separate axes: an editorial position held confidently and a measurement held tentatively are different things.

ClaimValueEvidence typeConfidenceSource
scientific nameXenomystus nigriObserved / measuredhigh confidenceCatalogue of Life; GBIF — Global Biodiversity Information Facility
native rangeWest and Central African river basins including the Nile, Niger and CongoObserved / measuredmoderate confidenceGBIF — Global Biodiversity Information Facility
adult size20–30 cmAquarium-literature consensusmoderate confidenceAquariumHQ husbandry synthesis
lifespan8–12 yearsAquarium-literature consensusmoderate confidenceAquariumHQ husbandry synthesis
temperature24–28 °CAquarium-literature consensusmoderate confidenceAquariumHQ husbandry synthesis
ph6–7.5 pHAquarium-literature consensusmoderate confidenceAquariumHQ husbandry synthesis
general hardness2–15 °dGHAquarium-literature consensusmoderate confidenceAquariumHQ husbandry synthesis
minimum tank volume≥ 200 LAquariumHQ editorial positionmoderate confidenceAquariumHQ husbandry synthesis
minimum tank length≥ 105 cmAquariumHQ editorial positionmoderate confidenceAquariumHQ husbandry synthesis

Last reviewed 2026-08-10. Values labelled as an aquarium-literature consensus are AquariumHQ editorial positions rather than measurements — see how evidence is handled.

Why we say this

What each figure on this page rests on, and how far that is from being independently established.

Every figure on this page has a provenance. Open any claim to see what AquariumHQ holds for it, which sources say what, and what a claim of that kind actually needs. Different claims need different evidence: an accepted scientific name is settled by one authority, while a legal restriction needs a current primary instrument. A single source is often the right answer rather than a thin one.

scientific nameAquariumHQ's own position, externally checkableBased on a verified authoritative source.

AquariumHQ's own position on a claim an external source could support.

What this kind of claim needs: accepted scientific name and classification 1 authoritative source in an appropriate context. Checked against gbif on 2026-08-12. One authoritative backbone is what this class requires.

What would improve this: Go and read a source. This is reachable and has not been reached.

native rangeAquariumHQ's own position, externally checkableLimited evidence — treat with caution.

AquariumHQ's own position on a claim an external source could support.

What this kind of claim needs: where the species occurs 1 authoritative source in an appropriate context. 3 distribution statements held, and not one of them states an establishment means. Presence without native-or-introduced is not a native-range claim, so this stays below requirement rather than being read as one.

What would improve this: Go and read a source. This is reachable and has not been reached.

adult sizeAquariumHQ's own position, externally checkableAquariumHQ's own position, derived from evidenced inputs.

AquariumHQ's own position on a claim an external source could support.

What this kind of claim needs: size a well-kept specimen reaches no external source is required, provided AquariumHQ shows its reasoning. No external source is required for this class. AquariumHQ's position stands on its stated reasoning.

What would improve this: Go and read a source. This is reachable and has not been reached.

lifespanAquariumHQ's own position, externally checkableAquariumHQ's own position, derived from evidenced inputs.

AquariumHQ's own position on a claim an external source could support.

What this kind of claim needs: what aquariumhq advises for keeping no external source is required, provided AquariumHQ shows its reasoning. No external source is required for this class. AquariumHQ's position stands on its stated reasoning.

What would improve this: Go and read a source. This is reachable and has not been reached.

temperatureAquariumHQ's own position, externally checkableAquariumHQ's own position, derived from evidenced inputs.

AquariumHQ's own position on a claim an external source could support.

What this kind of claim needs: what aquariumhq advises for keeping no external source is required, provided AquariumHQ shows its reasoning. No external source is required for this class. AquariumHQ's position stands on its stated reasoning.

What would improve this: Go and read a source. This is reachable and has not been reached.

phAquariumHQ's own position, externally checkableAquariumHQ's own position, derived from evidenced inputs.

AquariumHQ's own position on a claim an external source could support.

What this kind of claim needs: what aquariumhq advises for keeping no external source is required, provided AquariumHQ shows its reasoning. No external source is required for this class. AquariumHQ's position stands on its stated reasoning.

What would improve this: Go and read a source. This is reachable and has not been reached.

general hardnessAquariumHQ's own position, externally checkableAquariumHQ's own position, derived from evidenced inputs.

AquariumHQ's own position on a claim an external source could support.

What this kind of claim needs: what aquariumhq advises for keeping no external source is required, provided AquariumHQ shows its reasoning. No external source is required for this class. AquariumHQ's position stands on its stated reasoning.

What would improve this: Go and read a source. This is reachable and has not been reached.

minimum tank volumeAquariumHQ's judgement — no authority publishes thisAquariumHQ's own position, derived from evidenced inputs.

No external authority publishes this. The rationale carries the reasoning.

What this kind of claim needs: minimum tank size no external source is required, provided AquariumHQ shows its reasoning. No authority publishes this. AquariumHQ derives it, and the derivation is recorded with its inputs and assumptions.

What would improve this: Keep the rationale current. There is no source to find.

minimum tank lengthAquariumHQ's judgement — no authority publishes thisAquariumHQ's own position, derived from evidenced inputs.

No external authority publishes this. The rationale carries the reasoning.

What this kind of claim needs: minimum tank size no external source is required, provided AquariumHQ shows its reasoning. No authority publishes this. AquariumHQ derives it, and the derivation is recorded with its inputs and assumptions.

What would improve this: Keep the rationale current. There is no source to find.