Since API gravity is an inverse measure of a liquid's density relative to that of water, it can be calculated by first multiplying the liquid's density [Kg/M³] by the density of water at a base temperature to compute Specific Gravity (SG), then converting the Specific Gravity to Degrees API as follows: formula_30