Mass to Density Calculator
Mass & Density Analysis
What Is a Mass to Density Calculator?
A mass to density calculator finds how much mass an object packs into each unit of volume. It divides mass by volume using ρ = m / V. This tool can also solve for mass or volume, work out volume from a box, cylinder, or sphere, and show specific gravity compared with water.
Density tells you how heavy a material is for its size. A steel bolt and a plastic bolt can be the same size, but the steel bolt has more mass because steel is denser. If you know two of the three values (mass, volume, or density), you can find the third.
Results depend on how accurate your measurements are. Real materials can also vary with temperature, pressure, and trapped air or pores.
How the Density Formula Works
The calculator converts every input to kilograms and cubic meters first. It then applies one of three forms of the same relationship, based on the Calculation Target you choose:
- ρ (rho): density, such as g/cm³ or kg/m³.
- m: mass, such as grams or pounds.
- V: volume, such as cm³ or liters.
Volume From a Shape
If you choose a geometric shape, the calculator works out the volume from your measurements:
Here, L, W, and H are length, width, and height. The letter d is the outer diameter, and h is the cylinder’s height or length. Both shapes ask for the diameter, and the calculator halves it to get the radius.
Specific Gravity and Specific Volume
Specific gravity (SG) compares your density with pure water at 4°C, which is 1,000 kg/m³. Specific volume (v) is the inverse of density. It tells you how much space each gram or kilogram takes up.
Worked Example
Say a part has a mass of 250 g and a volume of 31.85 cm³.
- Divide mass by volume: 250 ÷ 31.85 ≈ 7.8493 g/cm³.
- Convert to SI: 7.8493 × 1,000 ≈ 7,849.294 kg/m³.
- Specific gravity: 7,849.294 ÷ 1,000 ≈ 7.8493.
- Specific volume: 31.85 ÷ 250 = 0.1274 cm³/g.
The calculator also shows 490.015 lb/ft³, 0.2836 lb/in³, and 65.506 lb/US gal. The buoyancy line reads “Sinks in Both Freshwater & Seawater.” The material line matches Carbon Steel (A36 / 1018) at about 7,850 kg/m³.
How to Use the Mass to Density Calculator
- Pick a Calculation Target: Solve for Density, Solve for Mass, or Solve for Volume.
- If you are solving for density or mass, choose a Volume Input Method: Direct Volume Value, Rectangular Block / Box, Cylinder / Rod, or Sphere / Ball.
- Enter the volume or the shape’s dimensions, and pick a unit. One length unit applies to every dimension of a shape.
- If you are solving for density or volume, enter the Object / Sample Mass and its unit.
- If you are solving for mass or volume, enter the Known Material Density and its unit.
- Choose the Primary Output Unit.
- Click Calculate. Click Reset to clear every field.
The large number at the top is your answer in the unit you picked. Values below 0.0001 or at 10 million and above appear in scientific notation. If a required value is missing or invalid, a pop-up message asks you to fix it. Volume and density must be greater than zero. When solving for density, the mass can be zero.
How to Read Your Density Results
Beyond the main answer, every calculation shows density in g/cm³, kg/m³, lb/ft³, lb/in³, and lb/US gal. It also lists the mass in grams and kilograms and the volume in cm³ and liters. These match what you entered or what the calculator worked out.
Buoyancy Behavior
| Result Density | Status Shown |
|---|---|
| SG below 1.0 | Floats in Freshwater, with an estimated percentage below the waterline (SG × 100) |
| SG from 1.0 up to just under 1.0005 | Neutrally Buoyant in pure freshwater at 4°C |
| Above that, but below 1,025 kg/m³ | Sinks in Freshwater, but Floats in Seawater |
| 1,025 kg/m³ or higher | Sinks in Both Freshwater & Seawater |
This is a simple density comparison. It assumes the object is solid all the way through and does not soak up water. Hollow items, sealed air pockets, and porous materials can behave differently.
Reference Material Match
The calculator compares your density with a built-in list of 33 materials, from dry air to osmium. It picks the material with the smallest percentage difference. Within 2.5%, it says “Matches.” Within 15%, it says “Closest benchmark” and shows the gap. Beyond that, it lists the “Nearest reference class.” A match is a clue, not proof. Different materials can share similar densities.
Common Mistakes
- Entering a radius as a diameter. The cylinder and sphere fields expect the full outer diameter.
- Using the cylinder shape for a tube. The formula assumes a solid rod. A hollow pipe has less volume, so its density would come out too low.
- Mixing up gallons. The volume input offers both US and Imperial (UK) gallons. They differ by about 20%.
- Weighing a wet or porous sample. Absorbed water adds mass, and air pockets add volume. Both change the result.
Frequently Asked Questions
How do I calculate density from mass and volume?
Divide the mass by the volume. For example, 270 g in a 10 × 5 × 2 cm block (100 cm³) gives 2.700 g/cm³. The calculator matches that value to Aluminum (6061 Alloy). Make sure the mass and volume use units that work together, or let the calculator convert them for you.
What is specific gravity?
Specific gravity is a material’s density divided by the density of water. It has no units. This calculator uses water at 4°C (1,000 kg/m³) as its reference. An SG below 1 means the material is less dense than water. An SG above 1 means it is denser.
Is g/cm³ the same as g/mL?
Yes. One milliliter equals one cubic centimeter, so 1 g/cm³ equals 1 g/mL. The calculator treats them the same and labels the unit “g/cm³ (or g/mL).” People often use g/mL for liquids and g/cm³ for solids, but the value is identical.
How do I find the volume of an irregular object?
A common method is water displacement. Put the object in a measuring container of water and record how much the water level rises. That rise equals the object’s volume. Then choose Direct Volume Value in the calculator and enter the number. The shape options only fit boxes, solid cylinders, and spheres.
Why can an object sink in freshwater but float in seawater?
Seawater is denser than freshwater because of its dissolved salt. The calculator uses 1,025 kg/m³ for seawater. An object denser than 1,000 kg/m³ but less dense than 1,025 kg/m³ will sink in fresh water but stay afloat in the ocean.
Can I use this calculator to estimate the weight of a part?
Yes. Choose Solve for Mass, enter the material’s density, and enter the part’s dimensions. For example, a steel ball 2 cm across at 7.85 g/cm³ has a volume of about 4.189 cm³. With grams as the output unit, the mass comes out to 32.882 g. Real parts may vary slightly with alloy and tolerances.