Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Density Calculator

Density Calculator

Calculate density, mass, or volume using the formula ρ = m/V. Supports multiple units with real-time results and material comparison.

What Is Density?

Density is a fundamental physical property that describes how much mass is packed into a given volume. It is defined by the formula ρ = m / V, where ρ (rho) represents density, m is mass, and V is volume.

This calculator lets you solve for any one of these three variables when you know the other two. Whether you need to find the density of an unknown material, calculate the mass of a known volume, or determine how much space a certain mass occupies — simply enter two values and get the answer instantly.

Common Density Values

Different materials have vastly different densities. Here are some reference points:

Air

1.225 kg/m³

Water

1,000 kg/m³ (standard reference)

Aluminum

2,700 kg/m³

Steel

7,800 kg/m³

Gold

19,300 kg/m³
Practical tip: Materials with density less than 1,000 kg/m³ float in water, while denser materials sink. This principle is used in flotation separation, ship design, and material testing.

How to Use the Density Calculator

1

Enter Two Known Values

The calculator has three input cards — Density (ρ), Mass (m), and Volume (V). Enter values in any two of the three fields. The third value is calculated automatically in real time.

2

Select Your Units

Each input field has a unit dropdown. Choose the appropriate unit for your values:

  • Density — kg/m³, g/cm³, g/mL, kg/L, lb/ft³, and more
  • Mass — mg, g, kg, tonnes, lb, oz, slug
  • Volume — mm³, cm³, mL, L, m³, gallons, ft³, in³
3

View Results

Once two values are entered, the calculator displays:

  • Calculated result in the third card, shown in your selected unit
  • Formula used with the actual values substituted
  • Unit conversions — expand to see the result in all available units
  • Density comparison — a visual chart comparing your result to 12 common materials, with a sink/float indicator

Quick Examples

Click the Examples button to load preset calculations like water density, a gold bar, or a steel block. This is useful for learning or verifying your understanding of the formula.

Features

Three Solve Modes

Enter any two of the three variables (density, mass, volume) and the calculator solves for the missing one using the appropriate formula:

  • ρ = m/V (find density)
  • m = ρ × V (find mass)
  • V = m/ρ (find volume)

Extensive Unit Support

Choose from multiple unit systems with automatic conversion:

  • 8 density units
  • 7 mass units
  • 8 volume units
  • Mix and match freely

Unit Conversion Table

After each calculation, expand the conversion table to see your result expressed in every available unit at once. This saves time when you need the same value in different measurement systems.

Material Density Comparison

When density is calculated or provided, a visual comparison chart shows where your value falls among 12 common materials — from air (1.225 kg/m³) to gold (19,300 kg/m³). The chart also indicates whether your material would sink or float in water.

Adjustable Precision

Control the number of decimal places to match your accuracy requirements:

  • 2, 3, 4, or 6 decimal places
  • Default: 4 decimal places

Quick Examples

Six preset examples cover practical scenarios: calculating water density, finding the mass of a steel block, determining gold bar density, and more. Click any example to load it instantly.

Frequently Asked Questions

What is the formula for density?

Density is calculated using ρ = m / V, where ρ (rho) is density, m is mass, and V is volume. You can rearrange this formula to find mass (m = ρ × V) or volume (V = m / ρ).

What units does this calculator support?

The calculator supports:

  • 8 density units: kg/m³, g/cm³, g/mL, kg/L, lb/ft³, lb/in³, oz/in³, slug/ft³
  • 7 mass units: mg, g, kg, t, lb, oz, slug
  • 8 volume units: mm³, cm³, mL, L, m³, gal, ft³, in³

You can mix units freely — the calculator handles all conversions automatically.

How does the sink/float indicator work?

Water has a density of 1,000 kg/m³. Materials with density below this value float in water, while materials above this value sink. The calculator automatically compares your result to water and shows the appropriate indicator.

Example: Ice has a density of about 917 kg/m³, which is why it floats. Steel at 7,800 kg/m³ sinks immediately.

Can I enter negative values?

While density, mass, and volume are physically positive quantities, the calculator will process negative inputs mathematically. The comparison chart uses the absolute value for visualization.

Why does my result show as empty?

The calculator requires exactly two inputs to calculate the third. If you enter all three values, the oldest input is automatically cleared.

Important: The calculator cannot divide by zero — entering 0 for volume (when solving density) or 0 for density (when solving volume) will not produce a result.

Is my data stored or sent anywhere?

No. All calculations are performed entirely in your browser using JavaScript. No data is sent to any server, and nothing is stored after you close the page.

ρ Density
m Mass
V Volume
Formula Used
Density Comparison
Find Formula
ρρ = m / V
mm = ρ × V
VV = m / ρ
Enter any 2 values and the third is calculated automatically
Change units from the dropdown next to each input field
Click Examples to load preset calculations instantly
The comparison chart shows where your result falls among common materials
All calculations are done in your browser — no data is sent to any server
Want to learn more? Read documentation →
1/6
Can't find it? Build your own tool with AI
Start typing to search...
Searching...
No results found
Try searching with different keywords