# Density Calculator (ρ = m/V)

Compute density, mass, or volume from the other two, with specific gravity and a float/sink check

> Canonical page: https://test.elysiatools.com/en/tools/density-calculator

- **Category:** Math & Numbers

- **Keywords:** density, mass, volume, rho, specific gravity, relative density, buoyancy, physics, ρ=m/v, float sink

## Overview

Density relates mass and volume.

Equations (three-way solver):
- Density:  ρ = m / V
- Mass:     m = ρ · V
- Volume:   V = m / ρ

Specific gravity = ρ / ρ_water (ρ_water = 1000 kg/m³). SG < 1 floats, SG > 1 sinks.

## Inputs

- **Solve For** (select)
- **Density (ρ, kg/m³)** (number): leave blank when solving for density
- **Mass (m, kg)** (number): leave blank when solving for mass
- **Volume (V, m³)** (number): leave blank when solving for volume

## When to use

- When you need to calculate the density of a material given its mass and volume.
- When you need to determine the total mass of a substance based on its volume and known density.
- When you want to evaluate if an object will float or sink in water by checking its specific gravity.

## How it works

- Select the target variable you want to solve for: Density (ρ), Mass (m), or Volume (V).
- Enter the two known values in their respective fields using standard units (density in kg/m³, mass in kg, or volume in m³).
- The calculator computes the missing value using the formula ρ = m/V, calculates the specific gravity relative to water, and displays whether the object floats or sinks.

## Use cases

- Physics students solving homework problems involving density, mass, and volume relationships.
- Engineers calculating the weight of a structural component based on its material density and volume.
- Logistics planners estimating the volume occupied by a cargo shipment of a known mass and density.

## Frequently asked questions

### What units are used for the calculations?

Mass is measured in kilograms (kg), volume in cubic meters (m³), and density in kilograms per cubic meter (kg/m³).

### How is specific gravity calculated?

Specific gravity is calculated by dividing the substance's density by the density of water (1000 kg/m³).

### How does the calculator determine if an object floats or sinks?

If the calculated specific gravity is less than 1, the object floats; if it is greater than 1, the object sinks.

### Can I calculate the volume if I only know the mass?

No, you must provide two of the three variables (density, mass, or volume) to solve for the third.

### What is the density of water used in this calculator?

The calculator uses a standard water density of 1000 kg/m³ at room temperature for specific gravity calculations.

## Related tools

- [Minimum Spanning Tree (Kruskal / Prim)](https://test.elysiatools.com/en/tools/minimum-spanning-tree): MST with both textbook algorithms: Kruskal's sorted accept/cycle-reject log and Prim's component growth, cross-checked to agree on the total weight; disconnected graphs rejected.
- [Pump NPSH (Net Positive Suction Head) Calculator & Cavitation Check](https://test.elysiatools.com/en/tools/pump-npsh-calculator): Compute the available Net Positive Suction Head (NPSH_a) of a pump and compare it against the required NPSH (NPSH_r) from the pump curve. Head-balance form: NPSH_a = (p_surface_abs - p_vapor) / (ρ·g) + H_static - h_friction. Surface and vapor pressures are absolute; H_static is positive for flooded suction, negative for suction lift. Returns margin (NPSH_a - NPSH_r), ratio (NPSH_a/NPSH_r) and a classification: safe, marginal (margin < 0.5 m), or cavitation likely. If NPSH_r = 0, only NPSH_a is reported. Pressure in Pa/kPa/bar/atm/psi, length in m/ft, density in kg/m³/g/cm³/lb/ft³.
- [Utility Bill Line-Item Decoder & Hidden Fee Detector (CSR/CFL/MHC/HFA Riders, Peak Demand, kWh↔Btu↔therm↔ton-hours)](https://test.elysiatools.com/en/tools/csr-cfl-cfl-mhc-hfa-btu-ton-hours-utility-bill-line-item-validator-and-rgp-peak-explainer): Decode home and commercial electric/gas/water bills: classify tariff riders and charges (CSR/CFL/MHC/HFA-style codes, TOU on/off-peak, demand, capacity tag, decoupling), convert kWh↔Btu↔therms↔Ccf↔m³↔ton-hours with EIA factors, expose hidden fixed fees, and project annual cost with load-factor and peak-shaving savings.
- [ESA PB05-Style Brouwer–Lyddane Averaged-Element Orbit Propagator (J2–J6 + Luni-solar)](https://test.elysiatools.com/en/tools/esa-pb05-pce-pck-reddy-porter-keplerian-equation-averaged-element-propagator): Propagate near-Earth and GNSS-region orbits with a semi-analytical averaged-element model in the Brouwer–Lyddane / PB05 tradition: orbit-averaged secular drift of the mean elements under the EGM96 zonal field J2–J6 (numerical Gauss-equation averaging — the Delaunay-normalisation analogue with the closed-form J2 rates as a built-in cross-check), first-order J2 short-period mean↔osculating reconstruction, long-period J3 frozen-orbit analysis (e = −J3·sin i/(2·J2·p), ω = 90°), double-averaged luni-solar quadrupole secular effects on an elliptical inclined perturber orbit (the Celletti/Kozai–Lidov term with the 39.23° critical mutual inclination), tesseral ground-track resonance checks (1:1, 2:1, 3:2, 5:2 and small-rational commensurabilities with Earth rotation), sun-synchronous inclination solving, and an in-report RK4 numerical-propagation cross-validation of the averaged model.
- [Buoyancy Calculator (Archimedes, F = ρ·V·g)](https://test.elysiatools.com/en/tools/buoyancy-calculator): Compute buoyant force, fluid density, or displaced volume from any two, with optional float/sink analysis
- [Free Fall Calculator (h = ½gt²)](https://test.elysiatools.com/en/tools/free-fall-calculator): Compute distance, time, or final velocity for free fall from rest, given any one plus gravity
- [Potential Energy Calculator (PE = mgh)](https://test.elysiatools.com/en/tools/potential-energy-calculator): Compute gravitational potential energy, mass, or height from the other two, with impact velocity
- [AHU Coil Capacity Calculator (Cooling / Heating)](https://test.elysiatools.com/en/tools/ahu-capacity-calculator): Compute the total, sensible, and latent capacity of an air-handling-unit (AHU) coil from the entering/leaving air state and the dry-air mass flow ṁ_da. Total capacity Qt = ṁ_da·(h1 − h2); sensible capacity Qs = ṁ_da·cp_ma·(T1 − T2) with cp_ma ≈ 1.006 + 1.86·W \[kJ/(kg da·K)\]; latent capacity Ql = Qt − Qs; Sensible Heat Ratio SHR = Qs / Qt. Each state is described by dry-bulb T plus one humidity input (relative humidity φ, or humidity ratio W); W is derived from the Magnus saturation fit when RH is supplied, and enthalpy h = 1.006·T + W·(2501 + 1.86·T) \[kJ/kg da\]. Signed result — works for cooling or heating coils.

## Samples

- [Web Image Processing Python Samples](https://test.elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://test.elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://test.elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [macOS Image Processing Objective-C Samples](https://test.elysiatools.com/en/samples/macos-image-processing-objectivec): macOS Objective-C image processing examples including image reading/saving, image scaling, and format conversion

## Related content

- [Physics Classroom and Lab Calculators](https://test.elysiatools.com/en/hubs/physics-classroom-and-lab-calculators): Compare mechanics, fluid, wave, sound, pressure, and significant-figure tools in one focused educational physics workflow.
