About the Density Calculator
The Density Calculator solves the three-way relationship ρ = m / V in any direction — given any two of density, mass, or volume, returns the third. Accepts mixed input units (grams, kilograms, pounds, ounces; cm³, m³, liters, in³, ft³) and outputs density in g/cm³, kg/m³, and lb/ft³ simultaneously. A 100+ material database (metals, plastics, woods, liquids, gases) provides reference densities for buoyancy comparisons.
It is built for chemistry and physics students grinding through density homework, machinists figuring out whether a found alloy is brass or copper (8.96 vs 8.73 g/cm³), metallurgy hobbyists comparing densities of unknown samples, shipping clerks calculating dimensional weight, and anyone whose “does it float?” question needs a number rather than a guess. A mystery-material identifier matches measured density against the database.
All calculations run locally in JavaScript. Mass, volume, density, and material selection never leave your device. The page makes no network call after first load. Material density tables (100+ substances from NIST, ASM Materials Database) are bundled into the JavaScript.
Density is temperature- and pressure-dependent — published reference values typically assume 20°C / 1 atm. Water famously hits maximum density (1.000 g/cm³) at 4°C and is slightly less dense at room temperature (0.998 g/cm³) and dramatically less dense as ice (0.917 g/cm³, which is why ice floats and the ocean doesn’t freeze solid from the bottom). For high-precision metallurgy work, also account for sample voids and inclusions; ASTM B311 / B962 pycnometry is the reference method.
Enter object density and liquid density to determine if the object floats, sinks, or is neutrally buoyant.
| Material | Category | Density (g/cm³) |
|---|
Add your own materials. Saved in your browser for future use.
How to Calculate Density (Formula and Examples)
Density is defined as mass per unit volume, expressed by the formula ρ = m / V, where ρ (rho) is density, m is mass, and V is volume. Rearranging the equation lets you solve for any unknown: m = ρ × V to find mass, or V = m / ρ to find volume. For example, a block of aluminum with a mass of 270 grams and a volume of 100 cm³ has a density of 2.70 g/cm³. Conversely, if you know you have copper (8.96 g/cm³) and 500 cm³ of it, the mass is 8.96 × 500 = 4,480 grams. Density is always expressed as a mass unit divided by a volume unit: grams per cubic centimeter, kilograms per cubic meter, or pounds per cubic foot are the most common choices.
Density of Common Materials (Reference Table)
Materials span an enormous range of densities. Gases at standard temperature and pressure are extremely light — air is only about 0.0012 g/cm³ and hydrogen is less than 0.00009 g/cm³. Most woods range from 0.16 g/cm³ (balsa) to around 1.1 g/cm³ (ebony), with common species like oak (0.71) and pine (0.51) in between. Plastics cluster between 0.9 and 2.2 g/cm³, while common liquids range from about 0.75 (gasoline) to 13.53 (mercury). Metals show the widest spread: aluminum sits at 2.70 g/cm³, steel at 7.85, gold at 19.32, and platinum at 21.45. Knowing these reference values lets you quickly estimate whether a measurement makes sense and helps identify unknown samples.
Why Density Matters in Engineering and Manufacturing
In engineering, density is a critical factor in material selection. Aerospace engineers favor aluminum and titanium because their high strength-to-density ratios reduce aircraft weight, improving fuel efficiency. Civil engineers must know the density of concrete, steel, and soil to calculate loads on foundations and bridges. In manufacturing, density determines how much raw material you need to produce a given number of parts — a casting designer must account for the density of molten metal to size molds correctly. Quality control teams use density measurements to detect porosity, voids, or contamination in finished products. Even packaging engineers rely on density to estimate shipping weights and optimize container utilization.
Buoyancy: Using Density to Predict Floating and Sinking
Archimedes’ principle states that an object immersed in a fluid experiences an upward buoyant force equal to the weight of the fluid it displaces. The practical consequence is straightforward: if an object’s density is less than the fluid’s density, it floats; if greater, it sinks. This is why ships made of steel (7.85 g/cm³) can float — the hull encloses a large volume of air, making the average density of the entire vessel less than that of water (1.0 g/cm³). Submarines control buoyancy by flooding or emptying ballast tanks, changing their effective density relative to seawater (1.025 g/cm³). In petroleum geology, the density contrast between oil, water, and rock determines where hydrocarbons accumulate in underground reservoirs. Understanding buoyancy is also essential for designing life jackets, pontoon bridges, and hot-air balloons.
Density Calculator FAQ
What units should I use for density? The most common unit in science is
g/cm³ (grams per cubic centimeter), which is numerically identical to g/mL. Engineers
often use kg/m³ (multiply g/cm³ by 1,000) or lb/ft³ (multiply g/cm³ by
62.428). This calculator converts between all three automatically.
Why does my measured density not exactly match the database? Published densities
are for pure materials at standard conditions (typically 20–25 °C and 1 atmosphere).
Temperature, pressure, alloy composition, moisture content, and porosity all affect real-world
measurements. A small discrepancy is normal; large deviations suggest the sample may be a
different material or contain voids.
Can I use this to identify an unknown material? Yes. Measure the mass and volume
of your sample, let the calculator find the density, and check the mystery material identifier.
It will suggest the closest match from the database. For reliable identification, combine density
with other tests such as hardness, magnetism, or conductivity.
How do I measure volume of an irregular object? Use water displacement: fill a
graduated cylinder partway, note the level, submerge the object, and note the new level. The
difference in milliliters equals the volume in cubic centimeters.
Looking for related tools? Our Scientific Calculator handles advanced math and unit-aware expressions, and the Unit Converter can translate between measurement systems. Explore all Math & Science tools.
Frequently Asked Questions
What is the formula for density?
Density equals mass divided by volume: rho = m/V. Rearranged forms are m = rho * V for mass and V = m/rho for volume.
What is the density of water?
Pure water at 4 degrees C has a density of exactly 1.000 g/cm3 (1,000 kg/m3 or 62.43 lb/ft3). At 20 degrees C it drops slightly to 0.998 g/cm3.
Why do some objects float and others sink?
An object floats in a fluid when its density is lower than the fluid's density. Water has a density of 1.00 g/cm3, so ice (0.917 g/cm3) floats while aluminum (2.70 g/cm3) sinks.
What are common density units?
Grams per cubic centimeter (g/cm3), kilograms per cubic meter (kg/m3), and pounds per cubic foot (lb/ft3) are the most common. 1 g/cm3 equals 1,000 kg/m3 or about 62.43 lb/ft3.
How can density identify an unknown material?
Measure the sample's mass on a scale and its volume by water displacement, then divide mass by volume. Compare the result to reference densities. For example, a metal with density near 8.96 g/cm3 is likely copper, while 7.87 g/cm3 suggests iron.