Physics

Density Calculator

Given any two of density, mass, or volume, we'll solve the third instantly using ρ = m/V.

Did this calculator help you?

What is Density Calculator?

A density calculator lets you instantly find the density, mass, or volume of any object or substance using the fundamental physics formula ρ = m/V. Simply enter any two of the three values — mass, volume, or density — and the calculator solves for the missing one. This single relationship underlies everything from why ships float to how geologists identify unknown rocks. Density is one of the most useful physical properties in science because it's an intensive property — meaning it doesn't depend on how much of a substance you have. A gram of gold and a ton of gold have the exact same density (19,300 kg/m³), which makes density a powerful tool for identifying materials, verifying purity, and predicting how substances will behave when combined, such as whether one liquid will float on top of another. This calculator is useful in many contexts: students use it to solve physics and chemistry homework problems, engineers use it to select materials for buoyancy-critical designs like ships and submarines, chemists use it to verify sample purity, and hobbyists use it for tasks like calculating whether a custom 3D-printed part will float or sink.

When to Use This Calculator

  • Checking whether an object or structure will float or sink — essential for boats, barges, pipelines and buoyancy calculations in water.
  • Identifying an unknown metal, alloy or material by comparing its measured density against published reference tables.
  • Quality control in manufacturing, where density checks verify purity, composition or consistency of raw materials and finished products.
  • Aviation and meteorology work, where air density directly affects aircraft lift, engine performance and weather calculations.
  • Chemistry laboratories preparing solutions and reagents of a known density, or separating components by density differences.
  • Physics and materials-science homework and projects, where you must convert between g/cm³ and kg/m³ and solve for mass, volume or density.

Steps:

  1. Enter the mass of the object or substance in kilograms.
  2. Enter the volume in cubic meters — or leave this blank if you know the density instead.
  3. If you know the density but not the volume, enter density and leave volume blank.
  4. The calculator automatically computes the missing value using ρ = m/V.
  5. Compare your result to the reference table of common material densities to identify or verify a substance.

Formula

Density: ρ = m / V Solving for Mass: m = ρ × V Solving for Volume: V = m / ρ Where: ρ = density (kilograms per cubic meter, kg/m³) m = mass (kilograms, kg) V = volume (cubic meters, m³) Example: Mass = 500 g = 0.5 kg, Volume = 0.05 m³ ρ = 0.5 / 0.05 = 10 kg/m³

Use Cases

  • Identifying unknown materials or substances by comparing calculated density to known reference values
  • Solving physics and chemistry homework problems involving mass, volume, and density relationships
  • Determining whether an object will float or sink in water or another fluid
  • Verifying the purity of metals like gold or silver by checking if measured density matches the pure metal's known value
  • Engineering calculations for buoyancy design in boats, submarines, and flotation devices
  • Calculating material requirements when volume is known but the supplier specifies quantities by mass

Key Benefits

  • Instantly solve for density, mass, or volume from just two known values
  • Built-in reference table of common material densities for quick identification
  • Visual bar chart comparison of mass, volume, and density
  • Works for any material — solids, liquids, or gases
  • No registration or installation required
  • High-precision results to three decimal places for scientific and engineering use
  • Useful for both simple homework problems and professional material verification

Pro Tips

  • For irregular objects, measure volume using water displacement rather than trying to calculate it geometrically
  • Convert all units to a consistent system (kg and m³, or g and cm³) before comparing your result to reference tables
  • Remember that 1 g/cm³ equals 1000 kg/m³ — a quick way to sanity-check your unit conversions
  • When identifying an unknown material, measure as precisely as possible since small errors in mass or volume significantly affect the calculated density
  • Use the reference table as a starting point, but note that alloys and composite materials will have densities between their component materials

Common Mistakes to Avoid

  • Confusing mass and weight — mass (kg) is constant everywhere, while weight depends on gravity and changes on the Moon or in space
  • Forgetting to convert units consistently — mixing grams with cubic meters or centimeters with kilograms produces wildly incorrect density values
  • Assuming density and size are related — a large object can be less dense than a small one (a beach ball is far less dense than a golf ball)
  • Ignoring temperature effects when comparing measured density to reference tables, since most reference values assume room temperature
  • Forgetting that hollow or porous objects have a much lower average density than the solid material they're made from
  • Mixing up which value is missing — entering density in the mass field or vice versa produces meaningless results

Key Terms Explained

Density: A measure of mass per unit volume, calculated as ρ = m/V, typically expressed in kg/m³ or g/cm³.
Mass: The amount of matter in an object, measured in kilograms, which remains constant regardless of location.
Volume: The amount of three-dimensional space an object occupies, measured in cubic meters or cubic centimeters.
Specific Gravity: The ratio of a substance's density to the density of a reference substance, usually water.
Buoyancy: The upward force exerted by a fluid that opposes the weight of a partially or fully submerged object, governed by relative density.
Water Displacement: A technique for measuring the volume of an irregular object by submerging it and measuring the volume of fluid it displaces.
Intensive Property: A physical property, like density, that doesn't depend on the amount of substance present.
Buoyant Force: The force that causes objects less dense than a fluid to float, first described by Archimedes' principle.

Related Concepts

  • Buoyancy: The physics of why objects float or sink, directly governed by the relative densities of an object and the fluid it's placed in. Our buoyancy calculator lets you calculate buoyant forces directly.
  • Mass: The fundamental measure of matter that, combined with volume, determines density — distinct from weight, which depends on gravitational field strength.
  • Pressure: Force per unit area, which along with density determines fluid behavior in phenomena like hydrostatic pressure and Pascal's principle.
  • Specific Heat: Another intensive material property, describing how much energy is needed to change a substance's temperature. Our specific heat calculator lets you explore this related concept.
  • Volume: The three-dimensional space an object occupies, the denominator in the density formula and a key measurement for irregular objects via displacement.

Example

A metal cube has a mass of 2.7 kg and measures 10 cm on each side, giving a volume of 0.001 m³ (10 cm × 10 cm × 10 cm = 1000 cm³ = 0.001 m³). Its density is ρ = 2.7 / 0.001 = 2700 kg/m³, which matches the known density of aluminum — allowing you to identify the metal.

Interpreting Your Results

The density value this calculator produces represents the average density of the object — the total mass divided by the total volume it occupies, including any internal air gaps or hollow spaces. A solid block of aluminum and a hollow aluminum sphere of the same outer dimensions will have very different calculated densities, even though the aluminum material itself has the same density in both cases. When comparing your result to the reference table, remember these values are typical figures at room temperature and standard pressure — actual density can vary slightly with temperature, pressure, alloy composition, and purity. If your calculated density doesn't match any known material closely, consider whether the object might be hollow, an alloy or composite, or whether your mass or volume measurement contains an error.

Frequently Asked Questions

What is the formula for density?
Density is calculated as ρ = m/V, where ρ (rho) is density in kilograms per cubic meter, m is mass in kilograms, and V is volume in cubic meters. This calculator can also solve for mass (m = ρV) or volume (V = m/ρ) if you know the other two values.
Why does an object float or sink in water?
An object floats if its density is less than the density of the fluid it's placed in (water is 1000 kg/m³), and sinks if its density is greater. Ice floats on water because ice (920 kg/m³) is less dense than liquid water, which is why icebergs float with most of their volume submerged.
Does temperature affect density?
Yes. Most materials expand when heated and contract when cooled, so their density decreases as temperature rises (the same mass occupies more volume). Water is a notable exception near its freezing point — it's actually densest at about 4°C, not 0°C, which is why lakes freeze from the top down.
What's the difference between density and specific gravity?
Density is mass per unit volume (kg/m³ or g/cm³), while specific gravity is a dimensionless ratio comparing a material's density to the density of water (or air, for gases). A specific gravity of 2.7 means the material is 2.7 times denser than water.
How do I convert between kg/m³ and g/cm³?
To convert kg/m³ to g/cm³, divide by 1000. For example, water's density of 1000 kg/m³ equals 1 g/cm³, and gold's density of 19,300 kg/m³ equals 19.3 g/cm³. This conversion works because 1 m³ = 1,000,000 cm³ and 1 kg = 1000 g.
Why is gold so much denser than aluminum?
Density depends on both the mass of individual atoms and how tightly they're packed. Gold atoms are much heavier than aluminum atoms (197 vs 27 atomic mass units) and pack into a similarly tight crystal structure, making gold about 7 times denser than aluminum.
Can this calculator be used for irregular-shaped objects?
Yes — as long as you know the object's mass and volume, the density formula works regardless of shape. For irregular objects, volume is often measured using water displacement: submerge the object and measure how much water it displaces, which equals its volume.
What is density used for in real life?
Density determines whether objects float or sink, helps identify unknown materials (each substance has a characteristic density), guides ship and submarine buoyancy design, is used in quality control for manufacturing, and helps geologists identify rock and mineral types in the field.
How do I measure the volume of a regular solid for the density calculation?
For a box, multiply length × width × height. For a cylinder, use π × r² × height, where r is the radius. Measure in centimeters to get cm³, then divide by 1,000,000 to convert to m³, since the calculator uses cubic meters. For example, a cube 10 cm on each side has a volume of 1,000 cm³ = 0.001 m³. Weigh the object in kilograms, and density = mass ÷ volume in kg/m³.
Why does ice float on water?
Ice floats because it is less dense than liquid water: roughly 917 kg/m³ (0.917 g/cm³) compared with about 1,000 kg/m³ (1.00 g/cm³) for liquid water. Water is unusual because it expands and becomes less dense when it freezes, which is why lakes freeze from the top down and ice stays on the surface. This anomaly is why a given volume of ice weighs less than the same volume of water.
Can density be used to identify an unknown material?
Yes — density is a characteristic property, meaning it is the same for a pure material regardless of the size of the sample. Measure the mass and volume, calculate the density, and compare it against reference values. Gold, for instance, is about 19,300 kg/m³, silver 10,490 kg/m³, and aluminum 2,700 kg/m³. A density that does not match any pure material usually indicates an alloy or mixture.

Discover More Tools

Fresh picks from across our tool library.