A position detector suitable to be used in a camera module, the position detector comprising: first and second magnets movable in a first direction and in a second direction that is orthogonal to the first direction, wherein the first and second magnets are disposed on two sides in the first direction; first and second magnetic sensors (2a, 2b) that that are spaced apart from each other in the first direction to respectively correspond to the first and second magnets; wherein a sum of a distance between the first magnet and the first magnetic sensor in the first direction and a distance between the second magnet and the second magnetic sensor in the first direction is constant; and a position information generating unit configured to generate position information of the first and second magnets, characterized in that: the position information generating unit is configured to generate position information of the first and second magnets in the second direction based on a first detection signal detected by the first magnetic sensor and a second detection signal detected by the second magnetic sensor; and the position information generating unit is configured to generate the position information of the first and second magnets in the second direction by comparing a third detection signal, which is a sum of the first detection signal and the second detection signal, with a pre-set reference value. first and second magnets movable in a first direction and in a second direction that is orthogonal to the first direction, wherein the first and second magnets are disposed on two sides in the first direction; first and second magnetic sensors (2a, 2b) that that are spaced apart from each other in the first direction to respectively correspond to the first and second magnets; wherein a sum of a distance between the first magnet and the first magnetic sensor in the first direction and a distance between the second magnet and the second magnetic sensor in the first direction is constant; and a position information generating unit configured to generate position information of the first and second magnets, characterized in that: the position information generating unit is configured to generate position information of the first and second magnets in the second direction based on a first detection signal detected by the first magnetic sensor and a second detection signal detected by the second magnetic sensor; and the position information generating unit is configured to generate the position information of the first and second magnets in the second direction by comparing a third detection signal, which is a sum of the first detection signal and the second detection signal, with a pre-set reference value. the position information generating unit is configured to generate position information of the first and second magnets in the second direction based on a first detection signal detected by the first magnetic sensor and a second detection signal detected by the second magnetic sensor; and the position information generating unit is configured to generate the position information of the first and second magnets in the second direction by comparing a third detection signal, which is a sum of the first detection signal and the second detection signal, with a pre-set reference value.