Density Calculator: Mass & Volume to Density
- Mass in kg
- kg
- Result
- Volume in L
- L
- Result
- Mass
- 50 g
- You entered
A density calculator works out density from mass and volume, or finds the missing mass or volume when the other two are known. You enter any two of the three values and the calculator returns the third, using the standard formula density = mass ÷ volume. The result is given in grams per cubic centimeter (g/cm³) or kilograms per cubic meter (kg/m³), depending on the units you choose.
Formula
The density formula is written as:
� = m / V
- � (rho) is the density, measured in grams per cubic centimeter (g/cm³) or kilograms per cubic meter (kg/m³).
- m is the mass, measured in grams (g) or kilograms (kg).
- V is the volume, measured in cubic centimeters (cm³) or cubic meters (m³).
The same formula can be rearranged to solve for mass (m = � × V) or volume (V = m / �). The calculator above uses the first form directly, and the two extra outputs convert the mass to kilograms and the volume to liters for convenience.
Worked Example
Using the default values from the calculator block: mass = 50 g, volume = 10 cm³.
- Write the formula: � = m / V.
- Substitute the numbers: � = 50 g / 10 cm³.
- Divide: � = 5 g/cm³.
The calculator returns 5.00 g/cm³ as the headline answer, matching the step-by-step result. The mass in kg is 50 / 1000 = 0.050 kg, and the volume in liters is 10 / 1000 = 0.010 L.
When to Use a Density Calculator
Density calculations appear in many everyday and technical situations:
- Identifying a material: Measure a sample’s mass and volume, compute density, and compare it to known values (e.g., aluminum ≈ 2.7 g/cm³, iron ≈ 7.9 g/cm³).
- Checking if an object floats: Compare the object’s density to the fluid’s density. If the object is less dense, it floats; if denser, it sinks. Water at room temperature is about 1 g/cm³.
- Quality control: In manufacturing, density can reveal voids, cracks, or changes in composition.
- Shipping and packing: Density helps estimate whether a package is charged by weight or by volume.
- Mixing liquids: When combining two liquids, the final density depends on the densities and volumes of each component.
For irregularly shaped objects, volume is often found by water displacement: submerge the object in a graduated cylinder and note the rise in water level. For regular shapes, use geometric formulas (length × width × height for a box, π × r² × h for a cylinder).
How to Read the Result
The density value tells you how much mass is packed into a given volume. A higher density means the material is heavier per unit volume. For example, 5 g/cm³ means every cubic centimeter of the material has a mass of 5 grams.
Units matter: 1 g/cm³ equals 1,000 kg/m³. So a material with a density of 5 g/cm³ is also 5,000 kg/m³. When comparing densities, always convert to the same unit system first.
Temperature and pressure affect density, especially for gases. For liquids and solids, the effect is small but not zero. If you need high precision, note the temperature at which you measured the mass and volume.
Common Mistakes and How to Avoid Them
- Mixing units: The most frequent error is using grams with cubic meters or kilograms with cubic centimeters. Always convert to a consistent set (e.g., g and cm³, or kg and m³) before dividing.
- Forgetting to convert volume: A volume given in liters (L) must be converted to cm³ (1 L = 1,000 cm³) or m³ (1 L = 0.001 m³) before using the formula.
- Using water displacement incorrectly: The object must be fully submerged and not float. For floating objects, push it down with a thin rod and subtract the rod’s volume if it displaces water.
- Rounding too early: If you round intermediate values, the final density can be noticeably off. Keep extra digits until the last step.
- Ignoring air bubbles: When measuring volume by displacement, bubbles clinging to the object add volume and lower the calculated density.
Limits of the Formula
The density formula assumes a homogeneous material—that the mass is evenly distributed throughout the volume. Many real objects are not homogeneous: a hollow sphere, a sponge, or a composite material has an average density that is lower than the density of the solid material. The calculator gives the bulk density, which is useful for floating/sinking and weight calculations, but it does not tell you the density of the solid material itself.
For gases, density changes significantly with pressure and temperature. The ideal gas law (PV = nRT) is needed for accurate gas densities, not the simple mass/volume formula. For liquids and solids, the formula is accurate to within a fraction of a percent under normal conditions.
Another limitation: the calculator cannot tell you what the material is. Density is a clue, but many materials share similar densities (e.g., glass and some plastics are both around 1.2–1.5 g/cm³). Use density alongside other tests like hardness, color, or chemical reactivity for identification.
Frequently Asked Questions
How do I measure the volume of an irregular object?
Use water displacement. Fill a graduated cylinder with a known volume of water, record it, then gently lower the object in. The new water level minus the original is the object’s volume in milliliters (mL), which equals cubic centimeters (cm³). Make sure the object is fully submerged and does not absorb water.
What is the density of water?
Pure water at 4°C has a density of 1.000 g/cm³ (or 1,000 kg/m³). At room temperature (about 20–25°C), it is slightly lower, around 0.998 g/cm³. For most everyday calculations, using 1 g/cm³ is accurate enough.
Why does ice float on water?
Ice has a density of about 0.92 g/cm³, which is less than liquid water’s density of about 1.0 g/cm³. Because it is less dense, ice floats. This is unusual—most substances are denser as solids—and it happens because water expands when it freezes, creating a crystalline structure with more space between molecules.
Can density be used to tell if something is pure gold?
Yes, but with caution. Pure gold has a density of about 19.3 g/cm³. If you measure the density of a gold-colored object and it is significantly lower, it is likely an alloy or plated. However, some alloys can be close to pure gold’s density, so this test is not definitive on its own. Also, hollow objects will give a lower bulk density even if made of pure gold.
What is the difference between density and specific gravity?
Specific gravity is the ratio of a material’s density to the density of water (at a specified temperature, usually 4°C). It has no units. For example, a material with a density of 2.5 g/cm³ has a specific gravity of 2.5. Because water’s density is close to 1 g/cm³, the numerical values are nearly the same, but specific gravity is dimensionless and easier to compare across unit systems.
Does density change with temperature?
Yes. For most substances, density decreases as temperature increases because the volume expands while mass stays constant. For gases, the change is large and follows the ideal gas law. For liquids and solids, the change is small—for example, water’s density changes by only about 0.2% over a 10°C change near room temperature. If you need precise measurements, control the temperature or note it along with the density.
Related
Formula used
in mass | Mass | g | 50 | 0 in vol | Volume | cm³ | 10 | 0 out density | Density | g/cm³ | mass / vol | 2 out mass_kg | Mass in kg | kg | mass / 1000 | 3 out vol_l | Volume in L | L | vol / 1000 | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.