A controlling method is for a single-phase bidirectional inverter. The single-phase bidirectional inverter includes a switch and an inductor. The controlling method for the single-phase bidirectional inverter includes an extracting step, a calculating step, and an integrating step. In the extracting step, a current command is inputted to the switch and obtaining a current through the inductor. The current is piecewisely linearized to extract a magnetizing inductance and a demagnetizing inductance of the inductor. In the calculating step, a duty ratio of the switch is used to calculate a variation of the current of the magnetizing inductance and a variation of the current of the demagnetizing inductance. In the integrating step, the variation of the current of the magnetizing inductance and the variation of the current of the demagnetizing inductance are integrated to obtain another duty ratio of the switch in the next cycle. |