What is a grams to milliliters converter?
A grams to milliliters converter is an online tool that changes a mass in grams (g) into a volume in milliliters (mL), and back again. Grams measure how much something weighs, while milliliters measure how much space it takes up. The two are not interchangeable on their own - the link between them is the substance’s density. That is why this converter includes a product selector with ready-made densities for water, milk, oil, flour, sugar, honey, and other common materials, plus a custom option for any density you know.
Choose a product, type a value in grams or milliliters, and the other field updates using the correct density.
How does it work?
Density is mass divided by volume. If you know the density of a substance, you can move between mass and volume with two simple rearrangements:
Water is the reference case: its density is very close to 1 gram per milliliter, so 1 g of water occupies almost exactly 1 mL. Substances denser than water (like honey or syrup) pack more grams into each milliliter, while lighter ones (like oil or flour) fit fewer.
Formula
To convert grams to milliliters:
To convert milliliters to grams:
where is the density in grams per milliliter.
Worked examples
Example 1: 500 g of water to milliliters
Water has a density of about 1 g/mL, so:
Example 2: 1000 mL of water to grams
One liter of water:
The result is a hair under 1000 g because the density preset (8.34 lb/gal) works out to roughly 0.9994 g/mL rather than a perfectly round 1.
Example 3: 500 g of cooking oil to milliliters
Oil is less dense than water (about 0.89 g/mL), so the same mass takes up more space:
Approximate densities
| Product | Density (g/mL) |
|---|---|
| Water | 1.00 |
| Milk | 1.04 |
| Oil | 0.89 |
| Flour | 0.54 |
| Sugar | 0.85 |
| Honey | 1.42 |
Notes
- Because density varies with temperature and exact composition, treat kitchen conversions as close approximations rather than laboratory values.
- Flour and sugar densities depend heavily on how tightly they are packed; the presets assume a typical, unsifted state.
- If your substance is not listed, pick “Custom Product” and enter its density directly. For an alternative interface, see our ml to grams converter.
Frequently asked questions
How many milliliters is 500 grams?
It depends on the substance. For water, 500 g is about 500 mL. For oil (density about 0.89 g/mL) it is roughly 562 mL, and for honey it is only about 352 mL.
Are grams and milliliters the same for water?
Very nearly. Water’s density is about 1 g/mL, so 1 gram of water is close to 1 milliliter. This one-to-one shortcut only works for water and similar low-density liquids.
Why is 1000 mL of water not exactly 1000 g?
The converter uses a density preset of 8.34 pounds per gallon for water, which equals about 0.9994 g/mL. That gives roughly 999 g for a liter, matching typical room-temperature water.
Can I convert flour or sugar with this tool?
Yes. Select flour or sugar from the product list and the converter applies a typical density for it. Keep in mind that packing and humidity can shift the real value.