Blucalculator Open Tool

Density Calculator

Calculate density, mass, or volume — enter any two values to find the third. Formula: ρ = m / V.

Solve For

Material Presets (sets density)

Embed This Calculator

Copy the code and paste it into any webpage to embed this calculator.

WordPress users: add a Custom HTML block (not the Embed block) and paste the code there.

More embed options

Free to use. A small "Powered by Blucalculator" credit is appreciated but not required.

How to use this calculator

Three inputs. One result. The whole thing takes about ten seconds.

Step 1: Choose what you want to find. A dropdown at the top lets you select Density, Mass, or Volume. The calculator rearranges the formula automatically based on your choice.

Step 2: Enter the two known values. Each field has a unit selector next to it. Mix and match: grams with liters, kilograms with cubic centimeters, pounds with cubic feet. The calculator converts everything before computing.

Step 3: Hit Calculate. You get the result with full unit labels, so there’s no ambiguity about what you’re looking at.

Quick example — identifying aluminum

You have an aluminum block weighing 270 grams with a volume of 100 cm³. Select “Density,” enter mass = 270 g, volume = 100 cm³, and click Calculate.

Result: 2.7 g/cm³. That’s textbook aluminum. The actual value for pure aluminum is 2.70 g/cm³.

Unit mismatch is the most common error in density problems. If your mass is in grams and your volume is in liters, the result is g/L, not g/cm³ — and those are numerically different. 1 g/cm³ = 1000 g/L. The calculator handles conversion automatically, but always check your input units before hitting Calculate.


What problem this actually solves

The formula is simple. The unit management isn’t.

Picture a civil engineer checking a concrete mix. Mass is recorded in kilograms from the scale, but volume came from a pour measured in liters. The spec requires density in kg/m³. That’s two unit conversions before the actual calculation even starts.

Or a chemistry student with density in g/mL and a mass measured in milligrams, needing volume in mL. Ten minutes of checking whether 1 mL equals 1 cm³ (it does), then losing track of the exponent.

The density calculator cuts through that. You put in whatever units you have. It outputs whatever you need. No separate converter, no scratch paper.


What density means, without the textbook voice

Density tells you how much stuff is packed into a given space.

A bowling ball and a beach ball are about the same size. One destroys your foot if you drop it. That’s density at work — the bowling ball packs far more mass into the same volume.

Water is the universal reference point. Everything with a density below 1.0 g/cm³ floats in water. Everything above 1.0 g/cm³ sinks. A wooden log floats at roughly 0.5 g/cm³. A copper coin sinks at 8.96 g/cm³.

Density also changes with temperature and pressure. Water at 4°C is denser than water at 20°C. Hot air rises because it’s less dense than the cooler air around it. So density isn’t just a fixed property of a material — it’s a snapshot of that material under specific conditions.

Density is rarely just a lookup value. It's a snapshot of a substance under specific conditions. Know your conditions before you trust the number.

The density formula, plainly explained

Three versions of the same equation. Which one you use depends on which variable you’re solving for.

Density (ρ) = Mass (m) ÷ Volume (V)
Mass (m) = Density (ρ) × Volume (V)
Volume (V) = Mass (m) ÷ Density (ρ)

The symbol ρ is the Greek letter “rho.” If you see it in a physics or chemistry problem, that’s density. Some older textbooks use “d” instead — same thing.

Common units: g/cm³, kg/m³, g/mL, kg/L, lb/ft³. The three arrangements are all the same equation — algebra didn’t change. You’re just deciding which variable is unknown and solving for it.

The NASA Mars Climate Orbiter destroyed itself in 1999 because of a unit mismatch. One engineering team used metric units (newton-seconds), another used imperial units (pound-force-seconds) for the same thruster data. The spacecraft entered Mars’ atmosphere at the wrong angle and burned up. Cost: $327 million. Unit consistency matters.


Density of common materials

Approximate values at room temperature (20°C):

MaterialDensity (g/cm³)Floats in water?
Air (sea level)0.0012Yes
Wood (pine)0.50Yes
Ice0.917Yes
Water (4°C)1.000Reference
Seawater (3.5% salinity)1.025Sinks
Concrete2.30No
Aluminum2.70No
Iron / Steel7.87No
Copper8.96No
Lead11.34No
Gold19.32No
Osmium (densest element)22.59Definitely not

The 1.0 g/cm³ threshold is the most practically useful number in this table. Anything lighter than water floats. Anything heavier sinks. That single benchmark explains why ships float (hollow steel hull brings average density below 1.0), why icebergs are dangerous (90% submerged because ice at 0.917 g/cm³ barely floats), and why your wood furniture survives a flood better than your cast iron pan.


Real-world examples with actual numbers

Shipping and dimensional weight

Freight carriers charge based on dimensional weight when a shipment is large but light. Density is exactly what determines whether you pay by actual weight or volumetric weight.

Logistics example — light bulky package

Box dimensions: 40cm × 30cm × 20cm / Actual mass: 4.8 kg

Volume = 40 × 30 × 20 = 24,000 cm³ = 24 L

Density = 4,800 g ÷ 24,000 cm³ = 0.2 g/cm³

That’s very light for its size. Carriers charge based on volume because it takes up space in the truck. Knowing this ahead of time prevents billing surprises.

Identifying metals

You found a ring at a garage sale. The seller says it’s gold. Here’s how to check.

Metal identification example — is it gold?

Ring mass: 19.4 g / Water displacement (graduated cylinder): 1.05 mL rise

Density = 19.4 g ÷ 1.05 cm³ = 18.48 g/cm³

Pure gold = 19.32 g/cm³. The result is close but not exact. Could be 18-karat gold (alloys bring density down to roughly 15.5 g/cm³) or a gold-tungsten fake (tungsten sits at 19.25 g/cm³ and is a known fraud material). You’d need a professional assay to be certain.

Baking and cooking

Recipe calls for 250 mL of flour. Your scale shows grams. How much does 250 mL of flour actually weigh?

Baking example — volume to mass conversion

Flour density (all-purpose, loosely scooped): 0.593 g/mL / Volume: 250 mL

Mass = 0.593 × 250 = 148.25 g

Pack the cup tightly and you might scoop 180 g instead. That’s a 21% error. In baking, it changes the hydration ratio of the dough and alters the final texture significantly.

Soil and construction

Bulk density tells engineers whether ground can support a structure. Standard compacted soil runs 1.6 to 2.0 g/cm³. A test returning 1.3 g/cm³ means the soil is too loose — it needs compaction before construction begins.


Why water is weird at 4°C

Most substances get denser as they cool. Water does too, until 4°C.

Below 4°C, water expands as it forms crystalline ice. At exactly 0°C, ice has a density of 0.917 g/cm³, which is why it floats. This behaviour shaped all life on Earth.

Because ice floats, lakes freeze from the top down. The ice layer insulates the water below, keeping it liquid. Fish survive winter at the bottom of frozen lakes because of this. If water behaved like most substances and sank as it froze, the whole lake would eventually freeze solid and aquatic life in cold climates wouldn’t exist.

TemperatureWater density (g/cm³)Note
0°C0.9998Just melted ice
4°C1.0000Maximum density
20°C0.9982Room temperature
40°C0.9922Warm bath
80°C0.9718Near boiling
100°C0.9584Boiling point

For most calculations at room temperature, using 1.000 g/cm³ for water introduces under 0.2% error. For precision chemistry or hot water systems, use the temperature-corrected value.


Common mistakes when calculating density

Mixing units mid-calculation. Mass in kg, volume in cm³, expecting g/cm³ — the answer is off by a factor of 1,000. Standardize units before computing, or use a calculator that handles conversion automatically.

Using water displacement on porous objects. A sponge or porous rock absorbs water. The displacement reading is wrong, and your density calculation is wrong too. The water displacement method only works on non-absorbent objects that can be fully submerged.

Ignoring temperature. The density of liquids and gases changes with temperature. Industrial process calculations running at 80°C cannot use room-temperature density values. The error compounds at scale.

Treating bulk density and true density as the same thing. A cup of sand has a bulk density of about 1.5 g/cm³ because of air gaps between grains. The true density of quartz (the mineral itself) is 2.65 g/cm³. Use the wrong value on a construction job and your material estimate is off by 77%.

Rounding too early. Rounding mass to two decimal places before dividing introduces compounding error. Keep full precision until the final result, then round.

Bulk density and true density are not interchangeable. A bag of flour, a pile of sand, and a box of cereal all have significant air gaps that lower their bulk density well below the true density of the material itself. If your calculation needs the actual material density, measure a solid sample — not the packaged product.


Hidden factors most people ignore

Porosity. The formula ρ = m/V gives you the effective density of the object as a whole, including any empty space inside it. A handful of sand weighs what it weighs, but the air gaps between grains mean the bulk density is roughly 57% of quartz’s true density. Building material estimates, shipping weight calculations, and soil load calculations all depend on knowing which one you need.

Pressure effects on gases. Gases compress. Air at sea level is about 1.225 kg/m³. At the summit of Everest, where atmospheric pressure drops to roughly a third of sea level, air density is closer to 0.4 kg/m³. Compressed air in a scuba tank at 200 bar has a density orders of magnitude higher. For gas-phase density calculations, pressure is not optional.

Dissolved substances in liquids. Adding salt to water raises its density. Average seawater (3.5% salinity) reaches 1.025 g/cm³. The Dead Sea at roughly 33% salinity reaches 1.24 g/cm³ — which is why you float effortlessly there. A hydrometer measures sugar content in wine, beer, or honey by floating in the liquid and reading the waterline. It’s a direct density measurement.

The density you calculate is the density of the whole object as if it were uniform. Whether that assumption holds depends entirely on what you're trying to do with the number.

Density in shipping: the dimensional weight story

Carriers don’t just charge by weight. They charge by the greater of actual weight and dimensional weight (also called volumetric weight).

Dimensional weight for air freight is typically calculated as:

Dimensional weight (kg) = (Length × Width × Height in cm) ÷ 5,000

A light, bulky package takes up space in the aircraft hold. Space is the real constraint, not mass. The dimensional weight formula converts volume into an equivalent weight for billing purposes.

Shipping decision example — when volume costs more than weight

Package: 60cm × 50cm × 40cm / Actual weight: 6 kg

Volume = 120,000 cm³

Density = 6,000 g ÷ 120,000 cm³ = 0.05 g/cm³

Dimensional weight = 120,000 ÷ 5,000 = 24 kg

You’ll be billed for 24 kg, not 6 kg. If you can compress or repack the product to reduce volume by 60%, you roughly halve the freight bill. That’s a direct financial consequence of knowing your cargo density before you ship.


What to do with the result

Checking if something floats — compare your result to the fluid density. Below the fluid density, it floats. Above it, it sinks. This works for any fluid, not just water.

Identifying a material — compare your calculated density against the reference table above. A match within ±5% usually confirms the material. Outside that range, you’re probably looking at an alloy, an impurity, or a different material entirely.

Ordering material by volume but paying by weight — lumber is sold in board-feet, concrete is quoted in cubic yards, steel is priced per tonne. If the quote is volumetric but your budget is by weight (or vice versa), density is the conversion factor you need. Missing it means overpaying or under-ordering.

For engineering applications, always cross-reference your calculated density with certified material datasheets. A calculation is a sanity check, not a substitute for a specification.

Your density result is reliable when your mass measurement came from a calibrated scale and your volume measurement came from a method appropriate for the material — water displacement for solids, dimensional measurement for regular shapes, or a graduated cylinder for liquids. Match the measurement method to the material and the result will hold.


Limitations worth knowing

The density formula assumes the material is uniform throughout. Every cubic centimetre of the object has the same density as every other cubic centimetre. That’s rarely true for real objects.

A human femur has a dense outer cortical shell and a porous spongy interior. Calculating “bone density” from mass and volume gives you an average. It tells you nothing about structural integrity at a specific location, which is what actually matters for fracture risk. The same limitation applies to composite materials, foam-core sandwich panels, layered soils, and anything with internal voids.

For composite or layered materials, the effective bulk density (mass ÷ total volume) is useful for weight and buoyancy calculations, but it doesn’t describe internal structure. If the application requires knowing how the material behaves under load at a specific point, bulk density alone isn’t enough.


The bottom line

Density is mass divided by volume. One operation. The formula doesn’t change.

The work is in the setup: keeping units consistent, knowing which density value applies to your conditions, and understanding whether you need bulk density or true density for the application at hand. The calculator handles the arithmetic. The judgment about which inputs are correct is still yours.

Check your units. Compare to a reference. Know the conditions your result is valid for. Then make the call.

Frequently Asked Questions

What is the formula for density?

Density (ρ) = Mass (m) ÷ Volume (V). Rearranged: m = ρ × V and V = m ÷ ρ. This calculator solves for whichever variable you choose in the "Solve For" selector.

What unit is density measured in?

The SI unit is kg/m³. In everyday chemistry and materials science, g/cm³ is more common. Note: 1 g/cm³ = 1000 kg/m³. Water has a density of 1 g/cm³ = 1000 kg/m³.

Why does density matter?

Density determines whether an object floats or sinks (buoyancy), is used in quality control for material identification, and is fundamental to engineering calculations for structural loads, fluid dynamics, and shipping weight.

What does relative density mean?

Relative density (or specific gravity) is the ratio of a substance's density to the density of water (1 g/cm³). A value >1 means the substance is denser than water (sinks); <1 means it floats.

What is the density of water?

Pure water is densest at 4 °C: exactly 1.000 g/cm³ (1000 kg/m³). At room temperature (20 °C) it is 0.998 g/cm³. At 100 °C it drops to 0.958 g/cm³. Seawater at 3.5% salinity is approximately 1.025 g/cm³. These values are used as reference points for relative density (specific gravity) calculations.

What is the density of common metals?

Aluminium: 2.70 g/cm³. Copper: 8.96 g/cm³. Iron/steel: 7.87 g/cm³. Lead: 11.34 g/cm³. Gold: 19.32 g/cm³. Titanium: 4.51 g/cm³. Osmium (densest element): 22.59 g/cm³. These values are for pure metals at room temperature; alloys and composites will differ.

How do you measure the density of an irregular object?

Use Archimedes' water displacement method: (1) weigh the dry object to get mass. (2) Fill a graduated cylinder with water, record the volume. (3) Submerge the object completely and record the new volume. (4) Volume of object = new volume − original volume. (5) Density = mass ÷ displaced volume. The object must not absorb water.

What is the difference between density and specific gravity?

Specific gravity (SG) is the ratio of a substance's density to the density of water (1.0 g/cm³ at 4 °C). It is dimensionless. SG = density (g/cm³) / 1.0. Numerically, the SG of a substance equals its density in g/cm³. For example, gold has a density of 19.32 g/cm³ and an SG of 19.32.

How does temperature affect the density of gases?

Gases are highly sensitive to temperature. Using the ideal gas law (PV = nRT), density is proportional to 1/T (at constant pressure). Air at 0 °C has a density of 1.293 kg/m³; at 100 °C it drops to 0.946 kg/m³. This is why hot air rises and why altitude affects aircraft performance.

What is bulk density vs true density?

True density is the density of the solid material itself (no gaps). Bulk density accounts for the air gaps between particles in a powder or granular material. Sand has a true density of ~2.65 g/cm³ but a bulk density of ~1.5 g/cm³ because of void space between grains. Bulk density is what matters for purchasing and shipping materials.

Related Calculators