Skip to main content

Absolute Value Calculator

Find the absolute value (distance from zero) of a number — or a whole list of numbers at once. Enter one or more real numbers, separated by commas, spaces, or new lines, and see each one's sign and absolute value in a table.

Input

Output

Result
NumberSignAbsolute Value
No data yet
Was this helpful?

Guides

The Absolute Value Calculator finds |x| — the distance of a number from zero on the number line — for one number or a whole list at once. Enter one or more real numbers, separated by commas, spaces, or new lines, and it instantly returns each number's sign and absolute value in a table.

It's built for students checking homework, anyone cleaning up a dataset of signed values (deltas, temperature changes, errors), or checking a batch of numbers in one pass instead of one at a time.

How to use it

  1. Enter one or more numbers (up to 500 at a time) in the Numbers field, separated by commas, spaces, or new lines. Decimals and negative numbers are both supported.
  2. Read the Result table: each number, whether it's negative, positive, or zero, and its absolute value.

Results update automatically as you type. For example, entering -12.5, 7, -3.2 returns 12.5, 7, and 3.2.

What is absolute value?

The absolute value of a number is its distance from zero, always expressed as a non-negative number. For a positive number or zero, the absolute value is the number itself; for a negative number, it's the number with its sign flipped. Written mathematically, |x| = x if x ≥ 0, and |x| = -x if x < 0.

Why does absolute value matter?

Absolute value shows up anywhere the size of a difference matters more than its direction — measuring error margins, temperature swings, distances on a number line, or the magnitude of a financial gain or loss regardless of whether it was positive or negative.

Privacy

This calculator runs entirely in your browser. Your numbers are never uploaded, logged, or stored — the computation happens locally on your device.

absolute valueabsdistance from zeromathnegative numberbatch

Use it from code

From 3 credits per call

REST API

curl -X POST https://api.iotools.cloud/v1/tool/absolute-value-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "numbers": "-12.5"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `absolute-value-calculator` tool (Absolute Value Calculator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.