Online Calculator

density calculator

Enter mass and volume to calculate density as mass divided by volume.

Use compatible units, e.g. grams and milliliters, or kilograms and litres.

Density

2

Information

⚡

Instant result

The result updates based on the values you enter.

🔒

Local processing

The calculations are done in your browser without sending the data to a server.

💸

Free

No registration, subscription, or paid API required.

Frequently asked questions

What is the density formula?

Density = mass ÷ volume.

What units can I use?

You can use any pair of compatible units, for example grams and milliliters.

What if the volume is zero?

Density is not calculated because division by zero is undefined.

Is it for kg / L?

Yes. If you enter mass in kg and volume in liters, the result will be in kg/L.

Related calculators