Measured Depth (MD) is the distance measured along the actual wellbore path from surface to a point in the well.
In a vertical well, MD and TVD may be similar. In a horizontal well, MD is usually much longer because it includes the vertical section, the build section, and the lateral section.