# Density

**Formula:**`D = M/V`

## Introduction to Density Formula

Density is a measure of mass per unit of volume. This formula calculates the density of a substance, where ** D** represents density,

**is the object's mass, and**

*M***is its volume.**

*V*## Parameter usage:

`mass`

= mass of the substance`volume`

= volume of the substance

## Example valid values:

`mass`

= 100`volume`

= 50

## Output:

`D`

= density of the substance

## Data validation

The mass and volume values should be greater than zero.

## Summary

This calculator determines the density of a substance based on its mass and volume. The result is expressed as mass per unit volume.