HomeEcologyDensity Calculator

Last updated: July 8, 2026

Density Calculator

Anchor Tool

Density Calculator

Solve Density = Mass ÷ Volume for any of the three variables. Two of three fields calculate the third instantly.

Enter a positive number.
Enter a positive number.
Density
g/cm³ / kg/m³
The two most common metric units for density. 1 g/cm³ always equals 1,000 kg/m³, so this is your lab-standard reading.
lb/ft³ / lb/gal
The everyday US units engineers and shippers quote. Use lb/gal for liquids and lb/ft³ for solids or bulk materials.
Nearest substance
The closest match in our reference library. A near-perfect match suggests you may be measuring this exact material.
Float in water?
Compares your result to water's 1.00 g/cm³. Anything lighter floats, anything heavier sinks in still fresh water.
Substance density comparison
Your material Reference substances Water line (1.00 g/cm³)
Formula & worked calculation
This result auto-fills density into Cards 2–10 wherever a density input is needed.

Solve For Mass

Mass Calculator

Find mass from density and volume, or use the shape helper to derive volume from a sphere, cylinder or cube first.

Enter a positive number.
Enter a positive number.
Mass
Grams / Kilograms
Metric mass in both common scales. Kilograms are more practical once the result passes about 1,000 g.
Pounds / Ounces
US customary equivalents, handy for shipping labels, recipes, or comparing against a bathroom scale.
Density used
The density value applied in this calculation, carried over from Card 1 or entered directly here.
Density × Volume → Mass
Density node Volume node Mass output
Formula & worked steps
Auto-fills mass into Card 5 (bulk sample mass) and Card 10 (freight weight).

Solve For Volume

Volume Calculator

Algebraic mirror of Card 2 — isolates volume when mass and density are known.

Enter a positive number.
Enter a positive number.
Volume
cm³ / Liters
Metric volume in lab and kitchen scale. 1,000 cm³ always equals exactly 1 liter.
ft³ / Gallons
US customary volume, useful for tanks, containers, and shipping calculations.
Relatable size
An everyday object of roughly the same volume, so the number feels tangible rather than abstract.
Inputs used
The mass and density values this calculation was based on, for quick verification.
D · M · V relationship
Solved variable Known variables
Formula & worked steps
Auto-fills volume into Card 5 (bulk sample volume) and Card 10 (freight cubic footage).

Geography

Population Density Calculator

Converts population and land area into people-per-unit-area, with arithmetic, physiological and agricultural density modes.

Enter a positive number.
Enter a positive number.
Population density
Per km² / Per mi²
Both standard reporting units side by side, so you can match whichever your source data uses.
Classification
A contextual band from sparse to very dense, based on typical national and regional benchmarks.
Comparable region
A real country or city with a similar density, so the raw number becomes easier to picture.
People per hectare
A finer-grained view useful for urban planning, where whole km² figures can feel too coarse.
1 dot ≈ people per grid cell
Your area Reference bands
Formula & worked steps

Construction & Agriculture

Bulk / Soil / Material Density Calculator

Calculates bulk density including void space, and flags porosity for engineering and agronomy contexts.

Enter a positive number.
Enter a positive number.
Bulk density
g/cm³ / kg/m³
Bulk density in lab and engineering units, including the air gaps between particles.
lb/ft³
The unit most US construction and agriculture references quote for bulk materials.
Porosity / void ratio
Share of the sample volume that is empty space, calculated only when particle density is supplied.
Compaction note
Practical guidance on whether this sample reads as loose, moderately compacted, or dense-packed.
Solids vs. void space
Solid particles Void space
Formula & worked steps
Auto-fills bulk density into Card 7 as the substance density for specific gravity.

Reference Tool

Water Density Calculator

Interpolates a temperature-density table so you get an exact figure instead of the 1 g/cm³ textbook shortcut.

20°C
Density at given temperature
kg/m³ / g/cm³
Interpolated density in both metric scales at your chosen temperature and water type.
Vs. maximum density
Difference from water's peak density of 999.97 kg/m³, which occurs at 3.98°C, not at freezing.
Nearest table point
The closest standard reference temperature to yours, for cross-checking against textbook tables.
Water state
Whether the sample is liquid, at freezing point, or approaching boiling at standard pressure.
Anomalous expansion near 4°C
Density curve Your point
Formula & interpolation method
Auto-fills reference fluid density into Card 7 as the specific gravity denominator.

Chemistry & Brewing

Specific Gravity Calculator

Converts a substance's density into the dimensionless specific gravity ratio, using water's density as the reference.

Enter a positive number.
Enter a positive number.
Specific gravity
SG value
The dimensionless ratio of your substance's density to the reference fluid's density.
Floats or sinks
SG below 1 floats and SG above 1 sinks when placed in the reference fluid you selected.
% denser than reference
How much heavier or lighter your substance is compared to the reference fluid, as a percentage.
Absolute density
The substance's real density in kg/m³ and g/cm³, derived from or feeding into the SG value.
Floats / sinks visual
Your object Reference fluid
Formula & worked steps

Physics & Meteorology

Air & Gas Density Calculator

Applies the ideal gas law to find air or any gas's density from pressure, temperature and molar mass.

Enter a positive number.
0%
Gas / air density
kg/m³ / g/L
Density from the ideal gas law at your entered pressure, temperature and (for air) humidity.
Humid-air correction
Adjustment applied because water vapor is lighter than dry air, so humid air is slightly less dense.
Vs. ISA sea level
Comparison against the standard atmosphere reference of 1.225 kg/m³ at sea level.
Molar mass used
The molar mass value applied in the calculation, 28.97 g/mol for dry air by default.
Pressure / temperature field
Your condition ISA reference curve
Formula & worked steps
Auto-fills current air density conditions into Card 9's density altitude engine.

Aviation

Density Altitude Calculator

Converts field elevation, altimeter setting and outside air temperature into density altitude for pre-flight performance planning.

Density altitude
Pressure altitude
Field elevation corrected for the difference between your altimeter setting and standard 29.92 inHg.
ISA temp at altitude
The standard-atmosphere expected temperature at your pressure altitude, for comparison against actual OAT.
Temp deviation
How much warmer or cooler today's air is than the ISA standard, the main driver of density altitude.
Performance impact
Practical effect on takeoff roll and climb performance versus a standard-day departure.
Density altitude vs. performance risk
Normal Degraded High-risk
Formula & worked steps
This calculator provides general estimates based on the ISA aviation standard and is not a substitute for certified flight-planning tools — always verify with your aircraft's POH before making operational decisions.

Logistics

Freight Density Calculator (NMFC Class)

Freight density (PCF) determines your NMFC freight class and therefore the shipping bill.

Enter a positive number.
Freight density (PCF)
Cubic feet
Total shipment volume across all units, calculated from your length, width and height in inches.
NMFC freight class
The standard class (50–500) your density falls into, which carriers use to set the shipping rate.
Class note
Plain-language guidance on what this class means for typical palletized freight pricing.
Total weight / volume
Combined totals across all units entered, before the per-unit density calculation.
PCF → NMFC class dial
Your shipment Class bands
Formula & worked steps
This calculator provides general estimates based on standard NMFC density tables and is not a substitute for official carrier tariff classification — always verify with your freight carrier before booking.

Tech & Displays

Pixel Density (PPI) Calculator

Converts screen resolution and diagonal size into pixels-per-inch, with a Retina-equivalent flag.

Pixels per inch (PPI)
Diagonal resolution
Total pixels along the diagonal, computed from your width and height using the Pythagorean theorem.
Retina-equivalent?
Flags whether this display crosses the roughly 300 PPI threshold where individual pixels become hard to see.
Pixel pitch
The physical size of one pixel in millimeters, useful for close-viewing-distance display design.
Total pixel count
Total number of pixels on the panel, the figure marketing materials often round to megapixels.
PPI vs. common devices
Your display Reference devices
Formula & worked steps

Specialty Physics & Statistics

Advanced Science Density Calculator

A reference hub for charge density, sectional density, optical density and the probability density function.

Result
Distribution curve
Curve / distribution Your value
Formula & worked steps
Loops back — use Card 1 for any new mass/volume/density problem.
This calculator is for informational purposes only and does not constitute Professional advice. Consult a licensed advisor before making decisions.

Density tells you how tightly matter is packed inside an object. It’s one number, but that number drives decisions in chemistry labs, construction sites, shipping docks, and cockpits every single day.

This guide covers a ten-tool density calculator suite built around one core idea: density equals mass divided by volume. Every tool below uses that same foundation, then applies it to a specific real-world problem — from identifying an unknown metal to pricing a freight shipment.

Who should use this guide: students learning the mass-volume-density relationship, engineers checking soil compaction, brewers tracking fermentation, pilots calculating takeoff performance, and logistics teams avoiding freight overcharges.

Why it matters: getting density wrong costs money and, in aviation, can cost lives. A freight shipper who miscalculates density can overpay thousands in shipping fees. A pilot who ignores density altitude can run out of runway.

A quick editorial note: this guide focuses only on physical density — mass per unit volume. It does not cover pixel density (PPI), ballistics, optics, or probability distributions. Those topics use the word “density” loosely, but they measure completely different things and serve completely different audiences. Keeping this guide focused on true physical density makes it more useful, not less.

Which Density Calculator Do I Need? A Quick Guide

Different readers land on this page for very different reasons. Use this table to skip straight to the tool that matches your job.

Your Role Recommended Module
Student or hobbyist Core Density Calculator
Structural or shipping engineer Mass or Volume Calculator
Urban planner Population Density Calculator
Civil engineer or soil scientist Bulk, Soil, and Material Density Calculator
Marine engineer or lab technician Water Density Calculator
Brewer, winemaker, or geologist Specific Gravity Calculator
Environmental or HVAC engineer Air and Gas Density Calculator
Pilot or flight dispatcher Density Altitude Calculator
Freight or logistics coordinator Freight and Shipping Density Calculator

What Is Density, Really?

Density measures how much mass fits inside a given volume. Two objects can be the same size and weigh completely different amounts, because density — not size — controls that difference.

The formula is simple:

ρ = m / V

Here, ρ (rho) is density, m is mass, and V is volume. This one equation powers every calculator in this suite.

Density is a property of the substance, not the object. A tiny gold nugget and a gold bar share the exact same density, even though they weigh very differently.

Density vs. Weight: A Common Misconception

Many people assume “heavy” and “dense” mean the same thing. They don’t, and mixing them up leads to real errors.

Weight depends on size. A larger block of the same material always weighs more than a smaller one, but its density stays identical.

Density depends only on material. A one-inch steel cube and a ten-inch steel cube have the same density, even though the larger cube weighs far more.

This is also why a battleship made of steel floats, while a solid steel block sinks. The ship’s bulk density — including all the air-filled space inside its hull — is lower than water. The solid block has no air pockets, so its density stays higher than water and it sinks.

Pro tip: if something floats, its overall density is lower than the fluid it’s floating in. If it sinks, its density is higher. This single rule explains why ice floats on water (ice is about 8% less dense than liquid water) and why a coin sinks instantly.

The Density Triangle: Three Ways to Solve

Once you know any two of the three variables, you can find the third. This is often called the density triangle.

  • Solving for mass: m = ρ × V
  • Solving for volume: V = m / ρ
  • Solving for density: ρ = m / V

Each core calculator module below is simply this triangle applied to a specific input scenario.

Converting Between Density Units

Density shows up in several unit systems depending on your field. Chemists often use grams per cubic centimeter, engineers use kilograms per cubic meter, and U.S. industry frequently uses pounds per cubic foot.

From To Multiply By
g/cm³ kg/m³ 1,000
kg/m³ g/cm³ 0.001
g/cm³ lb/ft³ 62.428
lb/ft³ g/cm³ 0.016018
kg/m³ lb/ft³ 0.062428
lb/ft³ kg/m³ 16.0185
g/cm³ lb/gal (US) 8.3454
lb/gal (US) g/cm³ 0.11983

Example: Water has a density of 1 g/cm³. Convert that to kg/m³ by multiplying by 1,000. The result is 1,000 kg/m³ — the number you’ll see referenced throughout engineering documents worldwide.

The 10 Density Calculator Modules

1. Core Density Calculator

Purpose: Solves for density, mass, or volume when you know the other two values. This is the foundational tool for verifying raw material purity.

Inputs:

  • Solve For — choose density, mass, or volume
  • Unit System — metric or imperial
  • Mass — sample weight in grams or pounds
  • Volume — sample size in cubic centimeters or cubic feet
  • Substance Preset — auto-fills known values for steel, aluminum, gold, or wood

Outputs: Final density in both g/cm³ and kg/m³, a float-or-sink prediction versus fresh water, and the closest matching substance from a reference library.

Limitations: Assumes a solid, non-porous sample. Use the Bulk Density module instead for loose or granular materials.

2. Mass Calculator

Purpose: Calculates absolute weight when you already know density and volume — useful for estimating structural load before materials arrive on-site.

Inputs: Density (g/cm³), a volume source (direct entry or shape helper), and shape-specific dimensions like radius, height, or side length.

Outputs: Total mass in metric and imperial units, plus an intermediate volume readout if you used the shape helper.

3. Volume Calculator

Purpose: The inverse of the mass calculator. It isolates spatial volume, which helps warehouse managers plan shelf space before a delivery arrives.

Inputs: Mass and density of the material.

Outputs: Volume in cubic centimeters, liters, cubic feet, and gallons, paired with a relatable size comparison so the number feels concrete instead of abstract.

4. Population Density Calculator

Purpose: Applies the same mass-per-space logic to people instead of matter, helping urban planners design transit and infrastructure.

Inputs: Total population, land area (km² or mi²), density type (arithmetic, physiological, or agricultural), percentage of arable land, and farming population.

Outputs: Population per unit area, standard classification tiers, and a people-per-hectare figure for neighborhood-level zoning work.

5. Bulk, Soil, and Material Density Calculator

Purpose: Civil engineers need to know how much of a soil or aggregate sample is solid material versus empty air pockets. This module calculates that split.

Inputs: Sample mass, container volume, material preset (gravel, sand, asphalt, topsoil), and particle density of the solid material itself.

Outputs: Bulk density, a porosity percentage showing how much air space exists in the sample, and a compaction rating (loose, moderate, or highly packed).

Case study — highway construction: In 2025, engineers on a highway project required a minimum soil packing target of 1.65 g/cm³ to support heavy traffic loads. Field testing found one section held only 22% empty air space in place of the required density, so crews re-rolled the subgrade before pouring concrete, avoiding costly future road cracking.

Case study — agricultural grain storage: A grain cooperative needed to confirm a silo could hold 300 metric tons of wheat without structural overload. Wheat has a bulk density near 0.77 g/cm³, roughly 40% lower than solid wheat kernel density because of air gaps between grains. Using that bulk figure instead of the solid-kernel figure, the cooperative correctly sized the silo and avoided a costly under-order of storage capacity.

6. Water Density Calculator

Purpose: Water’s density shifts with temperature and salinity, so this tool replaces generic textbook assumptions with precise, condition-specific values.

Inputs: Temperature (freezing to boiling), water type (fresh or seawater), and salinity in parts per thousand.

Outputs: Exact density to several decimal places, a comparison against water’s peak density point at 4°C, and a reference table of nearby temperature values.

7. Specific Gravity Calculator

Purpose: Specific gravity compares a substance’s density to a reference fluid, usually water, producing a unitless ratio that’s easy to compare across labs worldwide.

Formula: Specific Gravity = Substance Density ÷ Reference Fluid Density

Inputs: Calculation mode (forward or reverse), substance density, specific gravity, and reference fluid density (defaults to water).

Outputs: A specific gravity ratio, a buoyancy prediction, and a percentage showing how much heavier or lighter the sample is than the reference fluid.

Case study — brewing fermentation: Brewers measure specific gravity before and after fermentation to estimate alcohol content. A typical beer might start at a specific gravity of 1.050 and finish near 1.010; the drop reflects sugar converting into alcohol, and brewers use that difference to estimate final ABV within a fraction of a percent.

Why it has no units: Because specific gravity is a ratio of two densities, the units cancel out. That means a specific gravity reading of 2.7 means the same thing whether a lab uses metric or imperial units — a genuine advantage for global consistency.

8. Air and Gas Density Calculator

Purpose: Applies the Ideal Gas Law to determine atmospheric weight per volume, helping environmental engineers monitor gas storage and smoke plume behavior.

Inputs: Gas type (dry air or custom gas), molar mass, pressure (kPa), temperature (°C), and relative humidity.

Outputs: Gas density per liter and a humidity correction factor. Because water vapor molecules weigh less than nitrogen and oxygen molecules, rising humidity actually lowers air density — a counterintuitive but well-documented effect.

Results are benchmarked against the International Standard Atmosphere (ISA), the atmospheric model published by the International Organization for Standardization (ISO 2533) and used globally in aviation and meteorology to define standard temperature, pressure, and density at sea level and altitude.

9. Density Altitude Calculator

Purpose: Converts field elevation and temperature into a “felt” performance altitude for aircraft, since hot air reduces wing lift and engine output.

Inputs: Field elevation (feet), altimeter setting (inches of mercury), and outside air temperature (°C).

Outputs: Density altitude, pressure altitude, and a risk classification (normal, degraded, or high-danger) for takeoff planning.

This calculation follows the same International Standard Atmosphere reference used in Module 8, which is why pilots and environmental engineers can compare notes using the same baseline.

Case study — mountain airport takeoff: A cargo flight departed a mountain runway at a physical elevation of 4,500 feet on a 36°C afternoon. The density altitude calculator showed a performance altitude of 7,800 feet — over 3,000 feet higher than the actual runway elevation. The crew checked aircraft performance charts, found they needed 400 additional feet of takeoff roll, and reduced fuel weight before departure to maintain safe obstacle clearance.

10. Freight and Shipping Density Calculator

Purpose: Less-than-truckload (LTL) carriers price freight partly on how much trailer space a shipment consumes relative to its weight. This tool estimates that pricing tier before a carrier does.

Inputs: Total weight (lbs), dimensions (length × width × height in inches), and number of units.

Outputs: Cubic footage, density in pounds per cubic foot, and an estimated freight classification code.

Freight classification follows the National Motor Freight Classification (NMFC) system, maintained by the National Motor Freight Traffic Association, which assigns a numbered class to commodities based largely on density, along with handling and liability factors.

Case study — avoiding freight overcharges: A manufacturer shipped lightweight air filters that filled trailer space without adding much weight. Running the shipment through the freight calculator showed a density of 4.2 lb/ft³, placing it in freight class 250 — the shipper used that figure to negotiate a fixed rate before the carrier’s own inspection could reclassify it higher.

Density of Common Materials: The Complete Reference Chart

All values below are measured at 20°C and standard atmospheric pressure.

Material Density (g/cm³) Density (kg/m³) Density (lb/ft³)
Cork 0.24 240 15.0
Ice 0.92 920 57.4
Water (fresh) 1.00 1,000 62.4
Seawater 1.03 1,030 64.3
Oak wood 0.75 750 46.8
Concrete 2.40 2,400 149.8
Aluminum 2.70 2,700 168.6
Topsoil (loose) 1.10 1,100 68.7
Sand (dry, loose) 1.44 1,440 89.9
Steel 7.85 7,850 490.0
Lead 11.34 11,340 708.0
Gold 19.32 19,320 1,206.1

Pro tip: Keep this chart bookmarked. It’s the fastest way to sanity-check a calculator result — if your reading for “aluminum” comes back at 8 g/cm³, you likely mismeasured volume, not mass.

Step-by-Step Practical Examples

Example 1: Identifying an Unmarked Metal Block

A technician finds an unmarked silver-colored metal cube and needs to identify it without damaging the sample.

  1. Weigh the block on a digital scale. Result: 216 grams.
  2. Measure each side of the cube. Result: 2 cm per side.
  3. Calculate volume: 2 × 2 × 2 = 8 cm³.
  4. Divide mass by volume: 216 ÷ 8 = 27.
  5. The result, 2.70 g/cm³, matches aluminum exactly on the reference chart above.

Example 2: Sizing Liquid Storage Tanks

A distributor needs to store 4,500 kilograms of oil with a listed density of 0.90 g/cm³.

  1. Convert mass to grams: 4,500 kg × 1,000 = 4,500,000 grams.
  2. Divide mass by density: 4,500,000 ÷ 0.90 = 5,000,000 cm³.
  3. Convert to liters: 5,000,000 cm³ = 5,000 liters of required tank capacity.

Example 3: Checking Freight Classification Before Shipping

A pallet weighs 180 lbs and measures 40 × 40 × 30 inches.

  1. Calculate cubic feet: (40 × 40 × 30) ÷ 1,728 = 27.8 ft³.
  2. Divide weight by volume: 180 ÷ 27.8 = 6.5 lb/ft³.
  3. A density near 6.5 lb/ft³ typically falls around freight class 175 to 200 — confirming this before pickup helps a shipper catch billing errors early.

Density vs. Specific Gravity vs. Bulk Density

These three terms get confused often, but each measures something distinct.

Concept What It Measures Has Units? Typical Use Case
Density Mass per unit volume of a solid material Yes (g/cm³, kg/m³) Material identification, engineering
Specific Gravity Ratio of a substance’s density to water’s density No (unitless) Brewing, geology, quality control
Bulk Density Mass per volume including air gaps in loose material Yes (g/cm³, lb/ft³) Soil science, agriculture, aggregates

Common Mistakes to Avoid

  • Confusing weight with density. A bigger object of the same material weighs more but has identical density.
  • Using solid density for loose materials. Gravel, sand, and grain need bulk density, not particle density, or your volume estimates will be wrong.
  • Ignoring temperature. Water and gases both shift density noticeably with temperature — always confirm the temperature a reference value assumes.
  • Mixing unit systems mid-calculation. Convert everything to one system first, then calculate, to avoid a common source of errors.

Best Practices for Accurate Results

  • Always weigh samples on a calibrated scale, not an estimate.
  • Measure volume using displacement for irregular shapes rather than approximating dimensions.
  • Cross-check your result against the reference chart above before trusting an unusual reading.
  • For gases and liquids, always record the temperature and pressure alongside your density figure.

Frequently Asked Questions

Is density the same as weight?

No. Weight depends on how much material you have, while density depends only on what the material is. A small lead ball and a large foam block can weigh the same, even though lead is far denser.

Why does ice float even though it’s frozen water?

Ice is about 8% less dense than liquid water because water molecules form a more open crystal structure when they freeze. Since ice is less dense than the water around it, it floats.

How is density used in quality control for manufacturing?

Manufacturers measure the density of finished parts to detect internal voids, incorrect material substitutions, or contamination. A part reading outside its expected density range often signals a defect before it ever reaches a customer.

What’s the difference between absolute density and bulk density?

Absolute density assumes a completely solid material with no gaps. Bulk density accounts for air pockets in loose material like gravel or grain, which is why shippers and civil engineers rely on bulk figures for aggregates.

How does temperature affect liquid density?

Heat causes molecules to spread apart, increasing volume while mass stays constant. That’s why heating a liquid or gas lowers its density reading.

Why does high humidity make air lighter, not heavier?

Water vapor molecules weigh less than the nitrogen and oxygen molecules they displace. As humidity rises, lighter water vapor takes the place of heavier dry-air molecules, so humid air is actually less dense than dry air at the same temperature.

How does specific gravity differ from density?

Density uses concrete units like grams per cubic centimeter. Specific gravity is a unitless ratio comparing a substance’s density to water’s, which is why it stays consistent across every measurement system worldwide.

What is the NMFC freight class, and why does density affect shipping cost?

The National Motor Freight Classification system sets standardized shipping rates based partly on cargo density. Low-density freight takes up trailer space without adding much weight, so carriers charge higher class rates to offset that lost capacity.

Is specific gravity the same everywhere in the world?

Yes. Because it’s a unitless ratio rather than a measurement in a specific unit system, a specific gravity reading means the same thing whether it’s recorded in a U.S., European, or Asian lab.

Conclusion

Density is one formula — mass divided by volume — applied across ten very different professional worlds. A lab technician identifying an unknown metal, a civil engineer testing soil compaction, a pilot calculating takeoff performance, and a freight coordinator pricing a shipment are all solving the same triangle from different angles.

Understanding the difference between density, specific gravity, and bulk density prevents costly mistakes in construction, shipping, and manufacturing. Knowing how temperature and humidity shift density keeps lab results and flight calculations accurate.

Use the module table above to find the right calculator for your task, check your results against the reference chart, and apply the worked examples as a template for your own calculations.