Position measuring system having (a) at least one bearing,, (b) a rod that is guided in the bearing, consist of magnetizable material and has an outside diameter, (c) a linear magnetic field sensor, and (d) a magnet that is arranged next to the linear magnetic field sensor, wherein (e) the rod has a cutout, and (f) the magnet is arranged in the cutout inside an enveloping surface, in the shape of a cylinder lateral surface, around the rod, characterized in that the cutout is arranged at an axial edge of the rod and merges into the edge, wherein - the rod extends in a rod longitudinal direction, - the cutout has a base surface, with a base surface length (L Base surface) in the rod longitudinal direction, and - the magnet has in the rod longitudinal direction a magnet length (L Magnet) that is smaller than 0.6 times, in particular than half, the base surface length (L Base surface), wherein the cutout is delimited at a first end with reference to the rod longitudinal direction by a first cutout wall and the magnet has a first spacing (A 1) from the first cutout wall that corresponds at least to the magnet length (L Magnet), and wherein the magnet is fastened on the rod by means of a screw, wherein the screw is arranged inside the enveloping surface in the shape of a lateral surface. (a) at least one bearing,, (b) a rod that is guided in the bearing, consist of magnetizable material and has an outside diameter, (c) a linear magnetic field sensor, and (d) a magnet that is arranged next to the linear magnetic field sensor, wherein (e) the rod has a cutout, and (f) the magnet is arranged in the cutout inside an enveloping surface, in the shape of a cylinder lateral surface, around the rod, characterized in that the cutout is arranged at an axial edge of the rod and merges into the edge, wherein - the rod extends in a rod longitudinal direction, - the cutout has a base surface, with a base surface length (L Base surface) in the rod longitudinal direction, and - the magnet has in the rod longitudinal direction a magnet length (L Magnet) that is smaller than 0.6 times, in particular than half, the base surface length (L Base surface), wherein the cutout is delimited at a first end with reference to the rod longitudinal direction by a first cutout wall and the magnet has a first spacing (A 1) from the first cutout wall that corresponds at least to the magnet length (L Magnet), and wherein the magnet is fastened on the rod by means of a screw, wherein the screw is arranged inside the enveloping surface in the shape of a lateral surface. - the rod extends in a rod longitudinal direction, - the cutout has a base surface, with a base surface length (L Base surface) in the rod longitudinal direction, and - the magnet has in the rod longitudinal direction a magnet length (L Magnet) that is smaller than 0.6 times, in particular than half, the base surface length (L Base surface), wherein the cutout is delimited at a first end with reference to the rod longitudinal direction by a first cutout wall and the magnet has a first spacing (A 1) from the first cutout wall that corresponds at least to the magnet length (L Magnet), and wherein the magnet is fastened on the rod by means of a screw, wherein the screw is arranged inside the enveloping surface in the shape of a lateral surface.