Calculating the density of a cube takes three measurements and one short formula: weigh the cube to get its mass, measure one side to get its length, cube that length to find the volume, then divide mass by volume. That gives you density. The formula looks like this: density equals mass divided by the side length multiplied by itself three times. Simple as it sounds, the accuracy of your result depends heavily on how carefully you take those measurements and what you do with the numbers afterward.
The Formula and What It Means
Density tells you how much stuff is packed into a given space. For any object, it equals mass divided by volume. A cube makes the volume part easy because all three sides are the same length. If you call the side length “s,” the volume is s × s × s. So the full calculation is: density = mass ÷ (s × s × s). If your cube has a side length of 2 centimeters and a mass of 40 grams, the volume is 8 cubic centimeters, and the density is 5 grams per cubic centimeter.
That number, 5 g/cm³, is close to the density of titanium. If you got something around 2.7, you probably have aluminum. Around 7.9 suggests steel. Around 8.9 points to copper. Density is one of the most practical ways to identify an unknown material when you have a regular shape to work with, and a cube is the most cooperative shape there is.
How to Measure the Side Length Well
Your density result is only as good as your side measurement, and because you cube that number, any error gets magnified. If your ruler reading is off by 5%, your volume calculation will be off by roughly 15%, and your final density will be wrong by the same amount. This is why precision matters more for the length than for the mass.
For a cube that fits in your hand, a set of calipers is the best tool. Digital calipers are inexpensive and read to a tenth of a millimeter, which is far more precise than a standard ruler. Place the jaws of the caliper snugly around the cube’s edge without squeezing. Measure each of the three independent side lengths, because in the real world, no cube is mathematically perfect. If the three readings differ, average them before you cube the result. That average gives you a more honest volume than picking just one measurement.
For very small cubes, like sugar cubes or dice, a micrometer can push your precision even further. For large cubes, a tape measure works, but you should expect a lower-precision result and account for that when you interpret your density number.
How to Measure Mass Accurately
Place the cube on a digital scale or balance and record the reading. For most purposes, a kitchen scale that reads to 0.1 grams is good enough for cubes heavier than about 10 grams. For lighter cubes, or when you need higher accuracy, an analytical balance reading to 0.001 grams is what laboratory settings use.
A practical tip that many people overlook: zero the scale before placing the object. If you are using a container or tray, place it on the scale first and tare (zero) it out, then add the cube. This sounds obvious, but it is the single most common source of error in student lab work.
For very precise work, the air around your cube actually pushes up on it slightly, just as water pushes up on a submerged object. This air buoyancy effect is tiny for dense materials but can matter for lightweight or large cubes. In professional metrology labs, technicians apply an air buoyancy correction to account for this. For a homework assignment or a workshop project, you can safely ignore it.
Choosing and Converting Units
Density values are meaningless without units, and mixing up your units is the fastest way to get an answer that looks wildly wrong. The most common unit combinations are:
- g/cm³: Grams for mass, centimeters for length. This is the most intuitive scale for hand-sized objects. Water is 1.0 g/cm³, which makes comparisons easy.
- kg/m³: Kilograms for mass, meters for length. This is the standard SI unit for density. Water is 1,000 kg/m³ in these units. To convert from g/cm³, multiply by 1,000.
- lb/ft³: Pounds for mass, feet for length. Common in U.S. engineering contexts. Water is about 62.4 lb/ft³.
The key rule is consistency: if you measured the side in centimeters, your volume will be in cubic centimeters, and your mass had better be in grams if you want a density in g/cm³. If you measured the side in millimeters, your volume is in cubic millimeters. Dividing grams by cubic millimeters gives you g/mm³, a unit almost nobody uses. Convert millimeters to centimeters first (divide by 10), then proceed. Getting this conversion step right prevents the most common arithmetic disaster in density calculations.
Why a Cube Is the Easiest Shape
Cubes are the introductory shape for density problems in every physics and chemistry class for a reason. With a sphere, you need the radius and then use the formula 4/3 × π × r³, which introduces rounding from π. With a cylinder, you need both the radius and the height, and π appears again. With an irregular rock, you cannot calculate volume from dimensions at all and must resort to water displacement. A cube sidesteps all of that: one measurement, no π, no complicated geometry. The calculation is pure multiplication and division.
This is also why cubes show up as test shapes in materials science and engineering. When researchers want a clean density measurement of a new alloy or a 3D-printed material, they often fabricate a sample in a cube or rectangular block specifically because the volume calculation introduces the least geometric uncertainty.
What If Your Cube Is Not Quite Perfect
Real objects sold or described as cubes are usually close but not exact. A wooden block cut on a table saw, a machined metal sample, or a sugar cube from a box will have sides that differ by small amounts. A die from a board game might have rounded edges or drilled pips that remove material.
For slight imperfections, measuring all three side lengths independently and multiplying them together (length × width × height) gives you the volume of a rectangular prism, which is a better approximation than assuming it is a perfect cube. This does not add any mathematical difficulty. If the sides measure 2.01, 1.98, and 2.00 cm, multiply those together to get 7.96 cm³ rather than assuming 2.00 cm for all three and getting 8.00 cm³. That small correction shifts your density result by about half a percent, which can matter if you are trying to identify the material.
For cubes with rounded corners, chipped edges, or internal voids, measuring dimensions alone will overestimate the true volume. That means your calculated density will be lower than the material’s actual density, since you are dividing the real mass by a volume that is too large. If you suspect this is happening, a water displacement method will give you a more accurate volume.
Using Water Displacement as a Backup
If your cube is damaged, porous, or oddly shaped enough that measuring sides feels unreliable, you can find its volume by submerging it in water instead. Fill a graduated cylinder or measuring cup with enough water to fully cover the cube, note the water level, drop the cube in, and note the new water level. The difference in water levels, read in milliliters, gives you the volume in cubic centimeters, since 1 mL equals 1 cm³.
A more precise version of this approach, sometimes called the Archimedes suspension method, involves placing a water-filled container on a scale, then suspending the object in the water from a thread without letting it touch the bottom. The increase in the scale reading equals the weight of water displaced, and from that you can back-calculate the volume with good accuracy.
1Physics Education. Archimedes revisited: a faster, better, cheaper method of accurately measuring the volume of small objectsWater displacement will not work well for cubes made of materials that dissolve, absorb water, or react with it. A sugar cube will start dissolving immediately. A cube of calcium metal will fizz. For those cases, you would either need to coat the cube in a waterproof layer first, use a different liquid, or rely on dimensional measurements despite their limitations.
How Temperature Changes Your Result
Most materials expand when heated and contract when cooled. This thermal expansion changes the volume of your cube without changing its mass, so the density shifts with temperature. The effect is real but small for everyday conditions. A steel cube heated from room temperature to 100°C expands by roughly 0.04% in each dimension, changing its volume by about 0.12% and its density by the same fraction. For almost all practical purposes, you can ignore this.
Where it starts to matter is in precision engineering or scientific research. If you are comparing your measured density to a published reference value, keep in mind that published densities are typically reported at 20°C or 25°C. If your cube is sitting in a hot workshop or a cold garage, your measurement will drift slightly from the reference. In solids, uneven temperatures can even cause internal stresses as colder regions contract while warmer regions expand.2PubMed Central. PERSPECTIVE: Temperature-dependent density and thermal expansion of cryoprotective cocktails For a rough calculation, none of this matters. For a lab report where you need to match a known value within 1%, measuring at or near room temperature keeps you in the safe zone.
Common Mistakes That Throw Off the Answer
After working through many student and hobbyist density calculations, certain errors come up repeatedly. Knowing them in advance saves frustration.
- Unit mismatch: Measuring in millimeters but treating the volume as cubic centimeters. Since there are 1,000 cubic millimeters in one cubic centimeter, this error makes the density off by a factor of a thousand.
- Forgetting to cube the length: Dividing mass by the side length instead of the side length cubed. This gives a number with the wrong units and is usually obvious because the result is absurdly large.
- Using weight instead of mass: On Earth, your scale gives you a number in grams or kilograms that represents mass. If you are working with a force measurement in newtons, you need to convert. For any standard scale reading, you already have mass.
- Measuring the wrong edge: On a cube with slightly different dimensions, measuring the same edge three times instead of three different edges. This hides the variation and inflates or deflates your volume depending on which edge you picked.
Research on how students understand density has found that misconceptions persist even among university-level science students. A common one is the belief that density changes when you cut an object in half, or that heavier objects are always denser. Density is an intrinsic property of the material, not of the object’s total size or mass. A tiny aluminum cube and a huge aluminum cube have the same density.3Journal of Pedagogical Research. Medical school students’ misconceptions regarding concept of density
What Your Density Number Tells You
Once you have a density value, you can do several useful things with it. The most immediate is material identification. Every pure material has a characteristic density, and comparing your measurement to a reference table can tell you what you are holding. A cube with a density of 19.3 g/cm³ is almost certainly gold or tungsten. Around 11.3 g/cm³ suggests lead. Near 0.9 g/cm³ points to many common plastics or some types of wood.
You can also determine whether your cube will float. Any object with a density lower than water (less than 1.0 g/cm³) will float in water. Interestingly, how a floating cube orients itself depends on its exact density and how water wets its surface. Researchers have found that cubes can float edge-up, vertex-up, or face-up depending on these properties.4PubMed. Effect of contact angle on the orientation, stability, and assembly of dense floating cubes You have probably seen ice cubes floating in various tilted positions, and this is why.
In manufacturing, density measurements serve as quality checks. If you 3D-print a cube and its density comes in lower than expected for the material, the print likely has internal voids or incomplete layer fusion. Micro-CT scanning can combine visualization of internal structure with accurate volumetric measurements to track down exactly where the problem is.5MethodsX. Standard method for microCT-based additive manufacturing quality control 2: Density measurement
Advanced Methods for Precise Volume Measurement
For research or industrial applications where caliper measurements are not precise enough, specialized instruments take volume measurement to another level. Gas pycnometry, for example, determines volume by measuring how much gas an object displaces inside a sealed chamber. This technique is especially useful for porous or irregularly shaped materials. In one study, sucrose samples measured by helium pycnometry returned consistent densities around 1.51 to 1.52 g/cm³ regardless of whether the material was intact or ground up.6PubMed. Application of gas pycnometry for the density measurement of freeze-dried products Helium is the gas of choice because its atoms are small enough to penetrate fine pores, giving a volume measurement that reflects the solid material itself rather than the material plus its air pockets.7PubMed Central. Understanding Material Characteristics through Signature Traits from Helium Pycnometry
CT scanning offers yet another approach. Originally developed for medical imaging, X-ray computed tomography can map density distributions in three dimensions. Researchers have used it to measure soil bulk density with fine spatial resolution and to map the internal air-bubble distribution of ice cores.8Journal of Geophysical Research: Solid Earth. Nondestructive, three‐dimensional density measurements of ice core samples by X ray computed tomography 9Soil Science Society of America Journal. Soil Bulk Density Analysis in Three Dimensions by Computed Tomographic Scanning For a standard cube of uniform material, CT scanning is overkill. But for a cube with suspected internal defects, inclusions, or density gradients, it reveals what simple mass-and-ruler calculations cannot.
How Density Standards Are Maintained
If you have ever wondered how scientists know the “correct” density of any reference material in the first place, the answer involves some impressive metrology. National standards laboratories maintain density standards using single-crystal silicon spheres. These are not cubes, but the principle is the same: weigh the object precisely, measure its dimensions precisely, and divide. For these spheres, the mass is compared against a kilogram standard, and the diameter is measured with laser interferometry to extraordinary precision.10Metrologia. Present state of the solid and liquid density standards In Japan, two such 1 kg silicon spheres serve as the nation’s primary density standards.11Surface and Interface Analysis. XPS study of silicon spheres as a density standard
The reason silicon spheres rather than silicon cubes serve as standards is that a sphere has no edges or corners to chip, and its geometry can be characterized with a single measurement (diameter) taken from many angles. Cubes have twelve edges and eight corners, all of which are vulnerable to micro-damage that would throw off the volume calculation. Still, the underlying math is identical in spirit to what you do at your kitchen table: find mass, find volume, divide.
Density Under Extreme Conditions
The relationship between mass, volume, and density holds everywhere in the universe, but measuring it gets dramatically harder under extreme pressures and temperatures. Geophysicists studying Earth’s deep interior need to know how rock and metal densities change when squeezed at pressures millions of times atmospheric. One technique uses X-ray absorption imaging inside a diamond anvil cell, where a tiny sample is crushed between two diamond tips while being heated externally. Researchers measured the density of solid indium up to pressures around 18.6 gigapascals and temperatures near 720 K using this method.12Comptes Rendus Geoscience. Development of density measurement for metals at high pressures and high temperatures using X-ray absorption imaging combined with externally heated diamond anvil cell At those pressures, the material compresses significantly, raising its density well beyond normal values.
The kilogram itself was originally defined in reference to density. In the late 18th century, the kilogram was set as the mass of one cubic decimeter of water at its temperature of maximum density.13Metrologia. A brief history of the unit of mass: continuity of successive definitions of the kilogram In other words, the people who created the metric system started with a cube of water and worked outward. That cube-of-water concept persisted for two centuries before the kilogram was redefined in terms of fundamental constants of nature. The next time you divide mass by volume for a homework problem, you are performing a version of the same operation that gave us our system of measurement in the first place.