ToolNestr

Density Calculator

Solve ρ = m/V for density, mass, or volume — enter any two values to find the third. Two 3D diagrams compare a light, low-density material to a heavy, high-density material at the same volume, and charts show how mass scales with volume for common materials.

Reviewed by the ToolNestr Editorial Team — July 2026

Disclaimer: This tool is provided for educational purposes to support learning in physics. It is not a substitute for professional engineering or safety-critical calculations.
Physics

Enter any two values, leave the third blank

Density
Mass
Volume

Same volume, different density

1. Low density (cork)

Same-size cube as the block on the right, but the atoms are more loosely packed — much less mass for the same volume.

2. High density (gold)

Identical volume, but tightly packed atoms mean far more mass is crammed into the same space.

Density graphs

Mass vs. volume (three materials)
Density comparison (g/cm³)

How it works

The core idea in one line: density packs a material's mass and size into a single number that stays the same no matter how big or small a sample of that material is — which is exactly why it's such a reliable way to identify what something is made of.

ρ = m / V

density = mass ÷ volume

m = ρ × V

solve for mass

V = m / ρ

solve for volume

Density describes how tightly packed the atoms or molecules of a substance are, expressed as mass divided by volume. Because it's an intensive property, a teaspoon of gold and a gold bar have exactly the same density even though their total mass is wildly different — cutting a sample in half halves both its mass and volume, leaving the ratio unchanged. This is what makes density useful for identifying materials: two objects with the same density (within measurement error) are very likely made of the same substance, regardless of their size or shape.

Worked example 1 — identifying a metal

Given: A metal cube has a mass of 2700 g and a volume of 1000 cm³.

Formula: ρ = m / V
Substitute: ρ = 2700 / 1000
Result: ρ = 2.70 g/cm³ — matches aluminium almost exactly

Comparing a measured density to reference tables is one of the most common ways to identify an unknown material without destructive testing.

Worked example 2 — will it float?

Given: A block of cork has a mass of 24 g and a volume of 100 cm³. Will it float in water (ρ_water = 1.00 g/cm³)?

Formula: ρ = m / V
Substitute: ρ = 24 / 100
Result: ρ = 0.24 g/cm³ — far less dense than water, so it floats easily

An object floats in a fluid whenever its own density is lower than the fluid's density — the actual mass or size of the object doesn't matter, only the ratio of mass to volume.

Density of common materials

Same formula, very different results depending on how tightly a material's atoms are packed.

MaterialDensity (g/cm³)Floats in water?
Cork0.24Yes
Ice0.92Yes
Water (4°C) ★1.00
Aluminium2.70No
Iron/steel7.87No
Gold19.3No

★ Reference row. Anything above 1.00 g/cm³ sinks in water; anything below it floats — this single comparison explains iceberg buoyancy, oil slicks, and metal casting alike.

Where density actually matters

🔍 Materials identification

Density is one of the fastest ways to identify an unknown substance without destroying a sample — measure mass and volume, compare the ratio to a reference table, and narrow down the likely material.

⚙️ Structural and mechanical engineering

Density determines how much a component weighs for a given size, which drives load calculations, shipping costs, and material selection for anything from aircraft panels to bridge cables.

🚢 Ship and submarine design

Naval architecture depends entirely on density and buoyancy — a steel ship floats not because steel is light, but because its hull shape displaces enough water that its average density (hull + air-filled interior) is less than water.

🧪 Quality control in manufacturing

Density checks catch porosity, contamination, or incorrect composition in cast metal parts, plastics, and ceramics — a part with unexpected voids inside will measure a lower density than the solid reference material.

Common misconceptions

"Heavier objects are always denser."

Density depends on the ratio of mass to volume, not on total mass alone. A large block of cork weighs more in total than a small nugget of gold, but the gold is far denser — density is about how tightly packed the matter is, not how much total mass exists.

"Density and weight are the same thing."

Weight is a force that depends on gravity (W = mg) and total mass; density is an intensive property (mass per unit volume) that stays the same regardless of how much material you have or what planet you're on.

"All metals are denser than all liquids."

Most common metals are denser than water, but liquid mercury (13.6 g/cm³) is actually denser than many solid metals like aluminium (2.70 g/cm³) or even iron in some alloy forms — density comparisons must be checked case by case.

"An object's shape affects whether it floats."

Shape affects how much fluid an object displaces (which matters for total buoyant force), but whether a solid, uniform object floats or sinks depends only on comparing its own density to the fluid's density — not on its shape.

Formula sources & further reading

The formulas here are standard, traceable to:

  • OpenStax, University Physics Volume 1 — Chapter 14, "Fluid Mechanics" (free, peer-reviewed). openstax.org
  • CRC Handbook of Chemistry and Physics — standard reference densities.
  • Halliday, Resnick & Walker, Fundamentals of Physics — Fluid statics chapter.

ρ = m/V. Reference densities at standard conditions (~20°C, 1 atm). Results are rounded for display.

How to use this calculator

1

Enter any two values

Type density, mass, or volume in compatible metric units, leaving the field you want blank.

2

Read the instant result

The missing value solves automatically and updates live as you type any input.

3

Compare to reference materials

Use the comparison table to check whether your result matches a known material.

Related tools

Frequently asked questions

What is density?

Density (ρ) is mass per unit volume — how tightly packed the matter in a substance is. The SI unit is kg/m³, though g/cm³ or g/mL is common in chemistry.

How do I calculate density?

Use ρ = m/V: measure the object's mass and divide by its volume. For irregular objects, find volume using water displacement first.

Why does ice float on water?

Ice has a density of about 0.92 g/cm³, less than liquid water's 1.00 g/cm³. Less dense substances float on denser ones — this is exactly why icebergs float instead of sinking.

What is the difference between density and specific gravity?

Specific gravity is the ratio of a substance's density to the density of water at 4°C. It is dimensionless — the same number in any unit system — while density itself always carries units.

How does temperature affect density?

Most substances expand when heated, increasing volume and therefore lowering density. Water is the famous exception — its maximum density actually occurs at 4°C, not at its freezing point.

All tool categories

⚛️ Physics (48 tools)
🎚️ Ohm's Law Calculator⚖️ Density Calculator💥 Force Calculator (F=ma)🔋 Parallel Resistor Calculator🔧 Work Calculator (Physics)🏃 Kinetic Energy Calculator📈 Gravitational Potential Energy Calculator🎯 Momentum & Impulse Calculator🎱 Elastic Collision Calculator🧲 Inelastic Collision Calculator〰️ Wavelength Calculator🌍 Newton's Law of Gravitation Calculator🎯 Projectile Motion Calculator⬇️ Free Fall Calculator🔄 Uniform Circular Motion Calculator🥍 Impulse Calculator🔩 Torque Calculator🌪️ Angular Acceleration Calculator🪩 Moment of Inertia Calculator🪀 Centripetal Force Calculator📍 Average Velocity Calculator🚀 Acceleration Calculator🪂 Terminal Velocity Calculator🛰️ Escape Velocity Calculator🪐 Weight on Other Planets Calculator⚙️ Mechanical Efficiency Calculator🛞 Work-Energy Theorem Calculator⛴️ Buoyancy (Archimedes' Principle) Calculator🤿 Pressure Calculator🕰️ Simple Pendulum Period Calculator🌡️ Heat Transfer Calculator⚡ Coulomb's Law Calculator🔌 Series Resistor Calculator💡 Electric Power Calculator🔦 Snell's Law (Refraction) Calculator🔍 Thin Lens Equation Calculator🧯 Specific Heat Calculator🪫 Capacitance Calculator📡 Electric Field Calculator🚨 Doppler Effect Calculator🛸 Orbital Velocity Calculator🌀 Magnetic Force Calculator🎻 Simple Harmonic Motion Calculator🔊 Sound Intensity Calculator📏 Thermal Expansion Calculator🛩️ Bernoulli's Equation Calculator📻 Frequency Calculator🪞 Mirror Equation Calculator
🌐 Networking & IP Tools (36 tools)
🧮 Everyday (26 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
🧪 Chemistry (50 tools)
🧬 Biology (50 tools)
🏠 Construction & Home Improvement (105 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
🕐 Time & Date (15 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)