Water has a density of approximately 1 gram per cubic centimeter (g/cm³), while oil has a density that varies depending on its composition but typically ranges from 0.8 to 0.95 g/cm³. Therefore, oil floats on water because it is less dense.