Density / Mass / Volume Calculator

ρ = m / V • m = ρ × V • V = m / ρ
Only the logical input fields stay visible for the selected equation.
Quick summary
Choose what to solve for, enter the required values, then click Calculate.
Density must be greater than 0.
Mass must be 0 or greater.
Volume must be greater than 0.

Results

Density
kg/m³
Mass
kg
Volume
All results are shown in standard SI units.

A density calculator connects mass and volume through a material property. Enter any two values to solve for the third, and verify that units describe the same sample and condition.

Density Calculator Formula and Volume Methods

ρ = m/V, with rearrangements m = ρV and V = m/ρ. Common units include kg/m³, g/cm³ and g/mL.

Density Calculator: Bulk Versus Material Density

One millilitre equals one cubic centimetre, so g/mL and g/cm³ have equal numerical values. Also, 1 g/cm³ equals 1,000 kg/m³.

Worked example

A sample with mass 540 g and volume 200 cm³ has density 2.70 g/cm³. The unit shows exactly which mass and volume scales were divided.

Measure volume correctly

Regular solids can use geometric dimensions. Irregular solids may use liquid displacement if the material does not dissolve, absorb liquid or trap bubbles.

Temperature and pressure matter

Materials expand or contract, so density can change with condition. Record temperature for liquids and gases; gas density is especially sensitive to both temperature and pressure.

Mixtures and porous objects

A bulk-density result may include air spaces and differs from the density of the solid material itself. Clearly define whether volume is external, displaced or particle volume.

Choose the correct volume method

Regular solids can use geometric dimensions, while irregular objects may require water displacement. For displacement, subtract the starting liquid volume from the final volume and account for meniscus reading and trapped air. Porous or soluble materials may absorb or react with the liquid, making that method unsuitable.

Bulk density versus material density

Material density describes the substance itself. Bulk density includes spaces between particles and therefore changes with packing, moisture and handling. Sand, grain and powder can have the same material composition but different bulk densities. Select the definition that matches the application instead of comparing unlike values.

Specific gravity and reference conditions

Specific gravity is a dimensionless ratio of a substance’s density to a reference density, commonly water for liquids and solids. Temperature matters because density changes as materials expand or contract. If a standard or product specification gives a reference temperature, measure and compare under that condition.

Worked unit check

A mass of 540 g occupying 200 cm³ has density 2.7 g/cm³. Because 1 g/cm³ equals 1,000 kg/m³, the same result is 2,700 kg/m³. Convert both numerator and denominator; changing only the mass unit creates an incorrect value.

Improve measurement reliability

  • Tare the container before measuring mass.
  • Use dimensions from the same unit system.
  • Read liquid volume at eye level.
  • Repeat measurements and investigate outliers.
  • Report temperature and moisture when relevant.

A calculated density can help identify a material or check consistency, but mixtures, coatings, voids and instrument uncertainty can make a reference-table match ambiguous. Safety-critical material verification requires appropriate laboratory methods.

Mixtures and temperature-sensitive liquids

A mixture’s density is not always the simple average of its components because volumes can contract or expand when substances combine. Liquids also respond to temperature, and dissolved air or suspended solids can affect readings. Use a property table or laboratory method for precise process control. The mass–volume equation remains correct, but the measured inputs must represent the actual mixture and conditions. Clean and dry the vessel between samples, and wait for bubbles to escape before recording volume.

See OpenStax University Physics Volume 1 for foundational treatment of mass, volume and density.

density calculator FAQs

Can density identify an unknown material?

It can narrow possibilities, but purity, temperature and measurement uncertainty prevent a definitive identification alone.

Why is water near 1 g/mL?

Water is close to that value under common conditions, but exact density varies with temperature.

Can volume be zero?

No in this formula; division by zero is undefined.

Use the Volume Calculator for geometric shapes and keep full precision until the final density is reported.

Tested & Reviewed by:

Arefin Bappy

Owner, Admin & Developer of AjaxCalculators
Individually tested against the calculation method described on this page.
Last reviewed: September 8, 2026
About the Admin · Editorial Policy

Sponsored Offers

Explore more from

Pressure Calculator

Calculate pressure, force, or area with common pressure-unit conversions and guidance about normal force, area, and gauge versus absolute pressure.

Force Calculator

Use our Force Calculator to find force from mass and acceleration with F = ma. Get instant results in newtons, kilonewtons, and pounds-force.

Ohm’s Law Resistance Calculator

Use our Ohm’s Law Resistance Calculator to find resistance from voltage and current. Get instant results in Ω, kΩ, or MΩ plus power and conductance.

Velocity Calculator

Calculate average velocity, displacement, or elapsed time with unit conversion and clear guidance about direction and the difference between speed and velocity.

Work Calculator

Calculate mechanical work using force, displacement, and the angle between them, with sign conventions, examples, and unit guidance.

Projectile Motion Calculator

Use our Projectile Motion Calculator to find time of flight, range, maximum height, time to peak, and velocity components from speed, angle, height, and gravity.

Wavelength → Energy Calculator

Use our Wavelength to Energy Calculator to find photon energy from wavelength in joules, eV, and kJ/mol using E = hc / λ with vacuum or custom wave speed.

Acceleration Calculator

Calculate average acceleration from initial velocity, final velocity, and elapsed time while keeping direction, signs, and units consistent.

Wavelength → Frequency Calculator

Use our Wavelength to Frequency Calculator to find frequency from wavelength with vacuum, air, water, or custom wave speed. Fast SI-based results online.