How to Use This Calculator
Use any two values and let the third resolve instantly.
Solve for density
Enter mass and volume, then keep density selected. The density field updates instantly while preserving your chosen unit.
Solve for mass
Click m Mass to make mass the target, then enter density and volume. This is useful for shipment estimates, batching, and material planning.
Solve for volume
Click V Volume, enter density and mass, and the calculator returns the space the material occupies.
Switch units anytime
Change the dropdowns at any point. Values stay physically consistent while the display changes across density units.
Use a reference material
Search the library above and click Use in calculator to preload a representative value from the 232-material database.
Share the result
Use the share button to copy a result URL that preserves the current inputs, solve mode, and unit selections for another user.
If you want a formula-first explanation before calculating, read the density formula guide. If you want the conceptual overview first, start with what is density.
Calculator suite
Eight density scenarios from one visual language.
Database-led
Material Density
Pick common metals, woods, plastics, and liquids, then solve for mass or volume.
Open calculator
Temperature-aware
Liquid Density
Compare water, ethanol, gasoline, milk, and sea water with a live temperature slider.
Open calculator
Ideal gas law
Gas Density
Use pressure, temperature, and molar mass to estimate gas density against air.
Open calculator
Human geography
Population Density
Calculate people per area and compare the result to well-known cities and countries.
Open calculator
Screen sharpness
Pixel Density
Find PPI for phones, tablets, laptops, and monitors with retina guidance.
Open calculator
Reference only
Bone Density Reference
Understand T-score ranges and DXA terminology in a non-diagnostic reference tool.
Open calculator
Field work
Soil Density
Estimate soil bulk density from dry mass and core sample volume.
Open calculator
Aviation & HVAC
Air Density
Estimate dry air density from temperature, pressure, and altitude assumptions.
Open calculator
Why Density Matters
Physics and materials
Density is one of the most useful properties in materials science because it helps engineers compare weight against size. Aluminum at about 2700 kg/m³ is much lighter than steel at roughly 7850 kg/m³, which is why aircraft, bicycles, and portable electronics lean so heavily on aluminum alloys. Titanium sits between the two and is chosen when strength, corrosion resistance, and lower mass all matter at once.
Density also affects transport cost, inertia, vibration, heat transfer assumptions, and structural load calculations. That is why engineers rarely look at strength or price alone. They compare the full material profile, and density is one of the first values on the spec sheet.
Buoyancy and everyday life
Archimedes' principle tells us that an object floats when its average density is lower than the fluid it displaces. A steel ship floats because the hull encloses air and lowers the average density of the entire ship-plus-air system below that of water. Hot-air balloons rise because heated air is less dense than the cooler air around it.
The same idea explains why ice floats, why oil sits on top of water, why scuba divers control buoyancy with air volume, and why heavy liquids such as mercury feel so unusual. If you want benchmark values for those comparisons, go straight to the full density table.
Industry applications
- Shipping: bulk density affects freight class, packaging, and handling cost.
- Food science: density helps verify concentration, syrup strength, and product consistency.
- Geology: rock density supports mineral identification and formation comparison.
- Medicine: bone density reference values support osteoporosis screening workflows.
- Display design: pixel density determines perceived sharpness and viewing comfort.
- Manufacturing: density allows fast conversion between a known mass and a target fill volume.
FAQ
Search-intent answers for common density questions.
What is density?
Density is a physical property that describes how much mass is packed into a given volume of a substance. In plain language, it tells you how heavy something is relative to its size. The standard SI unit is kilograms per cubic meter (kg/m³), while grams per cubic centimeter (g/cm³) is also common in chemistry and lab work. If two objects take up the same amount of space, the denser one contains more mass in that same volume.
Every material has a characteristic density range. Pure water near its maximum density is about 1000 kg/m³, which is why the density of water is such a useful reference point. Substances denser than water usually sink, while substances less dense than water usually float. That is why a chunk of steel sinks but a piece of dry wood floats, and it is also why a steel ship can float when its hollow hull lowers the average density of the entire vessel.
Density also shifts with temperature and pressure. Gases change the most because they are compressible. Liquids and solids change more subtly, but those changes still matter in engineering, metrology, shipping, HVAC, chemistry, and materials science. If you are new to the topic, start with what is density for a deeper definition and real-world examples.
How do you calculate density?
To calculate density, divide mass by volume. If a rock has a mass of 500 grams and displaces 200 cubic centimeters of water, its density is 500 ÷ 200 = 2.5 g/cm³. The arithmetic is simple; the part that causes most mistakes is unit consistency. Mass and volume must belong to a matching system, or you need to convert them first.
A reliable step-by-step method looks like this. First, measure or find the mass with a scale. Second, measure the volume. For a box or block, multiply length by width by height. For a cylinder, use π × r² × h. For irregular shapes, use water displacement. Third, divide mass by volume. Finally, attach the correct unit such as kg/m³, g/cm³, or lb/ft³. If you need a refresher on the unit side, review the guide to density units.
This calculator handles all three common scenarios. You can solve for density when you know mass and volume, solve for mass when you know density and volume, or solve for volume when you know density and mass. If you prefer a preset-driven workflow, the material density calculator lets you start from common substances instead of entering density manually.
What is the formula for density?
The density formula is ρ = m / V, where ρ (rho) is density, m is mass, and V is volume. That relationship is the foundation for density calculations in physics, chemistry, engineering, geology, food science, and manufacturing. Once you understand the formula, you also understand how to solve for the other two variables.
The formula can be rearranged in two useful ways. To find mass, use m = ρ × V. To find volume, use V = m / ρ. Many people memorize this with the triangle method: place m at the top, ρ on one bottom corner, and V on the other. Cover the unknown variable and the remaining symbols reveal whether you multiply or divide.
The practical point is that the same relationship always stays intact. A density calculator is not using a different equation for each mode; it is simply rearranging the density formula. That is why the tool above can switch between density, mass, and volume instantly while keeping the same unit logic and physical meaning.
What is the density of water?
Pure water at 4°C (39.2°F) has a density of about 1000 kg/m³, which is also equal to 1 g/cm³ or 1 kg/L. This is the maximum density of fresh water and one of the most widely used benchmark values in science and engineering. At room temperature, water is slightly less dense, which is why you often see everyday reference values around 997 or 998 kg/m³ instead of a perfectly round 1000.
Temperature matters because the molecular structure of water changes with heating and cooling. At 20°C, water is around 998.2 kg/m³. At 100°C, it falls much lower. Ice at 0°C is only about 917 kg/m³, which is why it floats. That unusual behavior matters for lakes, oceans, climate, and ecosystems because it allows ice to form at the surface instead of sinking to the bottom.
Sea water is denser than fresh water because dissolved salts add mass without increasing volume proportionally. A typical sea-water value is around 1025 kg/m³. If you want to compare water, sea water, ice, oils, or metals directly, the full density table is the fastest reference.
How do you find volume from density and mass?
To find volume from density and mass, rearrange the formula to V = m ÷ ρ. Divide the mass by the density, and the result is the volume occupied by the material. This is common whenever you know what a material is and how heavy it is, but you need to estimate how much space it will take up in a container, shipment, or component layout.
Example: suppose you have 5 kg of aluminum and use a density of 2700 kg/m³. Volume = 5 ÷ 2700 = 0.00185 m³, or about 1.85 liters. The same method works for liquids, bulk solids, and gases as long as the density value matches the same temperature and pressure conditions as the material you are analyzing.
This calculation shows up in packaging, tank sizing, jewelry, casting, machining, food production, and construction estimating. It is especially helpful when you pull a value from a reference source, then send it straight into the calculator above or the material density calculator to avoid unit mistakes.
What unit is density measured in?
Density is always expressed as mass divided by volume. The SI unit is kilograms per cubic meter (kg/m³), but many industries use different reporting formats. Chemistry often uses g/cm³, liquid handling often uses kg/L or g/mL, and U.S. construction references often use lb/ft³. The choice of unit does not change the substance itself; it only changes the way the same physical value is written.
| Unit | Common use |
|---|---|
| kg/m³ | Engineering, physics, and SI-based material specs |
| g/cm³ | Chemistry, materials science, and lab work |
| g/mL | Liquids in small-volume lab settings |
| kg/L | Bulk liquid storage and everyday liquid comparisons |
| lb/ft³ | U.S. engineering, construction, and HVAC references |
One of the most important equivalences is that 1 g/cm³ = 1000 kg/m³ = 1 kg/L. This site handles those conversions directly, and the dedicated guide to density units explains when each format is most useful and where people usually make conversion errors.
Search-friendly overview
Density tools for engineering teams, lab work, field checks, and classroom study.
Density Calculator is a browser-based reference hub for anyone who needs a fast density calculator for mass, volume, and unit conversion. Engineering students use it to practice density formula problems, lab technicians use it to compare material benchmarks, and manufacturing teams use it to translate a known mass into a required fill volume without leaving the browser.
The site also covers longer-tail workflows that generic calculators usually miss. You can open the air density calculator for HVAC and aviation work, the soil density calculator for geotechnical field checks, the material density calculator for metals, plastics, and wood, and the gas density calculator for ideal gas law problems. If the task is unit-focused, the density units conversion guide explains kg/m³, g/cm³, kg/L, and lb/ft³ before you calculate.
Start with the main calculator for a quick answer, move to the density table when you need a benchmark value, and use the calculator library when you want the tool that best matches your scenario.