Density Calculator Online
Solve density, mass, or volume from the density formula ρ = m/V in metric or US units, right in your browser.
The Density Calculator runs entirely in your browser. The mass, volume, and density figures you enter never leave your device and nothing is uploaded to ArrayKit.
Open the Mass Calculator
About Density Calculator
The Density Calculator solves the density formula ρ = m/V for whichever value you are missing — density, mass, or volume — from the other two. Type any two known figures and it instantly computes the third, so you do not have to rearrange the formula by hand. Toggle between metric units (grams and milliliters) and US/imperial units (pounds and gallons) and the conversion happens automatically behind the scenes. It is useful for chemistry and physics homework, checking a material's specific gravity, sizing a liquid shipment, or sanity-checking a lab measurement. Built for students, hobbyists, and anyone who needs a quick density, mass, or volume figure without doing the algebra themselves. Everything runs locally in your browser — the numbers you enter are never uploaded.
Features
- Solves for density, mass, or volume from the other two known values
- Switch between metric (g, mL) and US/imperial (lb, gal) units with one click
- Automatic unit conversion so you never have to convert by hand
- Shows the density formula ρ = m/V alongside the result for reference
- Copy the solved value with units in one click
- Clear error messages for missing, negative, or zero-volume inputs
- Instant recalculation as you type — no submit button needed
- Runs entirely in your browser with no figures sent anywhere
How to use the Density Calculator
- Choose what to solve for: density, mass, or volume
- Pick your unit system: metric (g, mL) or US (lb, gal)
- Enter the two known values in the visible fields
- Read the solved result and copy it if you need it elsewhere
Example
Input
mass 200 g, volume 100 mL
Output
Density: 2 g/mL
200 g of a substance filling 100 mL gives a density of 2 g/mL.
Common errors & troubleshooting
- The Density Calculator shows 'Volume must be greater than 0.' — Volume is a divisor in the density formula, so it must be a positive number — 0 mL or 0 gal cannot be used to compute density or solve for mass.
- Switching from metric to US units changes the numbers unexpectedly. — That is expected — the calculator converts your entered figures between grams/milliliters and pounds/gallons so the underlying density stays physically consistent.
- Result looks off by a large factor, like 1000x. — Double-check you are reading the unit label next to each field — grams vs. kilograms or milliliters vs. liters is a common mix-up when copying a value from another source.
- Density Calculator shows an error with only mass entered. — You need exactly two of the three values (density, mass, volume) filled in — enter the second known value to solve for the third.
Frequently asked questions
- What formula does the Density Calculator use?
- It uses the standard density formula ρ = m/V, where density (ρ) equals mass (m) divided by volume (V). Given any two of the three values, the calculator rearranges the formula to solve for the missing one.
- Can the Density Calculator solve for mass or volume instead of density?
- Yes. Use the solve-for toggle to switch the calculator to solve for mass (density × volume) or volume (mass ÷ density) instead of density, using whichever two values you already know.
- Does the Density Calculator support US/imperial units?
- Yes. Switch the unit toggle to US units to enter mass in pounds and volume in US gallons; the calculator converts internally so the density figure stays accurate in either system.
- Is this the same as a specific gravity calculator?
- Specific gravity is a substance's density divided by the density of water (about 1 g/mL). Once you have a density figure from this calculator, divide it by 1 g/mL (or 8.345 lb/gal) to get specific gravity.
- Does the Density Calculator upload my numbers anywhere?
- No. The Density Calculator runs entirely in your browser. The mass, volume, and density figures you type never leave your device and are not uploaded to ArrayKit.
- Why does the calculator reject a negative mass or zero volume?
- Physical mass cannot be negative and volume cannot be zero or negative because it is used as a divisor in ρ = m/V — the calculator flags these so you can correct a typo before trusting the result.
Related tools
All ArrayKit tools