The resting membrane potential is maintained by three mechanisms:
First, by selective permiability to potassium and chloride, which have Nerst potentials of -90 and -80. respectively.
Second, by the 3Na/2K ATPase pump, which exports charge and maintains the potassium gradient.
Third, by the Gibbs-Donnan effect, where impermiate intracellular anions generate a charge difference.