The invention relates to the technical field of electronics, and discloses a vacuum capacitor capable of changing capacitance, which comprises an insulating rod, an upper shell, a lower shell, a fixed electrode, a movable electrode, a magnet, an insulating shell, a voice coil motor coil, a spring and a movable electrode connecting piece. The top end of the insulating rod is connected with the upper shell, and the bottom end of the insulating rod is provided with the lower shell. According to the invention, the coil of the voice coil motor is electrified, so that the coil of the voice coil motor generates a driving force magnetic field under the action of current, the magnet generates an induced electromotive force, and under the action of the induced electromotive force, the movable electrode moves in the direction perpendicular to the current direction of the coil of the voice coil motor because the current of the coil of the voice coil motor is different; therefore, the relative area between the movable electrode and the fixed electrode is changed, the capacity of the capacitor can be rapidly changed, and compared with an existing variable vacuum capacitor, the variable vacuum capacitor has the advantages of being high in adjusting speed (50-500 ms) and high in position accuracy.