From its origin, it courses around the lateral aspect of the foot (inferior and posterior to the lateral malleolus) and runs along the posterior aspect of the leg (with the sural nerve), passes between the heads of the gastrocnemius muscle, and drains into the popliteal vein, approximately at or above the level of the knee joint.