Hudiksvall is a municipality in east central Sweden, in the county of Gävleborg. The municipality covers an area of 2496.5 km². Of the total population of 37454, 18467 are male, and 18987 are female. The population density of the community is 15 inhabitants per km².