How the density calculator works
Use two known quantities to find density, mass or volume. Density tells you how much mass occupies each unit of volume. At a fixed volume, more mass means greater density; at a fixed mass, more volume means lower density.
- To find density, enter the sample's mass and volume.
- To find mass, enter the material's density and the volume it occupies.
- To find volume, enter the sample's mass and density.
Select units that match your measurements. Use positive values for ordinary material samples: density cannot be calculated from zero volume, and volume cannot be found by dividing by zero density.
Density, mass and volume formulas
Use compatible units. Mass in kilograms and volume in cubic meters give density in kg/m³; grams and cubic centimeters give g/cm³.
These are three arrangements of the same relationship. For example, a material with a density of 2.7 g/cm³ and a volume of 100 cm³ has a mass of 270 g. The cubic centimeters cancel when you multiply density by volume.
Worked example: 500 g in 185 cm³
Divide 500 g by 185 cm³ to get 2.70 g/cm³ at two decimal places. The same calculation in SI units is 0.500 kg divided by 0.000185 m³, which gives 2,702.70 kg/m³ at two decimal places. Convert the unrounded result before rounding for display.
This density is close to the representative value for aluminum, but that comparison does not establish the sample's identity. Different materials, mixtures and hollow objects can have similar average densities.
Density units and conversions
The SI unit of density is kg/m³. Laboratory measurements often use g/cm³ or g/mL. These last two units are identical because 1 mL equals 1 cm³; 1 g/cm³ also equals 1 kg/L.
| Density unit | Factor to kg/m³ |
|---|---|
| kg/m³ | 1 |
| g/cm³ or g/mL | 1,000 |
| kg/L | 1,000 |
| g/L | 1 |
| lb/ft³ | 16.0185 |
| lb/in³ | 27,679.9 |
A cubic unit changes with the cube of its length conversion. Since 1 m equals 100 cm, 1 m³ equals 1,000,000 cm³. Confusing centimeters with cubic centimeters, or liters with milliliters, can produce a large error even when the division is correct.
Densities of common materials
| Material | Density (kg/m³) | Density (g/cm³) |
|---|---|---|
| Ice at 0 °C | 917 | 0.917 |
| Water at 4 °C | 1,000 | 1.000 |
| Olive oil | 920 | 0.92 |
| Aluminum | 2,700 | 2.7 |
| Iron or steel | 7,800 | 7.8 |
| Lead | 11,300 | 11.3 |
| Gold | 19,320 | 19.32 |
For a particular alloy or product, use its measured density or a value supplied for that material. A general reference value is useful for an estimate, but it may not describe your sample closely.
Finding the volume to enter
For a regular solid, calculate volume from its dimensions before entering it. Use the same length unit throughout: dimensions in centimeters give volume in cubic centimeters. Radius is half the diameter.
| Shape | Volume calculation |
|---|---|
| Rectangular box | Length × width × height |
| Solid cylinder | π × radius2 × height |
| Sphere | (4 ÷ 3) × π × radius3 |
For an irregular, water-compatible solid, measure water displacement. Submerge it fully and subtract the initial water reading from the final reading. A rise from 100 mL to 125 mL means a displaced volume of 25 mL, or 25 cm³.
Specific gravity and floating
Specific gravity is density divided by a reference density, conventionally water at 4 °C for solids and liquids. Using the rounded reference of 1,000 kg/m³, aluminum at 2,700 kg/m³ has a specific gravity of 2.7. The ratio has no unit.
In the usual buoyancy model, an object floats if its average density is below the surrounding liquid's density, sinks if it is above it, and is neutrally buoyant if they match. Use the whole object's average density, including enclosed air. This explains why a hollow steel ship can float.
For a freely floating object, the fraction of its volume submerged equals its average density divided by the liquid's density. Ice at 917 kg/m³ in water modeled as 1,000 kg/m³ is therefore about 91.7% submerged. This comparison neglects surface tension.
Tips for better measurements
- 1Subtract the container's mass. For a liquid or loose material, subtract the empty container's mass from the combined mass. Use the sample's volume, not the container's total capacity.
- 2Check displacement conditions. Remove trapped bubbles and keep the object fully submerged. Water displacement is unsuitable if the sample dissolves, reacts with water or absorbs enough water to change the measurement.
- 3Match the reference conditions. Use density data for the relevant temperature and, especially for gases, pressure. Keep unrounded measurements during calculation and round the final answer to a sensible precision.
Frequently asked questions
How do I find mass from density and volume?
Multiply density by volume using compatible units. For example, 2 L of olive oil at 0.92 g/mL occupies 2,000 mL, so its mass is 1,840 g, or 1.84 kg.
How do I find volume from mass and density?
Divide mass by density. Using 19.32 g/cm³ for gold, a 1,000 g sample occupies about 51.76 cm³.
Is g/cm³ the same as g/mL?
Yes, because a cubic centimeter and a milliliter are the same volume. Both density units also equal kg/L, while 1 g/cm³ equals 1,000 kg/m³.
What is the density of water?
Water's density is approximately 1,000 kg/m³ near 4 °C. At 20 °C it is about 998.2 kg/m³, so use a temperature-specific value when that difference affects your result.
Does density change with temperature?
Yes. Most materials expand when heated, so the same mass occupies more volume and its density decreases. Gases are particularly sensitive to temperature and pressure; water also behaves unusually below about 4 °C.
Is density the same as weight?
No. Density is mass per unit volume, while weight is a force caused by gravity. Enter mass in units such as grams, kilograms or pounds of mass, not force units such as newtons.
Sources
- 1College Physics 2e, 11.2 Density · OpenStax, Rice University · Accessed November 2026
- 2University Physics Volume 1, 14.1 Fluids, Density, and Pressure · OpenStax, Rice University · Accessed November 2026
- 3College Physics 2e, 11.7 Archimedes' Principle · OpenStax, Rice University · Accessed November 2026
- 4NIST Guide to the SI, Appendix B.8: Factors for Units Listed Alphabetically · National Institute of Standards and Technology · Accessed November 2026
- 5Prealgebra 2e, Appendix C: Geometric Formulas · OpenStax, Rice University · Accessed November 2026