The line of beta stability follows a particular curve of neutron–proton ratio, corresponding to the most stable nuclides. On one side of the valley of stability, this ratio is small, corresponding to an excess of protons over neutrons in the nuclides. These nuclides tend to be unstable to β decay or electron capture, since such decay converts a proton to a neutron. The decay serves to move the nuclides toward a more stable neutron-proton ratio. On the other side of the valley of stability, this ratio is large, corresponding to an excess of neutrons over protons in the nuclides. These nuclides tend to be unstable to β decay, since such decay converts neutrons to protons. On this side of the valley of stability, β decay also serves to move nuclides toward a more stable neutron-proton ratio.