Calculate density, mass, or volume using the relationship Density = Mass ÷ Volume — solve for any one of the three.
📂 Conversion & General ScienceFill in the fields on the left with your circuit's known values, then press the button to see your result instantly. No sign-up required, and no data is sent anywhere — everything is calculated right in your browser.
Density is a physical property that describes a substance's mass relative to its volume, calculated by the equation Density = Mass ÷ Volume. Density varies from one substance to another — water's density is approximately 1 g/cm³, while iron's is much higher at about 7.87 g/cm³ — which is why it's used as a practical tool for identifying materials and calculating whether an object will float or sink in a given liquid. This calculator lets you find any of density, mass, or volume if the other two are known, by rearranging the basic equation. Illustrative example: a piece of metal with a mass of 500 grams and a volume of 250 cm³ has a density of 2 g/cm³ (500 ÷ 250). The concept of density is used in practice in designing ships and submarines, checking material quality, and determining the purity of metals and liquids, in addition to being a fundamental concept in physics, chemistry, and engineering.
Density is one of the most useful physical properties in all of science, precisely because it's an intrinsic characteristic of a material — independent of how much of it you have. A gram of gold and a kilogram of gold have the same density, even though their masses differ by a thousand times, which makes density a reliable way to identify or verify a material regardless of the sample size you're working with.
The floating-versus-sinking question that density answers so cleanly comes down to a simple comparison: an object floats in a fluid if its overall density is lower than the fluid's density, and sinks if it's higher. This is why a solid steel ball sinks in water (steel is roughly 7.8 times denser than water) while a massive steel ship floats — the ship's hull encloses enough air-filled volume that the vessel's overall average density, hull plus enclosed air plus cargo, ends up lower than water's density, even though the steel itself is far denser than water.
This principle is exactly why submarine design centers so heavily around controlling density: submarines use ballast tanks that can be filled with water (increasing overall density to sink) or emptied and filled with air (decreasing density to rise), allowing precise control over buoyancy without changing the vessel's actual mass of steel and equipment.
Density measurement also serves as a practical purity and quality check in metallurgy and manufacturing: a metal alloy with an unexpectedly low measured density compared to its theoretical value often signals internal porosity, trapped air bubbles, or contamination with a lighter material — defects that might not be visible externally but that measurably affect the material's actual density compared to a pure, defect-free sample.
In geology and mineral identification, density (often expressed as specific gravity, the ratio of a substance's density to water's) remains one of the fastest field tests available for narrowing down what a mineral sample might be, since many minerals have distinctive densities that differ enough from similar-looking specimens to distinguish between them without needing laboratory chemical analysis.
Common combinations are grams per cubic centimeter (g/cm³) or kilograms per cubic meter (kg/m³) — as long as your mass and volume units match this pairing, the density result will be in the corresponding unit.
An object floats in a fluid if its density is lower than the fluid's density (it displaces less mass than its own weight would require), and sinks if its density is higher — this is the basis of buoyancy.
Specific gravity is simply the ratio of a substance's density to the density of water (or air, for gases) — you can get it by dividing your calculated density by water's density of about 1 g/cm³ or 1000 kg/m³.