Absolute Difference Calculator


| x - y |

question_mark

x

Enter a number for x in the equation

| x - y |

question_mark

y

Enter a number for y in the equation

| x - y |

Calculate


Common Questions About |x-y|

What is |x-y|?

|x-y| represents the absolute difference between two numbers, x and y. It is always a non-negative value.

Why is |x-y| important?

The absolute difference |x-y| is useful in many contexts, such as measuring the distance between two points on a number line or analyzing deviations in data.

How do you calculate |x-y|?

To calculate |x-y|, subtract y from x to get x-y, then take the absolute value:
|x-y| = x-y if x ≥ y, and |x-y| = y-x if x < y.