The road measures 4.72 miles long and would take a car obeying speed limits 6 minutes to travel its length.
The B7040 is a B Road and is located in the Zone 7 Highways Region.
The road passes through several towns, including Leadhills, BIGGAR, and Elvanfoot.
The road is located entirely within Lanarkshire.