Skip to main content
physics

Density Calculator

Calculate density from mass and volume using ρ = m/V. Essential for physics, chemistry, materials science, and engineering.

Reviewed by Christopher FloiedUpdated

This free online density calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Density Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Density Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Density Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Density Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Density Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate density from mass and volume using ρ = m/V. Essential for physics, chemistry, materials science, and engineering. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

About Density Calculator

The Density Calculator computes the density of a substance using the fundamental formula ρ = m/V (mass per unit volume). Density is one of the most important physical properties — it tells you how much matter is packed into a given space. It's why gold sinks in water while wood floats, why hot air rises above cold air, and why oil forms a layer on top of water. Understanding density is essential in physics, chemistry, materials science, engineering, meteorology, oceanography, and countless everyday applications. From designing ships and submarines to understanding weather patterns to separating chemicals, density calculations are fundamental.

The Math Behind It

Density is the mass per unit volume of a substance. It's one of the most fundamental physical properties of matter. **The Formula**: ρ = m / V Where: - ρ (rho) = Density - m = Mass - V = Volume **Units**: - **SI**: kg/m³ (kilograms per cubic meter) - **Common**: g/cm³ or g/mL (grams per cubic centimeter) - **1 g/cm³ = 1000 kg/m³** - **Imperial**: lb/ft³, lb/gal **Density of Common Substances** (g/cm³ at room temp): | Material | Density | |----------|---------| | Hydrogen (gas) | 0.00009 | | Helium (gas) | 0.00018 | | Air | 0.00129 | | Oxygen | 0.00143 | | Cork | 0.24 | | Balsa wood | 0.16 | | Pine wood | 0.50 | | Oak wood | 0.75 | | Ice | 0.92 | | Water | 1.00 | | Seawater | 1.025 | | Rubber | 1.1-1.6 | | Concrete | 2.4 | | Aluminum | 2.7 | | Glass | 2.5 | | Iron | 7.87 | | Steel | 7.85 | | Copper | 8.96 | | Silver | 10.5 | | Lead | 11.3 | | Mercury | 13.5 | | Gold | 19.3 | | Platinum | 21.5 | | Osmium | 22.6 (densest natural element) | **Why Things Float or Sink**: An object floats if it's less dense than the fluid it's in: **In water (density 1.0)**: - Floats: Wood (0.5), ice (0.92), oil (0.92) - Sinks: Rock (2.5), iron (7.87), gold (19.3) **Density of Water**: Water has a special density-temperature relationship: - At 4°C: Maximum density (1.000 g/cm³) - At 0°C: 0.9999 g/cm³ - At 20°C: 0.998 g/cm³ - At 100°C: 0.958 g/cm³ - Ice: 0.92 g/cm³ (LESS dense than liquid water!) This is why ice floats on water — unusual among substances, crucial for aquatic life. **Gas Densities**: Gases have very low densities that depend on temperature and pressure: At standard conditions (0°C, 1 atm): - **Hydrogen**: 0.0899 g/L - **Helium**: 0.1786 g/L - **Nitrogen**: 1.251 g/L - **Oxygen**: 1.429 g/L - **Air**: 1.293 g/L - **Carbon dioxide**: 1.977 g/L This is why helium balloons float — helium is less dense than air. **Applications**: **Ships and Boats**: How do steel ships float? Because the overall density (steel + air inside) is less than water. Steel alone would sink, but a ship's hull displaces huge amounts of water, making the average density less than 1.0. **Archimedes' Principle**: An object floats if the buoyant force (weight of displaced fluid) equals its own weight. The object displaces a volume of fluid equal to: - Fully submerged: Object volume - Partially floating: Volume needed to equal object weight **Density in Oceanography**: Ocean water density varies by: - **Salinity**: More salt = higher density - **Temperature**: Colder water denser - **Depth/pressure**: Slight increase Dense water sinks, driving ocean currents. The 'thermohaline circulation' is Earth's global climate controller. **Hot Air Rises**: Why? Hot air has lower density than cold air. The cold, denser air pushes down, forcing the warm air up. This drives weather systems and the heating of buildings. **Density in Cooking**: - **Oil floats on water**: Density 0.92 vs 1.00 - **Alcohol less dense than water**: Used to test fruit ripeness - **Separating egg yolk**: Yolk (1.035) is slightly denser than egg white (1.03) - **Layered drinks**: Grenadine (densest) at bottom, then juice, then alcohol **Testing Purity**: Density can identify materials. For gold: - Pure gold: 19.3 g/cm³ - 18K gold: 15-17 g/cm³ - 14K gold: 12-14 g/cm³ - Gold-plated: Whatever underlying metal The 'Archimedes method' uses water displacement to calculate density. **Specific Gravity**: Specific gravity (SG) = density / density of water - Water: SG = 1.0 - Ice: SG = 0.92 - Gold: SG = 19.3 - Mercury: SG = 13.5 SG is dimensionless and often more convenient. **Astronomical Densities**: | Object | Density (g/cm³) | |--------|-----------------| | Saturn | 0.69 (would float in water!) | | Jupiter | 1.33 | | Uranus | 1.27 | | Sun | 1.41 | | Neptune | 1.64 | | Mars | 3.93 | | Moon | 3.34 | | Earth | 5.51 | | Venus | 5.24 | | Mercury | 5.43 | | White dwarf | 1,000,000 | | Neutron star | 10^17 | | Black hole | Infinity | **Measuring Density**: **Regular shapes**: Calculate volume geometrically, measure mass **Irregular shapes**: Water displacement (Archimedes method) **Liquids**: Graduated cylinder + scale **Gases**: Pressure-volume relationships **Most Dense and Least Dense**: **Most dense elements**: 1. Osmium: 22.6 g/cm³ 2. Iridium: 22.6 g/cm³ 3. Platinum: 21.5 g/cm³ **Least dense solid**: - Aerogel: ~0.001 g/cm³ (lighter than air possible) **Black holes**: - Singularities have infinite density (undefined) - Effective density depends on size - Large black holes have average density less than water! **Changes in Density**: Density changes with: - **Temperature**: Usually increases as temperature decreases (water is an exception) - **Pressure**: Increases with pressure (especially for gases) - **Phase**: Solid usually denser than liquid, liquid usually denser than gas - **Composition**: Adding solute changes density **Water anomaly**: Water's maximum density is at 4°C, not at freezing. This is crucial for aquatic life — it means the bottom of lakes doesn't freeze, allowing fish to survive winter. **Density Equations**: For different scenarios: **Mixture**: ρ_mixture = (m₁ + m₂) / (V₁ + V₂) **Layered fluids**: Less dense floats on more dense **Ideal gas**: ρ = PM/(RT), where M = molar mass **Common Mistakes**: 1. **Unit inconsistency**: Must match (e.g., both in grams and mL) 2. **Using weight instead of mass**: Mass is constant, weight varies with gravity 3. **Forgetting temperature**: Density varies significantly with temperature 4. **Assuming density is constant**: It changes with conditions 5. **Mixing specific gravity and density**: SG is unitless, density has units

Formula Reference

Density

ρ = m / V

Variables: ρ = density, m = mass, V = volume

Worked Examples

Example 1: Metal Object

A metal block has mass 500 g and volume 250 cm³. What is its density?

Step 1:ρ = m / V
Step 2:ρ = 500 g / 250 cm³
Step 3:ρ = 2.0 g/cm³

Density = 2.0 g/cm³. Comparing to the table, this is close to glass (2.5) or concrete (2.4), much less than metals. It might be marble or a specific type of stone.

Example 2: Identifying Gold

A ring weighs 15 g and displaces 0.78 mL of water. Is it pure gold?

Step 1:ρ = 15 / 0.78
Step 2:ρ = 19.23 g/cm³
Step 3:Pure gold is 19.3 g/cm³
Step 4:Very close match — likely pure gold

Density of 19.23 g/cm³ is nearly identical to pure gold (19.3). The Archimedes water displacement method is an excellent way to test for pure gold — counterfeit gold can't match both appearance AND density.

Common Mistakes & Tips

  • !Mixing up mass and weight. Mass is in grams (g); weight is in newtons (N) and depends on gravity.
  • !Using different units for mass and volume without converting. Must match for correct calculation.
  • !Forgetting that density changes with temperature. Water's density varies from 0.96-1.00 g/cm³ over 0-100°C.
  • !Assuming a material is pure from density alone. Alloys and mixtures complicate identification.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

What's the difference between density and specific gravity?

Density has units (g/cm³, kg/m³, lb/ft³), while specific gravity is dimensionless — it's the ratio of a substance's density to that of water (1.0 g/cm³). So ice has density 0.92 g/cm³ and specific gravity 0.92. Gold has density 19.3 g/cm³ and specific gravity 19.3. They're equivalent except for the units.

Why does water have its maximum density at 4°C, not freezing?

Water has an unusual molecular structure. As it cools toward 4°C, molecules pack closer together (density increases). Below 4°C, water molecules begin forming an ice-like structure with more open hydrogen bonds, which actually takes MORE space. This is why ice floats on water — and why life in lakes can survive winter. The bottom of deep lakes stays around 4°C year-round.

How can steel ships float?

By displacing water. A ship's hull contains huge amounts of air. The AVERAGE density (steel + air) is less than water, so the ship floats. The water displaced by the hull has more weight than the entire ship. This is Archimedes' principle: buoyant force equals the weight of displaced fluid. A solid steel block would sink, but shape matters more than material density for floating.

What's the densest substance?

In everyday materials: osmium (22.6 g/cm³) is the densest metal, slightly more than iridium. For theoretical/exotic matter: neutron stars have densities around 10^17 g/cm³ (a teaspoon would weigh 5 billion tons). Black holes have 'infinite' density at the singularity. Aerogels are the least dense solid (~0.001 g/cm³) — lighter than air by volume is possible but not useful.