The grams-to-liters equation is volume (L) = mass (g) ÷ density (g/L). Grams measure mass and liters measure volume, so there is no universal direct conversion: you need the substance’s density at the relevant temperature and conditions to calculate the volume.
Formula
Divide the mass by the density:
V = m ÷ ρ
- V is volume in liters (L).
- m is mass in grams (g).
- ρ (rho) is density in grams per liter (g/L).
The units cancel correctly: g ÷ (g/L) = L. If density is supplied in grams per milliliter (g/mL), first convert it to grams per liter by multiplying by 1,000, because 1 L = 1,000 mL. Equivalently, calculate milliliters as mass in grams divided by density in g/mL, then divide that result by 1,000 to get liters.
Worked Example
For the calculator’s default mass of 1,000 g and density of 1,000 g/L:
- Volume in liters: 1,000 g ÷ 1,000 g/L = 1.0000 L.
- Convert to milliliters: 1.0000 L × 1,000 mL/L = 1,000.00 mL.
The first result is the volume in liters; the second is the same volume in milliliters.
Assumptions
- The entered density applies to the same substance and conditions as the mass being converted.
- The calculation treats the material as having a defined bulk density. It does not account for mixing, dissolution, compression, trapped air, or volume changes during a chemical reaction.
- The density default of 1,000 g/L is an illustrative value, not a universal value for liquids or other materials. Use a measured or reliably sourced density for your substance.
Why Density Is Needed
Mass tells you how much matter is present; volume tells you how much space it occupies. Density connects these quantities and is defined as mass divided by volume: ρ = m/V. Rearranging gives V = m/ρ.
Equal masses of different substances can occupy different volumes because their densities differ. For example, 100 g of a material with a density of 1,000 g/L occupies 0.1 L, while 100 g of a material with a density of 500 g/L occupies 0.2 L. The second material takes up twice the volume for the same mass because its density is half as large.
Density may change with temperature and pressure, especially for gases and, to a lesser extent, liquids. A density value is only useful when its units and reference conditions are known. For powders and granular solids, a reported bulk density can also include the spaces between particles; it may differ substantially from the density of the solid material itself.
How to Choose and Enter Density
Use a density that matches the exact substance and physical form you are measuring. Check whether the value is for a pure material, a solution, a powder’s bulk volume, or a gas under specified conditions. Do not assume a value from one form or condition applies to another.
- If density is given in g/L, enter it directly.
- If it is in g/mL, multiply by 1,000 before entering it. For example, 0.8 g/mL = 800 g/L.
- If it is in kg/m³, the numerical value is the same as g/L: 1 kg/m³ = 1 g/L.
- If it is in kg/L, multiply by 1,000 to convert to g/L.
For a liquid, use a density value at or near its temperature during measurement. For a gas, density depends strongly on temperature and pressure; use a value that matches those conditions. If the source gives no units or conditions, confirm them before relying on the answer.
Reading Results and Avoiding Errors
The calculator reports liters and also gives the equivalent milliliters. Since 1 L = 1,000 mL, a result of 0.25 L equals 250 mL. Keep enough significant figures in the inputs and intermediate work; rounding density too early can noticeably change a calculated volume.
A frequent mistake is to treat grams and milliliters as interchangeable. They are not: 1 g is a unit of mass, while 1 mL is a unit of volume. Their numerical values happen to match approximately for water near its maximum density under ordinary reference conditions, but that coincidence is not a general conversion rule. Other liquids, solids, and solutions have different densities.
Another common error is mixing density units. Dividing grams by a value in g/mL produces milliliters, not liters. Dividing grams by a value in g/L produces liters. Check the units in the density field before interpreting the result.
Limits and Related Calculations
This equation calculates the volume associated with a mass and a density. It does not predict how much space a substance will occupy after dissolving or mixing with another substance. Solution volumes are not always the sum of the starting ingredient volumes, and a dissolved solid’s mass cannot generally be converted into the final solution volume without additional information.
For a mixture, use the density of the mixture itself if you want its total volume from its total mass. For a powder, decide whether you need the solid’s material volume or the volume it occupies when poured; those are different measurements. When density is not known, measure it or obtain a suitable reference value rather than guessing.
For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.
Frequently Asked Questions
What is the formula for converting grams to liters?
Divide mass in grams by density in grams per liter: L = g ÷ (g/L). You must know the material’s density.
Can I convert grams to liters without density?
No. Mass alone does not specify volume. Different substances can have different volumes at the same mass, so a suitable density is required.
How do I convert grams to liters if density is in g/mL?
Divide grams by density in g/mL to get milliliters, then divide by 1,000 to get liters. Or multiply the density by 1,000 to convert it to g/L, then divide the mass by that value.
Is 1 gram equal to 1 milliliter?
Not generally. The units measure different things. They are approximately equal for water near a particular reference condition, but the relationship changes with substance and conditions.
Does temperature affect grams-to-liters conversion?
It can. Temperature changes density, so the same mass may occupy a different volume. Use density for the relevant temperature; gas density also depends strongly on pressure.
Related
Formula used
in m | Mass | g | 1000 | 0 in d | Density | g/L | 1000 | 0.000001 out v | Volume | L | m / d | 4 out vm | Volume | mL | v * 1000 | 2
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
- Liters to Cubic Meters: Conversion and Examples0.001000 m³
- Normal Cubic Meter to Liters Calculator1,000.00 L
- Qt to Liters Conversion: US and Imperial Quarts0.946353 L
- Meters to Liters Formula: Convert Length to Volume?1,000.000 L
- Meters to Litres: Why Length Alone Is Not Enough1,000.00 L
- Meters Into Liters Calculator: The Missing Dimension