Density Calculator g/mL: Formula & How to Use
- Mass per liter
- g/L
- Result
- Mass
- 50 g
- You entered
- Volume
- 25 mL
- You entered
A density calculator in g/mL works out how many grams of a substance fit into one milliliter of its volume. You enter the mass in grams and the volume in milliliters, and the calculator returns the density in g/mL, along with the derived units if needed. This is the standard metric unit for density, widely used in chemistry, cooking, and materials science.
Formula
The density formula is the same for every unit system: density equals mass divided by volume.
� = m / V
- � (rho) is the density, measured in grams per milliliter (g/mL).
- m is the mass, measured in grams (g).
- V is the volume, measured in milliliters (mL).
Because 1 mL is exactly 1 cubic centimeter (cm³), the numerical value of density in g/mL is identical to the value in g/cm³. That is why you often see both units used interchangeably in textbooks and lab reports.
Worked Example
Using the default values from the calculator above: mass = 50 g, volume = 25 mL.
- Write down the formula: � = m / V
- Plug in the numbers: � = 50 g / 25 mL
- Divide: � = 2 g/mL
The calculator shows 2.00 g/mL, matching this result. The second output, mass per liter, multiplies by 1000 to give 2000 g/L, which is the same density expressed in grams per liter.
Why Measure Density in g/mL?
Density is a physical property that helps identify substances and predict whether they will float or sink. Water has a density of about 1.00 g/mL at room temperature, so anything with a density greater than 1 g/mL sinks in water, and anything less than 1 g/mL floats. This is why oil (about 0.92 g/mL) rises to the top of a salad dressing, while honey (about 1.42 g/mL) sinks.
In chemistry labs, density is used to identify unknown liquids, check the concentration of solutions, and convert between mass and volume when measuring out reagents. In cooking, density explains why a cup of flour weighs far less than a cup of sugar—flour has a lower density because the particles trap air.
How to Measure Mass and Volume Correctly
The accuracy of your density result depends entirely on how well you measure the two inputs.
- Mass: Use a digital scale that reads in grams. For liquids, weigh the empty container first, then weigh the container with the liquid, and subtract to get the mass of the liquid alone.
- Volume of liquids: Use a graduated cylinder or a volumetric pipette. Read the bottom of the curved surface (the meniscus) at eye level.
- Volume of solids: Use water displacement. Fill a graduated cylinder with a known volume of water, drop in the solid, and record the new volume. The difference is the solid’s volume.
- Temperature matters: Most substances expand when heated, so density changes with temperature. Always note the temperature when you record a density.
Common Mistakes and How to Avoid Them
Unit mix-ups are the most frequent source of errors when working with density.
- Using liters instead of milliliters: If your volume is in liters, multiply by 1000 to get milliliters before entering it. A density in g/L is 1000 times larger than the same density in g/mL.
- Confusing mass with weight: A scale measures weight, but for everyday purposes on Earth, the numerical value in grams is treated as mass. This is fine for typical calculations.
- Measuring volume of a powder by spooning: Powders and granules have variable density depending on how tightly they are packed. For precise work, use a calibrated container or measure by mass instead.
- Forgetting to subtract the container mass: Weighing a liquid in a beaker without taring the scale adds the beaker’s mass to your result, making the density too high.
Density in g/mL vs. Other Units
While g/mL is common, you will also encounter density in kg/m³, g/cm³, and lb/ft³. The conversions are straightforward:
- 1 g/mL = 1000 kg/m³
- 1 g/mL = 1 g/cm³
- 1 g/mL ≈ 62.43 lb/ft³
For example, the density of pure water is 1.00 g/mL, which is the same as 1000 kg/m³. If you see a table listing a material’s density in kg/m³, divide by 1000 to get g/mL.
Limitations of the Simple Formula
The density formula � = m/V assumes the substance is uniform—that every small sample has the same density. This holds for pure liquids, homogeneous alloys, and well-mixed solutions, but fails for porous materials, foams, or mixtures that separate. For such materials, the calculated density is an average density, not the density of any particular component.
Also, the formula gives the density at the temperature and pressure you measured. Gases are strongly affected by pressure, and liquids and solids are slightly affected by temperature. If you need a density for a different condition, you must either measure again or use a reference table that lists density at that specific temperature.
Frequently Asked Questions
How do I convert density from g/mL to kg/m³?
Multiply the value in g/mL by 1000. For example, a density of 0.8 g/mL is 800 kg/m³. This works because 1 g/mL = 1 g/cm³ = 1000 kg/m³.
What is the density of water in g/mL?
Pure water has a density of approximately 1.00 g/mL at 4°C (39°F), where it reaches its maximum density. At room temperature (20°C), it is about 0.998 g/mL, which is often rounded to 1.00 for everyday calculations.
Can I use this calculator for gases?
Yes, but you must measure the gas’s mass and volume at the same temperature and pressure. Gases are compressible, so their density changes significantly with pressure. For accurate gas densities, use the ideal gas law or a reference table for the specific conditions.
Why does the density of a liquid change with temperature?
Most liquids expand when heated, meaning the same mass occupies a larger volume, so density decreases. Conversely, cooling makes them contract and density increases. This is why density values in reference tables always specify a temperature.
What is the difference between density and specific gravity?
Specific gravity is the ratio of a substance’s density to the density of water at the same temperature. It has no units. For example, if a liquid has a density of 1.2 g/mL, its specific gravity is 1.2 (since water is 1.0 g/mL). Specific gravity is often used in industry because it is temperature-independent when both densities are measured at the same temperature.
How do I find the density of an irregular solid?
Use the water displacement method. Fill a graduated cylinder with a known volume of water, carefully submerge the solid, and read the new volume. The volume difference is the solid’s volume. Then divide the solid’s mass (measured on a scale) by that volume to get density in g/mL.
Related
Formula used
in m | Mass | g | 50 | 0 in v | Volume | mL | 25 | 0 out d | Density | g/mL | m / v | 2 out mass_per_liter | Mass per liter | g/L | (m / v) * 1000 | 0
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.