The size of the tank depends upon the size and number of your fish. Here’s a rough guide you can use.
1 small fish needs a 5-gallon tank.
5 small fish need a 10-gallon to a 20-gallon tank.
6-12 small fish will need a 21-40 gallon tank.