CalcPlatformPro
HomeFinanceHealthMathConstructionConvertersDateOtherFeedback
Feedback
CalcPlatform

Free, fast, and precise financial, mathematical, health, and engineering calculators.

Financial Suite

  • Mortgage Calculator
  • Auto Loan Calculator
  • Personal Loan Calculator
  • EMI Installment
  • SIP Wealth Growth
  • Compound Interest

Categories & Tools

  • Finance Hub
  • BMI Health Calculator
  • Percentage Calculator
  • Age Calculator
  • Math Category

Company & Legal

  • About Us
  • Privacy Policy
  • Terms & Conditions
  • Feedback & Contact
© 2026 CalcPlatform. All calculations run client-side for total privacy.
HomeconvertersDensity Calculator

Density Calculator

Calculate density (ρ = m / v), mass, or volume for any physical substance.

InputsReal-time

Calculated Summary

Density (kg/m³)

2,500.00

Density (g/cm³)

2.50
RELATED CALCULATORS:
Mass Calculator|Weight Calculator

1. What Is Density?

Density measures how much mass is contained in a given volume of a substance. The standard relationship is:

ρ = m / V

where:

  • ρ is density
  • m is mass
  • V is volume

Density is therefore a ratio of mass to volume. A material with more mass packed into the same volume has a greater density.

For example, a material with a density of 8,900 kg/m³ contains 8,900 kilograms of mass in one cubic metre, assuming the stated density applies under the relevant conditions.

Density calculations are used in engineering, fluid mechanics, material science, chemistry, manufacturing, petroleum measurement, and many everyday measurement problems.

This Density Calculator lets you solve the relationship in all three directions:

Densityρ = m / V
Massm = ρV
VolumeV = m / ρ

It also extends beyond the basic equation with density-unit conversion, a searchable material database, specific gravity, buoyancy, ideal-gas density, hydrostatic pressure, and API gravity.

2. Density Formula: ρ = m / V

The fundamental density equation is:

ρ = m / V

To calculate density, divide mass by volume. For example, suppose:

  • Mass = 4.45 kg
  • Volume = 500 cm³

First convert the volume into compatible SI base units:

500 cm³ = 0.0005 m³

Then apply the formula:

ρ = 4.45 kg / 0.0005 m³ = 8,900 kg/m³

The same physical density can be expressed in other compatible units, including:

  • 8.9 g/cm³
  • 8.9 g/mL
  • 8.9 kg/L

The important point is that the numerical value changes when the unit changes, but the underlying physical density remains the same.

3. How to Calculate Mass From Density and Volume

When density and volume are known, rearrange the equation:

m = ρV

Example calculation:

  • Density = 1,000 kg/m³
  • Volume = 2 m³

Therefore:

m = 1,000 × 2 = 2,000 kg

This relationship is useful for estimating the mass of liquids, bulk materials, manufactured components, and other substances when their density and volume are known. When density and volume are known, the Mass Calculator can be used to calculate the corresponding mass directly.

4. How to Calculate Volume From Mass and Density

Rearrange the density equation to isolate volume:

V = m / ρ

Example calculation:

  • Mass = 8,900 kg
  • Density = 8,900 kg/m³

Therefore:

V = 8,900 / 8,900 = 1 m³

This form is useful when the mass and material density are known but the occupied volume is unknown. The units must remain dimensionally compatible:

kg ÷ (kg/m³) = m³

5. Why Density Units Matter

A common error is to treat density as just a number without considering its unit. For example:

8.9 g/cm³ and 8,900 kg/m³

are completely equivalent because 1 g/cm³ = 1,000 kg/m³. Likewise, 8.9 kg/L represents the same density as 8.9 g/cm³.

The calculator performs the required conversions so that the mass, density, and volume quantities are mathematically compatible. This is particularly important for engineering calculations because density is a compound unit rather than a simple mass or length unit.

For broader conversions involving length, temperature, mass, volume, pressure and other measurement categories, use the Conversion Calculator.

6. Density Conversion Reference

Common density conversions include:

Density UnitEquivalent in kg/m³
1 g/cm³1,000 kg/m³
1 g/mL1,000 kg/m³
1 kg/L1,000 kg/m³
1 kg/m³0.001 g/cm³
1 lb/ft³approximately 16.0185 kg/m³
1 lb/in³approximately 27,679.9 kg/m³

NIST publishes conversion factors for density units including g/cm³, lb/ft³, lb/in³, and several mass-per-volume units. Be especially careful with gallons because US and Imperial gallons are different volume units.

7. Worked Example: 8,900 kg/m³

Suppose:

  • Mass = 8,900 kg
  • Volume = 1 m³

Then:

ρ = m / V = 8,900 / 1 = 8,900 kg/m³

Equivalent values across common unit systems:

  • 8.9 g/cm³
  • 8.9 g/mL
  • 8.9 kg/L

The calculator then derives the corresponding values in its supported density matrix. This is a useful benchmark because the same physical density can be expressed through SI, CGS, and customary mass-per-volume units without changing the underlying material property.

8. Density, Specific Gravity and Relative Density

Specific gravity compares the density of a substance with the density of a reference substance. For the water-based comparison used by the calculator:

SG = ρ substance / ρ reference

When water is used as the reference:

  • A density of 1,000 kg/m³ gives approximately SG = 1.0
  • A density of 8,900 kg/m³ gives SG = 8.9

Specific gravity is dimensionless because the density units cancel. This makes it useful for comparing substances without carrying a specific density unit through every calculation.

9. Density and Buoyancy

Density is directly connected to whether an object floats or sinks in a fluid. Archimedes' principle states that a submerged object experiences an upward buoyant force equal to the weight of the fluid displaced by the object. The buoyant force can be written:

Fᵦ = ρ fluid · V displaced · g

If an object's density is less than the surrounding fluid, it tends to float. If its density is greater, it tends to sink. If the densities are equal under the calculator's reference conditions, the object can be neutrally buoyant.

For water at approximately 1,000 kg/m³:

  • Object density < 1,000 kg/m³ → float tendency
  • Object density = 1,000 kg/m³ → neutral buoyancy
  • Object density > 1,000 kg/m³ → sink tendency

When the distinction between mass and gravitational force matters, the Weight Calculator can calculate weight from mass and gravitational acceleration.

10. Understanding the Buoyancy Visualization

The calculator's buoyancy graphic is an interactive physical simulation rather than a conventional statistical chart. It responds to the density relationship between the selected object and the reference fluid.

For a high-density material such as 8,900 kg/m³ compared with 1,000 kg/m³ water, the specific gravity is 8.9 and the object is classified as sinking. For a lower-density material, the visualization changes to represent floating behavior. For a density approximately equal to the surrounding fluid, the calculator represents the neutral condition separately rather than treating it as a normal sinking state.

11. Material Density: Why Reference Values Vary

A material does not always have one universal density under every possible condition. Density may change with:

TemperaturePressureCompositionAlloyingPorosityMoisturePhase stateManufacturing condition

This is why the material database should be treated as a reference library rather than a substitute for a project specification or laboratory measurement.

For engineering work, the appropriate density should come from the relevant standard, material grade, manufacturer data, or measured property when that level of precision is required. The calculator currently contains 40 material records, all of which have been tested by the production QA suite.

12. Common Material Density Examples

Examples in the calculator's reference database include materials such as:

MaterialApproximate Density (kg/m³)
Gold (24K)19,300 kg/m³
Platinum21,450 kg/m³
Tungsten19,250 kg/m³
Lead11,340 kg/m³
Silver10,490 kg/m³
Steel / carbon ironaround 7,850 kg/m³
Concretearound 2,400 kg/m³
Wateraround 1,000 kg/m³
Icearound 917 kg/m³
Oakaround 750 kg/m³
Gasolinearound 740 kg/m³

These should be treated as reference values associated with the conditions and definitions used by the database rather than universal constants.

13. Water Density Is Temperature-Dependent

Water is unusual because its density changes with temperature in a non-linear way. Liquid water reaches a maximum density close to 4°C, rather than becoming continuously denser as it cools all the way to its freezing point.

Near that temperature, pure water has a density close to 999.97 kg/m³. Ice is substantially less dense, at roughly 917 kg/m³ under commonly cited reference conditions.

This density difference is why ice floats on liquid water and why water's thermal behavior is important in environmental science, fluid mechanics, and natural systems.

14. Gas Density and the Ideal Gas Law

For gases, density depends strongly on pressure, temperature, and molar mass. The ideal-gas density equation is:

ρ = PM / RT

where:

  • ρ = gas density
  • P = absolute pressure (Pa)
  • M = molar mass (kg/mol)
  • R = universal gas constant (8.314462618 J/(mol·K))
  • T = absolute temperature in kelvin (K)

The use of absolute temperature is essential. For example, 20°C = 293.15 K. The calculator converts the entered Celsius temperature into kelvin before applying the ideal-gas equation.

15. Worked Air-Density Example

For dry atmospheric air, use approximately:

  • M = 28.97 g/mol
  • P = 101.325 kPa
  • T = 20°C

Convert to SI base units:

  • M = 0.02897 kg/mol
  • P = 101,325 Pa
  • T = 293.15 K

Using ρ = PM / RT gives a result of approximately:

ρ ≈ 1.204 kg/m³

The exact displayed value depends on the precision settings and gas constants used by the calculator. Pressure must be interpreted consistently as absolute pressure for the ideal-gas relation.

16. Hydrostatic Pressure From Density and Depth

The pressure caused by a stationary fluid column is:

P = ρgh

where:

  • P = hydrostatic gauge pressure
  • ρ = fluid density
  • g = gravitational acceleration (9.80665 m/s²)
  • h = depth

For water at ρ = 1,000 kg/m³ and depth h = 10 m, using g = 9.80665 m/s²:

P = 1,000 × 9.80665 × 10 = 98,066.5 Pa ≈ 98.07 kPa ≈ 14.22 psi ≈ 0.981 bar

The calculator reports this as gauge pressure rather than silently adding atmospheric pressure.

17. API Gravity

API gravity is commonly used in petroleum measurement to express the relative density of petroleum liquids. The calculator uses:

°API = 141.5 / SG − 131.5

with specific gravity defined on the standard petroleum reference basis (60°F / 15.56°C relative to water). API documentation describes API-gravity conversions at 60°F and its relationship to relative density and density.

At SG = 1.0, the formula gives approximately 10° API. API gravity is inversely related to specific gravity: lower-density petroleum liquids have higher API gravity values. This makes API gravity different from ordinary specific gravity and important to distinguish when interpreting petroleum measurements.

18. Mass Density and Dimensional Analysis

A reliable density calculation should work dimensionally as well as numerically.

For density: ρ = m / V → [M] / [L]³ = kg / m³

For mass: m = ρV → (kg/m³)(m³) = kg

For volume: V = m / ρ → kg ÷ (kg/m³) = m³

Checking dimensions is one of the simplest ways to catch unit mistakes before trusting a numerical result.

19. How to Use the Density Calculator

Find density

Enter mass and its unit, volume and its unit. Choose "Find Density" to calculate ρ.

Find mass

Provide density and its unit, volume and its unit. Choose "Find Mass" to solve m = ρV.

Find volume

Provide mass and its unit, density and its unit. Choose "Find Volume" to solve V = m/ρ.

Explore a material

Search the material database and select a reference substance to populate physical density values.

Solve gas density

Select the gas or enter its molar mass, then supply absolute pressure and temperature.

Calculate hydrostatic pressure

Enter fluid density and depth. The resulting pressure can be viewed in all supported pressure units.

20. Common Density Calculation Mistakes

  • Mixing incompatible units: Using g/cm³ directly with m³ without conversion produces an incorrect result.
  • Treating specific gravity as density: Specific gravity is dimensionless; density has units.
  • Ignoring temperature: Gas density changes significantly with temperature.
  • Using Celsius as kelvin: The ideal-gas equation requires absolute temperature.
  • Confusing gauge and absolute pressure: The pressure basis must match the equation and application.
  • Treating reference densities as exact universal constants: Many material densities are condition-dependent.
  • Rounding too early: Rounded intermediate values can introduce avoidable error when several conversions are chained.
  • Assuming one database value represents every grade of a material: Material composition can alter density.

21. Density Calculator Accuracy and Limitations

There are several meanings of "accurate." A calculator can be mathematically accurate while a reference material value is only approximate. The density formula itself is deterministic:

ρ = m / V

provided that the measurements and units are correct. Material properties can have additional uncertainty because they may depend on physical conditions. Gas calculations depend on the validity of the ideal-gas approximation and the chosen molar mass and reference conditions. Specific gravity depends on the chosen reference. API gravity depends on its defined petroleum reference basis.

The calculator therefore aims to provide transparent calculations rather than implying that every displayed material value is a universal physical constant.

22. Frequently Asked Questions

Q1.What is the formula for density?

The formula is ρ = m/V. Density equals mass divided by volume.

Q2.How do I calculate density from mass and volume?

Divide mass by volume after ensuring that both quantities use compatible units. For example, 4.45 kg / 500 cm³ = 8,900 kg/m³ after converting 500 cm³ to 0.0005 m³.

Q3.How do I calculate mass from density?

Use m = ρV. Multiply density by volume.

Q4.How do I calculate volume from density?

Use V = m/ρ. Divide mass by density.

Q5.What is the SI unit of density?

The SI unit is kg/m³ (kilograms per cubic metre).

Q6.How many kg/m³ is 1 g/cm³?

1 g/cm³ = 1,000 kg/m³.

Q7.Is g/mL the same as g/cm³?

Yes. For volume units, 1 mL = 1 cm³, so 1 g/mL = 1 g/cm³.

Q8.What is specific gravity?

Specific gravity is the ratio of a substance's density to the density of a reference substance (usually pure water at 4°C for solids and liquids).

Q9.What is the specific gravity of water?

When water is compared with water under the same reference condition, its specific gravity is approximately 1.0.

Q10.Why does ice float?

Ice is less dense than liquid water (approximately 917 kg/m³ vs 999.97 kg/m³), so its average density is lower than that of liquid water near common reference conditions.

Q11.What is the density of water?

It depends on temperature and conditions. Near its maximum liquid density around 4°C, pure water is close to 1,000 kg/m³ (specifically 999.97 kg/m³).

Q12.Why is water densest around 4°C?

Hydrogen bonding and the open tetrahedral crystal structure of liquid water cause water to behave differently from ordinary liquids as it cools. Thermal contraction competes with open cage structure formation, resulting in a maximum liquid density close to 4°C.

Q13.What is the density of air at 20°C?

Under standard sea-level pressure (101.325 kPa) and with dry-air assumptions, air density at 20°C is approximately 1.204 kg/m³. The exact value depends on pressure, temperature, composition, and humidity.

Q14.What is the ideal-gas density formula?

ρ = PM/RT, where P is absolute pressure in pascals, M is molar mass in kg/mol, R is the universal gas constant (8.31446 J/(mol·K)), and T is absolute temperature in kelvin.

Q15.What happens to gas density when pressure increases?

At constant temperature and molar mass, ideal-gas density increases in direct proportion to absolute pressure.

Q16.What happens to gas density when temperature increases?

At constant pressure and molar mass, ideal-gas density decreases as absolute temperature increases.

Q17.What is hydrostatic pressure?

Hydrostatic pressure is the pressure produced by the weight of a stationary fluid column. For gauge pressure: P = ρgh.

Q18.What is the pressure 10 m underwater?

For water at 1,000 kg/m³ and using standard gravitational acceleration g = 9.80665 m/s²: P ≈ 98.07 kPa gauge, or about 14.22 psi.

Q19.What is API gravity?

API gravity is a petroleum-industry scale related inversely to specific gravity. A commonly used relationship is °API = 141.5/SG − 131.5 at the defined 60°F reference basis.

Q20.Is API gravity the same as specific gravity?

No. Specific gravity is a dimensionless density ratio, whereas API gravity is a derived petroleum scale based on specific gravity.

Q21.Can density change?

Yes. Density can vary with temperature, pressure, composition, phase, moisture, porosity, and other physical conditions.

Q22.Does the calculator's material density represent an exact laboratory value?

Not necessarily. Material-library values are reference estimates associated with standard conditions used by the calculator. For specification-controlled work, use the appropriate technical standard or laboratory measurement.

Q23.Why does my density result differ from another calculator?

Possible causes include different unit definitions, material densities, reference temperatures, pressure assumptions, rounding precision, and conversion factors. Always compare underlying assumptions.

Q24.Can density be zero?

Zero density is mathematically meaningful in some abstract calculations (a true vacuum), but physical materials are not zero-density substances. The calculator validates its supported physical domain rather than silently converting invalid inputs.

Q25.Can density be negative?

Ordinary physical mass density is not negative. The calculator therefore treats negative density as invalid rather than taking its absolute value.

23. Standards and References

The calculator's educational material should distinguish between deterministic mathematical relationships and condition-dependent reference data.

Bureau International des Poids et Mesures (BIPM)SI Base Units

For SI definitions, the BIPM identifies the kilogram as the SI base unit of mass and defines it using the fixed numerical value of the Planck constant: h = 6.62607015 × 10⁻³⁴ J·s.

National Institute of Standards and Technology (NIST)NIST SP 811

NIST publishes conversion factors for mass-per-volume quantities including g/cm³, lb/ft³, lb/in³, US-gallon density units, and ton-per-cubic-yard quantities.

American Petroleum Institute (API)API Standards

API documentation describes API-gravity conversions using the 60°F reference basis and related density/specific-gravity relationships.

For regulated measurement, calibration, petroleum custody transfer, or specification-controlled engineering work, use the applicable standard, technical datasheet, or laboratory measurement rather than relying solely on a general-purpose online calculator.

RELATED CALCULATORS
Mass Calculator|Weight Calculator