Density Calculator
Calculate ρ = m / V from mass and volume. Returns density in kg/m³ and g/cm³ with specific gravity and a coarse material class.
Category: Physics
Density Calculator Inputs
Density Calculator Formula
Equation
ρ = m / V
Excel Formula
=ρ=m/V
Variables
- Mass (kg) (kg) — Mass of the sample.
- Volume (m³) (m³) — Volume occupied by the sample. 1 m³ = 1000 L; 1 cm³ = 1×10⁻⁶ m³.
How the Density Calculator Works
Density is mass per unit volume. It is an intensive property (does not change when you cut the object in half) and is the bridge between mass and volume in aerodynamics, fluid mechanics, materials selection, and buoyancy. The classical specific-gravity concept compares a material’s density to that of water at 4 °C, where ρ_water = 1000 kg/m³ exactly.
The core relationship is ρ = m / V. Typical inputs include Mass (kg), Volume (m³).
Enter your values in the density calculator above, review the step-by-step solution, and compare against the worked examples below so you can see how each input changes the result. This free online physics tool is built for homework, design checks, and professional verification.
Density Calculator Theory & Explanation
Definition
Density is a measure of how tightly mass is packed into space. It is an **intensive** property (does not change when you cut the object in half) and is the bridge between mass and volume in aerodynamics, fluid mechanics, materials selection, and buoyancy.
**Common units**: kg/m³ (SI), g/cm³ (1 cm³ = 1 mL; g/cm³ = 1000 kg/m³), lb/ft³ (imperial). 1 g/cm³ = 1000 kg/m³. By definition \rho_\textwater = 1000\ \textkg/m^3 at 4 °C.
\rho = (m)/(V)
Density Ranges
Order-of-magnitude guide for materials: gases 0.1–10 kg/m³; liquids 700–2000 kg/m³ (water ≈ 1000); most metals 1800–23000 kg/m³. Concrete ≈ 2400; aluminium 2700; iron/steel ≈ 7850; copper 8960; lead 11340; gold 19300; osmium 22570 (densest naturally occurring element).
Specific Gravity & Buoyancy
Specific gravity (SG) compares to water: SG = ρ / ρ_water. Archimedes’ principle says a body submerged in a fluid feels an upward buoyant force equal to the weight of fluid it displaces. If SG < 1 the object floats; if SG > 1 it sinks; if SG = 1 it is neutrally buoyant (like a Cartesian diver or a submarine at hover).
SG = \rho / \rho_\textwater, \quad \rho_\textwater = 1000\ \textkg/m^3
Variation with Conditions
Most materials expand when temperature rises and contract under pressure, so density varies with both. Hot air balloons work because the air inside, heated to ~80 °C, has a density around 0.999 kg/m³ versus ~1.225 kg/m³ at 15 °C outside. Deep-ocean pressure compresses water measurably; at 10 km depth, seawater density is ~1.07 × 10³ kg/m³.
\rho(T) = (\rho_0)/(1 + α (T - T_0))
Common Mistakes
Mixing up mass and weight (density uses mass, not force). Switching units silently — g/cm³ vs kg/m³ differ by a factor of 1000, water is 1 g/cm³ but 1000 kg/m³. Measuring the volume of a porous or hollow object as its bounding box and getting a misleadingly low average ρ.
Buoyancy and Floating
Density decides what floats. Archimedes' principle states that a submerged body experiences an upward force equal to the weight of the fluid it displaces, so an object floats when its average density is less than the fluid's.
The fraction submerged follows directly: a body of density \rho_\textbody floating in a fluid of density \rho_\textfluid sits with \rho_\textbody/\rho_\textfluid of its volume below the surface. Ice at 917 kg/m³ in seawater at about 1025 kg/m³ gives 0.895 — the origin of the familiar claim that roughly nine-tenths of an iceberg is hidden. A steel hull floats for the same reason: the *average* density of the ship, counting all the enclosed air, is well under that of water even though steel itself is eight times denser.
\fracV_\textsubmergedV_\texttotal = \frac\rho_\textbody\rho_\textfluid
Relative Density and Mixtures
Specific gravity (relative density) is the ratio of a substance's density to that of a reference — water at 4 °C for liquids and solids, air for gases. Being dimensionless, it transfers cleanly between unit systems, which is why it dominates in brewing, battery servicing, petroleum and mineralogy. A hydrometer reads it directly.
For a mixture with no volume change on mixing, the density is the volume-weighted average of the components. Blending equal volumes of ethanol (789 kg/m³) and water (1000 kg/m³) gives roughly 895 kg/m³ — though ethanol and water are a classic exception, contracting slightly on mixing, so the measured value comes out a little higher than that estimate.
\textSG = \frac\rho_\textsubstance\rho_\textwater, \qquad \rho_\textmix = (Σ_i \rho_i V_i)/(Σ_i V_i)
Reference Densities
Useful anchors, all in kg/m³ at ordinary conditions: air 1.225, cork 240, pine 500, ethanol 789, ice 917, water 1000, seawater 1025, concrete 2400, aluminium 2700, steel 7850, copper 8960, lead 11340, gold 19320.
Two cautions when measuring. For an irregular solid, displacement in a measuring cylinder gives the true volume including internal voids only if the object is genuinely non-porous; porous materials must be sealed or measured dry and saturated to separate bulk from true density. And for gases, density is meaningless without stating temperature and pressure — air at sea level is about 1.225 kg/m³ at 15 °C, but only around 0.905 kg/m³ at the 3 km altitude of a mountain pass.
Density Calculator Worked Examples
Worked Example
Inputs
- mass: 7.87
- volume: 0.001
Result: ρ = 7870 kg/m³ (≈ iron/steel)
Explanation
A 7.87-kg block that fits in a 1-liter container has density 7.87 kg / 0.001 m³ = 7870 kg/m³, the textbook value for iron and a useful sanity-check for steel (≈7850–8050 kg/m³ depending on alloy). If your measurement comes out near 2700 kg/m³ your block is likely aluminium; near 11340 kg/m³ it is lead; near 19 300 it is gold; near 1000 it is water. Significant figures: 7.87 has 3 sig figs so the result should be reported as 7.87 × 10³ kg/m³.
Second Scenario
Inputs
- mass: 5.9025
- volume: 0.001
Result: ρ = 7870 kg/m³ (≈ iron/steel)
Explanation
This scenario uses different inputs (mass = 5.9025, volume = 0.001) to show how changing one variable affects the density result. Run the calculator above with these values to get the exact updated output with step-by-step work.
Common Density Calculator Use Cases
- Physics problem sets and labs
- Engineering design checks
- Unit and formula verification
- Density homework and study
- Density design and analysis
Density Calculator FAQs
Is specific gravity the same as density?
No — specific gravity (SG) is dimensionless and equals density divided by the density of water. For most practical purposes in fresh water you can use SG ≈ ρ(g/cm³). In oceanography and geology, SG is preferred because it removes temperature/pressure dependence of the reference water.
My answer is in the wrong units. How do I convert?
1 kg/m³ = 0.001 g/cm³ = 0.06243 lb/ft³. Multiply or divide accordingly. The calculator returns both kg/m³ and g/cm³ so you can pick whichever is convenient.
Does density change with temperature or pressure?
Yes. Most solids expand by 0.01–0.1% per 100 °C. Liquids expand much more (water actually has its maximum density at 4 °C, not at 0 — that is why lakes freeze from the top). Gases are extremely sensitive: doubling absolute temperature halves density at fixed pressure.
How do I measure the volume of an irregular object?
Submerse it in a graduated cylinder partially filled with water and read the displaced volume change. This works for any waterproof object. For absorbent objects, coat them in a thin wax layer first; the wax thickness contributes negligible volume on the scale you care about.
Can density help identify an unknown material?
Often yes, especially for metals. Measure the mass and volume, compute ρ, and look it up — pure aluminium (2700), iron (7870), copper (8960), lead (11 340), gold (19 300) are all distinct enough to be diagnostic. Alloys complicate this: stainless steel ranges from 7 500 to 8 200 kg/m³ depending on composition.