From Wikipedia
The Great Wall stretches from Shanhaiguan in the east, to Lop Lake in the west, along an arc that roughly delineates the southern edge of Inner Mongolia. The most comprehensive archaeological survey, using advanced technologies, has concluded that all the walls measure 8,851.8 km (5,500.3 mi). This is made up of 6,259.6 km (3,889.5 mi) sections of actual wall, 359.7 km (223.5 mi) of trenches and 2,232.5 km (1,387.2 mi) of natural defensive barriers such as hills and rivers.