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
Water
Aluminum
Steel
Gold
How to Use the Density Calculator
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.
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³
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.
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.
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.
No comments yet. Be the first to comment!