Density Calculator
Mass. Volume. A consistent result.
Density Calculator
One sample. Three quantities.
Choose the unknown, then enter the other two.
Calculated density
The known quantities determine a unique positive-volume mass-density model.
This is mass density for one adopted sample volume. Mass and density are nonnegative; sample volume must be positive. Unit factors are defined conversions. Display precision does not establish measurement certainty, identify a material or supply a temperature correction.
Mass, volume and density record
Mass
Volume
Density
Mass in SI units
Volume in SI units
Density in SI units
Complete density conversions
Kilograms per cubic meter
Grams per cubic centimeter
Grams per milliliter
Kilograms per liter
Grams per liter
Milligrams per milliliter
Pounds per cubic foot
Pounds per cubic inch
Pounds per US liquid gallon
Pounds per Imperial gallon
Reciprocal specific volume
This reciprocal uses the exact density before rounding. The mass-density-volume identity holds for the exact numerical model, while independently rounded result cards may not multiply back exactly.
Adopted reference-density comparison
Adopted reference density
Dimensionless density ratio
Calculated density is higher than the adopted reference.
Ordering uses unrounded values. The default benchmark is a rounded illustration for water near room temperature. It is not an exact water property, a temperature-dependent water model or a complete prediction that an object will float or sink.
Step-by-step density working
1. Declare one common sample volume
Density is total mass divided by the same sample volume under the adopted conditions. Mass and density are nonnegative; an admissible sample volume must be positive. Unit conversion does not infer temperature, porosity or material identity.
2. Normalize mass
Convert the known numerical value into the common SI basis with exact defined factors before solving.
3. Normalize volume
Convert the known numerical value into the common SI basis with exact defined factors before solving.
4. Solve the selected quantity
The known quantities determine a unique positive-volume mass-density model.
5. Compare with the adopted reference
The ratio is dimensionless and the ordering uses unrounded normalized values. The default benchmark is an approximate water illustration, not a temperature-dependent water model or a complete flotation prediction.
6. Retain dimensional consistency
The exact input model satisfies the mass-density-volume identity. Individually rounded displayed values need not reproduce it exactly. A reciprocal specific volume exists only for positive density.
Describe one sample with consistent mass and volume
Solve all three quantities
Calculate mass density from a measured mass and volume, recover mass from density and volume, or recover an admissible sample volume from mass and density.
Inspect a displacement measurement
Keep both volume readings beside their positive difference. The subtraction remains exact within the entered numerical model, even when large readings differ by a small amount.
Retain a complete conversion record
Compare ten density units without repeating the calculation by hand. Keep the source unit conventions, chosen output units and any adopted reference with the numerical results.
Density formulas and step-by-step examples
Normalize units before solving
Mass density relates the total mass to the same sample volume . The report assumes and nonnegative mass and density. A bulk volume that includes pores and a material volume that excludes them can lead to different densities; the selected numerical formula does not decide which physical volume was measured.
The first step is dimensional conversion, followed by the selected rearrangement. Kilograms and cubic meters provide the internal common basis. Defined avoirdupois mass and international inch/foot volume factors are retained without a shortened decimal approximation. Independent output units are applied after solving, so changing a display unit does not change the exact underlying relationship.
Follow the original mass and volume example
Because , the result is also . The inverse forms recover the same mass or volume when the other two quantities are adopted. Each displayed card is rounded separately; using those rounded cards as new input can introduce a different rounding result.
Use the volume difference only when the experiment supports it
The two readings share one volume unit. Their difference must be positive and describes the adopted displaced volume rather than the final reading alone. A suitable fully submerged sample is assumed. If liquid enters pores, a substance dissolves or bubbles remain attached, the numerical reading difference may describe a different volume from the one required by the intended density definition.
Distinguish mass ounces from liquid units
A gallon selector therefore changes the physical interpretation of an entered volume number. A mass ounce is one sixteenth of an avoirdupois pound; a US fluid ounce is one one-hundred-twenty-eighth of a US liquid gallon. The conversion table does not mix those meanings. A grain is another mass unit and retains its defined rational relationship to a pound.
Keep reference ratios and reciprocals within their domains
The default adopted benchmark is , a rounded water illustration near room temperature. Treating that entered benchmark exactly in arithmetic does not make it an exact physical water density. You can change its value and unit or disable the comparison. Temperature, pressure, composition, porosity and the definition of sample volume remain separate experimental considerations.
The zero cases are interpreted before an inverse becomes a physical volume report. A zero-density ideal limit has no finite reciprocal specific volume. When mass and density are both zero, any positive volume fits the identity, so a unique volume cannot be recovered. When positive mass is paired with zero density, no finite positive volume satisfies the model.
Preserve the physical meaning of each unit choice
Explicit units and domains
- Negative or malformed entries are rejected rather than silently clamped. Known sample volume and adopted reference density must be positive.
- Three inverse forms distinguish a unique sample, a zero-density ideal limit, missing constraints, incompatible inputs and a formal zero volume.
- All original mass and volume choices remain, with additional clearly named units and exact defined factors. US and Imperial gallon systems remain distinct.
Records you can inspect later
- Source values are normalized before solving. Final display precision does not alter the exact input-model conversion or reference ordering.
- All conversions and generated working survive in copied text and CSV even when the on-screen steps are hidden.
- Default results and original guide mathematics remain server rendered. Share settings, keyboard focus, screen-reader updates and printable reports support reviewing the same calculation.
Useful for dimensional checks and laboratory examples
Chemistry and physics students
Practice the three rearrangements with metric or imperial units. Explain why equal numerical density units can still use different labels and why positive volume is a domain condition.
Teachers preparing mass-density examples
Compare a direct volume with a suitable reading difference. Use zero cases to distinguish underdetermined quantities from incompatible equations and limits that lie outside a physical sample model.
Readers documenting a measured sample
Keep the adopted sample volume, source units and reference conditions with the record. Use a separate measurement procedure and uncertainty analysis when interpreting a real material or comparing experimental data.
How it works in three quick steps.
Choose density, mass or volume as the unknown
Select the quantity to calculate and enter the other two with independent units. Mass and density are nonnegative and known sample volume must be positive. Pound and ounce units mean avoirdupois mass; US liquid and Imperial volumes are distinct. Decimal and scientific inputs are evaluated before display rounding.
Declare the sample-volume and reference assumptions
For known volume, enter it directly or adopt the positive difference of two readings in the same volume unit. Displacement assumes a fully submerged suitable sample. Optionally enter a positive reference density and its unit. The default reference is a rounded water illustration, not an automatically temperature-adjusted physical property.
Review domains, conversions and complete working
Inspect whether the inputs determine an admissible positive-volume sample. Zero density can leave a volume undetermined or make its inverse incompatible. Review all density conversions and the reciprocal only where defined. Copy the complete record or LaTeX, download CSV, share active settings or print the selected mathematical report.
Save the assumptions with every density conversion
Copy results or controlled LaTeX
Complete text retains source settings, all available conversions, exact rational records, the enabled reference and displacement readings. The LaTeX action copies the main generated mathematical derivation.
Download the complete CSV record
CSV keeps rectangular report rows, exact numerical certificates and hidden generated working. Spreadsheet formula prefixes are protected. Preserve long records as text if automatic spreadsheet formatting would shorten them.
Print or save a PDF report
Choose the paper size in the browser print dialog. Input controls, navigation and this guide are excluded; the selected mathematical report and visible working remain. Check the preview before printing a long conversion record.
Frequently Asked Questions
What can this density calculator solve?
Why do grams per milliliter and grams per cubic centimeter match?
Are US gallons, Imperial gallons and fluid ounces interchangeable?
How does the displacement-volume option work?
What happens with zero mass, density or volume?
Does comparison with water predict floating or identify a material?
How are significant figures and unit conversions applied?
Can I save all conversions and the calculation assumptions?
Related calculators
About this Density Calculator
This Density Calculator connects sample mass, sample volume and mass density through a dimensional relationship. The tool starts with the quantity you want to recover, normalizes the other two into a common basis and reports the result in independently selected units. It keeps the original gram-and-milliliter example while extending the same calculation to multiple metric and explicitly identified imperial conventions. Pound and ounce choices refer to avoirdupois mass, while gallon and fluid-ounce choices identify the appropriate volume system.
A suitable sample volume is an essential assumption rather than a value the formula discovers. A direct measured volume and a positive difference between two displacement readings can represent the same adopted numerical volume, but experimental conditions determine whether they describe the material or bulk volume intended by a procedure. The calculator does not correct absorption, bubbles, dissolution, open pores or incomplete submersion. It distinguishes valid positive-volume models from an underdetermined inverse, an incompatible zero-density constraint and an algebraic zero volume that lies outside the declared sample domain.
Exact rational arithmetic retains source decimals and defined unit factors until final display rounding. Complete conversion records, mathematical working, strict active-settings links and printable reports make that numerical model reproducible without claiming additional measurement precision. The optional reference-density ratio is explicitly tied to a value and unit adopted by the reader. Its rounded default water benchmark does not substitute for a temperature-dependent property model. The report does not identify an unknown material, predict complete flotation behavior or propagate uncertainty. It preserves the approved science and lab URL hierarchy and complements separate significant-figure, reference-error and density-conversion tools.
Who maintains this page
Ownership and review
Written and maintained by the Toolarithm editorial team. No review date is shown without a maintained editorial record. No independent professional review is claimed.
Methodology
The method identifies the governing relationship, units, significant assumptions, and educational scope. SI terminology is checked against the BIPM reference.
Read the editorial methodologyDates and sources
Review dates change only after a substantive method or content check.
Keep building