Skip to content

Absolute Difference Calculator

Calculate the absolute difference between two numbers. Find |A − B| with calculation steps, midpoint, signed difference, and percentage comparison.

Updated

What is the Absolute Difference Calculator?

How it works

Examples

Basic numbers: 50 and 30

Value A: 50, Value B: 30
|50 − 30| = |20| = 20. Signed difference: 20, Midpoint: 40

Negative numbers: -15 and 25

Value A: -15, Value B: 25
|−15 − 25| = |−40| = 40. Signed difference: -40, Midpoint: 5

Decimals: 3.14 and 2.71

Value A: 3.14, Value B: 2.71
|3.14 − 2.71| = |0.43| = 0.43. Midpoint: 2.925

Equal values: 25 and 25

Value A: 25, Value B: 25
|25 − 25| = |0| = 0. Values are equal, Midpoint: 25

One value is zero: 0 and 10

Value A: 0, Value B: 10
|0 − 10| = |−10| = 10. Percent of A: — (undefined), Percent of B: 100%

Frequently asked questions