Density Calculator

The example 100 g in 50 cm³ has density 2 g/cm³. The displayed specific gravity divides by an assumed water reference of 1 g/cm³, giving 2. Water’s actual density depends on temperature and pressure, so this is a stated reference approximation.

Density alone does not establish composition or purity; bubbles, porosity and displaced-volume errors can affect the measurement.

Density Calculator: inputs

Calculated result
Density (g/cm³)2
Specific gravity (relative to water)2

Density Calculator: Mass (g) sensitivity

Density Calculator: Mass (g) and Density (g/cm³)5 calculations vary the “Mass (g)” input while holding the other entered inputs constant.801.6901.810021102.21202.4

Density: formula

Density = mass ÷ volume

OpenStax University Physics: density

Enter the mass in grams and the volume in cubic centimeters. Weigh the sample on a scale and measure volume by dimensions, by the water it displaces or from a label. One cubic centimeter equals one milliliter.

Use the same system of units so that density comes out in grams per cubic centimeter. For irregular objects, submerge them in a graduated cylinder and read the change in level.

Density: worked example

Mass (g)100
Volume (cm³)50
Density (g/cm³)2
Specific gravity (relative to water)2

Specific gravity requires a specified reference density and temperature for precise work. Floating also depends on displaced volume and shape: a hollow metal object can float even when its solid material is denser than water. Some woods sink, so a material’s name alone does not determine buoyancy.

Do not use water displacement with a reactive, soluble or absorbing sample without an appropriate method.

Density: changing Mass (g)

Mass (g)Density (g/cm³)Specific gravity (relative to water)
801.61.6
901.81.8
100 (example)22
1102.22.2
1202.42.4

Density: compare input ranges

InputTested fromToDensity (g/cm³): low inputDensity (g/cm³): high inputSwing
Volume (cm³)45552.21.80.404 (20%)
Mass (g)901101.82.20.4 (20%)

Density: individual input comparisons

InputValueDensity (g/cm³)Specific gravity (relative to water)
Mass (g)801.61.6
901.81.8
10022
1102.22.2
1202.42.4
Volume (cm³)402.52.5
452.22.2
5022
551.81.8
601.71.7

Density: combined input changes

Mass (g) / Volume (cm³)405060
8021.61.3
902.31.81.5
1002.521.7
1102.82.21.8
12032.42

Density: which assumptions move the result?

Density: Density (g/cm³) as Volume (cm³) changesDensity (g/cm³) starts at 2.5. Moving Volume (cm³) from 40 to 60 changes it to 1.7, with Mass (g) 100 kept fixed.402.5452.2502551.8601.7
Chart quantityDisplayed settings
Volume (cm³)40 → 60
Density (g/cm³)2.5 → 1.7
Mass (g)100
Density: Density (g/cm³) as Mass (g) changesDensity (g/cm³) starts at 1.6. Moving Mass (g) from 80 to 120 changes it to 2.4, with Volume (cm³) 50 kept fixed.801.6901.810021102.21202.4
Chart quantityDisplayed settings
Mass (g)80 → 120
Density (g/cm³)1.6 → 2.4
Volume (cm³)50

Density: values and definitions

Quantity and definitionValue used
Mass (g)100
Volume (cm³)50
Density (g/cm³)2
Specific gravity (relative to water)2

Density: half and double Volume (cm³)

Volume (cm³)Density (g/cm³)
254
502
1001

Common error: Comparing raw density values measured in different unit systems without converting to a common basis first. Two different-looking density numbers can represent the identical material once the units are reconciled.

Science & Electronics calculators: Molarity Calculator, Voltage Drop Calculator, Dilution Calculator, pH Value Calculator, Half-Life Calculator, Series and Parallel Resistor Calculator.

Specific gravity is density expressed relative to water, which is what makes the number immediately meaningful without needing to remember water's own density in a specific unit system. Anything above 1 sinks in water, anything below 1 floats, a fast, intuitive read that raw density alone doesn't offer as directly.

Confirm mass and volume are measured in compatible units before dividing, since a units mismatch produces a density figure that looks plausible but is off by whatever factor the unit conversion was missing.

Convert mass and volume on the weight and volume converters, and compute volumes on the cylinder, sphere and rectangular prism calculators. The molarity and dilution pages use concentrations, and the percent error calculator measures how close your result is to a reference value.

Density Calculator: quantities and terminology

How do I measure the volume of an irregular object?

Submerge it in water and measure how much the water level rises, which equals the object's volume.

Why does density change with temperature?

Most materials expand when heated, so the same mass occupies more volume and the density falls as the temperature rises.

What is specific gravity?

Specific gravity is a density ratio. The reference must be stated. For solids and liquids, water is common.

The ratio has no units. Floating also depends on displacement and average object density: a hollow object can float even when the material of its shell is denser than water. Material density alone does not describe that whole object.