Density Calculator

Calculate density, mass, or volume using the fundamental formula ρ = m/V — essential for physics, chemistry, and engineering.

Select what you want to calculate, enter the two known values with their units, and get an instant result.

Density Calculator
Calculate density, mass, or volume using the fundamental formula ρ = m/V — essential for physics, chemistry, and engineering.

About the Density Calculator

Density is one of the most fundamental physical properties of matter. It is defined as mass per unit volume: ρ = m / V, where ρ (rho) is density, m is mass, and V is volume. Understanding density allows scientists, engineers, and students to predict how materials behave, whether objects will float or sink, how fluids mix, and how to design structures with the right strength-to-weight ratios. The SI unit of density is kilograms per cubic metre (kg/m³), but in practice you will encounter many other unit systems. Chemists and materials scientists often use grams per cubic centimetre (g/cm³) because it gives intuitive values: water is 1.0 g/cm³, aluminium is 2.7 g/cm³, iron is 7.87 g/cm³, and lead is 11.34 g/cm³. Aerospace engineers may use kg/L for fuel density, and US engineers sometimes use pounds per cubic foot (lb/ft³) for structural materials. The density formula can be rearranged to solve for any of the three quantities. To find density, divide mass by volume: ρ = m/V. To find mass when density and volume are known, multiply them: m = ρ × V. To find volume when mass and density are known, divide: V = m/ρ. These three relationships underlie a huge range of practical calculations — estimating the weight of a block of material, finding the volume of liquid in a tank from its weight, or working out how large a floating vessel must be to support a given load. Density also explains Archimedes' principle: an object floats if its average density is less than the density of the fluid it is placed in. This is why steel ships float (their hollow hull gives them an average density less than water), why hot air balloons rise (hot air is less dense than cool surrounding air), and why oil floats on water (typical crude oil density ≈ 0.85 g/cm³, less than water's 1.0 g/cm³). Temperature significantly affects density. As most substances heat up they expand, reducing density. Water is a famous exception: it is denser at 4°C than at 0°C, which is why ice floats and lakes freeze from the top down, allowing aquatic life to survive winters. Gases show the largest density variation with temperature and pressure, following the ideal gas law ρ = PM/(RT), where P is pressure, M is molar mass, R is the universal gas constant, and T is absolute temperature. This calculator supports common unit conversions so you can work in whatever system is most natural. Enter two known quantities in your preferred units, choose what to solve for, and get an instant answer with the equivalent value in the output unit you select.

Density Calculator Examples

Common physics and engineering scenarios using the density formula.

Known ValuesResultApplication
m = 270 g, V = 100 cm³ → Densityρ = 2.7 g/cm³Aluminium block. The density of aluminium is 2.7 g/cm³, confirming the material. Used in materials identification and quality control.
m = 1000 g, ρ = 1.0 g/cm³ → VolumeV = 1000 cm³ = 1 LVolume of 1 kg of water at standard conditions. Confirms that 1 L of water has a mass of exactly 1 kg, a fundamental calibration reference.
V = 50 cm³, ρ = 11.34 g/cm³ → Massm = 567 gLead object. Lead's high density (11.34 g/cm³) means even small objects are heavy — relevant for radiation shielding and ballast calculations.
m = 500 g, V = 1000 cm³ → Densityρ = 0.5 g/cm³Wooden block less dense than water. With ρ < 1.0 g/cm³, the wood floats. Relevant for shipbuilding, buoyancy analysis, and materials selection.

How to Use the Density Calculator

  1. Select what you want to calculate: Density (ρ), Mass (m), or Volume (V). The calculator will ask for the other two values.
  2. Enter the first known value and select its unit from the dropdown (e.g., mass in grams, kilograms, pounds, or ounces).
  3. Enter the second known value and select its unit (e.g., volume in cm³, m³, litres, or millilitres).
  4. Click Calculate. The result appears with the answer in the selected output unit and the equivalent formula applied.
  5. Click Reset to clear all fields and start a new calculation.

Density Calculator FAQ

What is the density of water?
Pure water has a density of 1.0 g/cm³ (1000 kg/m³) at 4°C and standard atmospheric pressure. This is intentionally close to 1 because the gram was historically defined as the mass of one cubic centimetre of water. At 20°C, the density of water drops slightly to 0.9982 g/cm³, and at 100°C it is 0.9584 g/cm³.
Why does density change with temperature?
As most materials warm up, their atoms vibrate more vigorously and push each other farther apart, increasing volume while mass stays constant — so density decreases. Gases show the most dramatic change; for an ideal gas, density is proportional to 1/T at constant pressure. Liquids and solids change density much less, but the effect is still significant for precision engineering applications.
How do I find the density of an irregular object?
Use the water-displacement method. Submerge the object in a graduated cylinder or overflow container and measure the volume of water displaced — that equals the object's volume. Then weigh the object to get its mass. Dividing mass by displaced volume gives density. This is the technique Archimedes famously used and is still standard practice in materials labs.
What is the difference between density and specific gravity?
Specific gravity (or relative density) is the ratio of a substance's density to the density of a reference material — usually water at 4°C (1.0 g/cm³). Because it is a dimensionless ratio, specific gravity has the same numerical value as density in g/cm³. A material with specific gravity 2.7 has density 2.7 g/cm³ and will be 2.7 times heavier than an equal volume of water.
Can this calculator handle gas densities?
Yes — enter the mass and volume of any gas sample. For ideal gases, you can compute density from the ideal gas law: ρ = PM/(RT), where P is absolute pressure in Pascals, M is molar mass in kg/mol, R = 8.314 J/(mol·K), and T is temperature in Kelvin. Air at sea level standard conditions has a density of about 1.225 kg/m³.
What units does the density calculator support?
The calculator supports mass in grams (g), kilograms (kg), pounds (lb), and ounces (oz); volume in cubic centimetres (cm³), cubic metres (m³), litres (L), and millilitres (mL); and density output in g/cm³, kg/m³, kg/L, and lb/ft³. All conversions are handled automatically so you can mix and match input and output units freely.