Density Calculator

Solve for density, mass, or volume using \(\rho = \frac{m}{V}\) with flexible SI and imperial units.

Configuration

Choose which variable to solve for. The solved variable is hidden and calculated from the other two.

Inputs

Enter any two values. The third will be computed.

Results Summary

The calculated value appears below. Quick stats also report all three quantities in common units.

Engineering Guide

Density Calculator: How to Solve for Density, Mass, or Volume

Density shows up everywhere in engineering: materials selection, buoyancy checks, fluid systems, soils, concrete mix design, and lab testing. This guide explains the core equation, how to use the calculator correctly, what assumptions sit behind it, and how to sanity-check results in real projects.

6–8 min read Updated 2025 Students & Practicing Engineers

Quick Start

The calculator is built around the standard density relationship: \[ \rho = \frac{m}{V} \] where \(\rho\) is density, \(m\) is mass, and \(V\) is volume. You can solve for any one of these by providing the other two.

  1. 1 Choose Solve For at the top (Density \(\rho\), Mass \(m\), or Volume \(V\)).
  2. 2 Enter the two known values. The calculator hides the variable you’re solving for, so only “given” inputs stay visible.
  3. 3 Set units beside each input (kg vs lb, m³ vs L vs ft³, etc.). The tool converts everything internally to SI before computing.
  4. 4 If you are working with a temperature-dependent material (fluids, polymers, gases), use values measured at the same temperature.
  5. 5 Review the Calculated Result and the Quick Stats table. Quick Stats echoes all three quantities in common units for checking.
  6. 6 Sanity-check the magnitude against typical density ranges for your material class (see table below).
  7. 7 If your result looks off, re-verify the units and whether volume is gross vs void-corrected (porous materials often cause large errors).

Tip: For solids with irregular shapes, measure volume by displacement (Archimedes method) and use that volume here.

Common mistake: Mixing mass and weight. Mass is in kg or lbm; weight is a force in N or lbf. Use mass.

Choosing Your Method

The calculator always uses the same equation, but your inputs can come from different measurement approaches. Picking the right approach is mostly about how you obtain volume and whether voids/temperature matter.

Method A — Direct Geometry + Mass

Best for prismatic or well-defined shapes (machined parts, beams, cylinders, tanks).

  • Fast and precise when dimensions are known.
  • Easy to repeat in design spreadsheets.
  • Works well for homogeneous materials.
  • Fails on irregular shapes unless you approximate geometry.
  • Ignores internal voids unless you correct volume.
Use \(V\) from geometry → \(\rho = m/V\).

Method B — Displacement (Archimedes)

Best for irregular solids, aggregates, soil clods, or parts with complex surfaces.

  • Captures true external volume without modeling geometry.
  • Good for lab and field measurements.
  • Pairs naturally with the calculator for quick conversion to density.
  • Air bubbles or wetting issues can skew volume.
  • Not suitable for soluble or water-reactive materials without care.
Measure displaced volume \(V\) → compute \(\rho\).

Method C — Indirect via Specific Gravity

Best when you have a specific gravity (SG) or relative density value from standards.

  • Uses common test outputs for soils, aggregates, and liquids.
  • Fast when SG is already reported.
  • Requires consistent reference density (usually water at 4°C or 20°C).
  • Not valid for gases unless compressibility is accounted for.
\(\rho = SG \cdot \rho_{ref}\), with \(\rho_{ref} \approx 1000\ \text{kg/m}^3\) for water.

When in doubt: if geometry is clear, use Method A; if shape is messy, use Method B; if standards give SG, Method C is quickest.

What Moves the Number the Most

Density is simple algebra, but the result you get can swing a lot depending on how mass and volume are defined or measured. These are the dominant “levers.”

Mass accuracy

Scale resolution and calibration matter. A 1% error in \(m\) produces a 1% error in \(\rho\). For small samples, use a lab balance, not a field crane scale.

Volume definition

Are you using gross volume or solid-only volume? Porous materials (wood, concrete, soils) can have bulk density far below particle density.

Temperature

Fluids expand with temperature. Water changes from about 998 kg/m³ at 20°C to ~971 kg/m³ at 80°C. Oils and polymers can shift even more.

Moisture content

For soils, aggregates, and biomass, moisture adds mass while barely changing volume until saturation. Always state whether density is dry, wet, or saturated.

Entrapped air / voids

Air in concrete or foam in liquids increases volume without proportional mass. This is why “bulk density” can be much lower than theoretical density.

Unit conversion

Most “wrong” results come from mixing units like lb with in³ or using L when you meant m³. The calculator converts for you, but inputs must match their unit selectors.

Worked Examples

Example 1 — Density of a Steel Plate (Solve for Density)

  • Plate mass: \(m = 23.6\ \text{kg}\)
  • Plate dimensions: \(0.50\ \text{m} \times 0.40\ \text{m} \times 0.015\ \text{m}\)
  • Goal: Find density \(\rho\) and verify material type.
1
Compute volume from geometry: \[ V = LWH = 0.50 \cdot 0.40 \cdot 0.015 = 0.0030\ \text{m}^3 \]
2
Use the density equation: \[ \rho = \frac{m}{V} \]
3
Substitute: \[ \rho = \frac{23.6}{0.0030} = 7867\ \text{kg/m}^3 \]
4
Interpretation: typical carbon steel is ~7850 kg/m³, so the plate is consistent with steel.

In the calculator, set Solve For to Density, enter mass = 23.6 kg, volume = 0.0030 m³. Output units kg/m³ gives the same result. If you switch to lb/ft³, you should get about 491 lb/ft³.

Example 2 — Volume of Hydraulic Oil (Solve for Volume)

  • Oil mass: \(m = 180\ \text{lb}\)
  • Oil density at 40°C: \(\rho = 54.5\ \text{lb/ft}^3\)
  • Goal: Find volume \(V\) to size a reservoir.
1
Rearrange: \[ V = \frac{m}{\rho} \]
2
Substitute: \[ V = \frac{180}{54.5} = 3.30\ \text{ft}^3 \]
3
Convert to gallons: \[ 3.30\ \text{ft}^3 \times 7.4805\ \frac{\text{gal}}{\text{ft}^3} \approx 24.7\ \text{gal} \]
4
Reservoir takeaway: you need about 25 gallons of oil at this temperature.

In the calculator, set Solve For to Volume, input mass = 180 lb and density = 54.5 lb/ft³, choose output units gal (US) to read ~24.7 gal directly.

Common Layouts & Variations

Density can mean different things by context: bulk vs particle for soils, apparent vs true for composites, liquid vs gas for fluids. Use the right interpretation for your application.

Context / MaterialTypical Density RangeWhich Density to UsePractical Notes
Metals (steel, aluminum)2700–8000 kg/m³True/material densityGeometry method is reliable; temperature effects small for solids.
Concrete / masonry1800–2500 kg/m³ (bulk)Bulk (includes air voids)Air entrainment lowers bulk density; compare to mix spec.
Soils / aggregates1200–2200 kg/m³ (bulk)Dry, wet, or saturated bulkState moisture condition; particle density often ~2650 kg/m³ for quartz sands.
Water (liquid)970–1000 kg/m³Temperature-corrected liquid densityUse same temperature for mass/volume; density tables are common.
Oils / fuels700–950 kg/m³Apparent liquid densityHighly temperature-sensitive; SG often supplied instead.
Gases (air, natural gas)0.6–1.3 kg/m³ (air at STP)Density at specified \(P,T\)Ideal gas assumptions may break at high pressure; verify conditions.
Foams / porous polymers20–500 kg/m³Bulk densityVoid fraction dominates; measure volume carefully.
  • Label density type in reports (bulk, dry, saturated, true).
  • Keep measurement temperature and pressure consistent.
  • For displacement tests, remove bubbles before reading volume.
  • For porous solids, note whether pores are open or sealed.
  • Compare to reference tables for a quick plausibility check.
  • Document unit system clearly in calculations and drawings.

Specs, Logistics & Sanity Checks

Density is often an intermediate quantity. Before you lock in a design decision, make sure the number is aligned with your spec, test method, and field realities.

Measurement Specs

  • Mass: use calibrated scales; record resolution (e.g., ±0.1 g).
  • Volume: define method (geometry, displacement, pycnometer).
  • Condition: dry/wet/saturated, and test temperature.

If the spec requires ASTM/ISO density, use the standard’s test setup so your \(\rho\) is comparable.

Field & Lab Logistics

  • Seal samples to preserve moisture when needed.
  • Let hot parts equilibrate before weighing.
  • For soils, avoid loss of fines during handling.
  • For liquids, de-gas or stir to remove entrained air.

Sanity Checks

  • Is \(\rho\) within typical range for that material family?
  • Does changing units change the number unexpectedly? (It shouldn’t.)
  • Back-solve: compute \(m=\rho V\) and see if it matches your measured mass.
  • Repeat measurement on a second sample if density drives safety.

In design, density feeds into self-weight \(w=\rho g\), buoyant force \(F_b=\rho_f g V\), and mass flow \(\dot{m}=\rho Q\). Small density errors can cascade into large load or flow errors when volumes are big, so keep the measurement chain tidy.

Frequently Asked Questions

What’s the difference between density and specific gravity?
Density \(\rho\) is an absolute value with units (kg/m³, lb/ft³). Specific gravity (SG) is dimensionless: \[ SG = \frac{\rho}{\rho_{ref}} \] where \(\rho_{ref}\) is typically water. If SG is 2.7, the material density is about \(2.7 \times 1000 = 2700\ \text{kg/m}^3\).
Can I use this for gases?
Yes, but only if your mass and volume are measured at the same pressure and temperature. For compressible gases, density changes strongly with conditions. If you only know \(P\) and \(T\), use an ideal gas or real-gas model first to get \(\rho\).
Why is my soil density much lower than particle density tables?
Soil bulk density includes voids and (sometimes) water, while particle density excludes void space. Typical mineral particle density is near 2650 kg/m³, but bulk density can be 1200–2000 kg/m³ depending on compaction and moisture.
How do I measure volume for an irregular object?
Use displacement. Submerge the object in a graduated container (or use an overflow can), measure the displaced volume, and enter that volume with the object mass. Remove bubbles and ensure full wetting for best accuracy.
Does temperature matter for liquids?
Absolutely. Most liquids expand as temperature rises, so density decreases. Oils and fuels can vary several percent across common operating temperatures. Use density values from the same temperature as your volume/mass measurements.
Is “lb/in³” the same type of pound as “lbf”?
No. In density, “lb” means mass (lbm). “lbf” is a unit of force. If you have weight in lbf, convert to mass using \(m = W/g\) before using the calculator.
Scroll to Top