In civil engineering, clearance refers to the difference between the loading gauge and the structure gauge in the case of railroad cars or trams, or the difference between the size of any vehicle and the width/height of doors, the width/height of an overpass or the diameter of a tunnel as well as the air draft under a bridge, the width of a lock or diameter of a tunnel in the case of watercraft. In addition, there is the difference between the deep draft and the stream bed or sea bed of a waterway.
For roadways and waterways, the clearance is typically specified as the width/height of a structure that the vehicle needs to pass instead of the difference between the vehicle and the structure.