The American Petroleum Institute established API gravity as a measure of the density of petroleum liquids relative to water. The greater the API, the less dense the liquid. Our float switch product line lists the specific gravity (SG) which the device will be able to float. To convert API gravity to SG, use the following calculator. If the SG number is larger than our rating, the device will float successfully.