what kind of piranha are you talking about? most piranhas (with the exceptions of a few) are not active swimmers and shouldn't command overly large tanks relative to the fish's size. That would be common sense, as no one in their right minds would house a 12" fish in a 10g tank. I also suggest the length of the tank be at least 4 times longer than that of the fish, and of course the width be at the very least the same as the length of the fish to give it ample space to turn around and manuver.
it is recomended by many keepers that solitary species be housed in square tanks with very good water flow (especially juveniles).