Ockelbo is a municipality in east central Sweden, in the county of Gävleborg. The municipality covers an area of 1070.5 km². Of the total population of 6189, 3170 are male, and 3019 are female. The population density of the community is 6 inhabitants per km².