To calculate density, divide an object’s mass by its volume: ρ = m ÷ V. A block of aluminum with a mass of 108 g and a volume of 40 cm³ has a density of 108 ÷ 40 = 2.7 g/cm³. Measure mass on a scale, find volume from the object’s dimensions or by water displacement, and keep the units consistent.
Density tells you how tightly matter is packed. It explains why ice floats on a drink, why a steel ship floats while a steel bolt sinks, and how a jeweler can tell real gold from plated brass without scratching it. The formula is short, but most wrong answers come from mixed units or a sloppy volume measurement, so this guide spends most of its time there.
If you want to check a result as you read, our density calculator solves for density, mass or volume and has reference values for common materials built in.
The density formula and how to rearrange it
Density is mass per unit volume:
ρ = m ÷ V
The Greek letter ρ (rho) is the usual symbol, though you will also see D or d in school textbooks. Because the formula has three quantities, you can solve for any one if you know the other two:
- Density: ρ = m ÷ V
- Mass: m = ρ × V
- Volume: V = m ÷ ρ
A memory trick many students use is a triangle with m on top and ρ and V side by side underneath. Cover the quantity you want, and the remaining two show you whether to multiply (side by side) or divide (one over the other).
The rearranged forms are often more useful than the original. A brewer who knows the density of a liquid can turn a volume into a weight. A shipping clerk can estimate the volume of a load from its weight. Our volume to mass calculator does that conversion for dozens of substances.
Density units and how to convert them
Any mass unit divided by any volume unit gives a density unit. Three come up constantly:
- g/cm³ (grams per cubic centimeter), the usual unit in chemistry and school science. One cm³ is the same as one milliliter, so g/cm³ and g/mL are identical.
- kg/m³ (kilograms per cubic meter), the SI unit, used in engineering and physics.
- lb/ft³ (pounds per cubic foot), common in US construction, shipping and materials data.
The conversions you need most:
- 1 g/cm³ = 1,000 kg/m³
- 1 g/cm³ = 62.43 lb/ft³
- 1 lb/ft³ = 16.018 kg/m³
Water is the easy reference point: about 1 g/cm³, 1,000 kg/m³ or 62.4 lb/ft³. The NIST guide to SI units lists the kilogram and cubic meter as the base and derived units behind kg/m³. For any other combination, the density converter handles the arithmetic.
How to calculate density of a regular solid
For a block, cylinder, sphere or any shape with a volume formula, measure the dimensions, compute the volume, weigh the object, then divide.
Example 1: a rectangular block
You have a metal block measuring 5 cm × 4 cm × 2 cm, and a kitchen scale reads 108 g.
- Volume: 5 × 4 × 2 = 40 cm³.
- Mass: 108 g.
- Density: 108 ÷ 40 = 2.7 g/cm³, or 2,700 kg/m³.
That matches aluminum (2,700 kg/m³) almost exactly, so the block is very likely aluminum. Steel would be nearly three times heavier for the same size.
Example 2: a steel rod (solving for mass)
A solid steel rod is 2 cm in diameter and 30 cm long. How heavy is it?
- Radius: 2 ÷ 2 = 1 cm.
- Volume of a cylinder: π × r² × h = π × 1² × 30 = 94.25 cm³.
- Steel density: 7.85 g/cm³.
- Mass: 7.85 × 94.25 = 739.8 g, or about 0.74 kg (1.63 lb).
The cylinder calculator gives the volume if you would rather not do the π arithmetic, and our guide on how to find the volume covers formulas for cones, spheres, prisms and pyramids.
Example 3: working in pounds and feet
A sealed box measures 12 in × 8 in × 6 in and weighs 18 lb. Volume in cubic inches is 12 × 8 × 6 = 576 in³. There are 1,728 in³ in a cubic foot, so the volume is 576 ÷ 1,728 = 0.333 ft³. Density = 18 ÷ 0.333 = 54 lb/ft³, or about 865 kg/m³. Freight companies use this same figure (pounds per cubic foot) to set shipping classes.
Irregular objects: the water displacement method
A rock, a key or a piece of jewelry has no simple volume formula. Instead, let water measure it for you. When you submerge an object, it pushes aside exactly its own volume of water. This is the principle Archimedes is famous for.
Example 4: a rock in a measuring cylinder
- Weigh the dry rock: 245 g.
- Fill a graduated cylinder partway with water and read the level: 50.0 mL.
- Lower the rock in gently (tilt the cylinder or use a thread so it does not splash or crack the glass) and read the new level: 142.5 mL.
- Volume of rock = 142.5 − 50.0 = 92.5 mL = 92.5 cm³.
- Density = 245 ÷ 92.5 = 2.65 g/cm³.
A density of 2.65 g/cm³ is typical of quartz and many common rocks such as granite and sandstone.
Example 5: weighing in water (no cylinder needed)
For small, dense items, a better approach uses a scale twice. Hang the object from a thread, weigh it in air, then weigh it again fully submerged in a cup of water (without touching the bottom). The drop in reading equals the mass of the water displaced, and since water is about 1 g per cm³, that number in grams is the object’s volume in cm³.
A bracelet weighs 38.6 g in air and 36.6 g in water. The difference is 2.0 g, so the volume is 2.0 cm³ and the density is 38.6 ÷ 2.0 = 19.3 g/cm³. That matches gold (19.32 g/cm³). Gold-plated brass would come out near 8.5 g/cm³.
Precision matters a lot here. If the scale reads to 0.1 g, the 2.0 g difference could really be 1.9 g or 2.1 g, which puts the density anywhere from 18.4 to 20.3 g/cm³. Use a scale with finer resolution or a larger object when you can. The Archimedes’ principle calculator and the buoyancy calculator work through the forces involved.
Densities of common materials
These are approximate values at room temperature, the same reference figures our density calculator uses. Real materials vary with composition, moisture and temperature, so treat the third significant figure loosely.
| Material | kg/m³ | g/cm³ | lb/ft³ |
|---|---|---|---|
| Air (sea level, 15 °C) | 1.225 | 0.001225 | 0.0765 |
| Pine wood | 500 | 0.50 | 31.2 |
| Gasoline | 745 | 0.745 | 46.5 |
| Oak wood | 750 | 0.75 | 46.8 |
| Olive oil | 911 | 0.911 | 56.9 |
| Ice | 917 | 0.917 | 57.2 |
| Water (4 °C) | 1,000 | 1.000 | 62.4 |
| Seawater | 1,025 | 1.025 | 64.0 |
| Honey | 1,420 | 1.42 | 88.6 |
| Concrete | 2,400 | 2.40 | 149.8 |
| Aluminum | 2,700 | 2.70 | 168.6 |
| Steel | 7,850 | 7.85 | 490.1 |
| Copper | 8,960 | 8.96 | 559.4 |
| Lead | 11,340 | 11.34 | 707.9 |
| Gold | 19,320 | 19.32 | 1,206.1 |
A few practical uses of this table: concrete at about 2,400 kg/m³ means one cubic yard weighs roughly 4,000 lb, which is why our concrete guide warns against overloading a pickup. Olive oil at 0.911 g/cm³ means 2 liters weigh about 1.82 kg. And 1 kg of gold occupies only 51.8 cm³, about three and a half tablespoons.
Specific gravity: density compared with water
Specific gravity (also called relative density) is the density of a substance divided by the density of water:
SG = ρ(substance) ÷ ρ(water)
Because the units cancel, specific gravity is a plain number. And because water is about 1 g/cm³, the specific gravity is numerically the same as the density in g/cm³. Aluminum has SG 2.7, olive oil 0.911, gold 19.32.
The rule that follows is simple: anything with SG below 1 floats in fresh water, and anything above 1 sinks (unless its shape traps air, like a steel hull). Ice at 0.917 floats with about 92% of its volume below the surface, which is where the phrase “tip of the iceberg” comes from. Brewers use a hydrometer to track specific gravity as sugar turns into alcohol, and gemologists use it to separate look-alike stones. Our specific gravity calculator also gives API gravity for petroleum liquids.
Why density changes with temperature and pressure
Most materials expand when heated. The mass stays the same while the volume grows, so the density drops. For solids and liquids the change is small but real. Pure water is densest at about 4 °C (0.99997 g/cm³) and slightly less dense at room temperature, about 0.998 g/cm³ at 20 °C. The USGS Water Science School explains why water behaves oddly near freezing, and the water density calculator gives the value at any temperature.
Ice is the famous exception to “solids are denser than liquids”. Water expands by about 9% when it freezes, so ice ends up roughly 8% less dense than liquid water and floats. Lakes freeze from the top down, which keeps fish alive through the winter.
Gases are far more sensitive. Their density depends strongly on both temperature and pressure, which is why air at sea level is about 1.225 kg/m³ but much thinner on a mountain. For gas densities, use the ideal gas law rather than a fixed table value.
Common mistakes
- Mixing units. Grams divided by liters gives g/L, not g/cm³. Convert first: 1 L = 1,000 cm³.
- Using diameter instead of radius in a cylinder or sphere volume. This makes the volume four times too large for a cylinder and eight times too large for a sphere.
- Reading a measuring cylinder from above or below eye level. Read the bottom of the curved surface (the meniscus) at eye level.
- Leaving air bubbles on an object in water. Trapped air adds volume and makes the density too low. Tap the object gently to release bubbles.
- Confusing weight and mass. In everyday use a scale reading in grams or pounds is fine, but in physics problems weight is a force in newtons and must be divided by g (9.81 m/s²) to get mass.
- Treating a porous object as solid. Wood, bricks and sponges contain air, so you get the bulk density, not the density of the material itself.
Frequently asked questions
What is the formula for density?
Density equals mass divided by volume, written ρ = m ÷ V. To find mass, multiply density by volume. To find volume, divide mass by density.
What is the density of water?
About 1 g/cm³, which is 1,000 kg/m³ or 62.4 lb/ft³. The exact value is highest at about 4 °C and falls slightly as water warms.
How do you find the density of an irregular object?
Weigh it, then measure its volume by water displacement: note the water level in a measuring cylinder before and after submerging the object. The rise in milliliters equals the volume in cubic centimeters.
Is density the same as weight?
No. Weight depends on how much material there is, while density describes how tightly it is packed. A large log weighs more than a small steel nail, yet the nail is far denser.
What is the difference between density and specific gravity?
Density has units such as g/cm³ or kg/m³. Specific gravity is density divided by the density of water, so it has no units. In g/cm³ the two numbers are almost identical.
Density calculations reward care more than cleverness: get the volume right, keep the units matched, and the division is the easy part. Once you have a density, the same number lets you identify a material, predict whether it will float and turn volumes into weights for shipping, cooking or construction. Our guide to cups to grams shows that last idea in the kitchen, and the density calculator is there whenever you want to check your work.
