The Density Calculator works out density from mass and volume. Enter your values and get the density, with the formula shown.
Density Calculator
Find density from mass and volume — or work backwards to mass or volume — with full unit conversion and a float-or-sink check against water.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Density Result
Calculated locally in your browser
—
Name
—
Solve for
—
Mass
—
Mass unit
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Density is mass divided by volume, written rho equals m over V. A sample of 500 grams occupying 250 cubic centimetres has a density of 2 grams per cubic centimetre, which is 2,000 kilograms per cubic metre. Water, at about 1,000 kilograms per cubic metre, is the everyday benchmark: materials below it float, materials above it sink.
- rho = m / V; m = rho x V; V = m / rho
- Water is about 1,000 kg/m3 = 1 g/cm3
- 1 g/cm3 = 1,000 kg/m3; steel is about 7,850 kg/m3
Density of common materials (approx., at room temperature)
Reference values for this calculator.
| Material | Density (kg/m3) | Density (g/cm3) |
|---|---|---|
| Air (sea level) | 1.225 | 0.001225 |
| Balsa wood | 160 | 0.16 |
| Oak wood | 720 | 0.72 |
| Ice | 917 | 0.917 |
| Water | 1,000 | 1.00 |
| Aluminium | 2,700 | 2.70 |
| Steel | 7,850 | 7.85 |
| Gold | 19,300 | 19.30 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Implements correction C-001: replaces the generic live-site kernel copy with the real density relationship, solving for any one of density, mass or volume, with kg, g, lb and mg mass units, cm3, m3, mL, L and ft3 volume units, and kg/m3, g/cm3, g/mL and lb/ft3 density units — plus a float-or-sink check against water at about 1,000 kg/m3.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Lab sample from the correction sheet
500 g sample, volume 250 cm3, solving for density
| Calculation | Steps |
|---|---|
| Mass = 500 g = 0.5 kg. Volume = 250 cm3 = 0.00025 m3. Rho = 0.5 / 0.00025 = 2,000 kg/m3, which is 2 g/cm3. | Density 2,000 kg/m3 = 2 g/cm3 — twice as dense as water, so the sample sinks. |
Result
Example 2
A litre of water
1 kg mass, 1 litre volume, solving for density
| Calculation | Steps |
|---|---|
| 1 litre = 0.001 m3. Rho = 1 / 0.001 = 1,000 kg/m3. | Density 1,000 kg/m3 — the reference value for water. |
Result
Example 3
Weight of a steel plate
Steel at 7,850 kg/m3, plate volume 0.02 m3, solving for mass
| Calculation | Steps |
|---|---|
| Mass = rho x V = 7,850 x 0.02 = 157 kg. | The plate weighs 157 kg — a two-person lift with equipment, not by hand. |
Result
How to use this calculator
Step 1
Choose what to solve for: density, mass or volume.
Step 2
Enter the two known quantities and pick their units — grams and cm3 suit lab samples, kg and m3 suit bulk materials.
Step 3
If solving for density, enter mass and volume; the calculator converts both to kg and cubic metres first.
Step 4
Read the headline density in kg/m3 plus the g/cm3 conversion and the float-or-sink verdict against water.
Step 5
Cross-check with the material table below: a result far from every known material usually means a unit slip.
Frequently asked questions
What is the formula for density?
Density equals mass divided by volume: rho = m / V. Rearranged, mass = density x volume and volume = mass / density, which is why this calculator can solve for any one of the three.
What is the density of water?
About 1,000 kg/m3, which is exactly 1 g/cm3 or 1 g/mL near 4 degrees C. That round number is why gram-and-centimetre units are so convenient for liquids.
How do I convert g/cm3 to kg/m3?
Multiply by 1,000. So 2 g/cm3 = 2,000 kg/m3, and 0.8 g/cm3 (a light oil) = 800 kg/m3. This calculator shows both units in its result details.
Why does ice float if it is the same substance as water?
Ice has a density of about 917 kg/m3, lower than liquid water at 1,000 kg/m3, because water expands as it freezes into an open crystal lattice. Anything less dense than the liquid it sits in floats.
Does density change with temperature?
Yes — most materials expand when heated, so the same mass occupies more volume and density falls slightly. Reference densities are quoted at a stated temperature, usually 20 degrees C.
About this calculator
A density calculator applies rho = m / V: it divides a sample mass by the volume that sample occupies to give density, or rearranges the same relationship to find a missing mass or volume. Density is a property of the material itself — a gold ring and a gold bar share the same density even though their masses differ enormously.
Density connects two measurements anyone can take — a weighing scale gives mass, a measuring jug or displacement gives volume — into one number that characterises the material. That is why density is the classic test for purity and identity: adulterated milk, watered fuel and fake gold all betray themselves because their density drifts from the genuine value.
Units cause most errors. Laboratory work uses grams and cubic centimetres, where water is a tidy 1 g/cm3. Engineering uses kilograms and cubic metres, where water is 1,000 kg/m3. Imperial work uses pounds per cubic foot, where water is about 62.4 lb/ft3. This calculator converts everything to SI internally, so mixing a mass in pounds with a volume in litres still produces a correct, comparable answer.
Density also predicts floating: an object placed in a fluid sinks until it displaces its own mass of fluid, so anything with an average density below the fluid floats and anything above sinks. Ice at 917 kg/m3 floats in water at 1,000 kg/m3; steel at 7,850 kg/m3 sinks — unless it is shaped into a hollow hull whose average density, steel plus enclosed air, falls below water.
Use it in school and lab work, when identifying an unknown metal or liquid, when checking whether something will float, in shipping and materials estimating (how heavy a filled tank or a load of gravel will be), and in cooking and brewing where g/mL densities describe syrups and worts.
How to calculate it yourself
Step 1
Weigh the sample and note the mass with its unit.
Step 2
Measure the volume: length x width x height for a regular solid, the graduated scale for a liquid, or water displacement for an irregular solid.
Step 3
Convert mass to kilograms (grams / 1,000) and volume to cubic metres (cm3 / 1,000,000).
Step 4
Divide mass by volume for density in kg/m3, or divide by 1,000 again to express it in g/cm3.
Step 5
To find mass instead, multiply density by volume; to find volume, divide mass by density.
Real-life examples
Identifying a mystery metal bar
A restorer is handed a silvery bar, 200 g, that displaces 74 cm3 of water, and wants to know if it is aluminium before paying for it.
Rho = 200 g / 74 cm3 = 2.70 g/cm3 = 2,700 kg/m3.
2,700 kg/m3 matches aluminium almost exactly, so the bar is aluminium, not a heavier plated metal.
Will a full jerry can float?
A paddler lashes a sealed 20-litre can of diesel (density about 850 kg/m3) to a canoe and wonders if it floats if it slips overboard. The can itself adds 1 kg.
Fuel mass = 850 x 0.02 m3 = 17 kg; total 18 kg in 0.02 m3 gives average density 900 kg/m3, below water at 1,000 kg/m3.
Average density 900 kg/m3, so the sealed can floats — worth a lanyard, but it will not sink to the riverbed.
Ideas & use cases
- Float-or-sink audits: run the average density of a loaded container, boat or pontoon against 1,000 kg/m3 before it goes near water.
- Purity checks: compare a measured liquid density against its reference value to spot watering-down or wrong concentration.
- Tank and load planning: solve for mass to learn what a full tank, skip or truck bed of a known material will weigh before arranging lifting gear.
Limitations & sources
- Assumes a uniform material at a stated temperature; it does not correct density for temperature or pressure, and porous or mixed samples give an average (bulk) density only.
Sources: NIST Guide to the SI — density as derived quantity mass/volume · CRC Handbook of Chemistry and Physics, standard material densities · calculator.net density calculator behaviour cross-checked
