Density Calculator
Calculate the density of any material using the formula ρ = m / V. Enter mass and volume to find density, or solve for mass or volume when the other two values are known. Ideal for physics, chemistry, and engineering applications.
Density Calculator
Inputs
Enter Mass and Volume to calculate Density.
Understanding Density
Density is one of the most fundamental physical properties in science. It describes how tightly matter is packed together within a given space. Two objects may occupy the same volume, yet one can be dramatically heavier than the other because it has a higher density. A lead ball and a styrofoam ball of equal size feel completely different in your hand, and density is the reason why.
The Density Formula: ρ = m / V
The density of any substance is calculated by dividing its mass by its volume. Mathematically, this is expressed as ρ = m / V, where ρ (the Greek letter rho) represents density, m represents mass, and V represents volume. This formula can be rearranged to find mass (m = ρ × V) or volume (V = m / ρ) when the other two quantities are known.
Common Density Units
In the International System of Units (SI), density is measured in kilograms per cubic meter (kg/m³). However, in laboratory settings and everyday science, grams per cubic centimeter (g/cm³) is far more common because it conveniently makes water's density equal to 1.0. To convert between the two, remember that 1 g/cm³ equals 1,000 kg/m³. Other units you may encounter include pounds per cubic foot (lb/ft³) and kilograms per liter (kg/L), which is numerically identical to g/cm³.
Buoyancy and Floating
Density is the key to understanding why objects sink or float. According to Archimedes' Principle, an object submerged in a fluid experiences an upward buoyant force equal to the weight of the fluid displaced. If the object's density is less than the fluid's density, the buoyant force exceeds the object's weight and it floats. Wood floats on water because wood's density (approximately 0.5 g/cm³ for pine) is lower than water's density (1.0 g/cm³). Ice floats for the same reason, at 0.917 g/cm³, which is critical for aquatic ecosystems in cold climates since it insulates the liquid water below from freezing air.
Density in Material Science
Engineers and materials scientists rely heavily on density when selecting materials for construction, manufacturing, and aerospace design. Aluminum (2,700 kg/m³) is preferred over steel (7,870 kg/m³) in aircraft construction because it offers a strong yet lightweight structure. Titanium provides an even better strength-to-density ratio, making it ideal for high-performance applications. Understanding density also helps geologists identify minerals, assists pharmacists in formulating medicines, and allows quality control teams to verify the purity and composition of manufactured goods.
Temperature Effects on Density
Temperature has a significant impact on the density of most substances. As temperature increases, most materials expand, increasing their volume while their mass remains constant, which reduces their density. This is why hot air rises and hot air balloons fly. Water, however, exhibits an unusual behavior: it reaches its maximum density at 4°C rather than at its freezing point. Between 0°C and 4°C, water actually becomes denser as it warms, which is why lakes freeze from the top down rather than the bottom up. Gases are particularly sensitive to temperature changes, and their density can be calculated using the ideal gas law when temperature and pressure are known.
Density of Common Materials
The table below lists the densities of everyday materials for quick reference. Use these values with the calculator above to solve for mass or volume.
| Material | Density (g/cm³) | Density (kg/m³) | Floats in Water? |
|---|---|---|---|
| Air (at sea level, 20°C) | 0.0012 | 1.2 | Yes |
| Wood (pine) | 0.50 | 500 | Yes |
| Ice (0°C) | 0.917 | 917 | Yes |
| Water (pure, 4°C) | 1.000 | 1,000 | — (reference) |
| Seawater | 1.025 | 1,025 | No |
| Aluminum | 2.70 | 2,700 | No |
| Iron / Steel | 7.87 | 7,870 | No |
| Copper | 8.96 | 8,960 | No |
| Mercury | 13.53 | 13,534 | No |
| Gold | 19.32 | 19,320 | No |
How to Calculate Density
Follow these three worked examples to see how the density formula ρ = m / V is applied in real-world situations. Each example demonstrates a different form of the equation.
Example 1: Verifying a Gold Bar
A jeweler receives a bar claimed to be pure gold. It has a mass of 965 g and dimensions of 6 cm × 3 cm × 2.8 cm. Is it genuine?
Step 1: Volume = 6 × 3 × 2.8 = 50.4 cm³
Step 2: ρ = m / V = 965 / 50.4 = 19.15 g/cm³
Step 3: Compare to gold standard = 19.32 g/cm³
Result: 19.15 is very close to 19.32 — the bar is likely genuine gold.
Example 2: Does Cooking Oil Float on Water?
A bottle contains 500 g of cooking oil with a volume of 550 cm³. Calculate its density and determine whether it floats on water.
Step 1: ρ = m / V = 500 / 550 = 0.909 g/cm³
Step 2: Compare to water density = 1.000 g/cm³
Result: 0.909 < 1.000, so cooking oil floats on water.
Example 3: Finding the Volume of an Aluminum Block
An aluminum block has a mass of 5.4 kg. Given that the density of aluminum is 2,700 kg/m³, what is the block's volume?
Step 1: Rearrange formula — V = m / ρ
Step 2: V = 5.4 / 2,700 = 0.002 m³
Step 3: Convert — 0.002 m³ = 2,000 cm³ (or 2 liters)
Result: The aluminum block has a volume of 2,000 cm³.
Frequently Asked Questions
Frequently Asked Questions
Was this calculator helpful?
Your rating helps other students discover this tool.
Related Calculators
Explore other calculators to help with your academic planning and success.


