Density Calculator | Find Mass, Volume or Density

Free online matter calculator

Density Calculator for Mass, Volume and Unit Conversion

Calculate average density, mass or volume from two known quantities. Enter metric, U.S. customary or Imperial units, then review the SI conversion, formula substitution and equivalent results.

Last Updated: July 29, 2026
  • Solve ρ = m/V
  • Three calculation modes
  • Independent input units
  • Metric and imperial results

Online Density Calculator

Select the unknown quantity, enter two positive values and choose their units. The calculator normalizes the measurements to kilograms and cubic metres before solving.

Runs in your browser

Enter Your Values

Use complete numbers without commas, unit text or formulas. Scientific notation such as 2.5e-3 is accepted.

Density equals mass divided by volume. Both active values must be greater than zero.
Pounds and ounces mean avoirdupois mass, not pound-force.
U.S. and Imperial gallons are different units and remain separate.
This sets the maximum displayed significant digits. Calculations retain full browser precision.

Try an example

Density result
1 g/cm³

Average mass density from the entered sample measurements.

Formulaρ = m / V
SI result1000 kg/m³
First known value1 kg
Second known value0.001 m³

Equivalent Units

UnitEquivalent value
kg/m³1000 kg/m³
g/cm³1 g/cm³

Calculation Steps

  1. Convert 1000 g to 1 kg.
  2. Convert 1000 cm³ to 0.001 m³.
  3. Apply ρ = m / V = 1 / 0.001 = 1000 kg/m³.
  4. Convert the answer to 1 g/cm³.

This is the sample's average mass per unit volume. Density can change with temperature, pressure, composition and how void space is treated.

How to Use This Density Calculator

  1. Choose the unknown. Select density, mass or volume as the quantity to calculate.
  2. Enter the first known value. Use a positive mass, volume or density and select the unit attached to the measurement.
  3. Enter the second known value. Keep U.S. and Imperial gallons separate and use pound-mass, not pound-force.
  4. Choose the answer unit. Select the unit wanted for the main result; equivalent units will appear below it.
  5. Set display precision. Choose a maximum of four, six, eight or ten significant digits. This changes only display rounding.
  6. Calculate and review. Check the SI conversions, formula substitution, equivalent values and physical limits before using the result.

What Is Density?

Density describes how much mass occupies a given volume. The usual symbol is the Greek letter rho, ρ. A compact object is not automatically dense, and a heavy object is not automatically dense. Density depends on the ratio of mass to volume, not on either measurement alone.

This tool calculates average mass density. It divides total mass by the chosen overall volume and does not resolve local density variations. That model is useful for classroom problems, laboratory checks, material estimates and unit conversion, including heterogeneous samples when the selected overall volume is appropriate.

ρ = m / V

Here, ρ is density, m is mass and V is volume. In coherent SI units, mass is in kilograms, volume is in cubic metres and density is in kilograms per cubic metre.

Density, Mass and Volume Formulas

The same relationship can be rearranged to solve any one of the three quantities. Use the form that places the unknown by itself.

FindFormulaRequired values
Densityρ = m / VMass and volume
Massm = ρVDensity and volume
VolumeV = m / ρMass and density

Units must remain compatible through the calculation. The calculator handles this by converting each active input to coherent SI working units before applying the selected equation. It then converts the SI answer into the output unit you chose.

Worked Density Calculator Examples

Example 1: Find density

A solid sample has a mass of 540 g and a volume of 200 cm³. Apply ρ = m / V:

ρ = 540 g / 200 cm³ = 2.7 g/cm³ = 2700 kg/m³

The value is average density for the measured sample. It does not prove that the object is a particular material.

Example 2: Find mass

A material has a density of 7.85 g/cm³ and occupies 125 cm³. Apply m = ρV:

m = 7.85 g/cm³ × 125 cm³ = 981.25 g

The cubic-centimetre units cancel, leaving grams.

Example 3: Find volume

A 2.5 kg sample has an average density of 800 kg/m³. Apply V = m / ρ:

V = 2.5 kg / 800 kg/m³ = 0.003125 m³ = 3.125 L

The result is the overall volume represented by the entered density model.

Density Units and Definition-Based Conversions

The SI unit of mass density is kg/m³. Chemistry often uses g/cm³ or g/mL. Engineering data may use lbm/ft³, while liquid-product data may use pounds per gallon. The gallon system must be stated because a U.S. gallon and an Imperial gallon are not equal. Primitive unit definitions used here are exact; nonterminating compound ratios are displayed as rounded decimals.

Density unitEquivalent in kg/m³Relationship
1 g/cm³1000 kg/m³Also 1 g/mL and 1 kg/L
1 g/L1 kg/m³Also 1 mg/mL
1 mg/L0.001 kg/m³Common for low mass concentrations
1 lbm/ft³16.01846337396014 kg/m³Derived from exact pound and foot definitions
1 lbm/in³27679.90471020312 kg/m³Rounded from the exact pound and inch definitions
1 lbm/US gal119.82642731689663 kg/m³U.S. liquid gallon
1 lbm/imp gal99.7763726631017 kg/m³Imperial gallon
Remember the cube: 1 cm equals 0.01 m, but 1 cm³ equals 0.000001 m³. A linear conversion factor must be cubed when converting volume.

Density, Mass, Weight and Specific Gravity

These terms describe different quantities. Mixing them leads to incorrect units and misleading results.

QuantityMeaningTypical unit
MassAmount of matter represented by an inertial mass measurementkg, g or lbm
WeightForce produced by gravity on a massN or lbf
DensityMass divided by volumekg/m³ or g/cm³
Specific gravityRatio of a substance density to a stated reference densityDimensionless

This calculator uses mass. An input marked lbm is pound-mass. Do not enter a pound-force value unless it has first been converted to mass under a valid physical model.

Temperature, Pressure, Porosity and Density

Density is not always a fixed material label. Temperature changes volume and can therefore change density. Pressure matters strongly for gases and can also affect liquids and solids in precision work. Composition, moisture and phase must also be stated when they matter.

For a hollow or porous object, dividing total mass by the outside volume gives an overall average density. It includes internal voids. True material density excludes those voids, while bulk density may include gaps between particles. These measurements answer different questions even when they use the same unit.

Water is often rounded to 1000 kg/m³ in introductory examples, but it is not exactly 1000 kg/m³ at every temperature. Use a reference value tied to the required temperature, pressure, purity and measurement standard when accuracy matters.

How to Measure Mass and Volume

Measure mass with a suitable calibrated balance. Remove container mass through a valid tare procedure. Record the unit and uncertainty rather than copying more digits than the instrument supports.

For a regular solid, calculate volume from measured dimensions using the correct geometric formula. For an irregular solid that is compatible with the liquid, displacement can estimate volume. Read a graduated vessel at the specified meniscus and avoid trapped bubbles. Porous, soluble, reactive or floating samples need another validated method.

For liquids, use calibrated volumetric equipment suited to the required uncertainty. For gases, record temperature and pressure with the result because both conditions affect volume and density.

Common Density Calculation Mistakes

  • Entering weight force as mass, such as using lbf where the formula requires lbm.
  • Mixing grams with cubic metres without converting either quantity.
  • Treating 1 cm³ as 0.01 m³ instead of cubing the length conversion.
  • Using a U.S. gallon factor for an Imperial-gallon measurement.
  • Assuming a density reference applies at every temperature, pressure or composition.
  • Using outside volume when true material density should exclude hollow or porous space.
  • Rounding the intermediate conversions before the final answer.
  • Claiming material identity from density alone without uncertainty or supporting tests.

Accuracy, Precision and Calculator Limits

The calculator accepts positive finite integers, decimals and scientific notation. It rejects commas, unit text, incomplete exponents, zero, negative values and numbers outside the browser's safe arithmetic range. Hidden fields from inactive modes do not affect the calculation. Any invalid calculation clears the previous result.

All active inputs are converted to SI before the equation is applied. The selected maximum significant-digit setting changes display rounding only. It does not improve measurement accuracy. Report a result with precision supported by the least precise input and include measurement uncertainty when required.

The model assumes one average density for the entered sample. It does not model density gradients, compressibility, phase change, chemical reaction, buoyancy, freight density classes, molar density, energy density, specific weight or specific gravity.

Browse the Science & Engineering Calculators directory for more measurement, geometry and mechanics tools.

Density Calculator FAQs

What is the formula for density?

Density is mass divided by volume: ρ = m/V. Use compatible units or convert both measurements to one coherent system before dividing.

How do I find mass from density and volume?

Multiply density by volume: m = ρV. For example, 7.85 g/cm³ multiplied by 125 cm³ gives 981.25 g.

How do I find volume from mass and density?

Divide mass by density: V = m/ρ. Density must be greater than zero, and the mass and density units must be compatible.

What is the SI unit of density?

The coherent SI unit of mass density is the kilogram per cubic metre, written kg/m³ or kg m−3.

Is g/mL the same as g/cm³?

Yes. One millilitre equals one cubic centimetre exactly, so 1 g/mL equals 1 g/cm³, 1 kg/L and 1000 kg/m³.

What is the difference between mass, weight and density?

Mass measures matter, weight is a force caused by gravity, and density is mass divided by volume. Their units and physical meanings are different.

Why does density change with temperature or pressure?

Temperature and pressure can change a substance's volume. Because density equals mass divided by volume, a volume change alters density even when mass stays constant.

Can density identify an unknown material?

Density can support identification, but it is not conclusive by itself. Temperature, composition, porosity, measurement uncertainty and different materials with similar densities must be considered.

Are U.S. and Imperial gallons the same?

No. One U.S. liquid gallon is 0.003785411784 m³, while one Imperial gallon is 0.00454609 m³. Select the correct gallon system.

Does this calculator find specific gravity or bulk density?

It does not calculate specific gravity. It can return bulk density when you enter the correct bulk mass and bulk volume, but it does not determine which volume definition applies.

Method References

Disclaimer: This calculator provides educational and preliminary results for average mass density. Verify the measurement method, unit system, temperature, pressure, composition, porosity, instrument calibration and uncertainty before using a result for laboratory, hazardous-material, structural, manufacturing, shipping, safety-critical or professional engineering work.

Post a Comment

0Comments

Post a Comment (0)