Bi-directonal energy storage inverter is applicable with on-grid and off-grid solar systems, real bi-directional control of electricity, with capacity of auto/manual switch for working status. It can control the flow of energy intelligently. During daytime, the solar panels generate electricity which can be provided to the loads, feed into utility grid or charge the battery. The electricity stored can be released when the loads require it during the night. Additionally, the power grid can also charge the storage devices via the inverter.