A method for calibrating an ultrasound probe includes directing the probe to recieve ultrasonic waves reflected from a target that includes one or more liner elements, which are arranged to intersect the beam plane of the probe at respective intersection points. Signals are received from the probe responsively to the reflected ultrasonic waves, and the prob is aligned by modifying at least one of a position and an orientation of the probe responsively to the signals so that the intersection points occur in a desired location in the beam plane.