The spontaneous potential (SP) log measures naturally occurring electrical voltages in formations and is used to determine lithology and permeability. Specifically, SP response is created by differences in salinity between mud filtrate and formation waters in permeable beds. SP can be used to detect permeable beds, determine formation water resistivity, and calculate shale volume. Key factors that influence the SP measurement include the ratio of mud filtrate to formation water resistivity and the presence of hydrocarbons or shale.