Density / Mass / Volume Calculator

ρ = m / V • m = ρ × V • V = m / ρ
IQ
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.

Important Note : This Density Calculator provides educational estimates for density, mass, or volume using the standard relationship ρ = m ÷ V. Results depend on the accuracy of the values and units entered. Volume must be greater than zero when solving for density, and density must be greater than zero when solving for volume. The calculator uses average density and does not model density changes caused by temperature, pressure, moisture content, impurities, mixtures, compression, expansion, porosity, or material variation. For gases, liquids at changing temperatures, laboratory work, engineering design, shipping, buoyancy, or safety-critical calculations, verify the result with measured data, official material specifications, or an appropriate professional method.

Use this Density Calculator to solve for density, mass, or volume using the standard relationship between the three. It is useful for physics, chemistry, material comparison, homework, lab work, and everyday unit conversion when you need to work with units such as kg, g, lb, L, mL, cm³, m³, ft³, and related density units.

Reviewed by: AjaxCalculators Editorial Team
Last updated: May 1, 2026
Method source: Standard density formula using mass divided by volume, with reverse formulas for mass and volume and common unit conversions based on SI mass and volume relationships
Editorial standards: AjaxCalculators Editorial Policy

What This Density Calculator Calculates

This calculator can solve for any one of the three core density variables:

  • Density (ρ): how much mass is contained in a given volume
  • Mass (m): how much matter is present
  • Volume (V): how much space the substance or object occupies

You choose what you want to solve for, then enter the other two known values. The calculator applies the correct formula, handles unit conversion, and returns the result in a practical output unit.

This makes the calculator useful for:

  • finding density from mass and volume
  • finding mass from density and volume
  • finding volume from mass and density
  • comparing materials by density
  • converting between common mass, volume, and density units

What Density Means

Density tells you how much mass is packed into a certain amount of space. A substance with high density has more mass in the same volume. A substance with low density has less mass in the same volume.

For example, a small piece of metal can feel heavier than a larger piece of foam because the metal has much more mass packed into each unit of volume. Density is one reason different materials sink, float, feel heavy, or require different storage space.

The standard physics definition is:

Density = mass / volume

How the Density Calculator Works

The main density formula is:

ρ = m / V

In this formula:

  • ρ = density
  • m = mass
  • V = volume

From the same relationship, the calculator can rearrange the formula to solve for mass or volume:

m = ρ × V

V = m / ρ

This means:

  • If you know mass and volume, you can calculate density.
  • If you know density and volume, you can calculate mass.
  • If you know density and mass, you can calculate volume.

Formula Summary

What You Want to Find Formula Known Values Needed
Density ρ = m / V Mass and volume
Mass m = ρ × V Density and volume
Volume V = m / ρ Mass and density

Common Density Units

Density can be written in many unit formats because it combines a mass unit with a volume unit. In SI units, mass density is commonly expressed as kg/m³.

Density Unit Meaning Common Use
kg/m³ kilograms per cubic meter SI physics, engineering, fluid density
g/cm³ grams per cubic centimeter chemistry, solids, material comparison
g/mL grams per milliliter liquids, lab measurements
kg/L kilograms per liter liquids, bulk materials
lb/ft³ pounds per cubic foot imperial material and construction examples
lb/in³ pounds per cubic inch dense materials, metals, small-volume imperial calculations

Useful Unit Conversion Relationships

When checking density calculations manually, these conversion relationships are often useful:

Conversion Relationship Example
kg/m³ to g/cm³ 1 kg/m³ = 0.001 g/cm³ 1,250 kg/m³ = 1.25 g/cm³
g/cm³ to kg/m³ 1 g/cm³ = 1,000 kg/m³ 1.25 g/cm³ = 1,250 kg/m³
g/mL to g/cm³ 1 g/mL = 1 g/cm³ 1.00 g/mL = 1.00 g/cm³
L to m³ 1 L = 0.001 m³ 5 L = 0.005 m³
mL to cm³ 1 mL = 1 cm³ 250 mL = 250 cm³
kg/m³ to lb/ft³ 1 kg/m³ ≈ 0.062428 lb/ft³ 1,250 kg/m³ ≈ 78.04 lb/ft³

Mass and Volume Unit Notes

Density calculations are only reliable when the mass and volume units are handled consistently. This calculator helps with unit conversion, but it is still important to select the correct unit for each input.

Measurement Type Common Units Important Reminder
Mass kg, g, mg, lb, oz Mass is the amount of matter, not the same as volume
Volume m³, L, mL, cm³, ft³, in³ Volume is the amount of space occupied
Density kg/m³, g/cm³, g/mL, lb/ft³ Density combines mass and volume into one ratio

Worked Example: Find Density from Mass and Volume

Suppose an object has a mass of 2.5 kg and a volume of 0.002 m³.

Step 1: Identify the known values
Mass, m = 2.5 kg
Volume, V = 0.002 m³

Step 2: Use the density formula
ρ = m / V

Step 3: Substitute the values
ρ = 2.5 / 0.002

Step 4: Calculate
ρ = 1,250 kg/m³

Result: The object’s density is 1,250 kg/m³.

Worked Example: Convert 1,250 kg/m³ to Other Density Units

Now convert 1,250 kg/m³ into g/cm³ and lb/ft³.

Output Unit Calculation Result
g/cm³ 1,250 × 0.001 1.25 g/cm³
lb/ft³ 1,250 × 0.062428 78.04 lb/ft³

So 1,250 kg/m³ is the same as 1.25 g/cm³ and approximately 78.04 lb/ft³.

Worked Example: Find Mass from Density and Volume

Suppose a liquid has a density of 1.2 kg/L and a volume of 3 L.

Step 1: Use the mass formula
m = ρ × V

Step 2: Substitute the values
m = 1.2 × 3

Step 3: Calculate
m = 3.6 kg

Result: A 3 L sample with a density of 1.2 kg/L has a mass of 3.6 kg.

Worked Example: Find Volume from Mass and Density

Suppose a material has a mass of 500 g and a density of 2.5 g/cm³.

Step 1: Use the volume formula
V = m / ρ

Step 2: Substitute the values
V = 500 / 2.5

Step 3: Calculate
V = 200 cm³

Result: A 500 g sample with a density of 2.5 g/cm³ has a volume of 200 cm³.

Worked Example: Compare Two Materials

Suppose two blocks have the same volume of 100 cm³, but different masses:

Material Mass Volume Density
Block A 80 g 100 cm³ 80 / 100 = 0.8 g/cm³
Block B 270 g 100 cm³ 270 / 100 = 2.7 g/cm³

Block B is denser because it has more mass packed into the same volume. This type of comparison is useful for identifying and comparing materials.

How to Use This Density Calculator

  1. Choose whether you want to solve for density, mass, or volume.
  2. Enter the two known values.
  3. Select the correct unit for each input.
  4. Click Calculate if the tool requires it.
  5. Review the result and output unit.
  6. Use the converted result for homework, lab work, material comparison, or a larger calculation.

For best results, double-check that the mass and volume units match your original data. A common mistake is entering milliliters as liters or grams as kilograms, which can change the result by a factor of 1,000.

How to Interpret the Result

Density tells you how much mass is contained in a given volume. A higher density means more mass in the same amount of space. A lower density means less mass in the same amount of space.

Result Pattern Meaning Example Interpretation
Higher density More mass per unit volume Metals are often denser than wood or foam
Lower density Less mass per unit volume Air, foam, and many plastics have relatively low density
Density near 1 g/cm³ Similar to water under common conditions Useful comparison for liquids and buoyancy examples
Density greater than a fluid May tend to sink in that fluid if other effects are ignored A dense solid may sink in water
Density less than a fluid May tend to float in that fluid if other effects are ignored Many oils float on water because they are less dense

Average Density vs Local Density

This calculator uses average density. Average density treats the whole object or sample as if its mass is evenly distributed through its volume.

Density Type Meaning Example
Average density Total mass divided by total volume A whole object’s mass divided by its overall volume
Local density Density at a specific point or region A layered object may be denser in one part than another
Bulk density Mass divided by bulk volume, often including pores or gaps Powders, grains, soil, packed materials

If the material is uniform, average density may be enough. If the material is layered, porous, compressed, mixed, or irregular, more detailed measurement may be needed.

Density and Buoyancy

Density is closely related to whether something tends to sink or float in a fluid. As a simplified rule, an object that is less dense than the fluid around it tends to float, while an object that is denser than the fluid tends to sink.

Object Compared With Fluid Likely Behavior Simple Example
Object density less than fluid density Object tends to float Some wood floats in water
Object density greater than fluid density Object tends to sink A solid steel block sinks in water
Object density close to fluid density Object may be nearly suspended Some objects sink or float slowly depending on small differences

Real buoyancy also depends on displaced fluid, shape, trapped air, fluid density, and other effects. This calculator gives the density value, not a full buoyancy analysis.

Density of Common Materials: General Reference Ranges

The following values are approximate reference examples. Actual density can vary by temperature, composition, purity, moisture, and manufacturing method.

Material Approximate Density Common Unit
Air near room conditions about 1.2 kg/m³
Water near room temperature about 1.0 g/cm³
Vegetable oil about 0.9 g/cm³
Ice about 0.92 g/cm³
Aluminum about 2.7 g/cm³
Iron or steel about 7.8 g/cm³

Use these only as broad comparisons. For real design, shipping, lab, or manufacturing work, use the exact material specification or measured sample data.

Density in Liquids and Gases

Density can change depending on conditions. This is especially important for liquids and gases.

Substance Type What Can Affect Density? Why It Matters
Solids composition, porosity, temperature, manufacturing method Different alloys, woods, plastics, and composites can vary
Liquids temperature, dissolved substances, purity, mixture ratio Warm liquids may have different density than cold liquids
Gases temperature, pressure, humidity, composition Gas density can change significantly with pressure and temperature

If you are working with gases or temperature-sensitive liquids, a simple fixed-density calculation may not be enough. You may need a thermodynamic model, an ideal gas calculation, or measured data at the correct conditions.

Density, Specific Gravity, and Relative Density

Specific gravity, also called relative density in many contexts, compares a substance’s density with the density of a reference substance. For liquids and solids, the reference is often water.

A simplified relationship is:

Specific gravity ≈ substance density / water density

For example, if a liquid has a density of 0.8 g/cm³ and water is approximated as 1.0 g/cm³, then:

Specific gravity ≈ 0.8 / 1.0 = 0.8

This calculator focuses on density, mass, and volume. If you need specific gravity, make sure you use the correct reference density and temperature conditions.

When This Calculator Is Useful

This calculator is useful whenever you know two of the three density variables and need to find the third.

  • Physics homework using ρ = m / V
  • Chemistry lab calculations
  • Material comparison and identification
  • Mass estimates from known density and volume
  • Volume estimates from known mass and density
  • Unit conversion between kg/m³, g/cm³, g/mL, and lb/ft³
  • Checking whether a calculated result is reasonable
  • Understanding why some objects sink or float

When You May Need More Than This Calculator

A simple density calculator may not be enough when density changes with conditions or when the sample is not uniform.

Use a more detailed method when working with:

  • gases at changing temperature or pressure
  • liquids with temperature-dependent density
  • mixtures with changing composition
  • porous materials or powders
  • bulk density of grains, soil, or packed solids
  • compressible materials
  • irregular objects with uncertain volume
  • precise laboratory measurements
  • engineering design or safety-critical material selection
  • shipping, load, or buoyancy calculations requiring certified values

Common Mistakes to Avoid

  • Using the wrong formula: density is mass divided by volume, while mass and volume use rearranged formulas.
  • Entering volume as zero: volume must be greater than zero when calculating density.
  • Entering density as zero: density must be greater than zero when calculating volume.
  • Mixing mL and L: 1 L equals 1,000 mL, so this mistake can change the result by a factor of 1,000.
  • Mixing cm³ and m³: 1 m³ equals 1,000,000 cm³.
  • Confusing mass and weight: density uses mass, not force or weight.
  • Ignoring temperature and pressure: gases and some liquids can change density under different conditions.
  • Using a general density table for a specific material: alloys, mixtures, moisture, and purity can change real density.
  • Assuming average density applies everywhere: layered, porous, or non-uniform objects may have different local densities.

Important Assumptions and Limitations

  • This calculator uses the standard density relationship ρ = m / V.
  • It calculates average density, not a detailed density distribution.
  • Volume must be greater than zero when used as an input for density.
  • Density must be greater than zero when used as an input for volume.
  • Negative mass, negative volume, and negative density are not meaningful for normal use in this calculator.
  • Results are only as accurate as the input values and units entered.
  • The calculator does not correct for temperature, pressure, humidity, composition, porosity, or compression.
  • The calculator does not replace precise laboratory measurement or certified material data.
  • For gases, pressure and temperature can strongly affect density and may require a gas-law model.

Practical Uses of a Density Calculator

  • Calculate density from measured mass and volume
  • Estimate mass from density and volume
  • Estimate volume from mass and density
  • Compare the density of solids, liquids, and gases
  • Convert between density units
  • Support physics and chemistry homework
  • Check lab measurements for reasonableness
  • Understand material behavior, floating, sinking, and compactness
  • Estimate shipping, storage, or material quantities when approximate density is known

References

  1. OpenStax College Physics 2e: Density
  2. OpenStax University Physics Volume 1: Fluids, Density, and Pressure
  3. NIST Special Publication 811: Guide for the Use of the International System of Units
  4. NIST: SI Units — Volume
  5. BIPM SI Brochure: The International System of Units

Related Calculators

Frequently Asked Questions

What is the formula for density?

The density formula is ρ = m / V. This means density equals mass divided by volume.

How do I calculate mass from density and volume?

Use the rearranged formula m = ρ × V. Multiply density by volume to find mass.

How do I calculate volume from mass and density?

Use the formula V = m / ρ. Divide mass by density to find volume.

What is the SI unit of density?

The SI unit of mass density is kilogram per cubic meter, written as kg/m³.

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

Yes, for volume conversion purposes, 1 cm³ = 1 mL, so 1 g/cm³ = 1 g/mL.

How do I convert g/cm³ to kg/m³?

Multiply by 1,000. For example, 1.25 g/cm³ = 1,250 kg/m³.

Can density be zero?

For normal physical materials, density is greater than zero. This calculator does not use zero or negative density for ordinary density, mass, or volume calculations.

Why does temperature matter for density?

Temperature can change volume, especially for gases and some liquids. If volume changes while mass stays the same, density changes too.

Does this calculator work for gases?

It can calculate a simple density relationship if mass and volume are known, but real gas density often depends strongly on temperature and pressure. For gas-law problems, use a gas-law method or measured data at the correct conditions.

Is density the same as weight?

No. Density is mass per unit volume. Weight is a force caused by gravity. This calculator uses mass, not weight force.

Disclaimer: This Density Calculator provides educational estimates for density, mass, or volume using the standard relationship ρ = m ÷ V. Results depend on the accuracy of the values and units entered. Volume must be greater than zero when solving for density, and density must be greater than zero when solving for volume. The calculator uses average density and does not model density changes caused by temperature, pressure, moisture content, impurities, mixtures, compression, expansion, porosity, or material variation. For gases, liquids at changing temperatures, laboratory work, engineering design, shipping, buoyancy, or safety-critical calculations, verify the result with measured data, official material specifications, or an appropriate professional method.

More of our calculators...

Pressure Calculator

Use our Pressure Calculator to find pressure from force and area. Get instant results in Pa, kPa, bar, psi, and atm with built-in unit conversion.

Kinetic Energy Calculator

Use our Kinetic Energy Calculator to find KE from mass and velocity. Get instant results in joules, kJ, Wh, kWh, and ft·lbf with unit conversion.

Potential Energy Calculator

Use our Potential Energy Calculator to find gravitational or elastic potential energy using mgh or ½kx². Get instant results in J, kJ, Wh, kWh, and ft·lbf.

Work Calculator

Use our Work Calculator to find work done from force, distance, and angle or from mass, gravity, and height. Get results in J, kJ, Wh, kWh, and ft·lbf.

Work and Power Calculator

Use our Work and Power Calculator to find work from force and distance or lift, then calculate power in watts, kW, and horsepower from time.

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.

Free Fall Calculator

Use our Free Fall Calculator to find time, distance, final velocity, and average speed from height or time with gravity presets and unit conversion.

Gravitational Force Calculator

Use our Gravitational Force Calculator to find the force between two masses with Newton’s law of gravitation. Get results in newtons, lbf, and acceleration on each mass.

Ohm’s Law Current Calculator

Use our Ohm’s Law Current Calculator to find current from voltage and resistance. Get instant results in A, mA, or µA plus power and conductance.