The gmina covers an area of 175 sqkm , and as of 2006 its total population is 28,575 (out of which the population of Szamotuły amounts to 18,760, and the population of the rural part of the gmina is 9,815).