An electric component having a variable air gap effect comprises two cores having a magnetic field air gap disposed at the connecting position of the two cores, and a coil wound around the cores and disposed at the installing position of the magnetic field air gap, and at least one core includes at least one magnetism generating end disposed at the magnetic field air gap and a magnetic flux section coupled to the magnetism generating end, and the cores also includes at least one air gap opening, such that the air gap opening changes the path and direction of the magnetic lines and provides a variable air gap according to the magnetic field air gap, so as to improve the electric functions of the electric component.