I had mine in a 38 gallon til he was about 8 inches, basically as long as every dimension of the tank is LONGER then he is... and make sure you have it very well filtered, and make sure to have PLENTY of oxygen in the water if its a knife in a smaller tank!