⚖️ Density Calculator
Density Calculator
Density is mass divided by volume — the property that decides whether something floats or sinks. Enter mass in grams and volume in cubic centimeters.
Water's density (1 g/cm³) is the reference: anything denser sinks, anything less dense floats.
What density is, and what this calculator does
Density is the amount of mass packed into a given volume — how heavy something is for its size. Two objects can weigh exactly the same and still feel completely different: a kilogram of lead sits in the palm of your hand, while a kilogram of feathers fills a pillowcase. The mass is identical; the density is not. Density is the property that captures that difference, and it is one of the most useful identifying properties in science and engineering, because every pure material has a characteristic density at a given temperature and pressure.
This calculator works in the units its result rows are built on, stated openly here because the input labels themselves are bare: enter mass in grams (g) and volume in cubic centimetres (cm³). Enter the two values, click Calculate, and the calculator divides mass by volume and reports the density twice — first as the hero result in g/cm³, rounded to 4 decimal places, and then In kg/m³, the SI unit, at 2 decimal places. The conversion between the two rows is exact: 1 g/cm³ = 1,000 kg/m³, so the second row is always the first row multiplied by 1,000.
The formula, in plain words
Density is defined by a single relation:
ρ = m ÷ V
where ρ (the Greek letter rho) is density, m is mass and V is volume. That is the whole formula — there are no hidden constants and no approximations in it. Density is not measured directly by this equation; it is defined by it, which is why the same formula appears in every physics and chemistry textbook without variation.
The two output units deserve one line each. A density in g/cm³ tells you how many grams one cubic centimetre of the material contains. A density in kg/m³ tells you how many kilograms one cubic metre contains. Because a cubic metre holds exactly 1,000,000 cm³ and a kilogram is 1,000 g, the two scales differ by a factor of exactly 1,000: multiply g/cm³ by 1,000 to get kg/m³, and divide kg/m³ by 1,000 to get g/cm³. The calculator performs that step for you in its second row.
Worked example — the calculator's own defaults
The page loads with a mass of 200 and a volume of 50 — that is, 200 g spread over 50 cm³:
- ρ = 200 ÷ 50 = 4 g/cm³
- In kg/m³: 4 × 1,000 = 4,000 kg/m³
A density of 4 g/cm³ sits between aluminium (2.70 g/cm³) and iron (7.87 g/cm³) in the materials table below — denser than any common wood, stone or plastic, in the range of some ceramics and mineral ores. That placement is the real value of the number: a density result is most useful when you compare it against known materials.
A second worked case: a sample of 500 g occupying 120 cm³:
- ρ = 500 ÷ 120 = 4.16666… g/cm³, displayed as 4.1667 g/cm³ (the hero row is rounded to 4 decimal places)
- In kg/m³: 4.16666… × 1,000 = 4,166.67 kg/m³ (2 decimal places)
Note that the kg/m³ row is computed from the unrounded density, so it can differ in the last digit from multiplying the rounded hero figure by 1,000 — 4.1667 × 1,000 would give 4,166.70, while the calculator correctly shows 4,166.67. The unrounded route is the accurate one.
The water check — the reference point for everything
Water is the anchor of the whole density scale in these units. Pure water at around 4 °C has a density of almost exactly 1.00 g/cm³, which you can confirm in the calculator: enter a mass of 1,000 g and a volume of 1,000 cm³ and the result is 1 g/cm³, shown as 1,000 kg/m³ in the second row.
That anchor gives you the fastest practical test in this whole topic — float or sink. Any material with a density below 1.00 g/cm³ floats on water; anything above it sinks. Ice, at 0.917 g/cm³, floats with most of its volume submerged. Oak, at about 0.72 g/cm³, floats higher. Petrol, at 0.74 g/cm³, floats on water, which is why fuel spills spread across the surface of harbours instead of sinking. Steel, at about 7.85 g/cm³, sinks immediately — ships float only because the hull encloses air, so the average density of hull plus air is below 1.00 g/cm³ even though the steel itself is not. Whenever a density result surprises you, compare it with 1.00 first: that one comparison tells you how the material behaves in water before you look anything else up.
Densities of common materials
Use this table to identify an unknown sample, sanity-check a result, or choose a material for a project. All values are in g/cm³ at ordinary room conditions unless noted; multiply by 1,000 for kg/m³.
| Material | Density (g/cm³) | Behaviour in water |
|---|---|---|
| Air | 0.0012 (1.2 kg/m³) | — |
| Oak | ~0.72 | Floats |
| Petrol | 0.74 | Floats |
| Olive oil | 0.91 | Floats |
| Ice | 0.917 | Floats |
| Water | 1.00 | Reference point |
| Aluminium | 2.70 | Sinks |
| Steel | ~7.85 | Sinks |
| Iron | 7.87 | Sinks |
| Copper | 8.96 | Sinks |
| Lead | 11.34 | Sinks |
| Mercury | 13.55 | Sinks |
| Gold | 19.32 | Sinks |
Two honest cautions about any materials table, this one included. First, natural and manufactured materials vary: oak is marked with a tilde because its density shifts with species and moisture content, and steel varies slightly by alloy, hence ~7.85 rather than a single exact figure. Pure elements such as aluminium, copper, lead and gold have tight, standard values. Second, the table gives the density of the solid material itself. A porous or hollow object — a sponge, a boat hull, a loaf of bread — has a much lower average density than the substance it is made from, because the volume in the formula includes the air spaces. If your measured density lands far below the table value for a material you are sure about, trapped air in the volume measurement is the usual explanation.
Rearranging the formula — mass and volume by hand
This tool solves for density, but the same relation rearranges into two companion forms that are worth knowing, because in practice the unknown is just as often the mass or the volume:
- m = ρ × V — mass equals density times volume. Example: how heavy is 250 cm³ of aluminium? 2.70 × 250 = 675 g.
- V = m ÷ ρ — volume equals mass divided by density. Example: what volume does 500 g of copper occupy? 500 ÷ 8.96 = 55.80 cm³, to 2 decimal places.
The triangle mnemonic taught in schools — mass on top, density and volume below — is just these three rearrangements drawn as a picture. Cover the quantity you want and the positions of the other two tell you whether to multiply or divide. These rearrangements are hand methods presented for understanding; the calculator on this page itself computes density only, from the mass and volume you enter. If you already know a mass in pounds and need it in kilograms first, our Mass Calculator converts it; if you need the corresponding force, the Weight Calculator turns a mass in kilograms into newtons.
Getting your inputs into grams and cm³
Because the calculator's basis is grams and cubic centimetres, most input errors are really unit errors. The conversions you are most likely to need:
- Kilograms to grams: multiply by 1,000. A 2 kg object is 2,000 g.
- Litres to cm³: 1 L = 1,000 cm³ exactly. A 1.5 L bottle has a volume of 1,500 cm³.
- Millilitres to cm³: 1 mL = 1 cm³ exactly, so millilitres from a measuring jug or syringe can be entered as cm³ unchanged — this is why the displacement method below is so convenient.
- Cubic metres to cm³: multiply by 1,000,000. Large volumes shrink fast in these units, which is why bulk materials are usually quoted in kg/m³ instead.
- Regular solids: volume in cm³ is length × width × height, all measured in centimetres. A block 10 cm × 5 cm × 2 cm has a volume of 100 cm³.
- Irregular solids: use displacement. Submerge the object in a measuring cylinder of water and read the rise in level; the rise in millilitres is the volume in cm³. Weigh the object in grams, enter both figures, and you have the classic school-laboratory density measurement end to end.
Temperature — the one condition that moves density
Density is not a fixed constant of a material in the way the formula alone suggests. Most substances expand when heated, so the same mass occupies more volume and the density falls; cool them and the density rises. The effect is small for solids, modest for liquids and large for gases. Water is the famous special case at the anchor of the scale: it is densest at about 4 °C, at 1.00 g/cm³, and very slightly less dense at room temperature, which is why reference tables quote the temperature alongside the value. Air, at 0.0012 g/cm³ (1.2 kg/m³) under ordinary conditions, changes density noticeably with both temperature and pressure — that variation is what drives rising warm air, weather and much of ventilation engineering. For everyday work with solids and liquids at room temperature, the table values above are accurate enough; for precision laboratory or engineering work, always note the temperature at which a density was measured or quoted.
Common mistakes
- Entering kilograms or litres without converting. The calculator's basis is grams and cm³. Entering 2 (meaning kg) over 500 (meaning cm³) gives 0.004 g/cm³ — a number that looks precise and is completely wrong. Convert first: 2,000 g over 500 cm³ = 4 g/cm³.
- Forgetting that both inputs must be greater than zero. Volume cannot be zero — division by zero is undefined — and a mass of zero describes nothing physical. If either entry is not above zero, the calculator shows the message Enter mass and volume. instead of a result.
- Confusing density with weight. A large object can be light for its size (low density, like oak) and a small object heavy for its size (high density, like lead). Density is always mass per unit volume, never mass alone.
- Using the overall volume of a hollow or porous object and expecting the solid material value. The formula uses the volume you give it, air spaces included, so the result is the average density of the whole object. That average is the right number for float-or-sink questions and the wrong one for identifying the solid material.
- Rounding too early by hand. Keep full precision until the final step, exactly as the calculator does: 500 ÷ 120 is 4.16666… g/cm³, and rounding to 4.17 before converting would give 4,170 kg/m³ instead of the correct 4,166.67 kg/m³.
Key terms
- Density (ρ) — mass per unit volume, ρ = m ÷ V; on this page, reported in g/cm³ and kg/m³.
- Mass — the amount of matter in an object, entered here in grams; not the same as weight, which is a force.
- Volume — the space an object occupies, entered here in cubic centimetres (cm³); 1 cm³ = 1 mL exactly.
- g/cm³ and kg/m³ — the two reporting units on this page; 1 g/cm³ = 1,000 kg/m³ exactly, with kg/m³ the SI unit.
- Displacement — measuring an irregular solid's volume by the rise in water level when it is submerged.
- Average density — the density of a whole object including its air spaces; the figure that decides floating and sinking.
Related calculators
---
Frequently asked questions
What is density and how is it calculated?
Density is mass per unit volume, calculated as ρ = m ÷ V — mass divided by volume. This calculator expects mass in grams and volume in cubic centimetres, and reports the result in g/cm³ and in kg/m³. For example, 200 g over 50 cm³ gives 200 ÷ 50 = 4 g/cm³, which is 4,000 kg/m³.
What units does this density calculator use?
Enter mass in grams and volume in cubic centimetres. The hero result is density in g/cm³, rounded to 4 decimal places, and the second row shows the same density in kg/m³ to 2 decimal places. The two units are linked exactly: 1 g/cm³ = 1,000 kg/m³. If your mass is in kilograms, multiply by 1,000 first; if your volume is in litres, multiply by 1,000 as well, because 1 L = 1,000 cm³.
What is the density of water?
Pure water has a density of 1.00 g/cm³, or 1,000 kg/m³, at about 4 °C. You can reproduce the reference point in this calculator by entering a mass of 1,000 g and a volume of 1,000 cm³, which returns exactly 1 g/cm³. Water is the benchmark for the float-or-sink test: any material below 1.00 g/cm³ floats on water, and any material above it sinks.
How do I find mass or volume if I know the density?
Rearrange the same formula by hand. Mass equals density times volume, m = ρ × V, so 250 cm³ of aluminium at 2.70 g/cm³ has a mass of 2.70 × 250 = 675 g. Volume equals mass divided by density, V = m ÷ ρ, so 500 g of copper at 8.96 g/cm³ occupies 500 ÷ 8.96 = 55.80 cm³. This calculator itself solves for density only; the rearrangements are hand methods using the same relation.
Why does the calculator show density in both g/cm³ and kg/m³?
Because the two units serve different scales of work. Grams per cubic centimetre suits laboratory samples and material identification, where values like 2.70 for aluminium and 19.32 for gold are compact. Kilograms per cubic metre is the SI unit and suits bulk and engineering work. The conversion is exact — multiply g/cm³ by 1,000 — so 4.1667 g/cm³ in the hero row appears as 4,166.67 kg/m³ in the second row, computed from the unrounded value.
Which materials are the most and least dense in everyday life?
Of the common materials in the guide table, gold is the densest at 19.32 g/cm³, followed by mercury at 13.55 g/cm³ and lead at 11.34 g/cm³. At the light end, air is just 0.0012 g/cm³, or 1.2 kg/m³, and common solids such as oak at about 0.72 g/cm³ and petrol at 0.74 g/cm³ are less dense than water at 1.00 g/cm³, which is why they float on it.
Does temperature change density?
Yes. Most substances expand when heated, so the same mass takes up more volume and density falls; cooling reverses the effect. The change is small for solids, modest for liquids and large for gases such as air. Water is the standard reference at 1.00 g/cm³ at about 4 °C, its point of maximum density. For everyday measurements at room temperature the effect is negligible, but precision work always records the temperature a density was measured at.







































