The Cotswolds lie within the current ceremonial counties of Oxfordshire , Gloucestershire , Wiltshire , Somerset , Warwickshire , and Worcestershire . The Cotswolds lie mainly within the ceremonial counties of Gloucestershire and Oxfordshire , but extend into parts of Wiltshire , Somerset , Worcestershire and Warwickshire .