# Density Calculator (ρ = m/V)

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

> Canonical page: https://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

- [Pump NPSH (Net Positive Suction Head) Calculator & Cavitation Check](https://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³.
- [Buoyancy Calculator (Archimedes, F = ρ·V·g)](https://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://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://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://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.
- [Bulk Density & Porosity Calculator](https://elysiatools.com/en/tools/bulk-density-calculator): Bulk density and porosity for granular or porous materials. Three-way solver: pick the unknown (ρ_bulk, m, or V) and supply the other two. ρ_bulk = m/V_bulk. Optionally enter the true particle density ρ_true to compute porosity ε = 1 − ρ_bulk/ρ_true, plus relative density against water. SI units (kg, m³, kg/m³).
- [Force Unit Converter (Extended: N / kN / dyn / lbf / kgf / poundal)](https://elysiatools.com/en/tools/force-unit-converter-extended): Convert force between newton (N, SI base), kilonewton (kN), dyne (dyn, CGS = 10⁻⁵ N), pound-force (lbf = 4.4482216152605 N), kilogram-force (kgf = 9.80665 N), and poundal (pdl = 0.138254954376 N). All factors derive from the exact defining constants 1 lb = 0.45359237 kg, 1 ft = 0.3048 m, and standard gravity g₀ = 9.80665 m/s². Converts via newton to the target unit and lists the equivalent value in all six units. Reference: 1 kg of mass on Earth ≈ 9.80665 N (1 kgf); an adult weighs ≈ 700 N.
- [Hardness Converter (HB / HV / HRC / HRB)](https://elysiatools.com/en/tools/hardness-converter): Convert between Brinell (HB), Vickers (HV), and Rockwell (HRC / HRB) hardness via ASTM E140 tabulated data with linear interpolation. Three material classes: carbon/alloy steel (HV 100–960), austenitic stainless (HV 100–600), and cartridge brass (HV 40–200). Any input scale produces all the others; a scale that does not apply in the current hardness band returns 'out of range'. Indicative only — not for acceptance testing per ASTM E140.

## Samples

- [Web Image Processing Python Samples](https://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://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://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://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://elysiatools.com/en/hubs/physics-classroom-and-lab-calculators): Compare force, energy, motion, buoyancy, pressure, wave, decibel, and measurement-precision tools in one focused physics study and lab workflow hub.
- [Audio Encoding and Format Conversion Tools](https://elysiatools.com/en/hubs/audio-convert): Compare audio format conversion, bitrate changes, sample-rate conversion, codec swaps, and export tools in one hub for delivery and archive workflows.
- [Image Format Conversion and Animated Export Tools](https://elysiatools.com/en/hubs/image-convert): Compare image format converters for JPG, PNG, GIF, AVIF, WebP, TIFF, ICO, base64, and animation-friendly exports in one hub.
- [JSON Interchange and Format Translation Tools](https://elysiatools.com/en/hubs/json-convert): Compare JSON conversion tools for CSV, YAML, TOML, GraphQL, XML, Markdown, Excel, BSON, EDN, and related structured formats in one hub.
