Varberg is a municipality in southwest Sweden, in the county of Halland. The municipality covers an area of 872.9 km². Of the total population of 52648, 26182 are male, and 26466 are female. The population density of the community is 60 inhabitants per km².