Absolute Value Calculator

    Find the absolute value of a number or the distance between two numbers on a number line. Includes sign, opposite number, and decimal input support.

    Enter one decimal number. A decimal point is the expected English format; comma decimals and scientific notation are accepted for convenience.

    What this absolute value calculator does

    English search results for absolute value calculators focus on a direct |x| answer, with explanations that frame absolute value as distance from zero. This version also includes a distance-between-two-numbers mode.

    The result is always non-negative.

    Use the distance mode when the question is about how far apart two numbers are on a number line.

    Accepted input

    1. Enter one decimal number for |x|.
    2. Switch to distance mode to enter two numbers.
    3. Use a decimal point for English numeric format; scientific notation such as -2.5e2 is also accepted.
    Modulo or expression syntax is intentionally rejected here. Use the modulo calculator for a mod b.

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools