Dunbarton is a town in Merrimack County, New Hampshire, United States. The population was 3,005 at the 2020 census,[1] up from 2,758 at the 2010 census.