FormatFlow

No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

Physics Tools · Updated October 21, 2026 · Reviewed by FormatFlow Editorial

Density Calculator

You can calculate density from mass and volume, or solve for mass or volume from the other two, with metric unit choices and the ρ = m ÷ V formula shown in full.

Runs in your browserFree · No sign-up · No watermark
Mass / volume → DensityRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

At a glance

Works with
Mass / volume → Density
Processing
In your browser
Price
Free, no account
Updated
October 21, 2026
All Physics Tools

About Density Calculator

Density compares mass with volume: ρ = m ÷ V. It is the reason a kilogram of feathers and a kilogram of lead look so different in size, and it is one of the most common laboratory calculations. The same equation rearranges to give mass from density and volume, or volume from mass and density, depending on what you already know.

Choose which quantity to solve for, enter the other two, and pick the units — kg/m³, g/cm³ or g/mL for density, kilograms or grams for mass, and cubic meters, liters or cubic centimeters for volume. Values are converted to SI before calculating and converted back for display, with the substituted formula shown.

What this tool does

The details that matter when you use Density Calculator for real work.
  • Solve in three directions

    Calculate density from mass and volume, mass from density and volume, or volume from mass and density.

  • Metric unit choices

    kg/m³, g/cm³ and g/mL for density; kilograms or grams for mass; cubic meters, liters or cubic centimeters for volume.

  • SI conversion first

    Every input is converted to kilograms, cubic meters or kilograms per cubic meter before the formula, so mixed units give the right answer.

  • Converted values shown

    The result lists the same density, mass or volume in the other supported units for a quick cross-check.

  • Formula and substitution

    ρ = m ÷ V and its rearrangements are printed with the converted values, so the arithmetic can be followed.

  • Zero checks

    A zero volume or zero density is explained inline instead of producing an undefined result.

How to use Density Calculator

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Choose what to calculate

    Select density, mass or volume depending on which value is missing from your problem.

  2. 02

    Enter the two known values

    Type the numbers and pick the matching units; commas and decimals are accepted.

  3. 03

    Pick the display units

    Choose the density, mass or volume unit you want for the answer; the calculation itself always runs in SI units.

  4. 04

    Read the result and conversions

    The headline is in your chosen unit, and the cards show the same quantity in the other supported units.

  5. 05

    Copy or reset

    Copy the solved value, or press Reset to clear the fields for another sample.

How this tool works

Works with
Mass / volume → Density
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled

Limitations worth knowing

  • Density changes with temperature and pressure; the entered density is treated as an exact value.
  • Assumes a uniform material, so porous, granular or layered objects may not have one true overall density.
  • Only metric units are supported (kg/m³, g/cm³, g/mL, kg, g, m³, L, cm³); imperial volume units are not included.

Privacy and file handling

Mass, volume and density values are processed entirely in your browser. Nothing is uploaded, stored or logged, and the calculator makes no network request while you use it.

Read the full privacy policy

Density Calculator FAQ

Short, direct answers to the questions people ask before using this tool.
How does this density calculator calculate density?
Density is mass per unit volume, calculated as ρ = m ÷ V. A block with a mass of 2 kilograms and a volume of 0.001 cubic meters has a density of 2,000 kg/m³. The calculator uses the same formula and shows the substituted values.
What is the difference between g/cm³ and g/mL?
They are numerically identical for ordinary materials, because one cubic centimeter equals one milliliter. A density of 2.7 g/cm³ is also 2.7 g/mL. The calculator offers both units so the answer can match the convention in a lab manual or datasheet.
How do I convert kg/m³ to g/cm³?
Divide by 1,000. One cubic meter holds one million cubic centimeters and one kilogram is 1,000 grams, so 2,700 kg/m³ is 2.7 g/cm³. The calculator performs this conversion when you change the density display unit.
Why must volume be greater than zero?
Density is mass divided by volume, so a volume of zero would require division by zero. A real object always occupies some space; if a measurement reads zero, the volume value is likely missing or entered in the wrong unit.
Does temperature affect density?
Yes. Most materials expand when heated, so their density falls, while water near freezing behaves unusually. The calculator treats the density you enter as an exact value; for precision work, use a density measured at the same temperature as your sample.
Can density be negative?
No, ordinary matter has a non-negative mass and a positive volume, so density is positive. The calculator rejects negative mass, volume and density values rather than returning a number that cannot describe a real material.
How do I find volume from mass and density?
Rearrange the formula to V = m ÷ ρ. Enter the mass and density in the Volume mode, and the calculator returns the volume with equivalents in cubic meters, liters and cubic centimeters. The same rearrangement works for finding mass from density and volume.
Which density units are used for gases and for solids?
Gases are usually quoted in kg/m³ because their densities are small at ordinary pressures, while solids and liquids are often quoted in g/cm³ or g/mL for compact numbers. Both are supported, and the result can be displayed in either.

Background reading

Format guides that explain the trade-offs behind Density Calculator.