From what I read in a book, fish should have at least one to two gallons of water for each inch they are excluding the tail. So if a fish is two inches long, then it needs two gallon of water.
I don't really remember, but it was either one gallon for freshwater and two for saltwater fish, or two for freshwater and one for saltwater fish.