Formation bulk density is related to porosity, density of fluids in the porosity, and the grain density of the rock.