Density Calculator

Calculate density, mass, and volume relationships using the density formula D = M/V.

363 Views
Add as a preferred source on Google

About this Density Calculator

Density links two measurements that are often confused: how much matter an object contains and how much space that matter occupies. The Density Calculator in this script can solve for density, mass, or volume depending on which two values you know.

Its core relationship is Density = Mass ÷ Volume, with the same equation rearranged as Mass = Density × Volume and Volume = Mass ÷ Density.

This is useful in physics and chemistry exercises, material comparisons, laboratory work, engineering estimates, shipping calculations, and practical questions such as comparing two substances that have the same size but different mass.

The calculator saves more than arithmetic because it keeps the three variables tied to one relationship and helps prevent an inverted ratio. It also reminds you that density carries compound units such as kg/m³ or g/cm³ rather than being simply a mass or a volume by itself.

What Is a Density Calculator?

A Density Calculator solves the relationship among mass, volume, and density. If mass and volume are known, it divides mass by volume. If density and volume are known, it multiplies them to find mass. If mass and density are known, it divides mass by density to find volume.

In the script, typical units include kilograms per cubic metre and grams per cubic centimetre for density, while volume may be entered in cubic units or litres depending on the supported options. The calculator assumes the entered mass and volume describe the same object or sample.

It performs the mathematical relationship; it does not identify an unknown material automatically unless you compare the resulting density with an external reference.

Reading Your Results

Your result instantly provides the missing variable from the density equation. It is crucial to pay close attention to your units of measurement (e.g., grams per cubic centimeter, or kilograms per cubic meter).

The calculated density value is always expressed in units of mass per unit of volume based entirely on the specific unit inputs you provided.

How to use this calculator

1Select what you want to calculate (density, mass, or volume).
2Enter the mass of the object.
3Enter the volume of the object.
4Select the measurement units.
5Click "Calculate."

The calculator determines the density, mass, or volume using the density relationship.

Density (D) = Mass (M) ÷ Volume (V)
Mass (M) = Density × Volume
Volume (V) = Mass ÷ Density

Where

D = Density (kg/m³, g/cm³)
M = Mass (kg, g)
V = Volume (m³, cm³, L)

Example

Mass = 500 g
Volume = 250 cm³
Density = 500 ÷ 250 = 2 g/cm³
Density of Common Materials Mass per cubic metre, with water shown for reference at 1,000 02,0004,0006,0008,00010,00012,000 240Cork500Pine920Ice1,000Water2,400Concrete2,700Aluminium7,850Steel11,340Lead Material Density (kg/m³) Anything below the 1,000 line floats in water. Anything above it sinks.

Density of Common Materials

MaterialDensity (g/cm³)Density (kg/m³)
Cork0.24240
Wood (Pine)0.50500
Ice0.92920
Water (4°C)1.001,000
Concrete2.402,400
Aluminium2.702,700
Steel7.857,850
Copper8.968,960
Lead11.3411,340
Gold19.3219,320

Anything less dense than 1.00 g/cm³ floats in water; anything denser sinks.

Density Formula Reference

FindFormulaUnits
Densityρ = m ÷ Vkg/m³ or g/cm³
Massm = ρ × Vkg or g
VolumeV = m ÷ ρm³ or cm³
Specific Gravityρ substance ÷ ρ waterDimensionless
Relative DensitySame as specific gravityDimensionless

Specific gravity above 1 means the substance sinks in water.

Density of Common Liquids and Gases

SubstanceDensity (kg/m³)State
Hydrogen0.09Gas
Air (sea level)1.23Gas
Carbon Dioxide1.98Gas
Petrol740Liquid
Ethanol789Liquid
Olive Oil920Liquid
Seawater1,025Liquid
Mercury13,534Liquid

Gas density changes substantially with temperature and pressure.

Factors Affecting Your Density Result

Mass and volume must refer to the same sample and must use compatible units. A mass in grams divided by a volume in cubic centimetres gives g/cm³, while kilograms and cubic metres produce kg/m³.

Mixing grams with cubic metres without conversion can make the number look numerically plausible while representing the wrong scale. Measurement precision also matters because density is a ratio: an error in either mass or volume carries into the result.

Volume can be particularly difficult to measure for irregular objects, porous materials, powders, or liquids with meniscus-reading error. Temperature and pressure can change the physical density of some materials, especially gases and liquids, although the calculator simply processes the values you enter.

If you are solving for mass or volume instead, an inaccurate density reference will transfer directly into the calculated quantity. Keep significant figures appropriate to the precision of the measurements rather than reporting more certainty than the inputs support.

Benefits of Using the Density Calculator

  • Solve for any one of density, mass, or volume from the other two without manually rearranging the equation each time.
  • Keep the mass-to-volume relationship in the correct order and avoid the common mistake of dividing volume by mass when density is required.
  • Compare materials using a consistent density unit after converting the input measurements to compatible units.
  • Check laboratory or classroom calculations quickly while preserving more precision than a rough hand calculation.
  • Use the same tool for forward and reverse problems, such as finding density from a sample or estimating mass from a known material density and volume.

Frequently asked questions

What is the basic density formula?

Density equals mass divided by volume: D = M ÷ V. The script rearranges the same relationship to calculate mass as D × V or volume as M ÷ D when one of those quantities is unknown.

Why are density units written as mass per volume?

Density describes how much mass is contained in a given volume, so its unit must combine both quantities. Common examples are g/cm³ and kg/m³. A bare value without its unit can be misleading because the numerical scale changes with the unit system.

Can I mix grams and litres?

Only if the calculator explicitly converts them into a compatible system. Otherwise convert the units first. The arithmetic relationship is simple, but the result is only meaningful when mass and volume units correspond to the density unit you intend to use.

Why can measured density differ from a reference value?

The sample may have a different temperature, composition, moisture content, porosity, or measurement error. The calculator uses your mass and volume exactly as entered; it cannot determine whether the physical sample matches the conditions of a published reference value.

Can density identify an unknown material?

It can provide a useful comparison value, but density alone may not uniquely identify a material because different substances can have similar densities. Use the calculated density alongside other properties when identification matters.

Final Words

The point of the Density Calculator is not just to return a number, but to help you solve for any one of density, mass, or volume from the other two without manually rearranging the equation each time.

One important consideration is that mass and volume must refer to the same sample and must use compatible units.

If the situation changes, use the Density Calculator again and keep the mass-to-volume relationship in the correct order and avoid the common mistake of dividing volume by mass when density is required.

Disclaimer

This calculator provides estimates for general informational and educational purposes only and should not be treated as financial, medical, legal, or professional advice. Results depend entirely on the accuracy of the figures you enter.

Always verify important decisions with a qualified professional, official documentation, or your financial institution before acting on any result shown here.

Related Calculators

Age Calculator

Precise age calculator that determines your exact age in years, months, days, hours, and minutes from your birth date. Calculate age differences between dates, upcoming birthdays, and various time-related calculations with detailed breakdowns and multiple format options.

12.0K Views
Use Calculator
Hours Calculator

Calculate work hours, overtime, time sheets, hourly wages, and time tracking for payroll and project management purposes.

6.5K Views
Use Calculator
Time Duration Calculator

Calculate duration between two times or dates with precise time measurements.

846 Views
Use Calculator
Love Calculator

Calculate love compatibility percentage based on names for entertainment purposes.

691 Views
Use Calculator
Height Calculator

Calculate height conversions between different units and predict adult height based on current age.

651 Views
Use Calculator
Dice Roller

Roll virtual dice with customizable sides and quantities for games and probability.

607 Views
Use Calculator
Shoe Size Conversion

Convert shoe sizes between different international sizing systems and standards.

592 Views
Use Calculator
Heat Index Calculator

Calculate heat index and apparent temperature based on air temperature and humidity levels.

517 Views
Use Calculator
GPA Calculator

Calculate Grade Point Average (GPA) for academic performance tracking with support for different grading scales and credit systems.

501 Views
Use Calculator

All Categories