
Web Scripts & Software
DEV3 Density, Mass & Volume Calculator — Source Code (React + Tailwind)
from $29
Live demoEveryday tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Specific gravity 8.96 (sinks in water).
Related: geometry area and volume, molar mass, cooking converter. Runs in your browser.
Need Density, Mass & Volume Calculator as a full mobile or web app? We build it in about a week. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The density, mass & volume calculator stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Get the full app behind this tool. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $29
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demoDensity tells you how much matter is packed into a space. This page solves the relation between density, mass and volume in whatever units you use, and adds the tools people usually need next: a materials table, shape volumes, a float test and mixtures.
Choose density, mass or volume as the unknown. Enter the other two with units such as g/cm³, kg/m³, lb/ft³, lb/gal, kg, oz, L, in³ or US gallons. The answer is shown in your unit and the steps show the conversion to SI. Click any row in the materials table to fill the density.
Search metals, liquids, gases, woods, building materials, stones, plastics, foods and planets. Values are typical at about 20 °C and 1 atm from the CRC Handbook, NIST, the USDA Wood Handbook and NASA fact sheets. Download the table as CSV.
Select a cube, box, rod, pipe, sphere, cone, truncated cone, pyramid, ellipsoid, torus, capsule or prism, enter dimensions in mm, cm, m, in or ft, and get the volume and the mass for the material you chose. This is the quickest way to estimate the weight of bar stock, tubing, concrete pours or a 3D-printed part (check the infill).
Compare an object with water, seawater, oil, mercury or a density you type. The tool gives the fraction submerged, buoyant force, apparent weight when sunk and specific gravity.
Mix solutions by mass or volume to get the combined density (ideal mixing, so real alcohol-water blends differ slightly). The water panel uses the Tanaka (2001) formula and NIST table values to give density and weight by temperature.
Reference densities are rounded and vary by grade and moisture; temperature changes liquids and gases noticeably. For safety-critical, structural or pharmaceutical work use certified data. Everything runs in your browser.
Density = mass / volume (ρ = m / V). Rearranged, mass = density x volume and volume = mass / density. In SI units density is kg/m³; chemists often use g/cm³, which is the same number as g/mL and 1,000 times smaller than kg/m³ (water is 1 g/cm³ = 1,000 kg/m³).
Pick the shape (rod, pipe, plate, sphere), enter the dimensions, choose the material and the calculator multiplies the volume by the density. A 50 mm diameter, 1 m long steel rod is 1.963 L, so 15.4 kg at 7,850 kg/m³.
Pure water is densest at 4 °C, 999.97 kg/m³. At 20 °C it is 998.21 kg/m³, so one US gallon weighs about 8.33 lb (3.78 kg). The water tab gives the weight and density for any volume and temperature from 0 to 100 °C.
An object floats when its density is lower than the fluid. The fraction below the surface equals object density divided by fluid density, so ice (917 kg/m³) sits 91.7 % under fresh water. Use the buoyancy tab to test any material in water, seawater or oil.
Specific gravity is density relative to water, so it has no unit. Mercury is 13.53 times denser than water, so its specific gravity is 13.53. A value below 1 means the material floats on water.
They are typical room-temperature values from reference handbooks. Alloys, woods, soils and foods vary with grade, moisture and temperature, and gases change with pressure, so use them for estimates and check the datasheet for critical work.