A position sensor device for use in a position sensing system wherein the position sensor device is movable relative to a magnetic structure having a plurality of poles for generating a magnetic field, the position sensor device comprising: - a semiconductor substrate; - at least three magnetic sensors (S1, S2, S3) comprising a first sensor S1, a second sensor S2 and a third sensor S3, the at least three magnetic sensors being located in at least three different locations (X1, X2, X3) spaced apart over predefined distances (Δx12, Δx23) along an X-direction parallel to the substrate, and configured for measuring, in each of said at least three different locations (X1, X2, X3), an X-component (Bx1, Bx2, Bx3) of the magnetic field oriented in the X-direction and a Z-component (Bzl, Bz2, Bz3) of the magnetic field oriented in a Z-direction substantially perpendicular to the substrate; - a processing unit adapted for: a) calculating two pairwise differences of said X-components, e.g. ΔBx12 and ΔBx23, or two gradients of said X-components along the X-direction, e.g. ΔBx12/Δx12 and ΔBx23/Δx23, obtained from a first and a second pair of said at least three sensors; b) calculating two pairwise differences of said Z-components, e.g. ΔBz12 and ΔBz23, or two gradients of said Z-components along the X-direction, e.g. ΔBz12/Δx12 and ΔBz23/Δx23, obtained from the first and the second pair of said at least three sensors; c) calculating a coarse signal (Sc) based on at least some of said pairwise differences or gradients, wherein the coarse signal (Sc) is indicative of a relative position in an overall range and varies over a distance spanned by the plurality of poles; d) calculating a fine signal (Sf) based on at least some of said pairwise differences or gradients, wherein the fine signal (Sf) is indicative of a relative position in a second range which is a subset of the overall range; e) determining a position (X, α) defined by a unique combination of the coarse signal (Sc) and the fine signal (Sf). - a semiconductor substrate; - at least three magnetic sensors (S1, S2, S3) comprising a first sensor S1, a second sensor S2 and a third sensor S3, the at least three magnetic sensors being located in at least three different locations (X1, X2, X3) spaced apart over predefined distances (Δx12, Δx23) along an X-direction parallel to the substrate, and configured for measuring, in each of said at least three different locations (X1, X2, X3), an X-component (Bx1, Bx2, Bx3) of the magnetic field oriented in the X-direction and a Z-component (Bzl, Bz2, Bz3) of the magnetic field oriented in a Z-direction substantially perpendicular to the substrate; - a processing unit adapted for: a) calculating two pairwise differences of said X-components, e.g. ΔBx12 and ΔBx23, or two gradients of said X-components along the X-direction, e.g. ΔBx12/Δx12 and ΔBx23/Δx23, obtained from a first and a second pair of said at least three sensors; b) calculating two pairwise differences of said Z-components, e.g. ΔBz12 and ΔBz23, or two gradients of said Z-components along the X-direction, e.g. ΔBz12/Δx12 and ΔBz23/Δx23, obtained from the first and the second pair of said at least three sensors; c) calculating a coarse signal (Sc) based on at least some of said pairwise differences or gradients, wherein the coarse signal (Sc) is indicative of a relative position in an overall range and varies over a distance spanned by the plurality of poles; d) calculating a fine signal (Sf) based on at least some of said pairwise differences or gradients, wherein the fine signal (Sf) is indicative of a relative position in a second range which is a subset of the overall range; e) determining a position (X, α) defined by a unique combination of the coarse signal (Sc) and the fine signal (Sf). a) calculating two pairwise differences of said X-components, e.g. ΔBx12 and ΔBx23, or two gradients of said X-components along the X-direction, e.g. ΔBx12/Δx12 and ΔBx23/Δx23, obtained from a first and a second pair of said at least three sensors; b) calculating two pairwise differences of said Z-components, e.g. ΔBz12 and ΔBz23, or two gradients of said Z-components along the X-direction, e.g. ΔBz12/Δx12 and ΔBz23/Δx23, obtained from the first and the second pair of said at least three sensors; c) calculating a coarse signal (Sc) based on at least some of said pairwise differences or gradients, wherein the coarse signal (Sc) is indicative of a relative position in an overall range and varies over a distance spanned by the plurality of poles; d) calculating a fine signal (Sf) based on at least some of said pairwise differences or gradients, wherein the fine signal (Sf) is indicative of a relative position in a second range which is a subset of the overall range; e) determining a position (X, α) defined by a unique combination of the coarse signal (Sc) and the fine signal (Sf).