Well my mother has kept mollies and had the fish for over 10 years (the same fish) in a 50 gallon community tank. They never got over 4 inches so as far as I'm concerned, you can keep a few in a 20 gallon without an issue.