This paper presents an adaptive sliding mode control (SMC) method with a variable boundary layer for single-phase voltage source inverters. This strategy offers a very simple sliding function without any derivative term while preserving unique characteristics of the sliding mode control like fast dynamic response and robustness against parameter variations while also possessing the variable boundary layer method to reject the chattering phenomena. Chattering excites the high frequencies in the system and leads to inaccuracy and instability. It is shown that despite the conventinal approches, the proposed variable boundary layer method can both alleviate the chattering and generating the minimum steady state error. Owing to the adaptive nature of the suggested control approach which adjusts the thickness of the boundary layer, the whole mechanism can be controlled successfully under unpredictable parameter variations. The accomplishment of the suggested strategy is investigated by simulations in MATLAB/Simulink. The outcomes are compared with the outcomes obtained without boundary layer, with constant boundary layer and super twisting sliding control methods. The comparison reveals that the proposed control technique outperforms the other control methods for the voltage source inverter. The results demonstrate that while the conventional, SMC with constant boundary layer and super twisting sliding control (STSMC) methods have 50% ,8% and 10% chattering over their control input respectively, the proposed method has less than 3% chattering over the control input.