Söderhamn is a municipality in east central Sweden, in the county of Gävleborg. The municipality covers an area of 1062.2 km². Of the total population of 27,675, roughly 50% (13,777) are male and 50% (13,898) female. The population density of the community is 26 inhabitants per km².