The density chemistry calculator computes density from mass and volume using the formula density = mass / volume. You enter the mass of a substance and its volume (or the volume of the container it fills), and the calculator returns the density in grams per milliliter (g/mL) or grams per cubic centimeter (g/cm³), which are numerically identical. This page explains the formula, how to use it, common mistakes, and how density relates to other chemistry concepts.
Formula
The density formula is written as:
ρ = m / V
- ρ (rho) = density, in grams per milliliter (g/mL) or grams per cubic centimeter (g/cm³). These units are numerically equal because 1 mL = 1 cm³.
- m = mass, in grams (g).
- V = volume, in milliliters (mL) or cubic centimeters (cm³).
If you use mass in kilograms and volume in liters, density will be in kg/L. Note that 1 g/mL = 1 kg/L = 1000 kg/m³. The calculator above uses grams and milliliters, which is the most common combination in chemistry labs.
Worked Example
Using the default values from the calculator: mass = 25.0 g, volume = 18.5 mL.
- Write the formula: ρ = m / V
- Substitute the values: ρ = 25.0 g / 18.5 mL
- Divide: ρ = 1.351351… g/mL
- Round to three decimal places: ρ ≈ 1.351 g/mL
The calculator shows 1.351 g/mL as the density. This means 1 mL of the substance has a mass of about 1.351 g.
Assumptions
- The substance is homogeneous (uniform composition) so the measured density is representative.
- Temperature and pressure are constant; density changes with temperature for most substances.
- The volume used is the actual volume occupied by the substance, not the container’s total volume if there is air space.
- For gases, the ideal gas law is more appropriate; density of gases varies strongly with pressure and temperature.
How to Choose the Right Units
Density can be expressed in many unit combinations: g/mL, g/cm³, kg/L, kg/m³, lb/ft³, etc. In chemistry, the most common are g/mL (for liquids and solids) and g/L (for gases). The calculator uses g/mL because it’s standard for lab work. If you have mass in grams and volume in liters, convert liters to milliliters (multiply by 1000) before using the formula, or use the conversion directly: density in g/L = (mass in g) / (volume in L).
When measuring volume of a solid, you often use water displacement: record the water level before and after submerging the solid; the difference is the solid’s volume in mL. For liquids, use a graduated cylinder or volumetric pipette. For gases, you’d need a gas syringe or a container of known volume at a known pressure and temperature.
Common Mistakes and How to Avoid Them
- Mixing up mass and weight: Mass is measured in grams (balance), weight is a force (newtons). In lab, you measure mass directly.
- Using the wrong volume: For a solid that floats, you must push it under water with a thin wire, or use a sinker. For a powder, use a graduated cylinder and tap to remove air bubbles.
- Forgetting to convert units: If volume is in liters and mass in grams, you’ll get g/L, not g/mL. Always check units before calculating.
- Rounding too early: Round only at the final step to avoid accumulated error.
- Ignoring temperature: Density of liquids changes with temperature (e.g., water density is highest at 4°C). Always record the temperature.
How Density Relates to Other Chemistry Concepts
Density is an intensive property—it doesn’t depend on the amount of substance. It helps identify substances: pure water at 25°C has a density of 0.997 g/mL, while ethanol is about 0.789 g/mL. Density is also used to convert between mass and volume in stoichiometry: if you need the volume of a liquid reagent, you divide its mass by its density.
For solutions, density is used to convert between molarity and mass percent. For example, a 37% HCl solution has a density of about 1.19 g/mL; you can calculate the molarity by first finding the mass of HCl in 1 L of solution. Density also plays a role in buoyancy (Archimedes’ principle) and in separating mixtures (e.g., separating oil and water).
Limitations of the Simple Formula
The formula ρ = m/V works for pure substances and homogeneous mixtures at a given temperature and pressure. However, for gases, density depends heavily on temperature and pressure, so you’d use the ideal gas law: ρ = PM/(RT), where P is pressure, M is molar mass, R is the gas constant, and T is temperature in kelvin. For solutions, density varies with concentration, so you need a density table or a hydrometer. For irregular solids, the water displacement method gives volume, but you must account for any absorbed water (use a waterproof coating if needed).
Frequently Asked Questions
How do I find density if I only know the mass and the volume in liters?
Convert liters to milliliters by multiplying by 1000, then use the formula. For example, if mass = 50 g and volume = 0.2 L, then volume in mL = 200 mL, so density = 50 g / 200 mL = 0.25 g/mL. Alternatively, compute density in g/L (50 g / 0.2 L = 250 g/L) and then convert to g/mL by dividing by 1000 (250/1000 = 0.25 g/mL).
Why is density often written as g/cm³ instead of g/mL?
They are exactly the same value because 1 mL is defined as 1 cm³. The choice is stylistic or based on the measurement method. For solids, cm³ is common; for liquids, mL is common. In both cases, the number is identical.
Does density change with temperature?
Yes, for most substances. As temperature increases, volume usually expands, so density decreases (mass stays constant). Water is an exception between 0°C and 4°C, where it contracts. Always note the temperature when reporting density. The calculator assumes a constant temperature.
How can I measure the volume of a powder or granular solid?
Use a graduated cylinder with a known volume of water. Record the water level, add the powder, and record the new level. The difference is the volume of the powder. Be careful to avoid air pockets—tap the cylinder gently. Alternatively, use a pycnometer for precise measurements.
What is the density of water at room temperature?
At 25°C (room temperature), pure water has a density of about 0.997 g/mL. At 4°C, it is 1.000 g/mL. Many calculations use 1.00 g/mL for simplicity, but for precise work, use the temperature-corrected value.
Can I use this calculator for gases?
Yes, but only if you have the mass and volume of the gas at a specific temperature and pressure. However, because gas density changes with pressure, it’s more common to use the ideal gas law. If you know the molar mass and conditions, you can calculate density directly.
Safety and Practical Notes
When measuring density in the lab, always follow your lab method and the safety data sheet (SDS) for the substances you handle. Wear appropriate protective equipment, especially when working with volatile or corrosive liquids. For solids that react with water (e.g., sodium metal), do not use water displacement; use a non-reactive liquid or a gas pycnometer. Always record the temperature and note any uncertainty in measurements.
Related
Formula used
in m | Mass of substance | g | 25.0 | 0 in v | Volume | mL | 18.5 | 0.001 out d | Density | g/mL | m / v | 3 out dkg | Density in kg/L | kg/L | d / 1000 * 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 with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Relative Formula Mass: How to Calculate It
- ng/mL to ppb Conversion: How to Calculate5.75 ppb
- Relative Formula Mass: How to Calculate It
- Relative Formula Mass Calculations Explained
- Relative Formula Mass: How to Calculate It32.04 u
- Relative Formula Mass: Definition and Calculation