Density Calculator
Fill in the values and click Calculate to see results
This calculator solves for density (ρ), mass (m), or volume (V) when you provide the other two values. It supports unit conversion between grams and kilograms, milliliters and liters, and between density units like kg/m³, g/cm³, and lb/ft³. When you select what to calculate from the dropdown, the corresponding input field hides automatically – if you want to solve for density, only the mass and volume fields appear. The result displays automatically in the unit you selected, with alternative unit values shown for convenient reference. An Advanced Mode applies thermal expansion correction using the coefficient of volume expansion for aqueous solutions, giving accurate density values when your measurements are taken at non-standard temperatures between 0 °C and 100 °C.
Using a dedicated density calculator removes the arithmetic risk of manual unit conversions and formula rearrangement. Instead of converting cubic centimeters to cubic meters and then dividing mass by volume in separate steps, you enter the numbers as you measured them and the calculator handles the rest. This is especially valuable in production environments where a miscalculated density can mean rejecting an entire batch or, worse, using substandard material in a critical application. The same reliability applies in academic settings: a student running a density lab for the first time can focus on proper measurement technique instead of arithmetic.
What is Density?
Density is an intensive property, meaning it does not depend on how much of the substance you have. A drop of water and a swimming pool full of water both have the same density of 1.00 g/cm³ (at 4 °C). This makes density useful for identifying substances because the value is constant regardless of sample size. If you measure an unknown metal and find its density is 2.70 g/cm³, you can confidently identify it as aluminum. If you find 8.96 g/cm³, it is copper. This identification works even with tiny samples – a single gram of a pure metal gives a reliable density measurement with the right equipment.
The mathematical definition is direct: density equals mass divided by volume. The SI unit for density is kilograms per cubic meter (kg/m³), but chemists and materials scientists often use grams per cubic centimeter (g/cm³) because it gives convenient numbers for common materials. Water has a density of 1.00 g/cm³, which is the same as 1000 kg/m³. The density of air at sea level is about 0.0012 g/cm³ (1.2 kg/m³), while the densest known element, osmium (opens in new tab), reaches 22.59 g/cm³ (22590 kg/m³). This calculator works in all these unit systems and converts between them automatically, so you never need to memorize conversion factors.
Formula
Example 1
Solution
Answer
This density is consistent with feldspar or quartz, both common rock-forming minerals. The Mohs hardness would help distinguish between them.
Source: CRC Handbook of Chemistry and Physics, 105th Edition
Real-World Applications
In marine engineering, density determines buoyancy and stability. A steel ship floats because its average density – including the air inside the hull – is less than the density of seawater (1.025 g/cm³). Submarines adjust their average density by taking on or expelling ballast water to control their depth. The principle of density-driven flotation applies to everything from cargo ships to life jackets. Balloonists use density too: a hot air balloon rises because the heated air inside has lower density than the cooler outside air, and the difference in density determines the lift force available.
In medicine and healthcare, bone density scans (DEXA) measure the density of bone tissue to diagnose osteoporosis. A bone density below 1.0 g/cm³ may indicate thinning bones and increased fracture risk. Body composition analysis uses density measurements to distinguish between fat, muscle, and bone. Since fat has a lower density (0.91 g/cm³) than muscle (1.06 g/cm³), overall body density correlates with body fat percentage. Hydrostatic weighing, once the gold standard for body composition, relies on Archimedes’ principle – a direct application of density measurement.
In environmental science, oceanographers track water density to study ocean currents and climate. Density differences driven by temperature and salinity create thermohaline circulation, the global conveyor belt that moves heat around the planet. Freshwater plumes from melting glaciers have lower density than seawater, creating stratification layers that affect marine ecosystems. The density of air decreases with altitude, affecting aircraft performance and weather patterns. Atmospheric scientists monitor air density to predict weather events and track pollution dispersion.
Example 2
Solution
Answer
The mass of 500 mL of ethanol at 20 °C is 394.5 g. If the temperature were higher, the volume would expand and the mass per unit volume would decrease.
Source: CRC Handbook of Chemistry and Physics, 105th Edition
Common Calculation Mistakes and How to Avoid Them
Another frequent error involves temperature effects on volume. A liquid measured at 35 °C has a larger volume than the same mass of liquid at 15 °C. If you use a density value from a reference table (typically given at 20 °C or 25 °C) without correcting for the actual measurement temperature, your mass or volume calculation will be slightly wrong. The difference is typically 0.2–0.5% per 10 °C, which matters for high-precision work. The Advanced Mode in this calculator applies the thermal expansion correction automatically when you enter the measurement temperature.
Confusing mass with weight is a conceptual error that can affect field measurements. Mass is the amount of matter in an object, measured in grams or kilograms. Weight is the force exerted by gravity on that mass, measured in newtons or pounds-force. A spring scale that measures weight must be calibrated for local gravity to give accurate mass readings. A balance that compares masses (like a triple-beam balance) gives accurate mass directly. In most laboratory settings, the difference is negligible, but in precise work the distinction matters. This calculator works with mass, not weight. If your measurement device reports weight in newtons, divide by the local gravitational acceleration (9.81 m/s²) to find the mass.
Using the wrong volume for porous materials introduces another common error. The density of a porous material like pumice or brick depends on whether you measure the total volume (including pores) or the skeletal volume (solid material only). Bulk density uses the total volume including pore spaces. True density uses only the solid volume. These two values can differ by 50% or more for highly porous materials. Specify which density you are calculating before choosing your volume measurement method.
Why Density Measurement Matters
In manufacturing quality assurance, density verification catches material substitutions and processing errors before they become costly failures. If a shipment of 6061 aluminum alloy (density 2.70 g/cm³) arrives with a measured density of 2.85 g/cm³, the buyer can reject it without further analysis – it is clearly a different alloy or contains excessive impurities. The automotive industry uses density checks to verify that plastic components are properly molded without voids or air pockets, which would lower the density below specification. A single density measurement can save thousands of dollars in downstream testing and prevent safety-critical failures.
In pharmaceutical production, the density of powdered active ingredients affects tablet compression, capsule filling, and powder flow. A change in bulk density can signal a change in crystal form (polymorph) or particle size distribution, both of which affect drug dissolution rate and bioavailability. Regulatory filings require density characterization of pharmaceutical powders as part of finished product specifications. The difference between acceptable and unacceptable density can be as small as 0.05 g/cm³, demanding careful measurement and temperature control.
In food science, density measurements verify product consistency. The density of orange juice concentrate is measured throughout the evaporation process to control water removal. Beer and wine density is monitored during fermentation to track sugar conversion to alcohol. The specific gravity of milk is checked to detect dilution with water, with federal standards requiring a minimum specific gravity of 1.029. Honey purity is assessed by density: pure honey has a specific gravity of about 1.42, while adulterated honey with added sugar syrup measures lower.
In forensic science, density analysis helps identify unknown materials. Glass fragments from a crime scene can be matched to a suspect’s clothing by comparing their densities to within 0.001 g/cm³. Soil density profiles link suspects to specific locations. The density of plastic fragments from hit-and-run accidents can identify the vehicle make and model through manufacturer databases. In each case, the density measurement provides objective, court-admissible evidence that complements other forensic techniques.
Example 3
Solution
Answer
Matching pure aluminum. The block is confirmed as solid aluminum. If the measured density were significantly lower, it might indicate hollow sections or a different alloy.
Source: CRC Handbook of Chemistry and Physics, 105th Edition
How to Measure Density in the Laboratory
Irregular solids require the water displacement method. Fill a graduated cylinder with a known volume of water, enough to fully submerge the object. Record the initial water level. Carefully lower the object into the cylinder, tilting it if necessary to release trapped air bubbles. Record the new water level. The volume of the object equals the difference between the final and initial water levels. Divide the mass by this displaced volume to find the density. For water-soluble materials, use a non-reactive liquid like ethanol or mineral oil instead of water.
Liquid density is measured using a pycnometer or a hydrometer. A pycnometer is a glass flask with a precisely known volume. Weigh the empty, dry pycnometer, fill it completely with the liquid, and weigh it again. The mass of the liquid divided by the known volume gives the density. Hydrometers float in the liquid and provide a direct density reading from a calibrated stem, making them ideal for quick checks in industrial settings like breweries and battery shops.
Temperature control is critical for accurate density work. Most reference density values (opens in new tab) are reported at 20 °C or 25 °C. Allow your sample to reach thermal equilibrium with the room temperature before measuring. If your measurement temperature differs from the reference temperature by more than 2–3 °C, use the Advanced Mode of this calculator to apply the thermal expansion correction. For water, the density changes by approximately 0.02% per degree Celsius near room temperature, which translates to about 0.2 g/L per degree.
Example 4
Solution
Answer
The block is lead (within 0.1% of 11.34 g/cm³). The Archimedes displacement method confirms the geometric volume calculation.
Source: CRC Handbook of Chemistry and Physics, 105th Edition
Understanding Specific Gravity and Relative Density
The relationship between density and specific gravity is: SG = ρsubstance / ρwater. At 4 °C, the density of water is 1.000 g/cm³, making SG numerically equal to density in g/cm³. At other temperatures, the two values diverge slightly because the density of water changes. This calculator uses density, not specific gravity, as the primary measurement – but you can easily convert between them: density in g/cm³ equals SG when the reference is water at 4 °C.
Specific gravity is widely used in battery technology (measuring the charge state of lead-acid batteries by electrolyte SG), brewing and winemaking (tracking fermentation progress by monitoring SG decrease), urinalysis (kidney function assessment through urine SG), and mineral processing (ore concentration via specific gravity separation in jigs and spirals). The petroleum industry uses API gravity, an inverse function of specific gravity, to classify crude oils: lighter crudes with higher API gravity are more valuable because they yield more gasoline and diesel per barrel.
Densities of Common Materials
Values at room temperature (20 °C) unless noted. Gas densities at standard temperature and pressure (STP: 0 °C, 1 atm).
| Material | Density (g/cm³) | Density (kg/m³) | Category |
|---|---|---|---|
| Hydrogen (gas, STP) | 0.000090 | 0.090 | Gas |
| Helium (gas, STP) | 0.000178 | 0.178 | Gas |
| Air (20 °C, 1 atm) | 0.00120 | 1.20 | Gas |
| Wood (balsa) | 0.12–0.20 | 120–200 | Solid |
| Wood (oak) | 0.60–0.90 | 600–900 | Solid |
| Ethanol (20 °C) | 0.789 | 789 | Liquid |
| Ice (0 °C) | 0.917 | 917 | Solid |
| Water (4 °C) | 1.000 | 1000 | Liquid |
| Seawater (20 °C) | 1.025 | 1025 | Liquid |
| Milk (15 °C) | 1.030 | 1030 | Liquid |
| Human body (average) | 1.06 | 1060 | Biological |
| Magnesium | 1.74 | 1740 | Metal |
| Aluminum | 2.70 | 2700 | Metal |
| Titanium | 4.51 | 4510 | Metal |
| Glass (common) | 2.50 | 2500 | Solid |
| Concrete | 2.40 | 2400 | Solid |
| Iron | 7.87 | 7870 | Metal |
| Steel (mild) | 7.85 | 7850 | Metal |
| Copper | 8.96 | 8960 | Metal |
| Silver | 10.49 | 10490 | Metal |
| Lead | 11.34 | 11340 | Metal |
| Mercury (20 °C) | 13.60 | 13600 | Liquid |
| Uranium | 19.05 | 19050 | Metal |
| Gold | 19.32 | 19320 | Metal |
| Platinum | 21.45 | 21450 | Metal |
| Osmium | 22.59 | 22590 | Metal |
Density of Water at Different Temperatures
Water reaches its maximum density at 4 °C. Values from the CRC Handbook of Chemistry and Physics.
| Temperature (°C) | Density (g/cm³) | Density (kg/m³) |
|---|---|---|
| 0 | 0.99987 | 999.87 |
| 4 | 1.00000 | 1000.00 |
| 10 | 0.99970 | 999.70 |
| 15 | 0.99910 | 999.10 |
| 20 | 0.99821 | 998.21 |
| 25 | 0.99705 | 997.05 |
| 30 | 0.99565 | 995.65 |
| 40 | 0.99222 | 992.22 |
| 50 | 0.98804 | 988.04 |
| 60 | 0.98320 | 983.20 |
| 80 | 0.97180 | 971.80 |
| 100 | 0.95840 | 958.40 |
Professional Applications of Density Measurement
In pharmaceutical manufacturing, density measurements are used to control the crystalline form of active pharmaceutical ingredients. Different polymorphs of the same drug can have different densities, dissolution rates, and bioavailabilities. A density measurement confirms that the correct polymorph has been produced and that the crystallization process is reproducible. The USP monograph for the drug substance specifies the acceptable density range, and deviations trigger investigation. A batch that fails density specification may need to be reprocessed or discarded, representing a significant financial loss.
In environmental monitoring, the density of industrial effluents is regulated to prevent contamination. A discharge with unusually high density may contain dissolved heavy metals, concentrated acids, or other hazardous materials. Regulatory permits specify density limits, and treatment facilities are required to monitor effluent density continuously. Seawater density monitoring at coastal outfalls tracks whether discharged brine from desalination plants is mixing adequately with ambient seawater, helping to protect sensitive marine habitats near desalination facilities.
In aerospace manufacturing, density uniformity of structural materials is verified for every batch. A void or inclusion inside an aluminum forging reduces the local density and weakens the component. Aerospace specifications require 100% density inspection of critical parts using immersion density testing or computed tomography. The acceptable density variation for aircraft-grade aluminum is typically within 0.5% of the theoretical value. This calculator supports the verification step for incoming material inspection, helping quality engineers confirm that each batch meets the required density before components move to production.
Important Considerations for Accurate Density Work
Pressure affects density significantly for gases and moderately for liquids. For most practical purposes, liquids are treated as incompressible (their density changes by less than 1% per 100 atm). Gases, however, are highly compressible. Air density at sea level (1 atm) is 1.225 kg/m³ but drops to about 0.736 kg/m³ at 3000 meters elevation. This calculator does not apply pressure corrections; your inputs should reflect the pressure conditions of your measurement. For deep-sea applications where pressures exceed 100 atm, the compression of even liquids becomes significant.
Dissolved substances alter the density of a liquid. Seawater is denser than pure water because of dissolved salts. The sugar content of a soft drink increases its density measurably. Dissolved gases can slightly decrease the density of a liquid. For highest accuracy, de-gas the liquid before measurement by gentle heating or vacuum, or account for the dissolved solids content in your calculations. The density increment from dissolved solids is roughly 0.0008 g/cm³ per gram of dissolved solid per liter, though this varies with the specific solute.
Measurement technique directly affects precision. For solid density by water displacement, ensure no air bubbles cling to the submerged object. Wet the object beforehand or add a drop of surfactant to the water. Use a balance with sufficient resolution: for a 10 g object measured in a 50 mL graduated cylinder, the balance needs 0.01 g resolution and the cylinder 0.1 mL resolution to achieve 1% accuracy. For higher precision, use a pycnometer or gas displacement pycnometry. Professional density measurements for quality control often achieve 0.1% accuracy by using temperature-controlled baths, calibrated pycnometers, and automated analytical balances.
Density, Specific Gravity, and Buoyancy – Understanding the Connections
The conversion between density units is straightforward once you know the factors. One g/cm³ equals 1000 kg/m³, which also equals 1000 g/L. The factor connecting g/cm³ and kg/m³ is 1000 because there are 1000 grams per kilogram and one million cubic centimeters per cubic meter. Practical rule: if a substance has density X in g/cm³, its density in kg/m³ is X × 1000 (water: 1.00 g/cm³ = 1000 kg/m³, aluminum: 2.70 g/cm³ = 2700 kg/m³). The conversion between lb/ft³ and kg/m³ is approximately 1 lb/ft³ = 16.02 kg/m³. This calculator handles all these conversions internally, so you never need to remember the factors.
Summary
References
- [1]CRC Press, CRC Handbook of Chemistry and Physics, 105th Edition, 2024. https://www.routledge.com/CRC-Handbook-of-Chemistry-and-Physics/book-series/CRCHANCHEPHY
- [2]BIPM, BIPM Le Système international d'unités (SI Brochure, 9th edition), 2019. https://www.bipm.org/en/publications/si-brochure
- [3]Pearson, Vogel's Textbook of Quantitative Chemical Analysis, 6th Edition, 2000.
Glossary
- Density (ρ) – Mass per unit volume of a substance, typically expressed in g/mL, g/cm³, or kg/m³. It is an intensive physical property that depends on temperature and pressure.
- Mass (m) – A measure of the amount of matter in an object or sample, typically expressed in grams (g) or kilograms (kg). Mass is independent of gravity and location.
- Volume (V) – The three-dimensional space occupied by a substance, expressed in millilitres (mL), litres (L), or cubic metres (m³). For liquids, volume changes measurably with temperature.
- Specific gravity – The ratio of a substance’s density to the density of a reference substance (usually water at 4 °C). It is dimensionless and numerically equal to density in g/mL.
- Buoyancy – The upward force exerted by a fluid on a submerged or floating object, equal to the weight of the fluid displaced by the object, as described by Archimedes’ principle.
- Archimedes’ principle – A physical law stating that the buoyant force on an object equals the weight of the fluid it displaces. It is the fundamental principle used in hydrometer measurements and density determination for irregular solids.
- Meniscus – The curved upper surface of a liquid in a narrow container, caused by surface tension and adhesion to the walls. Volume readings must be taken at the bottom of the meniscus for consistent density measurements.
- Pycnometer – A laboratory glass vessel with a precisely known volume, used for accurate density determination of liquids and solids by measuring the mass of the contained substance.
- Hydrometer – A sealed glass instrument that floats in a liquid; the depth to which it sinks depends on the liquid’s density. Hydrometers are calibrated to read density or specific gravity directly.
How to Use?
- 1.
Select what to calculate: Choose Density (ρ), Mass (m), or Volume (V) from the dropdown. The two input fields for the values you need to provide remain visible, while the field for the value you are solving for is hidden automatically.
- 2.
Enter the known values: Type in the two known values. Use the unit dropdowns next to each field to switch between grams and kilograms, milliliters and liters, or kg/m³ and g/cm³.
- 3.
Enable Advanced Mode for temperature (optional): Toggle the Advanced Mode switch if your measurement was taken at a non-standard temperature. Enter the measurement temperature in degrees Celsius. The calculator corrects for thermal expansion using a coefficient of 0.00021/°C, which is appropriate for dilute aqueous solutions.
- 4.
Review the result and alternative units: The results panel displays the primary answer in your chosen unit. Below it, a list of alternative unit values provides the same result in other common units, such as g/cm³, kg/m³, and lb/ft³ for density.
- 5.
Use the result in your work: Copy the result or note the value for your report, material specification, or quality control documentation. The reference tables on this page provide density values for common materials and the temperature dependence of water density to help you verify your inputs.