A power converter comprising: a rectifier configured to rectify a voltage from an alternating-current power supply; a booster circuit connected in parallel to an output side of the rectifier and configured to boost the voltage rectified by the rectifier; a first capacitor connected in parallel to an output side of the booster circuit, and configured to smooth the voltage boosted by the booster circuit; an inverter circuit connected in parallel to the first capacitor and configured to convert the voltage smoothed by the first capacitor into an alternating voltage; and a control unit configured to control at least activation and deactivation of the booster circuit and the inverter circuit, wherein the booster circuit includes a reactor connected in series to an anode side of the rectifier, a first diode connected in series to the reactor in a forward direction, a second diode connected in series to the first diode in a forward direction and connected to an anode side of the inverter circuit, a first switching device included in a branching connection extending from between the reactor and the first diode, a second switching device connected in series to the first switching device and included in a branching connection to between a cathode side of the rectifier and a cathode side of the inverter circuit, and a second capacitor included in a branching connection extending from between the first diode and the second diode to between the first switching device and the second switching device, wherein the control unit is configured to: control activation and deactivation of the second switching device in response to power supply frequency of the alternating-current power supply, such that when the inverter circuit is operating, no boosting is being operated by the booster circuit, and the power supply frequency of the alternating-current power supply satisfies a formula: 2 × f 0 − 1 2 π L C 1 + C 2 > 2 × f 0 − 1 2 π L C 2 where L is inductance of the reactor, C2 is capacitance of the first capacitor, and C1 is capacitance of the second capacitor, switch the second switching device in an activate state and connect the second capacitor in parallel to the first capacitor, and when the inverter circuit is operating, no boosting is being operated by the booster circuit, and the power supply frequency of the alternating-current power supply does not satisfy the formula, put the second switching device in a deactivated state. a rectifier configured to rectify a voltage from an alternating-current power supply; a booster circuit connected in parallel to an output side of the rectifier and configured to boost the voltage rectified by the rectifier; a first capacitor connected in parallel to an output side of the booster circuit, and configured to smooth the voltage boosted by the booster circuit; an inverter circuit connected in parallel to the first capacitor and configured to convert the voltage smoothed by the first capacitor into an alternating voltage; and a control unit configured to control at least activation and deactivation of the booster circuit and the inverter circuit, wherein the booster circuit includes a reactor connected in series to an anode side of the rectifier, a first diode connected in series to the reactor in a forward direction, a second diode connected in series to the first diode in a forward direction and connected to an anode side of the inverter circuit, a first switching device included in a branching connection extending from between the reactor and the first diode, a second switching device connected in series to the first switching device and included in a branching connection to between a cathode side of the rectifier and a cathode side of the inverter circuit, and a second capacitor included in a branching connection extending from between the first diode and the second diode to between the first switching device and the second switching device, a reactor connected in series to an anode side of the rectifier, a first diode connected in series to the reactor in a forward direction, a second diode connected in series to the first diode in a forward direction and connected to an anode side of the inverter circuit, a first switching device included in a branching connection extending from between the reactor and the first diode, a second switching device connected in series to the first switching device and included in a branching connection to between a cathode side of the rectifier and a cathode side of the inverter circuit, and a second capacitor included in a branching connection extending from between the first diode and the second diode to between the first switching device and the second switching device, control activation and deactivation of the second switching device in response to power supply frequency of the alternating-current power supply, such that when the inverter circuit is operating, no boosting is being operated by the booster circuit, and the power supply frequency of the alternating-current power supply satisfies a formula: 2 × f 0 − 1 2 π L C 1 + C 2 > 2 × f 0 − 1 2 π L C 2 where L is inductance of the reactor, C2 is capacitance of the first capacitor, and C1 is capacitance of the second capacitor, switch the second switching device in an activate state and connect the second capacitor in parallel to the first capacitor, and when the inverter circuit is operating, no boosting is being operated by the booster circuit, and the power supply frequency of the alternating-current power supply does not satisfy the formula, put the second switching device in a deactivated state.