Absolute Value Calculator
Find the absolute value of any number: the distance from zero, with the sign dropped. Runs in your browser.
The distance from zero
Type any number, positive or negative, and the page prints its absolute value: |x| is x when x is zero or above, and -x when it is below. |−58.5| prints as 58.5 and |12| prints as 12, because the magnitude is kept and only the sign is dropped. The result is the number of units between your value and zero on the number line.
The page takes one number at a time. It does not simplify an expression, solve an equation or handle a variable — |x| with an unknown x is not something it can evaluate, so it asks for the value. A field that is empty or not a number is refused with a message naming the field rather than being read as zero.
The arithmetic runs in this tab on the number you type. Nothing is uploaded and nothing is stored, so reloading the page with the same value prints the same magnitude.
The page prints |x| for the number you type: the same value when it is zero or above, and its negation when it is below, so |-58.5| reads as 58.5. That is the distance from zero on the number line — the sign is dropped and the magnitude kept. It evaluates one number, not an expression, so a variable or a sum in the field is refused rather than half-simplified.
One number in, its magnitude out, computed in your browser.
How to use it
Type one number into the field above — a decimal, a negative value or a plain integer — and press Run. The answer appears as |x| = n, with a line saying what the figure measures.
What it will not do
The field takes a literal number only. A field holding x, 3+4 or an expression is refused with the text quoted back, because evaluating it would need an algebra engine the page does not carry. An empty field is refused too, rather than being read as zero.
What to Expect
Best for
- Turning a signed value into a magnitude for a distance, a tolerance or a difference.
What this tool keeps
- The number is evaluated in this tab and never posted anywhere, so the page works without a network connection once loaded.
Sample input
-58.5
Sample output
|-58.5| = 58.5 Distance from zero on the number line; the sign is dropped and the magnitude kept.
Frequently asked questions
How do I use the absolute value calculator?
Fill in the fields above and press Run. Type one number into the field above — a decimal, a negative value or a plain integer — and press Run. The answer appears as |x| = n, with a line saying what the figure measures.
Is my input uploaded?
No. Every figure is computed in this tab with JavaScript. Nothing is posted to a server, nothing is stored, and the page keeps working offline once it has loaded.
What are the limits?
The value must be a number the browser can hold as a double; anything else, including a blank field, is refused with a message naming the field.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.