A medical probe includes an insertion tube, having a longitudinal axis and having a distal end. A distal tip is disposed at the distal end of the insertion tube and is configured to be brought into contact with a body tissue. A joint couples the distal tip to the distal end of the insertion tube. A joint sensor, contained within the probe, senses a position of the distal tip relative to the distal end of the insertion tube. The joint sensor includes first and second subassemblies, which are disposed within the probe on opposite, respective sides of the joint and each include one or more magnetic transducers.