If you need to figure out if a casting matches spec, if something will float, or just want to check the material in front of you, you’ll need density. But you can’t get density without mass and volume. Plug in two knowns—mass, volume, or density—and this calculator works out the third, along with specific gravity and basic buoyancy. Knowing density pops up anywhere you’re sizing parts, checking buoyancy (AUVs, ships, floats), or running a quick QC check in manufacturing. Below you’ll find the main formulas, a detailed AUV buoyancy example, some explanation on why density matters, and a FAQ based on problems you hit in the real world.
What is density?
Density tells you how much material you’re working with for each unit of space you occupy. For example, a block of steel is heavy for its size because its density is high. Foam takes up the same volume, but weighs a lot less—much lower density.
Simple Explanation
If you fill the same box with lead weights, it’s dense and heavy. Fill it with feathers, same box but a lot lighter. Density is calculated by dividing mass by volume. Think of it as: how much stuff got packed into how much space.
📐 Browse all 1000+ Interactive Calculators
Quick Navigation
How to Use This Calculator
- Pick your calculation: density, mass, volume, specific gravity, find a material, or buoyancy force.
- Enter what you know—mass, volume, or density—in the input boxes, along with units.
- For buoyancy, fill in fluid density and gravitational acceleration (leave gravity at 9.81 unless you have a reason to change it).
- Click Calculate.
Density Concept Diagram
Volume to Density Calculator
This calculator is intended for education, concept evaluation, and preliminary design. Results are based on the equations and assumptions described on this page, but cannot account for every real-world load case, tolerance, material property, environmental condition, installation detail, safety factor, code, or regulatory requirement. Verify all inputs, assumptions, units, and results independently before selecting components or using the result in a real application. Safety-critical, structural, medical, lifting, transportation, or regulated applications must be reviewed by a qualified engineer.
Volume To Density Interactive Visualizer
Use this visualizer to see directly how changing mass or volume affects density—and whether an object sinks or floats in different fluids.
DENSITY
7850
SPECIFIC GRAVITY
7.85
BUOYANCY
9.81
BEHAVIOR
SINKS
FIRGELLI Automations — Interactive Engineering Calculators
Density Equations and Relationships
If you want density, you just divide the mass by the volume.
Fundamental Density Equation
ρ = m / V
ρ = Density (kg/m³, g/cm³, lb/ft³)
m = Mass (kg, g, lb)
V = Volume (m³, cm³, ft³)
If you know density and volume but need mass, multiply the two.
Mass from Density and Volume
m = ρV
Used when density and volume are known to find mass
Have mass and density, want volume? Just divide mass by density.
Volume from Mass and Density
V = m / ρ
Used when mass and density are known to find volume
Specific gravity is just density compared to water at 4°C. It’s a direct ratio—no units.
Specific Gravity
SG = ρ / ρwater
SG = Specific Gravity (dimensionless)
ρwater = Density of water at 4°C = 1000 kg/m³ = 1.0 g/cm³
SG < 1: Material floats in water
SG > 1: Material sinks in water
Archimedes’ principle gives the buoyancy force. You’ll use this when checking if something floats (or if you want to make it neutrally buoyant—think AUV design).
Buoyancy Force (Archimedes' Principle)
Fb = ρfluid Vsubmerged g
Fb = Buoyancy force (N)
ρfluid = Density of fluid (kg/m³)
Vsubmerged = Volume of object submerged in fluid (m³)
g = Acceleration due to gravity (9.81 m/s² on Earth)
Simple Example
A steel block has a mass of 7.85 kg and a volume of 0.001 m³ (1 liter).
Density = mass / volume = 7.85 kg / 0.001 m³ = 7850 kg/m³
Specific gravity = 7850 / 1000 = 7.85 — so this material sinks in water.
Theory and Practical Applications of Density
Fundamental Properties of Density
Density is just mass per unit volume. Unlike mass or volume, which scale with quantity, density is an intrinsic value—it won’t change whether you measure a teaspoon or a truckload. You’ll mostly see density in units of kg/m³ (SI), but engineers also use g/cm³ for lab work or lb/ft³ in construction and civil projects.
It’s easy to ignore, but density depends on temperature. Most stuff expands when heated—more space, same mass, so lower density. For most engineering materials, a rough number: every 10°C rise will lower liquid density by about 0.5-1%. With water, you get max density at 3.98°C, so ice floats. The effect is small for most solids, but if you’re managing precision hydraulics or fluids, keep this variation in mind: oil or fuel densities can swing by a half percent per 10°C, enough to sway flow rate or pressure drop calculations.
Pressure mainly affects gases, following the ideal gas law. For solids and liquids, density won’t budge much unless you go to extremes, like deep-ocean or high-pressure hydraulic cases. In the deepest parts of the ocean, liquid density can go up by a few percent—that’s enough to matter for buoyancy if you’re sending something deep.
Engineering Applications Across Industries
In aerospace, material picks are often dominated by strength-to-weight. That metric all comes back to density. Aluminum alloys and carbon-fiber composites are popular because they keep weight down and strength up. Example: switching aircraft skin from aluminum (2700 kg/m³) to carbon composites (about 1550-1600 kg/m³) cuts major weight and reduces fuel needs, but adds complexity in joining and repair. For jet engines, engineers often use titanium (4510 kg/m³) instead of steel (7850 kg/m³) on hot, stressed parts to cut weight at high cost—sometimes worth it for performance at the sharp edge.
Ship design relies on density to work out displacement—how much water a hull pushes aside. By Archimedes’ law, if a ship weighs 80,000 metric tons, it displaces 80,000 m³ of seawater. Submarines adjust their average density by pumping water in or out of ballast tanks. Need to surface? Blow tanks with air and reduce density. Need to dive? Flood tanks, increase density. It’s about matching or beating seawater’s density to control depth.
Manufacturers use density checks to spot defects or confirm specs, especially with cast metals or critical molded parts. If a casting comes in light (density too low), there’s probably porosity or a bad mix—sometimes a minor QC blip, other times a junk part. For tablet pressing, consistent density suggests good compaction and right ingredient ratios. Deviations often mean something’s off with the process, not always visible to the eye.
Almost every fluid mechanics calculation—pipes, pumps, hydraulics—needs density plugged in. For a vertical oil column, pressure at depth is density × gravity × height. For oil at 870 kg/m³, every meter down adds about 8.5 kPa extra pressure. You use these numbers to pick the right pump and ensure system stability. Modern flowmeters measuring mass do it by actually measuring density—not by guessing on volume and hoping temperature is stable.
Worked Example: Composite Material Buoyancy Analysis
Problem Statement: A marine robotics company is designing an autonomous underwater vehicle (AUV) for deep-sea exploration. The pressure hull is fabricated from carbon fiber composite with dimensions 3.2 meters length and 0.65 meters diameter (cylindrical geometry). The hull mass including electronics and instruments is 425 kg. The vehicle must achieve neutral buoyancy in seawater at operating depth where seawater density is 1027 kg/m³. Calculate: (a) the total volume of the pressure hull, (b) the buoyancy force acting on the hull, (c) the required ballast mass to achieve neutral buoyancy, (d) the overall vehicle density at neutral buoyancy, and (e) the mass of ballast that must be expelled to achieve positive buoyancy sufficient for ascent at 0.25 m/s² acceleration.
Solution:
Part (a): Volume Calculation
For a cylinder: V = πr²h where r is radius and h is length
Radius: r = diameter/2 = 0.65 m / 2 = 0.325 m
Volume: V = π × (0.325 m)² × 3.2 m
V = π × 0.105625 m² × 3.2 m
V = 1.0630 m³
Part (b): Buoyancy Force
Archimedes' Principle: Fb = ρfluid × Vsubmerged × g
Fb = 1027 kg/m³ × 1.0630 m³ × 9.81 m/s²
Fb = 10,700 N (upward force)
Part (c): Required Ballast Mass
For neutral buoyancy: Weight = Buoyancy force
Total mass × g = Fb
Total mass = 10,700 N / 9.81 m/s² = 1090.8 kg
Ballast mass = Total mass - Hull and equipment mass
Ballast mass = 1090.8 kg - 425 kg = 665.8 kg
Part (d): Overall Vehicle Density at Neutral Buoyancy
ρvehicle = Total mass / Total volume
ρvehicle = 1090.8 kg / 1.0630 m³
ρvehicle = 1026.2 kg/m³
Note: This is essentially equal to seawater density (1027 kg/m³), confirming neutral buoyancy with 0.08% difference due to rounding.
Part (e): Ballast Expulsion for Ascent
For upward acceleration: Net upward force = ma
Fb - Weight = ma
Rearranging: Weight = Fb - ma
Required mass for ascent: mascent = (Fb - ma) / g
mascent = (10,700 N - m × 0.25 m/s²) / 9.81 m/s²
This requires iteration. Simplifying:
mascent = Fb / (g + a) = 10,700 N / (9.81 + 0.25) m/s²
mascent = 10,700 N / 10.06 m/s² = 1063.6 kg
Ballast to expel = 1090.8 kg - 1063.6 kg = 27.2 kg
Engineering Interpretation: The AUV requires approximately 666 kg of variable ballast water for depth control operations. To initiate ascent with 0.25 m/s² acceleration, the vehicle must expel 27.2 kg of ballast (about 4.1% of total ballast capacity), which corresponds to approximately 26.5 liters of seawater. This relatively small adjustment demonstrates the sensitivity of buoyancy control—a 2.5% reduction in total vehicle mass produces measurable acceleration. In practice, AUV control systems use proportional ballast adjustment to maintain stable depth or controlled ascent/descent rates, typically employing compressed air systems or piston-driven displacement mechanisms.
Advanced Density Considerations in Engineering
With composites, you can’t just look up material density. The real density depends on how much fiber, how much resin, and how much void you have (unavoidable in practice). The “rule of mixtures” gives a ballpark: ρcomposite = Vfρfiber + Vmρmatrix. If carbon fiber is 60% by volume, with 1800 kg/m³ for fiber and 1200 kg/m³ for epoxy matrix, your target is 1560 kg/m³. If you measure less, it means voids, which hurt strength—sometimes a lot, especially in composites loaded in shear. Every percent void can knock interlaminar shear strength down 5-7%.
For alloys, density shifts with alloying elements and how tightly the atoms are packed (crystal structure). For steel, expect 7750-7850 kg/m³ depending on alloying and heat treatment. With aluminum, density can shift slightly from heat treatment changes, though rarely more than about 0.5%. For tight machining or balancing, even this is worth measuring directly.
For additional engineering calculations and tools, visit the complete calculator library.
Frequently Asked Questions
▼ Why does density change with temperature, and how significant is this effect?
▼ What is the difference between density and specific gravity, and when should each be used?
▼ How does porosity affect measured density, and why is this important in manufacturing?
▼ How do engineers measure density for irregularly shaped objects or complex geometries?
▼ Why do submarines use variable ballast tanks instead of simply using propulsion to maintain depth?
▼ How does density stratification in fluids affect engineering systems, and when must it be considered?
Free Engineering Calculators
Explore our complete library of free engineering and physics calculators.
Browse All Calculators →🔗 Explore More Free Engineering Calculators
About the Author
Robbie Dickson — Chief Engineer & Founder, FIRGELLI Automations
Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.
📹 Video Walkthrough — How to Use This Calculator
📹 Video Walkthrough — How to Use This Calculator
Need to implement these calculations?
Explore the precision-engineered motion control solutions used by top engineers.
