Nailsworth is a town and civil parish in Gloucestershire, England, lying in one of the Stroud Valleys in the Cotswolds, on the A46 road, 3.5 miles (5.6 km) south of Stroud and about 25 miles (40 km) north of Bath. The parish had a population of 5,794 at the 2011 census.