Skip to main content

Science & lab

Density Calculator: Mass, Volume & Unit Conversion

This calculator solves for density, mass, or volume from the other two quantities using ρ = m/V. It converts inputs through kilograms and cubic meters so you can mix grams with milliliters or pounds with gallons on one line. You can pick a material preset or read quick conversions in the results panel. It does not adjust density for temperature or pressure unless you change the values yourself.

By Jeff Beem

Updated

Settings

Common Materials

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

Inputs

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

Density

Quick conversions

g/cm³1
kg/m³1,000
lb/ft³62.4278
lb/in³0.0361

How to use this calculator

Choose Calculate for under Settings (Density, Mass, or Volume), enter the other two values with units on the Inputs rows, and read the Results panel and Quick conversions table. A Common Materials preset fills density in Mass/Volume mode or shows a Reference line when you solve for Density. This tool applies ρ = m/V with conversion through kg and m³; mass and volume must be greater than zero where the formula requires it. Preset densities are standard-condition references, not temperature-corrected.

Reading your density results

The segmented control under Settings picks which quantity is solved; the dark panel shows that value and quick conversions in common units.

Example: 100 g and 100 mL → density

By default (Calculate for: Density): 100 g and 100 mL1 g/cm³ in the result field (also 1000 kg/m³ in Quick conversions). Same ratio as water near room temperature, which is a useful lab sanity check.

Calculate for (Settings)

The Calculate for control sets which field is read-only: Density, Mass, or Volume. Switching modes clears only the field you are solving for and moves the editable inputs (mass/density/volume pairs) on the left.

Presets, reference line, and quick conversions

Common Materials auto-fills density in Mass/Volume modes or shows a Reference: chip when you solve for Density. The results panel lists four alternate units (e.g. g/cm³, kg/m³, lb/ft³, lb/in³ for density). Decimal places under Settings controls rounding in the headline result and conversion rows.

Density calculator: mass, volume, and unit conversion

This page solves ρ = m/V for density, mass, or volume when you supply the other two. It does not model temperature or pressure effects on preset values.

What this calculator does

Enter two of density (ρ), mass (m), and volume (V); the tool computes the third with unit conversion through SI bases (kg, m³, kg/m³). Material presets supply reference densities at standard conditions.

How the math works

Density is mass per unit volume:
ρ=mV,m=ρV,V=mρ\rho = \frac{m}{V}, \quad m = \rho \, V, \quad V = \frac{m}{\rho}
Each input converts to SI before the formula runs, then converts back to your chosen display unit on the solved field. Volume must be greater than zero when solving for density; otherwise ρ = m/V is undefined and the result stays blank.

Limits of the model

Preset densities are fixed reference values, not temperature-corrected measurements. There is no buoyancy, fluid mixing, or ideal-gas treatment. This page expects volume as a number you already measured; for geometric volumes (sphere, cylinder, etc.), use the Volume Calculator first, then return with mass and volume. For mass from density alone on other shapes, see the Mass Calculator.

Density Calculator FAQ

How do I calculate density from mass and volume on this page?

Choose Calculate for: Density, enter mass and volume with units, and read the read-only Density (ρ) result plus the Quick conversions table. The relationship is ρ=m/V\rho = m/V. Values convert through kg and m³ before the formula runs.

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

Switch to Calculate for: Mass and use m=ρ×Vm = \rho \times V. At 2.7 g/cm³ and 10 cm³, mass is 27 g. A material preset can fill density in kg/m³ for you.

How do I find volume from density and mass?

Choose Calculate for: Volume and apply V=m/ρV = m/\rho. For 193 g of gold at 19.3 g/cm³, volume is about 10 cm³.

Can I mix units like grams and gallons?

Yes. Each field has its own unit menu; the tool converts to kg and m³ internally, then displays the result in the unit you pick on the solved quantity. You do not need manual conversion factors.

What do the Common Materials presets do?

In Mass or Volume mode, a preset fills the density field in kg/m³ (water 1000, aluminum 2700, gold 19,300, air 1.225, and others on the list). In Density mode, it shows a Reference: line in the results panel for comparison only; it does not change your calculated density.

Why is the result blank?

Mass and volume must both be greater than zero in density mode (and the same rule applies to the pair you enter in other modes). Zero, empty, or non-numeric inputs leave the result field empty until the numbers are valid.

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: July 2026Free Online Utility Tools