Will It Float? Density Calculator

Enter a mass and a volume to get the density, then drop your object into a fluid and see how much of it stays above the surface. Every number comes from the formulas below, and the math is shown with each result.

Result
Below the surface
Above the surface
Density
In kg/m³
In lb/ft³
Fluid density
The arithmetic

How to calculate density

Density tells you how much mass is packed into each bit of space. The formula has one step:

density = mass ÷ volume

Here is a worked example. A block has a mass of 340 g and a volume of 500 cm³.

  1. Divide: 340 g ÷ 500 cm³ = 0.68 g/cm³.
  2. Convert to kg/m³ by multiplying by 1,000: 680 kg/m³.
  3. Convert to lb/ft³ by multiplying by about 62.43: about 42.45 lb/ft³.
  4. Compare with fresh water at 70°F: 0.68 ÷ 0.99802 ≈ 0.681. That is below 1, so the block floats with about 68.1% below the surface and 31.9% above it.

US units work the same way, as long as you convert before you compare. Ten ounces in 20 cubic inches is 283.5 g ÷ 327.7 cm³, or about 0.865 g/cm³. The calculator uses the standard conversions: 1 lb = 453.59237 g, 1 oz = 28.349523125 g and 1 in = 2.54 cm, which agree with the rounded factors published by NIST.

Why things float

A fluid pushes up on anything sitting in it. That push, the buoyant force, equals the weight of the fluid the object moves out of the way. A floating object settles at the depth where that push matches its own weight. A physics textbook from OpenStax boils the result down to a comparison: an object whose average density is lower than the fluid's will float, and one that is denser will sink.

The same comparison tells you how deep a floater rides:

fraction below the surface = object density ÷ fluid density

For ice in fresh water at 32°F, that is 0.9167 ÷ 0.99987 ≈ 0.917, or about 91.7% below the surface. If you want the full story of why ice is less dense in the first place, read why ice floats. If the ratio is above 1, the object sinks. The tank in the tool draws its block so that the share of its height under the surface equals the computed fraction once it stops moving.

Densities used in this tool

Density changes with temperature, so each value below comes with the condition its source lists. All values are in g/cm³.

Materialg/cm³ConditionRef.
Ice0.916732°F (0°C)[2]
Cork0.24032°F (0°C)[4]
Pine wood0.37332°F (0°C)[4]
Oak wood0.71032°F (0°C)[4]
Aluminum2.7032°F (0°C)[4]
Iron7.8632°F (0°C)[4]
Copper8.9232°F (0°C)[4]
Lead11.332°F (0°C)[4]
Gold19.332°F (0°C)[4]
Fresh water0.9998732°F (0°C)[1]
Fresh water0.9980270°F (21°C)[1]
Seawater1.02732°F (0°C), 3.5% salinity[3]
Olive oil0.92032°F (0°C)[4]
Ethyl alcohol0.80632°F (0°C)[4]
Glycerin1.2632°F (0°C)[4]
Mercury13.632°F (0°C)[4]

Sources do not always match to the last digit. OpenStax lists seawater at 1.030 g/cm³ at 32°F, a little above the 1.027 used here. NIST's table of elements gives iron as 7.874 and gold as 19.32, close to the rounded textbook values, though that table does not state a temperature. None of these gaps changes whether those materials float or sink in the fluids here.

What this model leaves out

This is an idealized calculator, so treat its answer as a clear estimate and not as a measurement of the thing on your desk.

Mercury is on the list only as a number to compare. The EPA warns that breathing its vapor can harm your health, so please never try that one at home.

Dr. Pippa is a cartoon host, and her speech bubbles are jokes. The results panel holds the actual numbers. You can find more tools in the Science Lab.

References

  1. Water Density. U.S. Geological Survey, Water Science School.
  2. Density of Ice. Physics Van, University of Illinois.
  3. Some useful facts about water and ice. Food and Agriculture Organization of the United Nations.
  4. 14.1 Fluids, Density, and Pressure, University Physics Volume 1. OpenStax, Rice University.
  5. 14.4 Archimedes' Principle and Buoyancy, University Physics Volume 1. OpenStax, Rice University.
  6. Table 1: Material constants for elemental media. National Institute of Standards and Technology.
  7. NIST Guide to the SI, Appendix B: Conversion Factors. National Institute of Standards and Technology.
  8. Surface Tension and Water. U.S. Geological Survey, Water Science School.
  9. Calculating the Green Weight of Wood Species. Penn State Extension.
  10. Health Effects of Exposures to Mercury. U.S. Environmental Protection Agency.