A medical probe includes a flexible insertion tube, having a distal end for insertion into a body cavity of a patient, and a distal tip, which is disposed at the distal end of the insertion tube and is configured to be brought into contact with tissue in the body cavity. A resilient member couples the distal tip to the distal end of the insertion tube and is configured to deform in response to pressure exerted on the distal tip when the distal tip engages the tissue. A position sensor within the probe senses a position of the distal tip relative to the distal end of the insertion tube, which changes in response to deformation of the resilient member.