This paper presents designs of permanent magnet structures providing a high magnetic field gradient in an air gap for microdisplacement sensor application. A geometric optimization of the structure is fulfilled with magnetic induction analytic calculation in the air gap. The magnetic field gradient value is obtained by finite element analysis. A discussion about the different structures is presented, with regard to the field gradient, and linearity.