Report

Help us improve this tool

Density Calculator

Calculate density, mass, or volume using the density formula. Input any two values to find the third with multiple unit options.

O M T

What is a Density Calculator?

A density calculator is a practical physics and engineering tool that computes any one of the three variables in the density formula (density, mass, or volume) when the other two are provided. Density describes how tightly packed the matter in a substance is, and it is expressed as mass per unit volume. This calculator supports multiple unit systems including metric, imperial, and US customary units, making it suitable for students, scientists, engineers, and hobbyists working on a wide range of applications from material selection to fluid dynamics.

The Density Formula

The fundamental relationship between density, mass, and volume is expressed by the formula:

ρ = m / V

Where ρ (rho) is the density, m is the mass, and V is the volume. This relationship means that for a given mass, a smaller volume results in higher density, and for a given volume, more mass means higher density. The three modes of this calculator allow you to solve for any unknown variable:

  • Find Density (ρ): Enter mass and volume to calculate density.
  • Find Mass (m): Enter density and volume to calculate mass.
  • Find Volume (V): Enter mass and density to calculate volume.

How to Use the Density Calculator

Using the density calculator is straightforward:

  1. Select the calculation mode from the dropdown (Find Density, Find Mass, or Find Volume).
  2. Enter the known values in the corresponding input fields.
  3. Select the appropriate units for each value from the unit dropdowns.
  4. The result updates in real time as you type or change units.
  5. Use the Common Material Densities section to quickly set density values for common substances.

Supported Units

The density calculator supports a wide range of units across three categories:

Density Units: kg/m³, g/cm³, kg/cm³, g/m³, kg/L, g/L, lb/in³, lb/ft³, lb/yd³, lb/gal (US), lb/gal (UK)

Mass Units: kg, g, mg, metric ton, lb, oz, carat

Volume Units: m³, L, mL, gal (US), gal (UK), ft³, yd³, in³, cm³

Common Material Densities

The calculator includes a quick-reference panel with densities of common materials at standard temperature and pressure. Click any material to automatically set its density value. The included materials are:

  • Water (1000 kg/m³): The standard reference for density comparisons.
  • Air (1.2 kg/m³): Density of Earth's atmosphere at sea level.
  • Iron (7874 kg/m³): Common structural metal.
  • Copper (8950 kg/m³): Widely used electrical conductor.
  • Gold (19300 kg/m³): Dense precious metal.
  • Aluminum (2700 kg/m³): Lightweight structural metal.
  • Lead (11340 kg/m³): Dense shielding material.
  • Silver (10500 kg/m³): Highly conductive precious metal.
  • Mercury (13546 kg/m³): Dense liquid metal.
  • Gasoline (737 kg/m³): Common fuel with lower density than water.

Also check: Mass Calculator, Volume Calculator, Specific Gravity Calculator.

Frequently Asked Questions

How do I calculate density from mass and volume?

Density is calculated by dividing mass by volume using the formula ρ = m / V. For example, if an object has a mass of 10 kg and a volume of 0.5 m³, its density would be 10 / 0.5 = 20 kg/m³. The calculator handles unit conversions automatically, so you can mix units like grams with cubic feet.

What is the density of water in different units?

Water has a density of approximately 1000 kg/m³ at 4°C (maximum density). In other common units, this is equivalent to 1 g/cm³, 1 kg/L, 62.43 lb/ft³, or 8.34 lb/gal (US). This makes water a convenient reference point for comparing the densities of other materials.

Why do some materials float on water while others sink?

An object floats on water if its density is less than the density of water (1000 kg/m³). Materials like wood and oil have densities below 1000 kg/m³ and float, while materials like metal and stone have higher densities and sink. This principle also applies to buoyancy in other fluids such as air (hot air balloons float because hot air is less dense than cool air).

How does temperature affect density?

For most substances, increasing temperature causes the material to expand (increase in volume), which decreases density since mass remains constant. This is why warm air rises and why fluids stratify by temperature. Water has an unusual behavior: it is most dense at 4°C, becoming less dense both above and below this temperature, which is why ice floats.

What is the difference between density and specific gravity?

Density is the mass per unit volume of a substance expressed in absolute units (such as kg/m³), while specific gravity is the ratio of a substance's density to the density of a reference substance (usually water at 4°C). Specific gravity is dimensionless, meaning it has no units. For example, gold has a density of 19300 kg/m³ and a specific gravity of 19.3, since 19300 / 1000 = 19.3.

Can I calculate the volume of an irregular object using density?

Yes. If you know the mass of an irregular object and the density of its material, you can calculate its volume using V = m / ρ. This is particularly useful when the object has a complex shape that makes direct volume measurement difficult. For example, a 500 g gold statue (density 19.3 g/cm³) would have a volume of approximately 500 / 19.3 = 25.9 cm³.

How is density used in real-world applications?

Density has numerous practical applications including: material identification (different substances have characteristic densities), quality control (checking if materials meet specifications), fluid dynamics (designing pipelines and pumps), buoyancy calculations (ship and submarine design), soil mechanics (determining compaction), battery electrolyte testing (measuring state of charge), and food processing (controlling product consistency).

What is the relationship between pressure and density for gases?

For gases, density is strongly affected by both pressure and temperature, following the ideal gas law: PV = nRT. Increasing pressure compresses the gas, increasing its density. Increasing temperature expands the gas, decreasing its density. This is why compressed air tanks can store large amounts of gas in a small volume, and why scuba divers need to equalize pressure as they descend.