Skip to main content

Science & lab

Density Calculator: Mass, Volume & Unit Conversion

Calculate density from mass and volume, or solve for mass or volume. ρ = m/V. Mix units: grams, pounds, liters, gallons. Material presets.

Settings

Common Materials

When solving for density, selecting a material shows its reference value for comparison.

Inputs

gram/cubic centimeter [g/cm³]
Results
1gram/cubic centimeter [g/cm³]

Density

Quick conversions

gram/cubic centimeter [g/cm³]1
kilogram/cubic meter [kg/m³]1,000
pound/cubic foot [lb/ft³]62.4278
pound/cubic inch [lb/in³]0.0361

Density: The ρ = m/V Relationship

Density, mass, and volume are linked by one equation. Solve for any one from the other two. The calculator handles unit conversion automatically, no need to match grams with milliliters before you start.

Core Concepts

The Density Triangle

Mass on top, density and volume on the bottom. Cover the variable you need: side-by-side means multiply (e.g. ρ×V=m), one over the other means divide (M/V=ρ or M/ρ=V).

Solve for Any Variable

Choose Density, Mass, or Volume in the Calculate For toggle. The two input fields switch to match, you always enter the known values and read the result.

Mixed Units Work

Enter mass in grams and volume in liters if that's what you have. The tool converts to SI, computes, then displays in your chosen output unit.

Material Presets

Select Water, Gold, Steel, or others to auto-fill density. When solving for density, a selected material shows its reference value for comparison. Adjust decimal places as needed.

Density Calculator: Mass, Volume & Unit Conversion

Solve for density, mass, or volume using ρ = m/V. Mix units, grams, pounds, liters, gallons. Reference densities for common materials. Free tool for homework, lab work, and quick checks.

What This Calculator Does

This density calculator solves the fundamental relationship between density, mass, and volume. Given any two of the three variables, it computes the third with automatic unit conversion across metric and imperial systems. Mass units include grams, kilograms, pounds, and ounces; volume units span liters, milliliters, gallons, and cubic meters; density outputs in g/cm³, kg/m³, lb/ft³, and more. Material presets for common substances—water, gold, aluminum, steel, air—provide reference densities for quick comparison. The tool serves students tackling homework, lab technicians verifying measurements, engineers checking material properties, and anyone who needs a reliable density-mass-volume calculation without manual unit conversion. It does not account for temperature or pressure effects on density beyond the standard conditions listed for each preset material.

How the Math Works

Density is defined as mass per unit volume. The core formula and its rearrangements are:
ρ=mV,m=ρV,V=mρ\rho = \frac{m}{V}, \quad m = \rho \, V, \quad V = \frac{m}{\rho}
  • ρ (Density):
    Mass per unit volume, typically in kg/m³ or g/cm³
  • m (Mass):
    Amount of matter in the object, in kg, g, lb, or oz
  • V (Volume):
    Space the object occupies, in m³, cm³, L, mL, gal, or ft³

Worked example: An aluminum block has a mass of 540 g and occupies 200 cm³.

  • ρ = 540 g ÷ 200 cm³ = 2.70 g/cm³
  • Convert to SI: 2.70 × 1 000 = 2 700 kg/m³
  • This matches the reference density for aluminum, confirming the measurement.

Edge case: Volume must be greater than zero; dividing by zero is undefined and the calculator will prompt you to correct the input.

How to Use This Calculator

Start by selecting what you want to solve for—Density, Mass, or Volume—using the “Calculate For” toggle at the top. The input fields update to show the two values you need to provide. Enter each value and pick its unit from the dropdown; the calculator handles all conversions internally. Optionally, select a material preset (water, gold, steel, etc.) to auto-fill the density field with a standard reference value. The result appears instantly in your chosen output unit. Adjust the decimal-places control if you need more or fewer significant figures. If you switch modes or change a material, previously entered values are preserved so you can experiment without re-typing.

How to Calculate Density

Density ρ\rho is mass per unit volume: ρ=m/V\rho = m/V. In SI units that's kg/m³. To find mass from density and volume: m=ρVm = \rho V. To find volume from mass and density: V=m/ρV = m/\rho. A useful shortcut: the density triangle, place mass above, density and volume below. Cover the unknown; if the remaining pair sit side-by-side, multiply; if one stacks above the other, divide.

Unit Conversion and Dimensional Analysis

Real problems often mix units: mass in grams, volume in gallons. The calculator converts everything to kg and m³, does the math, then shows the result in your chosen unit. Mass: kg, g, mg, lb, oz. Volume: m³, cm³, mm³, L, mL, ft³, in³, gallon. Density: kg/m³, g/cm³, g/mL, lb/ft³, lb/in³. You can enter 50 g and 0.1 L and get density in lb/ft³ if you want.

Common Material Densities

  • Water (4°C):
    1000 kg/m³ (1 g/cm³). The usual reference.
  • Ice:
    917 kg/m³, less dense than liquid water, which is why ice floats.
  • Gold:
    19,300 kg/m³. One of the densest common metals.
  • Aluminum:
    2,700 kg/m³. Much lighter than steel (7,850 kg/m³).
  • Air:
    1.225 kg/m³ at sea level, 15°C. Drops with altitude.

Density Calculator FAQ

How do I calculate density from mass and volume?

Density is mass divided by volume: ρ=m/V\rho = m/V. For 100 g of water in 100 mL, that's 1 g/mL (equivalent to 1000 kg/m³). Choose "Calculate For: Density" and enter mass and volume in any supported units.

How do I find mass when I know density and volume?

Use m=ρ×Vm = \rho \times V. With density 2.7 g/cm³ and volume 10 cm³, you get 27 g. Select "Calculate For: Mass" and plug in density and volume.

How do I find volume from density and mass?

Volume equals mass over density: V=m/ρV = m/\rho. For 193 g of gold (ρ = 19.3 g/cm³), that's about 10 cm³. Pick "Calculate For: Volume" to solve.

Can I mix units like grams and gallons?

Yes. Everything converts to base SI (kg, m³) behind the scenes, then back to your output unit. Grams plus gallons, pounds plus liters, no manual conversion needed.

What materials are in the preset list?

Water, ice, aluminum, gold, steel, copper, lead, mercury, air, and olive oil. Each fills the density field in kg/m³. Values are for standard conditions (e.g., water at 4°C).

Science & Lab Reference Note

Educational Use: These tools use standard scientific formulas and accepted constants. Results are intended for learning, homework, and general reference, not for regulated lab work, industrial processes, or clinical applications.

Verification Recommended: Real-world conditions (purity, temperature, pressure, humidity) affect outcomes. For research, manufacturing, or safety-critical work, confirm with a qualified professional or calibrated lab equipment.

Not Professional Advice: This site does not provide chemical, medical, or engineering advice. All calculations run locally in your browser; no data is stored or transmitted.

© 2026 CalcRegistry Reference Last Logic Update: May 2026Free Online Utility Tools