density calculator

Scientific Calculators

Calculate density, mass, and volume seamlessly with this interactive scientific tool.

Quick Select Materials:

Will it Float?

Enter values to test

Calculate from Shape

Select a shape above to calculate volume from dimensions.

How to Use the Density Calculator (Step-by-Step)

Master the mass-to-volume ratio, geometric solid volume calculations, fluid buoyancy tests, and material identification.

01

Choose Desired Units for Each Property

Customize the unit selectors for Density (kg/m³, g/cm³, lb/ft³, kg/L), Mass (kg, g, lb, oz, ton), and Volume (m³, cm³, L, mL, ft³, gal). Switching units automatically recalculates all figures without data loss.

02

Input Any Two Known Values (Magic Triangle)

Type values into any 2 fields. The calculator automatically detects your last two inputs and instantly solves for the third variable using the fundamental formula: ρ = m / V, m = ρ × V, or V = m / ρ.

03

Explore Quick-Select Reference Materials

Click presets such as Water, Oak Wood, Concrete, Steel, or Gold to instantly populate benchmark densities and observe how mass changes proportionally with fixed volumes.

04

Calculate Volume from Geometric Shapes

Need volume for a regular object? Open 'Calculate from Shape', select Cube, Cylinder, or Sphere, enter dimensions (side length, radius, or height), and click 'Apply Volume' to transfer the computed cubic meters directly.

05

Simulate Buoyancy with 'Will It Float?'

Select a test fluid medium (Water, Saltwater, Oil, or Mercury). The interactive animated beaker visualizes Archimedes' principle in real time, showing whether the object will float or sink.

06

Identify Unknowns with 'Material Detective' & Copy

Consult the Material Detective indicator to discover real-world substances that closely match your calculated density, then click 'Copy Data' to save your complete results to the clipboard.

Frequently Asked Questions (FAQ)

Thermodynamic density formulas, fluid mechanics, Archimedes' principle, and material science.

QWhat is density and what is the fundamental formula?

Density (ρ) measures how much mass (m) is contained within a given unit volume (V): ρ = m / V. In the International System of Units (SI), it is expressed in kilograms per cubic meter (kg/m³). In laboratory chemistry, grams per cubic centimeter (g/cm³) is widely used, where 1 g/cm³ = 1,000 kg/m³.

QHow do I calculate mass or volume when density is known?

Using the Density Triangle algebraic rearrangements: To solve for Mass: m = ρ × V (multiply density by volume). To solve for Volume: V = m / ρ (divide mass by density). The interactive calculator tracks your edits and executes these rearrangements automatically.

QHow does Archimedes' Principle determine whether an object floats or sinks?

Archimedes' principle states that any object immersed in a fluid experiences an upward buoyant force equal to the weight of fluid displaced. If the object's average density is less than the fluid's density (ρ_object < ρ_fluid), the buoyant force exceeds gravity and the object floats; if greater, it sinks.

QWhy does saltwater provide more buoyancy than freshwater?

Saltwater contains dissolved mineral salts (~3.5% salinity), increasing its density to approximately 1,025 kg/m³ compared to pure freshwater at 1,000 kg/m³. Because the displaced saltwater weighs more per unit volume, it produces a greater upward buoyant force, allowing swimmers and ships to float higher.

QHow does temperature affect the density of substances?

Heating most substances causes thermal expansion: the volume expands while mass remains constant, reducing density. Water displays a famous density anomaly: its maximum density occurs at 4°C (1,000 kg/m³). Below 4°C, water expands as ice forms an open crystal lattice, reaching ~917 kg/m³, which is why ice floats on liquid water.

QHow does the Shape Engine calculate the volume of regular solids?

The engine applies classical solid geometry formulas: Cube: V = s³ (where s is side length); Cylinder: V = π × r² × h (radius r, height h); Sphere: V = (4/3) × π × r³. These formulas yield exact cubic volumes directly from linear measurements without requiring immersion tanks.

QWhat is the difference between density, specific gravity, and specific weight?

Density (ρ) is mass per unit volume (m/V in kg/m³). Specific gravity (relative density) is a dimensionless ratio comparing a substance's density to pure water at 4°C (SG = ρ_substance / ρ_water). Specific weight (γ) is the weight (gravitational force) per unit volume (γ = ρ × g, measured in N/m³).

QWhy does a massive steel cargo ship float while a tiny steel bolt sinks?

Buoyancy depends on the average (apparent) density of the entire vessel, not the steel itself. A ship's hull encloses a colossal volume of air. When dividing the ship's total mass by its total displacement volume, the average density is much lower than water (< 1,000 kg/m³), ensuring stable buoyancy.

ρ =
m V
  • ρ (Density): Mass per unit volume.
  • m (Mass): Total amount of matter.
  • V (Volume): Space occupied by the object.

What is density calculator?

Calculate density, mass, and volume seamlessly with this interactive scientific tool. The Advanced Density Calculator is a precision engineering utility designed to solve the fundamental mass-to-volume ratio using the equation ρ = m / V. The interface offers a Quick Select Materials row (Water, Oak Wood, Concrete, Steel, Gold) to instantly populate standard baseline metrics. Furthermore, it features a dynamic Calculate from Shape module (Cube, Cylinder, Sphere) that computes volume purely from geometric dimensions. Crucially, the Will it Float? feature uses fluid mechanics to instantly verify if your specified object will sink or achieve buoyancy when submerged in different mediums like Water, Saltwater, Oil, or Mercury.
Practical Calculation Example (Aerospace Engineering)
Consider an aerospace engineer designing a custom cylindrical bracket for a commercial aircraft. Weight reduction is critical. Using the Calculate from Shape tool, they select "Cylinder" and input the dimensions, revealing a volume of 0.005 m³. If the engineer tests Aluminum (density of 2,700 kg/m³), the calculator instantly reveals a mass of 13.5 kg. If they switch to Titanium (density of 4,500 kg/m³), the mass jumps to 22.5 kg. This rapid calculation allows the engineering team to perfectly balance structural integrity against fuel-efficiency weight limits.
Calculation Metrics
The engine processes the following physical properties dynamically:
Interface ElementMathematical FunctionPractical Application
Density (ρ)Mass / VolumeDetermines the compactness of a substance (e.g., kg/m³ or g/cm³).
Will it Float?Buoyancy comparisonCompares object density against liquid density (Water, Saltwater, Oil, Mercury).
Calculate from ShapeGeometric volume formulasCalculates exact volume for a Cube, Cylinder, or Sphere before finding mass.
Copy DataClipboard exportInstantly copies your final metrics for use in digital reports or spreadsheets.

History and Origin

While the Greek mathematician Archimedes famously discovered the principle of displacement (the "Eureka" moment) to calculate the density of a golden crown, the modern practical application of density in the English-speaking world was revolutionized by the British merchant navy. In the 1870s, Samuel Plimsoll introduced the "Plimsoll Line" on commercial ships. This mandatory hull marking used the principles of density and buoyancy to indicate the safe loading level for ships traveling through different water densities (freshwater vs. saltwater, summer vs. winter), saving thousands of sailors' lives from overloading disasters.