Density Calculator

A density calculator helps you quickly find the density, mass, or volume of any substance when you know two of the three values. Whether you're a student working through a physics problem, an engineer specifying materials, or just curious about why some things float and others sink, this tool does the math in seconds. Density shows up everywhere: cooking, construction, chemistry, shipping, and manufacturing all depend on it in one way or another. Getting a handle on how density works (and how to calculate it) is genuinely useful, not just an academic exercise.

Enter Details

Density = mass ÷ volume

Result

Enter mass and volume to find density.

Use consistent units for mass and volume (e.g. kg and m³).

How to Calculate Density

Calculating density comes down to dividing an object's mass by its volume. That's really it. If you know how much something weighs and how much space it takes up, you can find its density. The tricky part is usually making sure your units are consistent before you start dividing.

Here's the basic process:

  1. Measure or look up the mass of the object (in grams, kilograms, pounds, etc.).
  2. Measure or look up the volume of the object (in cm³, m³, liters, ft³, etc.).
  3. Divide mass by volume to get density.
  4. Make sure both measurements use compatible units so your result makes sense.

For irregular solids, you can find volume using water displacement: submerge the object in a graduated cylinder and measure how much the water level rises. For liquids, you pour a known volume and weigh it. For regular geometric shapes, you use the appropriate volume formula (length × width × height for a rectangular box, for example).

Density Formula

The density formula is written as:

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

Using the Greek letter rho (ρ) is the standard scientific notation, but you'll also see it written simply as d in some textbooks. The formula can be rearranged depending on which variable you're solving for:

  • To find density: ρ = m ÷ V
  • To find mass: m = ρ × V
  • To find volume: V = m ÷ ρ

These three versions of the same relationship are sometimes called the density triangle or the mass-density-volume triangle. Cover the variable you want to find, and what's left tells you how to calculate it. Simple, but surprisingly powerful once you start applying it to real problems.

Density Calculator for Mass and Volume

A density calculator designed around mass and volume inputs takes those two numbers and spits out density automatically. You don't have to worry about rearranging the formula or converting units on the fly. Just plug in what you know.

Most calculators in this category let you select your preferred units from a dropdown menu, handle the conversion internally, and display the result in whatever unit system you need. That's especially handy when you're working across metric and imperial measurements, which happens more often than you'd think in real-world applications.

Calculate Density from Mass and Volume

To calculate density from mass and volume, divide the mass value by the volume value. The key is unit consistency. If mass is in grams and volume is in cubic centimeters, your density will be in g/cm³. If mass is in kilograms and volume is in cubic meters, you'll get kg/m³.

A quick example: a rock has a mass of 250 grams and a volume of 100 cm³. Density = 250 ÷ 100 = 2.5 g/cm³. That's denser than water (1 g/cm³), so it sinks. Makes sense.

When using a calculator, enter your mass and volume, pick your units, and let it handle the arithmetic. Double-check your unit selection before reading the result since that's the most common source of errors.

Understanding Density Units

Density units are always a unit of mass divided by a unit of volume. The most common ones you'll run into:

  • g/cm³ (grams per cubic centimeter) — standard in chemistry and materials science. Water is 1 g/cm³ at 4°C.
  • kg/m³ (kilograms per cubic meter) — the SI unit, common in physics and engineering.
  • lb/ft³ (pounds per cubic foot) — used in American construction and HVAC.
  • lb/in³ (pounds per cubic inch) — shows up in aerospace and machining.
  • g/mL (grams per milliliter) — essentially the same as g/cm³, used for liquids and gases.

One thing worth keeping straight: 1 g/cm³ equals exactly 1000 kg/m³. That conversion trips people up because it's not a factor of 1, even though both units are metric. Always confirm what unit your calculator is outputting before using the number downstream in another calculation.

Mass Calculator Using Density

When you already know the density of a material and the volume of the object, finding mass is straightforward. You're just reversing the density formula. This comes up constantly in engineering and manufacturing, where you might know the density of a metal alloy from a spec sheet and need to figure out how much a particular part will weigh before it's even fabricated.

The rearranged formula is: m = ρ × V. Multiply density by volume and you've got mass. A mass calculator automates this so you can quickly compare how much different materials would weigh at the same volume, which is useful when selecting materials for weight-sensitive applications.

Find Mass from Density and Volume

To find mass, multiply the density of the material by its volume. Make sure the units play nicely together. If density is in kg/m³ and volume is in m³, mass comes out in kilograms. If density is in g/cm³ and volume is in cm³, mass is in grams.

Example: you need to find the mass of an aluminum block with a volume of 500 cm³. Aluminum has a density of about 2.7 g/cm³. Mass = 2.7 × 500 = 1,350 grams, or 1.35 kg. That's the kind of quick calculation that saves a lot of guesswork on a job site or in a workshop.

Mass Calculation Examples

Here are a few worked examples covering different materials and unit systems:

MaterialDensityVolumeCalculated Mass
Water1 g/cm³750 cm³750 g
Steel7,850 kg/m³0.002 m³15.7 kg
Oak wood0.75 g/cm³2,000 cm³1,500 g (1.5 kg)
Concrete2,300 kg/m³0.5 m³1,150 kg

Notice that even materials with similar-sounding volumes can have dramatically different masses depending on density. That concrete block weighs over a ton; an equal volume of oak wood comes in at a fraction of that.

Volume Calculator Using Density

Sometimes you know how much something weighs and what it's made of, but you need to figure out how much space it takes up. That's where a volume calculator using density comes in. This is common in shipping and logistics (figuring out how much cargo space a shipment occupies), in chemistry (finding the volume of a liquid from its mass), and in manufacturing (checking whether a part's dimensions match its expected weight).

The formula here is: V = m ÷ ρ. Divide mass by density and you get volume. A good calculator handles the unit juggling automatically so you can focus on interpreting the result rather than doing conversions by hand.

Find Volume from Density and Mass

To find volume, divide mass by density. Same unit-matching rules apply. If mass is in grams and density is in g/cm³, volume comes out in cm³. If mass is in kilograms and density is in kg/m³, volume is in m³.

Example: you have 5 kg of vegetable oil with a density of about 0.92 g/cm³ (or 920 kg/m³). Volume = 5 kg ÷ 920 kg/m³ = 0.00543 m³, which is about 5.43 liters. That matches the real-world experience of a roughly 5-liter jug of cooking oil, which is a handy sanity check on your calculation.

Volume Calculation Examples

Here's a quick reference for volume calculations across a range of common materials:

MaterialMassDensityCalculated Volume
Gold1,000 g19.32 g/cm³~51.8 cm³
Ice500 g0.917 g/cm³~545 cm³
Gasoline10 kg720 kg/m³~0.0139 m³ (13.9 L)
Copper2,000 g8.96 g/cm³~223 cm³

Gold's high density is obvious here: 1,000 grams of it fits in a space not much bigger than a golf ball. Ice takes up more space than the same mass of liquid water, which is why ice floats. These numbers tell a story once you look at them side by side.

Density, Mass, and Volume Relationship

Density, mass, and volume are locked together. Change one and at least one of the others changes too. This relationship is why materials behave so differently even when they look similar in size.

Think of it this way: two boxes of the same size can have completely different masses if they're made of different materials. A wooden box and a steel box of identical dimensions will have very different weights because steel is about 10 times denser than typical wood. The volume is the same; the mass is not.

The relationship also explains buoyancy. An object floats if its overall density is less than the fluid it's placed in. A steel ship floats because the ship's total mass divided by its total volume (including all the hollow interior space) is less than the density of water. Crush the ship into a solid ball of steel and it sinks immediately.

Temperature and pressure can shift density too. Gases are extremely sensitive to both. Liquids expand slightly with heat, lowering their density. Even solids change density slightly across temperature ranges, which matters in precision engineering. Understanding this three-way relationship is foundational for physics, chemistry, and engineering problems of almost any complexity.

Density Unit Conversions

Unit conversions are one of the most error-prone parts of density calculations. The numbers can look wildly different depending on which unit system you're using, even when they represent the exact same physical density. Having a reliable conversion method (or a calculator that does it automatically) saves a lot of headaches.

The most common conversions involve switching between SI units (kg/m³, g/cm³) and imperial units (lb/ft³, lb/in³). You can also run into g/L and mg/mL in laboratory contexts. The good news is that most conversions come down to multiplying or dividing by a fixed factor.

kg/m³ to g/cm³ Conversion

This is the most common metric-to-metric density conversion, and the factor is simple: 1 g/cm³ = 1,000 kg/m³.

To convert from kg/m³ to g/cm³, divide by 1,000. To go the other direction, multiply by 1,000.

  • Water at 4°C: 1,000 kg/m³ = 1 g/cm³ ✓
  • Aluminum: 2,700 kg/m³ = 2.7 g/cm³ ✓
  • Iron: 7,874 kg/m³ = 7.874 g/cm³ ✓

The math is easy, but people sometimes multiply when they should divide (or vice versa). A quick sanity check: g/cm³ values for common solids tend to fall between 0.5 and 20. If your answer is wildly outside that range, you probably went the wrong direction on the conversion.

lb/ft³ to kg/m³ Conversion

Converting between pounds per cubic foot and kilograms per cubic meter requires a less round conversion factor: 1 lb/ft³ ≈ 16.0185 kg/m³.

To convert lb/ft³ to kg/m³, multiply by 16.0185. To go from kg/m³ to lb/ft³, divide by 16.0185 (or multiply by 0.06243).

  • Water: 62.4 lb/ft³ × 16.0185 ≈ 999.6 kg/m³ (essentially 1,000 kg/m³, as expected)
  • Dry air at sea level: ~0.0765 lb/ft³ × 16.0185 ≈ 1.225 kg/m³
  • Douglas fir wood: ~33 lb/ft³ × 16.0185 ≈ 529 kg/m³

If you're working in American construction or HVAC and need to hand off specs to someone using SI units, this is the conversion you'll use most. Memorizing the factor 16.018 (or just rounding to 16) gets you close enough for most practical purposes, though for anything precision-critical, use the full factor or a calculator.

Density Calculation Examples

Pulling it all together, here are several practical density calculation examples across different scenarios:

ScenarioKnown ValuesFormula UsedResult
Identify a metal sampleMass = 178.5 g, Volume = 20 cm³ρ = m ÷ V8.925 g/cm³ (likely nickel or copper)
Weight of a concrete slabρ = 2,300 kg/m³, V = 1.2 m³m = ρ × V2,760 kg
Volume of a fuel loadm = 800 kg, ρ = 800 kg/m³ (jet fuel)V = m ÷ ρ1.0 m³ (1,000 liters)
Check if wood floatsρ = 0.6 g/cm³ (pine), water = 1 g/cm³Compare densities0.6 < 1.0, so it floats

Each of these examples uses the same core formula, just applied to a different real-world question. Identifying unknown materials by their density is a classic lab technique. Calculating the mass of a structural element before it's built is standard engineering practice. Checking buoyancy is as simple as comparing two density values.

Once you're comfortable moving between the three forms of the density equation, you'll find these calculations become second nature. The calculator takes care of the arithmetic; understanding which version of the formula to use is the real skill.

Other Maths Calculators

Explore all