Volume to Density Calculator - Mass, Volume and Density Units

Use this volume to density calculator to convert mass and volume into density in your preferred unit, or flip the solve mode and find the mass from a known density and volume.

Updated: June 19, 2026 • Free Tool

Volume to Density Calculator

Pick density to compute density from mass and volume, or pick mass to compute mass from density and volume.

Enter the mass of the sample. Negative entries are clamped to zero.

Pick the unit of the mass value. The calculator converts to kilograms internally.

Enter the volume occupied by the sample. Negative entries are clamped to zero.

Pick the unit of the volume value. The calculator converts to cubic meters internally.

Pick the unit used to display the density result and to interpret a density input in the solve-for-mass mode.

Only used when Solve For is set to Mass. Enter the density in the chosen density unit.

Results

Density
0
Mass (Converted) 0
Volume (Converted) 0
Mass From Density x Volume 0kg

What Is Volume to Density Calculator?

A volume to density calculator is a physics and chemistry tool that turns a sample's mass and the volume it occupies into a density value in any common mass-per-volume unit. Enter a mass, a volume, and the units of each, and the calculator instantly returns the density in kilograms per cubic meter, grams per cubic centimeter, grams per milliliter, pounds per cubic foot, or pounds per cubic inch, with a built-in alternate mode that solves for mass when density and volume are already known.

  • Lab and Classroom Work: Calculate the density of a liquid, powder, or solid sample during chemistry, physics, and engineering labs without redoing the unit math by hand.
  • Material Identification: Compare the measured density of an unknown sample against reference values for water, mercury, aluminum, or steel to identify or classify the material.
  • Cooking and Brewing Conversions: Convert between mass and volume for ingredients using published densities, especially when a recipe lists grams but you only have measuring cups.
  • Shipping and Freight Estimates: Estimate the mass of a packaged liquid or gas shipment from its measured volume and the published density of the cargo.

Density is one of the few physical properties that lets you convert between mass and volume in a single step, which is why density = mass / volume appears throughout chemistry, physics, and industrial process control.

Our density calculator uses the same formula and supports solve-for-any-variable mode if you already have a target density and want to confirm the corresponding mass or volume.

How Volume to Density Calculator Works

The volume to density calculator converts your mass and volume into SI units (kilograms and cubic meters), divides them to obtain density in kg/m^3, and then re-expresses the result in whichever density unit you selected. The alternate solve-for-mass mode reuses the same form to compute mass from a density and a volume, which is exactly the rearrangement of the same formula.

density = mass / volume mass = density x volume volume = mass / density
  • m: Mass of the sample in kilograms after the calculator converts from grams, pounds, or ounces.
  • V: Volume occupied by the sample in cubic meters after the calculator converts from liters, milliliters, cubic centimeters, cubic inches, cubic feet, US fluid ounces, or US gallons.
  • rho: Density of the material in kilograms per cubic meter (SI). The calculator displays rho in the user-selected output unit.
  • density unit: The unit chosen for the density display and for the density input when solve-for-mass mode is selected.

If you only have a density and a volume and need to find a mass, switch the Solve For dropdown to Mass. The calculator multiplies density and volume in their displayed units after first normalizing them to kg/m^3 and m^3.

1 L of water at room temperature

Mass = 1 kg, Volume = 1 L

1. Convert mass to kg: 1 kg = 1 kg. 2. Convert volume to m^3: 1 L = 0.001 m^3. 3. Divide: rho = 1 / 0.001 = 1000 kg/m^3. 4. In g/cm^3: 1000 x 0.001 = 1 g/cm^3. 5. In lb/ft^3: 1000 / 16.0184634 = 62.428 lb/ft^3.

Density = 1000 kg/m^3 (1 g/cm^3, 62.428 lb/ft^3).

This matches the documented density of liquid water near 4 degC, so 1 kg of water really does fit in 1 L and the calculator is consistent with published reference data.

1 lb of material at 1 ft^3

Mass = 1 lb, Volume = 1 ft^3

1. Convert mass to kg: 1 lb x 0.45359237 = 0.45359237 kg. 2. Convert volume to m^3: 1 ft^3 = 0.028316846592 m^3. 3. Divide: rho = 0.45359237 / 0.028316846592 = 16.0185 kg/m^3.

Density = 16.0185 kg/m^3 (0.0160 g/cm^3, 1.0000 lb/ft^3).

This is exactly the unit conversion factor between lb/ft^3 and kg/m^3 published by NIST, which is a useful cross-check that the calculator is handling the unit conversions correctly.

According to National Institute of Standards and Technology (NIST), density is defined as mass per unit volume and is typically expressed in SI as kilograms per cubic meter, with 1 lb equal to 0.45359237 kg and 1 US gallon equal to 3.785411784 L.

When you already know the mass in kilograms and the volume in liters and want the density, the kg to liter calculator covers the unit-only side of the same family of problems.

Key Concepts Explained

Density, mass, and volume are tightly linked, but each has its own units, conventions, and reference values that are worth keeping straight.

Density (rho)

Mass per unit volume. In SI the unit is kg/m^3, and 1 g/cm^3 equals 1000 kg/m^3 because 1 cm^3 equals 1 mL and 1 kg equals 1000 g.

Mass (m)

The amount of matter in a sample, measured in grams or kilograms in metric units and pounds or ounces in US customary units. 1 lb equals 453.59237 g exactly.

Volume (V)

The three-dimensional space occupied by the sample, measured in liters or cubic meters in metric units and in cubic feet, cubic inches, US gallons, or US fluid ounces. 1 L equals 0.001 m^3 and 1 US gallon equals 3.785411784 L.

Intensive vs Extensive Properties

Density is an intensive property: a small gold coin and a large gold bar both have the same density near 19,320 kg/m^3 because mass and volume scale together.

The mass, volume, and density trio also shows up in shipping, brewing, and HVAC work, so the same logic applies whether you are weighing a fish, dosing a chemistry reaction, or sizing a refrigerant line.

For pure mass-to-volume unit work in cooking contexts, the mL to kg calculator and the grams-to-cups converter apply the same logic with kitchen-friendly units.

How to Use This Calculator

Use the volume to density calculator in six short steps, switching between solve-for-density and solve-for-mass without re-entering the units.

  1. 1 Pick the Solve For Mode: Choose Density from mass and volume, or Mass from density and volume to rearrange the same formula.
  2. 2 Enter the Mass: Type the sample mass, then pick kilograms, grams, pounds, or ounces.
  3. 3 Enter the Volume: Type the sample volume, then pick liters, milliliters, cubic centimeters, cubic meters, cubic inches, cubic feet, US fluid ounces, or US gallons.
  4. 4 Pick the Density Output Unit: Choose kg/m^3, g/cm^3, g/mL, lb/ft^3, or lb/in^3.
  5. 5 Read the Density, Mass, and Volume Lines: Watch the density result, converted mass, and converted volume update in real time, plus a sanity-check mass computed as density times volume.
  6. 6 Reset to Defaults: Press Reset to return to 1 kg and 1 L with kg/m^3 output, which is the standard water reference for spot-checking the calculator.

Weigh a sealed sample of cooking oil at 920 g and pour it into a 1 L measuring cup. With Solve For = Density, enter 920 g and 1 L, and switch the density output to g/cm^3. The calculator returns 0.92 g/cm^3 (920 kg/m^3), which lines up with the published density of common vegetable oils and confirms that the bottle really does hold 1 L of oil.

To translate that 920 g into a more familiar kitchen measure, pair this result with the grams to cups converter and the ml-to-kg calculator.

Benefits of Using This Calculator

A volume to density calculator removes the algebra from mass, volume, and density work in any unit, and supports two solve modes on one form.

  • Two Solve Modes, One Form: Compute density from mass and volume, or compute mass from density and volume, without reloading the page or re-entering the unit selectors.
  • Five Density Output Units: Display the density result in kg/m^3, g/cm^3, g/mL, lb/ft^3, or lb/in^3 to match the conventions of the lab, textbook, or industry you are working in.
  • Eight Volume Units: Enter the volume in liters, milliliters, cubic centimeters, cubic meters, cubic inches, cubic feet, US fluid ounces, or US gallons without doing the conversion by hand.
  • Four Mass Units: Enter the mass in kilograms, grams, pounds, or ounces, with the calculator handling the conversion to kilograms internally for the density ratio.
  • Built-in Sanity Check: A separate Mass From Density x Volume row reports the mass that the displayed density and volume would produce, so you can immediately verify the units line up.

Because density ties mass and volume together, the same toolchain is useful for cooking conversions, brewing gravity adjustments, refrigerant sizing, and freight estimates.

For broader mass and volume unit conversion, the weight converter and the kg-to-liter calculator cover the unit-only side of the same family of problems.

Factors That Affect Your Results

Three measurable factors control the precision of your density result, and two practical limits apply to any volume to density estimate.

Temperature of the Sample

Density depends on temperature. Water ranges from 999.97 kg/m^3 at 0 degC to 958.4 kg/m^3 at 100 degC, so a lab sample at 80 degC returns a lower density than the same mass at 4 degC.

Purity and Composition

Published densities assume pure substances. Sea water is roughly 1025 kg/m^3 because of dissolved salts, and a sample with air bubbles returns a lower density after degassing.

Pressure of the Sample

Gases are strongly pressure sensitive. Air at 20 degC ranges from about 1.204 kg/m^3 at 1 atm to roughly 12.04 kg/m^3 at 10 atm, so the calculator treats gas densities as approximate unless you adjust the inputs.

Mass and Volume Unit Definitions

The pound, ounce, US gallon, and US fluid ounce are defined relative to the inch and the US gallon (3.785411784 L), while the kilogram and liter are defined by SI. The calculator uses the NIST SI equivalents for each unit so the conversions stay exact.

  • The calculator assumes a single homogeneous sample. Mixed materials, suspensions, foams, or partially filled containers will return an average density that does not represent either phase individually.
  • Results are stored at full JavaScript precision and rounded to four significant figures. For very small samples (under 1 g) or very large samples (over 1,000,000 kg) the rounded display may hide meaningful digits, so switch units to keep the displayed number readable.

These factors and limits are the only practical concerns for a mass, volume, and density estimate.

According to NIST SP 811 Appendix B, 1 g/cm^3 equals exactly 1,000 kg/m^3 and 1 lb/ft^3 equals 16.0184634 kg/m^3, the conversion chain the calculator uses across all five density units.

According to NIST SI Units (PML/OWM), density is a derived SI quantity in kg/m^3 and a material property, which is why a small gold coin and a large gold bar share the same density near 19,320 kg/m^3.

Volume to density calculator showing a 1 kg sample and a 1 L volume producing a 1000 kg/m^3 density result with unit selectors
Volume to density calculator showing a 1 kg sample and a 1 L volume producing a 1000 kg/m^3 density result with unit selectors

Frequently Asked Questions

Q: How do you calculate density from volume?

A: Divide the sample mass by the volume it occupies. Density = mass / volume. Convert the mass to kilograms and the volume to cubic meters first to obtain density in kg/m^3, then convert to grams per cubic centimeter or pounds per cubic foot if needed.

Q: What is the formula for density using volume and mass?

A: Density (rho) equals mass (m) divided by volume (V), with rho in mass-per-volume units such as kg/m^3, g/cm^3, or lb/ft^3. The rearranged forms are mass = density x volume and volume = mass / density, all of which the calculator supports.

Q: How do you convert volume to density?

A: You cannot convert volume to density alone, because volume is only one of the two inputs the formula needs. Pair the volume with a mass, divide mass by volume in consistent units, and you get density. This calculator handles the unit conversion automatically.

Q: Does density change with volume?

A: No. Density is an intensive property of matter, so a small gold coin and a large gold bar have the same density near 19,320 kg/m^3. Doubling the volume of a sample also doubles the mass, leaving the ratio unchanged.

Q: What units are used for density?

A: The SI unit is kilograms per cubic meter (kg/m^3). Common alternatives include grams per cubic centimeter (g/cm^3), grams per milliliter (g/mL), pounds per cubic foot (lb/ft^3), and pounds per cubic inch (lb/in^3). 1 g/cm^3 equals 1000 kg/m^3.

Q: How do you find mass if you know density and volume?

A: Multiply density by volume: mass = density x volume. Convert density to kg/m^3 and volume to cubic meters first, then multiply to get mass in kilograms. Switch the calculator's Solve For dropdown to Mass to do this in a single step.