Ions can move freely between the extracellular and intracellular spaces thanks to pores in the membrane proteins known as ion channels.
Leaky or Passive channels - these channels are always open.
Gated channels are proteins that can alter their structure in response to various signals to open or close the channel. Voltage, chemical, mechanical, and light signals are some of the signals.
Action potentials are produced by voltage-gated channels, which open and close in response to changes in voltage or membrane potential.
Chemically gated channels produce graded potentials by opening and closing in response to substances like neurotransmitters (such as acetylcholine), hormones, and ions like H+ and Ca+2.
Mechanically gated channels are found in sensory receptors in the skin, ear, etc. They open and shut in response to mechanical vibration or pressure, such as sound waves or the pressure of touch; involved in producing graded potentials.