Gram to Liter Conversion Calculator
Convert mass and volume in either direction using the density of water, common ingredients, or a custom material.
Inputs
Choosing a preset fills the density. Select Custom density to enter another material.
Required, positive, and written with a period as the decimal separator.
Edit this field to calculate volume. Zero is allowed; negative mass is not.
Edit this field to calculate mass. One liter equals 1,000 milliliters.
Live result
500 g of water at 1,000 g/L occupies 0.5 L.
Conversion details
| Material | Mass | Density | Volume | Volume |
|---|---|---|---|---|
| Water | 500 g | 1,000 g/L | 0.5 L | 500 mL |
The conversion is an exact identity for the density entered. Preset densities are practical approximations and may vary with temperature, composition, packing, and measurement method.
How to use this gram to liter calculator
What this calculator does. This tool converts between grams, a unit of mass, and liters, a unit of volume. Those quantities cannot be converted with one universal factor: the calculation needs the material's density. The calculator applies the physical identity density = mass ÷ volume, then rearranges it to find whichever quantity you are editing toward. It is useful for recipe scaling, estimating container capacity, checking a laboratory preparation, and translating a product's measured weight into an approximate occupied volume. It does not determine density from appearance, account for trapped air automatically, or replace a calibrated measurement when high accuracy matters.
When to use it. Use it when a recipe gives grams but your container is marked in liters; when a liquid shipment is specified by mass; when you need a quick water, milk, oil, honey, flour, or sugar estimate; or when you already know a custom material density. NIST explains that the liter is a special name for a cubic decimeter in its SI guidance for volume.
How to calculate. The calculator opens with a ready demonstration: 500 g of water at 1,000 g/L, giving 0.5 L or 500 mL, and its validated Excel workbook is immediately available. Follow these steps:
- Choose an Ingredient or material. A preset updates the density; choose Custom density for another substance.
- Check or replace Density. Enter grams per liter with a period for decimals, such as 1,030.5. The value must be greater than zero.
- Edit Weight / mass to calculate liters, or edit Volume to calculate grams. The most recently edited quantity becomes the source.
- Read the primary result, milliliters, density used, formula, and conversion-details row. Select Download Excel for a current-state workbook.
- Reset clears the demonstration and all calculated data. Download Excel then remains unavailable until a complete valid mass-or-volume and density state is entered again.
Input guide. Ingredient or material is a required selection used to load an approximate density; changing it changes the conversion proportionally. A common mistake is assuming every liquid behaves like water. Density is required, measured in g/L, and must be finite and positive. For example, milk may be represented as 1,030 g/L and cooking oil as 880 g/L. Higher density means the same mass occupies less volume, while the same volume contains more mass. Weight / mass accepts a nonnegative decimal number in grams; 500 is a realistic example. Volume accepts a nonnegative decimal number in liters; 0.5 is a realistic example. Do not enter unit letters inside numeric fields, do not use scientific notation, and do not treat a comma as a decimal separator.
Output guide. Converted volume or Converted mass is the primary result, depending on which source field you last edited. It is a mathematical conversion based on the entered density, not a recommendation. Milliliters is the liter result multiplied by 1,000. Density used confirms the factor applied. The summary pill identifies the material, density, and direction. The formula line shows the actual operation. The table repeats Material, Mass, Density, Volume in liters, and Volume in milliliters from the same canonical result. Zero mass or zero volume produces zero in the other quantity; negative, missing, malformed, or nonfinite input is rejected.
Worked example. With Water selected, density is 1,000 g/L. Enter 500 in Weight / mass. Volume equals mass divided by density: 500 g ÷ 1,000 g/L = 0.5 L. Multiplying 0.5 L by 1,000 gives 500 mL. The first-open result, table, and spreadsheet all use these same values. The U.S. Geological Survey notes that water density is roughly 1 g/mL but changes with temperature and dissolved substances in its water density explanation.
Learn more. For unit relationships involving mass divided by volume, consult the NIST conversion factors for mass density. For food work, the FDA's guidance on metric equivalents of household measures explains why repeated or larger-volume measurements can reduce practical error.
Formula and interpretation
Volume (L) = Mass (g) ÷ Density (g/L) | Mass (g) = Density (g/L) × Volume (L)
Units cancel cleanly only when density is expressed in grams per liter. A density entered in g/mL must first be multiplied by 1,000 to obtain g/L. Preset values are convenient estimates rather than universal constants: temperature affects liquids, composition affects foods, and bulk powders can settle or aerate. For repeatable work, measure the actual sample or use a specification for the exact product and conditions.
Common mistakes
- Using water's density for oil, syrup, flour, or another material.
- Entering 1 instead of 1,000 when density is known as 1 g/mL but the field expects g/L.
- Confusing mass in grams with force or everyday “weight” terminology.
- Expecting bulk ingredient presets to capture packing, humidity, or particle-size differences.