Ions cross the cell membrane under two influences: diffusion and electric fields. A simple example wherein two solutions - A and B - are separated by a porous barrier illustrates that diffusion will ensure that they will eventually mix into equal solutions. This mixing occurs because of the difference in their concentrations. The region with high concentration will diffuse out toward the region with low concentration. To extend the example, let solution A have 30 sodium ions and 30 chloride ions. Also, let solution B have only 20 sodium ions and 20 chloride ions. Assuming the barrier allows both types of ions to travel through it, then a steady state will be reached whereby both solutions have 25 sodium ions and 25 chloride ions. If, however, the porous barrier is selective to which ions are let through, then diffusion alone will not determine the resulting solution. Returning to the previous example, let's now construct a barrier that is permeable only to sodium ions. Since solution B has a lower concentration of both sodium and chloride, the barrier will attract both ions from solution A. However, only sodium will travel through the barrier. This will result in an accumulation of sodium in solution B. Since sodium has a positive charge, this accumulation will make solution B more positive relative to solution A. Positive sodium ions will be less likely to travel to the now-more-positive B solution. This constitutes the second factor controlling ion flow, namely electric fields. The point at which this electric field completely counteracts the force due to diffusion is called the equilibrium potential. At this point, the net flow of this specific ion (in this case sodium) is zero.