Using the Density Calculator
This page uses one relationship. Density equals mass divided by volume. Mass equals density times volume. Volume equals mass divided by density. The sample mass of 1000 grams in a volume of 1000 cubic centimeters has density 1 g/cm3, which is 1000 kilograms per cubic meter.
A second sample asks for mass. A density of 7850 kilograms per cubic meter and a volume of 0.002 cubic meters give 15.7 kg. A third sample asks for volume. A mass of 2 kilograms at 1000 kilograms per cubic meter gives 0.002 m3, which is 2 liters.
The page converts inputs into kilograms and cubic meters, does the arithmetic, and converts the result back. US gallons and imperial gallons are different units. The page does not look up a material grade, and it does not claim that every alloy has the density you typed.
What Density Means Here
Density on this page is mass per volume. It is not weight, and it is not a force. A larger mass in the same volume raises the density. A larger volume with the same mass lowers it. The formula does not include gravity, temperature, or pressure unless those effects are already inside the numbers you type.
The headline uses the unit you selected. The first line is always kilograms per cubic meter, so two runs can be compared even when one was entered in grams per cubic centimeter and the other in pounds per cubic foot. Grams per cubic centimeter and grams per milliliter are the same conversion on this page, because 1 milliliter is treated as 1 cubic centimeter.
1000 kilograms per cubic meter is 1 gram per cubic centimeter. That is the sample. It is the arithmetic of 1 kilogram in 0.001 cubic meters. It is not a statement that every water sample has that density. Pure water near 4 degrees Celsius is often described as about 1000 kilograms per cubic meter. A warm sample, a salty sample, or a sample with bubbles can differ. Type the density you intend. The page will not substitute a water table.
Compare mode converts two densities into kilograms per cubic meter and reports whether the first is greater, smaller, or equal, plus the first divided by the second. Equal values in different units, such as 1000 kilograms per cubic meter and 1 gram per cubic centimeter, compare as equal.
The Three Calculations
Choose density when you know mass and volume. Choose mass when you know density and volume. Choose volume when you know mass and density. The unused number is ignored for that calculation, so check the selector before you trust a field you can still see.
Mass units are micrograms, milligrams, grams, kilograms, metric tonnes, ounces, and pounds. One kilogram is 1000 grams. One metric tonne is 1000 kilograms. One pound is 0.45359237 kilograms. One ounce is one sixteenth of that pound, 0.028349523125 kilograms.
Volume units are cubic millimeters, cubic centimeters, cubic meters, milliliters, liters, cubic inches, cubic feet, US gallons, and imperial gallons. One liter is 0.001 cubic meters. One milliliter is 0.000001 cubic meters. One cubic inch is 0.000016387064 cubic meters, from 0.0254 cubed. One cubic foot is 1728 cubic inches, 0.028316846592 cubic meters.
A room or a bin expressed in cubic feet can be checked as a volume before you use it here. The Cubic Foot Calculator finds a cubic-foot volume from its own dimensions. It does not divide a mass by that volume. Bring the cubic feet back to this page if density is the question.
Zero mass is rejected when mass is an input. Zero volume is rejected when volume is an input. Zero density is rejected when density is an input, because the volume calculation would divide by zero. Negative numbers are rejected in every mode.
Three Reference Results
Enter mass 1000 grams and volume 1000 cubic centimeters. Ask for grams per cubic centimeter. Confirm 1 g/cm3 and 1000 kilograms per cubic meter. 1000 grams is 1 kilogram. 1000 cubic centimeters is 0.001 cubic meters. 1 divided by 0.001 is 1000. 1000 kilograms per cubic meter divided by 1000 is 1 gram per cubic centimeter.
Enter density 7850 kilograms per cubic meter and volume 0.002 cubic meters. Ask for kilograms. Confirm 15.7 kg. 7850 times 0.002 is 15.7. The multiplication is exact for these inputs. A rounded density of 7800 would not be 15.7, and the page will not silently round 7850 to 7800.
Enter mass 2 kilograms and density 1000 kilograms per cubic meter. Ask for cubic meters. Confirm 0.002 m3. The liters line is 2. 2 divided by 1000 is 0.002 cubic meters, and 0.002 cubic meters is 2 liters because a liter is 0.001 cubic meters.
A tank volume is a different shape. The Tank Volume Calculator uses tank dimensions. It does not ask for density. If you need the mass of a full tank, calculate the volume there, then enter that volume here with the density you have. This page does not know the tank shape.
Scientific notation is accepted. 1.5e3 grams is 1500 grams. The exponent must stay between -18 and 18. A blank field is rejected. A word is rejected.
Gallons, Pounds, and Mixed Units
A US gallon is 231 cubic inches. That is 0.003785411784 cubic meters. An imperial gallon is 0.00454609 cubic meters, which is 4.54609 liters. Selecting the wrong gallon changes the volume before the density is computed. The labels say US gallons and imperial gallons. Read them.
Pounds per cubic foot are kilograms per cubic meter multiplied by the cubic-foot factor and divided by the pound factor. The page computes that factor from 0.45359237 divided by 0.028316846592. Pounds per cubic inch use the cubic-inch factor instead. You do not need to type the factor. Choose the unit.
Mixed inputs are allowed. A mass in pounds and a volume in liters still meet in kilograms and cubic meters. The result can then be shown in grams per cubic centimeter. If a hand check skips one conversion, it will not match the headline. Convert both inputs, or trust the kilogram line and convert once at the end.
The 4 Function Calculator can multiply 7850 by 0.002 and show 15.7. It does not convert gallons. Use it to audit a step that is already in one unit. Use this page when the units still differ.
Download the CSV if the note needs every line. The file repeats the labels and values from the screen. It is not a material database.
Comparing Two Densities
Comparison does not calculate a new object. It takes two densities you already have, converts both to kilograms per cubic meter, and divides the first by the second. If the ratio is 1, the headline says equal. If the first number is larger after conversion, the headline says greater. If it is smaller, the headline says smaller.
Use it when one source reported grams per cubic centimeter and another reported kilograms per cubic meter. Do not compare the raw numbers 1 and 1000 and conclude they differ. Those two can be the same density in different units. The sample pair 1000 kilograms per cubic meter and 1 gram per cubic centimeter is the check for that trap.
The page does not name the materials. A ratio of 7.85 might match a steel figure you have seen, but only if you typed 7850 and 1000 yourself. The page did not look up steel. Write the material name in your own note if you know it, and write the temperature if the source specified one.
A comparison of two typed numbers is not a test certificate. Different grades, temperatures, and porosities change density. The headline only orders the two values you entered.
Mistakes that Change the Density
Dividing volume by mass inverts the relationship. The page will not do that unless you put the volume in the mass field. Read the labels. Mass is the amount of matter. Volume is the space.
Using a solvent volume as if it were the solution volume answers a different definition. This page calls the volume field the volume of the object or the solution you mean. It does not add a mixing correction. If the volume changed when something dissolved, type the finished volume.
Air density at an altitude is a different calculation. The Density Altitude Calculator uses elevation and atmosphere inputs. It does not divide an arbitrary mass by an arbitrary volume. A metal block does not belong on that page. An airport elevation does not belong on this one.
Forgetting the gallon type is the customary-unit error. A US gallon and an imperial gallon differ by the factors above. The result will look precise and still belong to the wrong gallon. The unit line in the result is the one to read back.
A zero in the denominator is rejected. Do not replace a missing volume with a very small number to force a huge density. Enter the volume you measured. If you do not have it, the density is not determined by this formula.
What the Page Does Not Claim
It does not list densities for steel grades, woods, plastics, or liquids. The 7850 figure in the mass example is an input, not a catalog value for every steel. The 1000 figure is an input, not a certification of water.
It does not convert weight on a scale in a gravitational field into mass beyond the unit factors above. If your scale shows pounds-force and you need a mass standard, that is a measurement question this page does not settle. The pound used here is the international avoirdupois pound of 0.45359237 kilograms.
It does not apply temperature corrections. If a handbook density is valid at 20 degrees Celsius, write that condition next to the number. The arithmetic will not add it.
Keeping the Unit Next to the Number
Write the mass, the volume, both units, and the density unit you asked to see. A note that says only "1" can mean 1 gram per cubic centimeter or 1 kilogram per cubic meter, and those are a thousandfold apart. The sample headline includes g/cm3 for that reason.
A solution concentration is not this density. Molarity divides moles by liters of solution. The Molarity Calculator does that chemistry calculation. It does not return kilograms per cubic meter unless you are answering a different question with different inputs. A dense liquid can have both a density and a molarity. They are not substitutes.