Density Calculator
Calculate the density of a substance from its mass and volume. Density equals mass divided by volume, expressed in the unit per chosen (e.g. g/cm³ or kg/m³ depending on the units you enter).
- Mass entered
- 200 g
- Volume entered
- 50 cm³
Density = mass / volume. The result is expressed in your chosen mass unit per volume unit (for example, grams per cubic centimeter). Make sure mass and volume use consistent units for a meaningful result.
What the Density Calculator Does
This density calculator finds the density of any object or substance from two measurements you already have: its mass and its volume. Enter the mass, enter the volume, and the tool returns density along with the unit of measure.
It is useful for students checking physics and chemistry homework, lab technicians identifying materials, engineers spec'ing parts, jewelers testing metals, brewers and cooks measuring liquids, and anyone who needs to know how heavy a material is for its size. Because density is an intrinsic property, it does not change with the amount of material, which makes it a reliable way to compare or identify substances.
How the Density Formula Works
Density is mass divided by volume. The standard formula is:
density = mass / volume (or ρ = m / V)
The symbol ρ (the Greek letter rho) is the conventional notation for density. The single most important rule is to keep your units consistent. If mass is in grams and volume is in cubic centimeters (cm³), density comes out in g/cm³. If mass is in kilograms and volume is in cubic meters (m³), density comes out in kg/m³. Note that 1 g/cm³ equals 1 g/mL, which is why water is often quoted as 1 g/mL.
You can rearrange the same equation when you know density and need another value: mass = density × volume, and volume = mass / density.
Worked Example
Suppose you have a metal block with a mass of 270 grams and a measured volume of 100 cm³. Plug the numbers into the formula:
density = 270 g / 100 cm³ = 2.7 g/cm³
A density of 2.7 g/cm³ matches aluminum, so this calculation also helps identify the material. For a second case, a 50 mL sample of cooking oil that weighs 46 grams gives density = 46 g / 50 mL = 0.92 g/mL. Because 0.92 is less than water's 1.0 g/mL, that oil floats on water.
Common Mistakes to Avoid
Most density errors come from units and measurement, not from the formula itself. Watch for these:
- Mixing units, such as grams with cubic meters. Convert everything to a matching system before dividing.
- Confusing weight with mass. Use mass (grams or kilograms), not pounds-force or newtons.
- Forgetting that 1 mL = 1 cm³, then double-converting and skewing the result.
- Ignoring air gaps or trapped bubbles when measuring volume by water displacement, which inflates the volume.
- Rounding mass or volume too early. Keep full precision until the final answer.
Factors That Affect Density
Density is not always a fixed number for a given substance because it depends on conditions. Temperature is the biggest factor: most materials expand when heated, increasing volume and lowering density. Water is a well-known exception, reaching its maximum density near 4 degrees Celsius.
Pressure also matters, especially for gases, whose density rises sharply as pressure increases. For solids and liquids the pressure effect is usually small. Finally, purity and composition change the result. An alloy, a mixture, or a porous sample will not read the same as the pure material, which is exactly why density measurements are used to detect impurities and verify materials.
Frequently asked questions
What is the formula for density?
Density is calculated as mass divided by volume (ρ = m / V). The result is expressed in mass units per volume unit, such as grams per cubic centimeter or kilograms per cubic meter.
What units should I use?
Use consistent units for mass and volume. Common pairings are grams with cubic centimeters (g/cm³) or kilograms with cubic meters (kg/m³). The calculator returns the result in whatever mass-per-volume unit you supply.
How do I convert g/cm³ to kg/m³?
Multiply a density value in g/cm³ by 1000 to get kg/m³. For example, 1 g/cm³ equals 1000 kg/m³, which is the density of pure water.