Nykvarn is a municipality in central Sweden, in the county of Stockholm. The municipality covers an area of 152.8 km². Of the total population of 8052, 4098 are male, and 3954 are female. The population density of the community is 53 inhabitants per km².