During an electrical stimulus the action potential is generated. The membrane becomes permeable to sodium ions than to potassium ions. Thus an outer side membrane has –ve charge and on inner side it gets +ve charge. Hence, the membrane is said to be depolarized.