How to Calculate Density: Formula Guide, Unit Conversions, and Practice Problems
densitymeasurementchemistryphysicspractice problemsmiddle school

How to Calculate Density: Formula Guide, Unit Conversions, and Practice Problems

SScience Lesson Hub Editorial Team
2026-11-16
7 min read

Learn how to calculate density with formulas, unit conversions, lab measurement tips, and graded practice problems with explanations.

Density problems become manageable when you use the same sequence every time: identify mass and volume, choose compatible units, substitute into the formula, calculate, and check whether the result makes sense. This guide explains how to calculate density, convert common units, measure volume in a lab, and practice with problems that increase in difficulty.

Overview

Density describes how much mass is contained in a given amount of space. A small, heavy object can have a high density, while a larger, lighter object can have a low density. The standard formula is:

Density = Mass ÷ Volume

It is commonly written with symbols:

d = m ÷ V

  • d = density
  • m = mass
  • V = volume

To calculate density, divide the object’s mass by its volume. For example, an object with a mass of 60 grams and a volume of 20 cubic centimeters has a density of:

d = 60 g ÷ 20 cm³ = 3 g/cm³

Density is a derived measurement because it combines two measurements: mass and volume. The units must show both parts. Common density units include grams per cubic centimeter (g/cm³), grams per milliliter (g/mL), and kilograms per cubic meter (kg/m³).

Formula reference card

QuantityFormulaCommon units
Densityd = m ÷ Vg/cm³, g/mL, kg/m³
Massm = d × Vg, kg
VolumeV = m ÷ dcm³, mL, m³

A useful memory aid is the density triangle: place m above d and V. Cover the quantity you need to find. If density is covered, mass is divided by volume. If mass is covered, density is multiplied by volume. If volume is covered, mass is divided by density.

Mass, volume, and density units

MeasurementExamplesImportant relationship
Massmilligrams (mg), grams (g), kilograms (kg)1 kg = 1,000 g
Volume of liquidsmilliliters (mL), liters (L)1 L = 1,000 mL
Volume of solidscubic centimeters (cm³), cubic meters (m³)1 mL = 1 cm³
Densityg/mL, g/cm³, kg/m³Use matching mass and volume units

Because 1 mL and 1 cm³ represent equal volumes, a density reported in g/mL has the same numerical value as one reported in g/cm³. For example, 2.5 g/mL is equivalent to 2.5 g/cm³. Do not assume that this equivalence applies to every pair of volume units.

Checklist by scenario

Scenario 1: You know mass and volume

  1. Write down the mass and volume with their units.
  2. Check that the units are compatible. Grams pair naturally with milliliters or cubic centimeters.
  3. Use d = m ÷ V.
  4. Substitute the values before calculating.
  5. Include density units in the final answer.
  6. Ask whether the result is reasonable: a positive mass and volume should produce a positive density.

Example: A sample has a mass of 84 g and a volume of 12 cm³.

d = 84 g ÷ 12 cm³ = 7 g/cm³

Scenario 2: You need mass

When density and volume are given, rearrange the formula:

m = d × V

If a liquid has a density of 0.80 g/mL and a volume of 25 mL:

m = 0.80 g/mL × 25 mL = 20 g

The mL units cancel, leaving grams. Writing the units during the calculation helps show whether the setup is correct.

Scenario 3: You need volume

When mass and density are given, use:

V = m ÷ d

For a sample with a mass of 45 g and a density of 3 g/cm³:

V = 45 g ÷ 3 g/cm³ = 15 cm³

Scenario 4: The object has a regular shape

First calculate volume using the shape’s geometric formula, then use the density formula. For a rectangular block:

V = length × width × height

A block measuring 4 cm by 3 cm by 2 cm has a volume of 24 cm³. If its mass is 72 g, its density is:

d = 72 g ÷ 24 cm³ = 3 g/cm³

Scenario 5: The object has an irregular shape

Use water displacement. Record the starting water level, carefully submerge the object, and record the final level. The object’s volume is:

Volume of object = final water level − starting water level

For example, if water rises from 40 mL to 53 mL, the object’s volume is 13 mL, which is also 13 cm³. Measure mass separately with a balance, then divide mass by displaced volume.

Scenario 6: The units do not match

Convert before substituting. For example, do not divide kilograms directly by cubic centimeters if your expected answer is in g/cm³. Convert the mass to grams first, or convert the volume and choose a density unit that fits both measurements.

Common conversions include:

  • 1 kg = 1,000 g
  • 1 g = 1,000 mg
  • 1 L = 1,000 mL
  • 1 mL = 1 cm³

For cubic units, be careful: changing a length unit affects all three dimensions. For instance, converting cubic meters to cubic centimeters is not the same as multiplying by 100; the conversion factor must be cubed.

Short practice set

  1. Level 1: A rock has a mass of 30 g and a volume of 10 cm³. Find its density.
  2. Level 1: A liquid has a mass of 50 g and a volume of 100 mL. Find its density.
  3. Level 2: An object has a density of 4 g/cm³ and a volume of 18 cm³. Find its mass.
  4. Level 2: A sample has a mass of 96 g and a density of 8 g/cm³. Find its volume.
  5. Level 3: A rectangular metal block measures 5 cm × 2 cm × 3 cm and has a mass of 150 g. Find its volume and density.

Answers and explanations

  1. 3 g/cm³. Use 30 g ÷ 10 cm³.
  2. 0.50 g/mL. Use 50 g ÷ 100 mL. The zero before the decimal makes the value easier to read.
  3. 72 g. Use mass = density × volume: 4 g/cm³ × 18 cm³.
  4. 12 cm³. Use volume = mass ÷ density: 96 g ÷ 8 g/cm³.
  5. Volume = 30 cm³; density = 5 g/cm³. First calculate 5 × 2 × 3 = 30 cm³. Then calculate 150 g ÷ 30 cm³.

What to double-check

Measurement lab checklist

  • Check that the balance reads zero or has been appropriately tared before measuring mass.
  • Record the correct number of digits shown by the measuring tool without adding unsupported precision.
  • Read liquid volume at eye level and use the appropriate part of the liquid’s curved surface when instructed.
  • Remove bubbles from around a submerged object when possible; trapped air can make the measured volume too large.
  • Make sure the object is fully submerged without spilling water.
  • Write units beside every measurement and result.
  • Repeat a measurement if the reading seems inconsistent, then record observations rather than silently replacing data.

Also check significant figures or decimal-place instructions if your class uses them. Your final answer should not imply more precision than the measurements support.

Common mistakes

  • Multiplying instead of dividing: Density is mass divided by volume. Multiplication is used when solving for mass.
  • Leaving out units: “3” is incomplete. Write 3 g/cm³, 3 g/mL, or the appropriate unit.
  • Using length as volume: A ruler measurement is not automatically volume. For a rectangular solid, multiply length, width, and height.
  • Reading displacement backward: Subtract the starting level from the final level, not the reverse.
  • Mixing incompatible units: Convert grams and kilograms, or milliliters and liters, before calculating.
  • Confusing mass and weight: In school density calculations, mass is typically measured in grams or kilograms using a balance.
  • Rounding too early: Keep extra digits during intermediate steps and round at the end according to class instructions.
  • Skipping a reasonableness check: Re-read the problem and consider whether the size of the answer fits the measurements.

When to revisit

Return to this guide before a density quiz, a measurement lab, or any problem involving mass, volume, and unit conversions. Revisit the formula card whenever a worksheet changes the unknown: density uses division, mass uses multiplication, and volume uses division. Before a lab, review the measurement checklist and confirm which tools and units your class will use.

For a productive study routine, cover the answers to the practice set and solve each problem using the full sequence: list known values → convert units → choose the formula → substitute → calculate → label → check. Then create one new problem by changing the mass or volume and solve it again. If a later lesson combines density with graphs, chemical properties, or experimental error, pair this guide with a review of how to interpret science graphs or the physics formula and problem-solving guide.

Related Topics

#density#measurement#chemistry#physics#practice problems#middle school
S

Science Lesson Hub Editorial Team

Science Education Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.