Lab Calculator

Density Calculator

Mass. Volume. A consistent result.

One sample. Three quantities.

Choose the unknown, then enter the other two.

View results
Calculated quantity and output unit
Reference and display options

An adopted numerical benchmark. The default is a rounded water illustration near room temperature, not a live temperature correction.

Use nonnegative decimals or scientific values with twenty significant digits and exponents from negative thirty through thirty. Known sample volumes and adopted reference densities must be positive. Pound and ounce units are avoirdupois; US liquid and Imperial gallons are distinct.

Worked examples

Calculated density

ρ=2.50000 gcm3\rho=2.50000\,\frac{\mathrm{g}}{\mathrm{cm}^3}

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

m=25.0000 gm=25.0000\,\mathrm{g}

Volume

V=10.0000 mLV=10.0000\,\mathrm{mL}

Density

ρ=2.50000 gcm3\rho=2.50000\,\frac{\mathrm{g}}{\mathrm{cm}^3}

Mass in SI units

m=0.0250000 kgm=0.0250000\,\mathrm{kg}

Volume in SI units

V=1.00000×10−5 m3V=1.00000\times10^{-5}\,\mathrm{m}^3

Density in SI units

ρ=2500.00 kgm3\rho=2500.00\,\frac{\mathrm{kg}}{\mathrm{m}^3}

Complete density conversions

Kilograms per cubic meter

ρ=2500.00 kgm3\rho=2500.00\,\frac{\mathrm{kg}}{\mathrm{m}^3}

Grams per cubic centimeter

ρ=2.50000 gcm3\rho=2.50000\,\frac{\mathrm{g}}{\mathrm{cm}^3}

Grams per milliliter

ρ=2.50000 gmL\rho=2.50000\,\frac{\mathrm{g}}{\mathrm{mL}}

Kilograms per liter

ρ=2.50000 kgL\rho=2.50000\,\frac{\mathrm{kg}}{\mathrm{L}}

Grams per liter

ρ=2500.00 gL\rho=2500.00\,\frac{\mathrm{g}}{\mathrm{L}}

Milligrams per milliliter

ρ=2500.00 mgmL\rho=2500.00\,\frac{\mathrm{mg}}{\mathrm{mL}}

Pounds per cubic foot

ρ≈156.070 lbft3\rho\approx156.070\,\frac{\mathrm{lb}}{\mathrm{ft}^3}

Pounds per cubic inch

ρ≈0.0903182 lbin3\rho\approx0.0903182\,\frac{\mathrm{lb}}{\mathrm{in}^3}

Pounds per US liquid gallon

ρ≈20.8635 lbgalUS\rho\approx20.8635\,\frac{\mathrm{lb}}{\mathrm{gal}_{\mathrm{US}}}

Pounds per Imperial gallon

ρ≈25.0560 lbgalImp\rho\approx25.0560\,\frac{\mathrm{lb}}{\mathrm{gal}_{\mathrm{Imp}}}

Reciprocal specific volume

vs=1ρ=0.000400000 m3kgv_s=\frac1\rho=0.000400000\,\frac{\mathrm{m}^3}{\mathrm{kg}}

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

ρref=997.000 kgm3\rho_{\mathrm{ref}}=997.000\,\frac{\mathrm{kg}}{\mathrm{m}^3}

Dimensionless density ratio

R≈2.50752R\approx2.50752

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. 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.

    m=ρV,V>0m=\rho V,\qquad V>0
  2. 2. Normalize mass

    Convert the known numerical value into the common SI basis with exact defined factors before solving.

    m=0.0250000 kgm=0.0250000\,\mathrm{kg}
  3. 3. Normalize volume

    Convert the known numerical value into the common SI basis with exact defined factors before solving.

    V=1.00000×10−5 m3V=1.00000\times10^{-5}\,\mathrm{m}^3
  4. 4. Solve the selected quantity

    The known quantities determine a unique positive-volume mass-density model.

    ρ=mV=2.50000 gcm3\rho=\frac{m}{V}=2.50000\,\frac{\mathrm{g}}{\mathrm{cm}^3}
  5. 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.

    R=ρρref≈2.50752R=\frac{\rho}{\rho_{\mathrm{ref}}}\approx2.50752
  6. 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.

    m=ρV,vs=1ρm=\rho V,\qquad v_s=\frac1\rho
What Can You Create?

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 ρ\rho relates the total mass mm to the same sample volume VV. The report assumes V>0V>0 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.

ρ=mV,m=ρV,V=mρ    when ρ>0\rho=\frac{m}{V},\qquad m=\rho V,\qquad V=\frac{m}{\rho}\;\;\text{when }\rho>0

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

m=25 g=0.025 kg,V=10 mL=10−5 m3m=25\,\mathrm g=0.025\,\mathrm{kg},\qquad V=10\,\mathrm{mL}=10^{-5}\,\mathrm{m}^3ρ=0.02510−5=2500 kgm3=2.5 gcm3\rho=\frac{0.025}{10^{-5}}=2500\,\frac{\mathrm{kg}}{\mathrm{m}^3}=2.5\,\frac{\mathrm g}{\mathrm{cm}^3}

Because 1 mL=1 cm31\,\mathrm{mL}=1\,\mathrm{cm}^3, the result is also 2.5 g/mL2.5\,\mathrm{g/mL}. The inverse forms recover the same 25 g25\,\mathrm g mass or 10 mL10\,\mathrm{mL} 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

Vi=30 mL,Vf=40 mL⇒V=Vf−Vi=10 mLV_i=30\,\mathrm{mL},\quad V_f=40\,\mathrm{mL}\quad\Rightarrow\quad V=V_f-V_i=10\,\mathrm{mL}

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

1 lb=0.45359237 kg,1 ft3=(0.3048 m)31\,\mathrm{lb}=0.45359237\,\mathrm{kg},\qquad1\,\mathrm{ft}^3=(0.3048\,\mathrm m)^31 galUS=3.785411784 L,1 galImp=4.54609 L1\,\mathrm{gal}_{\mathrm{US}}=3.785411784\,\mathrm L,\qquad1\,\mathrm{gal}_{\mathrm{Imp}}=4.54609\,\mathrm L

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

R=ρρref,ρref>0,vs=1ρfor ρ>0R=\frac{\rho}{\rho_{\mathrm{ref}}},\quad\rho_{\mathrm{ref}}>0,\qquad v_s=\frac1\rho\quad\text{for }\rho>0

The default adopted benchmark is 997 kg/m3997\,\mathrm{kg/m^3}, 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.

Why Users Love This Tool

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.
Perfect For

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

How it works in three quick steps.

1

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.

2

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.

3

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.

Download & Print

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.

FAQ

Frequently Asked Questions

What can this density calculator solve?
It solves one unknown among sample mass, sample volume and mass density from the other two quantities. Known inputs are normalized to kilograms, cubic meters and kilograms per cubic meter before calculation. The report then converts the solution into the units you selected and shows ten density representations. A suitable positive sample volume is part of the declared model; the calculator does not infer an object’s geometry or temperature from its density.
Why do grams per milliliter and grams per cubic centimeter match?
A milliliter and a cubic centimeter represent the same volume by definition, so those two density units have the same numerical conversion factor. Kilograms per liter also has that same density scale. The unit names still communicate how a volume was recorded or reported. Keep them with a result rather than treating equal numerical values as permission to omit dimensional information from a laboratory calculation.
Are US gallons, Imperial gallons and fluid ounces interchangeable?
No. A US liquid gallon and an Imperial gallon have different defined volumes. A US fluid ounce is a volume unit, while an avoirdupois ounce is a mass unit. The calculator labels each convention explicitly and uses its corresponding factor. Selecting another unit interprets the entered number in that unit; it does not silently rewrite the input to preserve an earlier physical quantity.
How does the displacement-volume option work?
Enter initial and final readings in the same selected volume unit. The final reading must be greater, and their difference becomes the adopted sample volume. This is appropriate only when the displacement method actually measures the volume you intend to use. Incomplete submersion, bubbles, liquid absorption, dissolution and inaccessible pores can change that interpretation. The calculator performs the subtraction but does not correct experimental effects.
What happens with zero mass, density or volume?
A supplied positive volume with zero mass gives a zero-density ideal limit, and a zero density with positive volume gives zero mass. The reciprocal specific volume is undefined there. If volume is unknown, zero mass and zero density leave it undetermined; positive mass with zero density has no finite solution. Zero mass with positive density gives a formal zero volume outside the declared positive-volume sample model.
Does comparison with water predict floating or identify a material?
The report only compares calculated density with the positive numerical reference you adopted. The default rounded benchmark is an illustration for water near room temperature. Actual water density depends on conditions, including temperature and dissolved material. An object’s flotation can also involve its overall shape, displaced volume, trapped air and surface effects. Density alone therefore does not establish either material identity or a complete flotation outcome.
How are significant figures and unit conversions applied?
Defined conversion factors are retained as exact rational quantities within the numerical model. The input decimals are evaluated without converting their arithmetic to native binary floating point, then each result is rounded for display. Three through ten significant figures are available. Displaying more figures does not improve the measured mass or volume, and a course or measurement procedure may require a separate rule for reporting the final experimental result.
Can I save all conversions and the calculation assumptions?
Yes. Complete copied text and CSV retain the source values, selected units, defined and undefined results, all ten density conversions where available, displacement readings, enabled reference comparison and generated working. Working remains in those records when visually hidden. Shared links retain validated active settings and replace disabled numerical buffers with defaults. Printing includes the selected report and working view while excluding editing controls and this guide.
About This Tool

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.

Editorial Transparency

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 methodology

Keep building

Explore more calculators

Calculators hub