Density Calculator
Use this Density Calculator to calculate density from mass and volume, mass from density and volume, or volume from mass and density. The tool supports common metric, imperial, laboratory, classroom, and engineering units including grams, kilograms, pounds, milliliters, liters, cubic centimeters, cubic meters, cubic inches, and cubic feet.
Calculate Density, Mass, or Volume
Select what you want to solve for, enter the known values, choose units, and calculate. The calculator converts everything internally, then displays the result in several useful units.
What Is a Density Calculator?
A Density Calculator is a science and measurement tool that calculates the relationship between mass, volume, and density. Density tells how much matter is packed into a given amount of space. In simple words, density measures how heavy or light a material is for its size. A small object can feel heavy if it has high density, while a large object can feel light if it has low density.
The standard density formula is mass divided by volume. If a sample has a mass of 500 grams and a volume of 250 cubic centimeters, its density is 2 grams per cubic centimeter. This means every cubic centimeter of the material contains 2 grams of mass. The same idea applies to liquids, solids, powders, gases, metals, rocks, plastics, wood, oils, and many classroom science samples.
This calculator can solve three related problems. First, it can calculate density when mass and volume are known. Second, it can calculate mass when density and volume are known. Third, it can calculate volume when mass and density are known. These three modes cover most density questions in chemistry, physics, earth science, engineering, laboratory work, material science, manufacturing, shipping, and everyday learning.
The tool supports multiple units because density problems often mix units. A lab exercise may give mass in grams and volume in milliliters. A construction or engineering problem may use kilograms and cubic meters. A shipping or materials problem may use pounds and cubic feet. This calculator converts internally so users can work with the units they actually have.
Density is one of the most important measurable properties of matter. It can help identify materials, compare substances, understand floating and sinking, estimate weight from volume, determine packaging requirements, analyze concentration-like relationships, and interpret real-world behavior. A density calculator makes the math faster, but the concept is also important: density is a ratio that describes how mass is distributed through space.
How to Use the Density Calculator
Choose the tab that matches the unknown value. If you know mass and volume, select Density. Enter the mass, choose the mass unit, enter the volume, choose the volume unit, select the desired density output unit, and click calculate. The calculator will display the density and supporting conversions.
If you know density and volume, select Mass. This mode is useful when a material density is known and you want to estimate how much a certain volume will weigh. For example, if you know the density of a liquid and the container volume, the calculator can estimate the mass of that liquid.
If you know mass and density, select Volume. This mode is useful when you know how much material you have and want to estimate how much space it occupies. For example, if a material has a density of 0.8 g/cm³ and a mass of 1000 grams, the volume is 1250 cm³.
Always choose the correct units. Grams and kilograms are mass units. Milliliters, liters, cubic centimeters, and cubic meters are volume units. Density units combine a mass unit and a volume unit, such as g/cm³, kg/m³, or lb/ft³. The calculator performs conversions, but the meaning of the result still depends on selecting the correct input units.
After calculating, review the result panel. It shows the primary answer, density, mass, volume, and a comparison with water. A density near 1 g/cm³ is similar to water. A density greater than 1 g/cm³ is denser than water. A density below 1 g/cm³ is less dense than water. The comparison is a helpful learning shortcut, especially for floating and sinking concepts.
Density Calculator Formulas
The core density formula is:
In this formula, \(\rho\) is density, \(m\) is mass, and \(V\) is volume. The Greek letter rho, \(\rho\), is commonly used for density in physics and chemistry.
To calculate mass from density and volume, rearrange the formula:
To calculate volume from mass and density, rearrange the formula again:
If mass is measured in grams and volume is measured in cubic centimeters, density is measured in grams per cubic centimeter:
If mass is measured in kilograms and volume is measured in cubic meters, density is measured in kilograms per cubic meter:
The relationship between two common density units is:
For liquids, milliliters and cubic centimeters are equivalent:
Density Units and Conversions
Density is a compound unit because it combines mass and volume. The most common classroom unit is grams per cubic centimeter, written as g/cm³. Chemistry labs often use grams per milliliter, written as g/mL. Since 1 mL equals 1 cm³, g/mL and g/cm³ are numerically the same for density calculations.
Engineering and physics often use kilograms per cubic meter, written as kg/m³. Water has a density close to 1000 kg/m³ under common conditions, which is the same as about 1 g/cm³. Materials such as steel, copper, aluminum, oil, wood, air, and concrete are often listed in kg/m³ in technical references.
Imperial and US customary density values may use pounds per cubic foot, lb/ft³, or pounds per US gallon, lb/gal. These are common in construction, fluids, shipping, agriculture, petroleum, and industrial contexts. The calculator includes these units to make the tool useful beyond classroom metric examples.
| Density Unit | Meaning | Common Use |
|---|---|---|
| g/cm³ | grams per cubic centimeter | Chemistry, physics, material identification |
| g/mL | grams per milliliter | Liquids, lab measurements, solutions |
| kg/m³ | kilograms per cubic meter | Engineering, construction, fluid mechanics |
| lb/ft³ | pounds per cubic foot | US construction, shipping, materials |
| lb/gal | pounds per US gallon | Liquids, fuel, industrial fluids |
When comparing density values, convert them to the same unit first. A density of 2 g/cm³ is the same as 2000 kg/m³. Without conversion, values can look unrelated even when they represent the same material property.
Density Compared With Water
Water is a useful reference because its density is close to 1 g/cm³ or 1000 kg/m³ under common classroom conditions. If a material has a density greater than water, it is denser. If it has a density lower than water, it is less dense. This comparison helps explain why some objects sink and others float.
In basic floating and sinking examples, an object with average density less than water tends to float, while an object with average density greater than water tends to sink. This is why many types of wood float, many metals sink, and some hollow objects float even when the material itself may be dense. Average density depends on total mass divided by total volume, including trapped air or empty space.
For example, a solid metal block usually sinks because its density is much greater than water. A large ship made of steel can float because its overall volume includes air-filled space, making its average density lower than the density of water. This is an important distinction: material density and object average density are not always the same.
The calculator’s water comparison is educational. It gives a quick interpretation based on the calculated density, but real floating behavior also depends on shape, trapped air, fluid density, temperature, salinity, surface effects, and whether the object absorbs liquid.
Mass, Volume, and Density Explained
Mass measures the amount of matter in an object or sample. It is often measured in grams, kilograms, ounces, or pounds. Mass is not exactly the same as weight in physics, but in many everyday contexts people use weight-related language when discussing mass. Scientific density calculations should use mass units.
Volume measures how much space something occupies. A liquid may be measured in milliliters or liters. A solid may be measured in cubic centimeters, cubic meters, cubic inches, or cubic feet. Irregular objects can have volume measured by water displacement: place the object in water and measure how much the water level rises. The displaced volume equals the object’s volume if the object is fully submerged and does not dissolve or absorb water.
Density combines mass and volume into one ratio. Two objects can have the same mass but different densities if they occupy different volumes. Two objects can also have the same volume but different densities if one has more mass packed into that volume. This is why density helps compare materials more meaningfully than mass or volume alone.
Density is an intensive property. That means it does not depend directly on sample size for a uniform material. A small piece of pure aluminum and a large piece of pure aluminum have roughly the same density, even though the large piece has more mass and more volume. This makes density useful for identifying substances.
Density Calculation Examples
Example 1: A sample has mass 500 g and volume 250 cm³. Calculate density.
The material has density 2 g/cm³. It is about twice as dense as water.
Example 2: A liquid has density 0.8 g/mL and volume 750 mL. Calculate mass.
The liquid has a mass of 600 grams.
Example 3: A metal sample has mass 1000 g and density 7.85 g/cm³. Calculate volume.
The metal occupies about 127.39 cubic centimeters.
Example 4: Convert 1.2 g/cm³ to kg/m³.
Common Density Values
Approximate density values help users check whether their calculator result is reasonable. These values are general references; real material density can vary by temperature, purity, composition, porosity, moisture, pressure, and manufacturing process.
| Material | Approximate Density | Notes |
|---|---|---|
| Air | about 1.2 kg/m³ | Varies strongly with temperature and pressure |
| Water | about 1 g/cm³ or 1000 kg/m³ | Useful classroom reference |
| Vegetable oil | about 0.91–0.93 g/cm³ | Often floats on water |
| Ice | about 0.92 g/cm³ | Less dense than liquid water |
| Aluminum | about 2.7 g/cm³ | Light metal compared with steel |
| Steel | about 7.85 g/cm³ | Common structural metal |
| Copper | about 8.96 g/cm³ | Dense conductive metal |
Accuracy and Limitations
The calculator gives accurate arithmetic based on the values entered, but real-world density measurement depends on measurement quality. Mass should be measured with an appropriate scale or balance. Volume should be measured with a suitable graduated cylinder, measuring container, geometric formula, displacement method, or calibrated equipment.
Temperature can affect density because many materials expand or contract. Liquids usually become less dense as temperature rises, though water has special behavior near freezing. Gases are especially sensitive to temperature and pressure, so gas density calculations often need pressure, temperature, and molar mass information. This calculator is best for direct mass-volume density problems, not advanced gas-law calculations.
Porous, granular, or powdered materials require careful interpretation. A pile of sand has bulk density that includes air spaces between grains. The actual mineral density of the grains may be higher. Similarly, foam, soil, powders, grains, and packed materials can have loose bulk density, compacted bulk density, and particle density. Choose the measurement method that matches the purpose of the calculation.
For school and general learning, the standard density formula is enough. For engineering, manufacturing, laboratory, quality control, safety, shipping, or compliance work, use calibrated tools, documented methods, and professional standards.
Density Calculator FAQs
What does a density calculator do?
It calculates density from mass and volume, mass from density and volume, or volume from mass and density.
What is the formula for density?
The density formula is \(\rho=\frac{m}{V}\), where \(\rho\) is density, \(m\) is mass, and \(V\) is volume.
How do I calculate mass from density?
Use \(m=\rho V\). Multiply density by volume after making sure the units are compatible.
How do I calculate volume from density?
Use \(V=\frac{m}{\rho}\). Divide mass by density after converting units if needed.
Is g/mL the same as g/cm³?
Yes. Since 1 mL equals 1 cm³, a density value in g/mL is numerically the same as g/cm³.
What is the density of water?
Water is commonly approximated as 1 g/cm³ or 1000 kg/m³ for classroom calculations, though the exact value changes with temperature.
Why does density matter?
Density helps identify materials, compare substances, predict floating or sinking, estimate mass from volume, and solve chemistry, physics, engineering, and everyday measurement problems.
Important Note
This Density Calculator is for educational, scientific, planning, and general measurement use. For laboratory certification, engineering design, safety data, commercial shipping, quality control, or regulated applications, verify measurements with calibrated equipment and official material data.
