A current sensor is provided to reduce measurement errors due to the change in position of the current path through a hole in a yoke. The current sensor comprises an annular yoke (2) enclosing the current path (1) and having a gap (3); a magnetic sensor element (4) arranged in the gap (3) of the yoke (2) to measure the current flowing through the current path (1); and a magnetic shield (5) arranged between the current path (1) and the gap (3) to shield the magnetic sensor element (4) from the magnetic field due to the magnetic fluxes which are produced by the current flowing through the current path (1) but do not pass the yoke (2).