Environmental change and the load change plays an important role in generating output current, output voltage or output power from the solar panel in the photovoltaic power system. The maximum power point (MPP) changes in response to changes in sun irradiation and temperature, which also affects the duty cycle needed to run the converter. The system is less effective when a constant duty cycle is utilized since maximum power point is not tracked. The Maximum power point tracking (MPPT) helps to harvest power more effectively from solar panel. This paper uses sliding mode control (SMC) for getting a better performance of the solar panels. There are various sliding surfaces in sliding mode control, this paper gives a comparison of two sliding surfaces. Both the sliding surface are simulated and analyzed for different input conditions such as irradiation, temperature, and load condition on MATLAB/SIMULINK platform.