Just gonna chime in here for a moment because of the 20gal for males 40gal for females that popped up a few times.
As the owner of a 2400 gram male, please don't just assume they will stay smaller. Obviously over time you may need to upgrade regardless of what 'average' size is. Keeping my male in a 20 gallon tank is comical XD