The gmina covers an area of 139 sqkm , and as of 2006 its total population is 31,418 (out of which the population of Krzeszowice amounts to 9,942, and the population of the rural part of the gmina is 21,476).