What is absolute value?
The absolute value of a number is its distance from zero on the number line, written with bars: |−7.5| is 7.5, and |7.5| is 7.5 too. The sign is stripped away and only the size is left, so a negative and its positive twin have the same absolute value. It is one of the simplest ideas in maths and one of the most useful, because so many real questions are about how far apart two things are, not which one is bigger.
Students meet absolute value in school algebra, where it appears in equations, inequalities and graphs, and where |x| = 5 has two answers, 5 and −5. Programmers use it constantly — every language has an abs function — for distances, errors and differences in code. Scientists and engineers use it for measurement error, where a reading 2 degrees too high and a reading 2 degrees too low are both wrong by 2 degrees. Finance uses it for the size of a gain or a loss.
This Absolute Value Calculator is free to use, with no sign-up and no data sent anywhere — every calculation runs in your browser. Type the numbers and the answer appears at once, with the working shown underneath so you can check it. Students, shoppers, teachers and analysts all use the same simple boxes, and the page below explains the formula, the worked examples, and the mistakes that trip people up most often.
How absolute value works on the number line
The rule is a split one: |x| equals x when x is zero or positive, and −x when x is negative. For −7.5, the absolute value is −(−7.5), which is 7.5 — the minus of a minus is a plus. For 12, it is just 12, because 12 is already positive. For 0, it is 0, because zero sits exactly on the origin and has no distance to travel. The calculator shows the absolute value, the sign of the original number, and its opposite, so the relationship between the three is always visible.
Take the default example: −7.5. On the number line, −7.5 sits seven and a half units to the left of zero, so its distance from zero is 7.5 — and distance is never negative. The sign of the number is Negative, and its opposite is 7.5, which is the number on the other side of zero at the same distance. The calculator shows all three: an absolute value of 7.5, a sign of Negative, and an opposite of 7.5.
One useful habit is to check the answer with a rough mental estimate before trusting it. Work out the easy version in your head — the nearest round numbers, the obvious case — and compare it with the calculator's answer. A quick estimate like that catches typos, which are the most common source of wrong answers on any calculator. The calculator is exact, but it can only work with the numbers you type, so a ten-second estimate is the cheapest insurance against a slipped digit.
The sign of a number: the part people confuse with its size
The input people get wrong is the sign itself — specifically, typing a positive number when they meant a negative one, or the other way round. The absolute value of 7.5 and −7.5 is the same, 7.5, so the mistake is invisible in the main result. It only shows up in the sign row, which would read Positive instead of Negative. If the sign row disagrees with the number you meant, check the minus sign in the input box.
The opposite row is the one to watch if you are learning the idea. The opposite of −7.5 is 7.5, and the opposite of 12 is −12 — the number reflected across zero. The absolute value is the distance from zero to either one of the pair, which is why |−7.5| and |7.5| are both 7.5. Thinking in pairs — a number and its opposite, both the same distance from zero — makes the whole idea click.
The defaults on this page are chosen so the tool shows a sensible answer the moment it loads. Change any input and the results follow at once, so the fastest way to learn the tool is to play with it: double a number, halve it, set it to zero, and watch what happens. That kind of exploring teaches the behaviour of the maths far faster than reading about it, and it is how most people end up trusting the answers.
A worked example: negative, positive, and zero
First, −7.5. Its absolute value is 7.5, its sign is Negative, and its opposite is 7.5. Second, 12. Its absolute value is 12, its sign is Positive, and its opposite is −12. The two examples are mirror images: the absolute value is the same kind of answer in both cases, but the sign and the opposite flip. Third, 0. Its absolute value is 0, its sign is Zero, and its opposite is 0 — zero is the only number that is its own opposite.
A temperature example: a freezer reads −7.5 degrees and a room reads 12 degrees. The freezer is 7.5 degrees below zero and the room is 12 degrees above it — the absolute values, 7.5 and 12, are the sizes of the two departures from zero. The gap between the two readings is |12 − (−7.5)|, which is |19.5|, or 19.5 degrees. Absolute value turns a subtraction across zero into a plain distance.
An error example: a scale reads 2 kg too high one day and 2 kg too low the next. The errors are +2 and −2, but the absolute error is 2 kg in both cases — the scale was equally wrong, and the sign only says which way. Reporting the absolute error is the honest way to describe the scale's accuracy, because the direction of the mistake does not matter to the person weighing themselves.
Where absolute value shows up in real life
Measurement error is the biggest use. If a thermometer reads 2 degrees too high or 2 degrees too low, the error is 2 degrees either way, and the absolute error is the number that describes the instrument. Scientists report it because it says how wrong a measurement could be without caring about the direction. A square root calculator is the companion tool when the error itself comes from a square root calculation.
Distance and navigation use absolute value constantly. The distance between two points on a line is the absolute value of their difference: the distance between −7.5 and 12 is |12 − (−7.5)|, which is 19.5. GPS, mapping and games all use this, because distance is never negative. A distance calculator handles the two-dimensional version of the same idea, where the distance is measured across a map rather than along a line.
Finance uses absolute value for the size of a change without its direction. A share that falls by 7.5 rupees and a share that rises by 7.5 rupees have both moved by 7.5 — the absolute change is the same, and it is the number that matters for risk. A average calculator helps when the question is the average of several such moves, and a percentage calculator when it is the move as a share of the price.
Absolute value vs distance: two names for one idea?
Absolute value and distance are the same idea seen from two angles. The absolute value of a number is its distance from zero, and the distance between two numbers is the absolute value of their difference. |−7.5| is 7.5 because −7.5 is 7.5 away from zero; the distance between −7.5 and 12 is 19.5 because |12 − (−7.5)| is 19.5. One is the special case of the other, with zero as the reference point.
A distance calculator is the tool for distance in two dimensions, where the straight-line gap between two points needs both the horizontal and the vertical difference. Absolute value is the one-dimensional version — the same idea on a single line. If your problem lives on a number line, this calculator is enough; if it lives on a map, use the distance calculator instead.
The sign of a number and its absolute value are the two halves of the number's identity. The sign says which side of zero it sits on, and the absolute value says how far away it is. Together they rebuild the number completely: −7.5 is Negative with a size of 7.5. The calculator shows both halves plus the opposite, so nothing about the number is hidden.
Common absolute value mistakes
The first mistake is thinking an absolute value can be negative. It cannot — |−7.5| is 7.5, not −7.5, because distance is never negative. The bars strip the sign away; they never keep it. If your working gives a negative answer inside absolute value bars, a sign has gone wrong somewhere earlier in the calculation.
The second mistake is dropping the bars too early. |−7.5 + 3| is not 7.5 + 3 — the addition happens inside the bars first, giving |−4.5|, which is 4.5. The bars are like brackets: work out what is inside them first, then take the absolute value of the result. Dropping them early changes the answer, and the error is easy to miss.
The third mistake is thinking |x| = 5 has only one answer. It has two: 5 and −5, because both sit five units from zero. Equations with absolute values almost always have two solutions, and forgetting the negative one is the most common error in this topic. When you solve |x| = 5, write both answers down before you do anything else.
How to use this absolute value calculator
Using the calculator takes seconds. Type a number in the box — the default is −7.5 — and the results update live: the absolute value in the main row, the sign of the number in the middle, and the opposite underneath. Try a positive number like 12 and watch the sign change to Positive while the absolute value stays 12. Try 0 and watch all three rows become zero.
Read the three results together. The absolute value is the distance from zero, the sign tells you which side of zero the number sits on, and the opposite is the number reflected across zero. If the absolute value looks wrong, check the sign of your input — the main result hides sign errors, but the sign row reveals them. Everything runs in your browser, so nothing you type is sent anywhere and there is no sign-up.
Everything runs in your browser. There is no account, no form, and no data sent anywhere — the numbers you type never leave your device. You can use the calculator as often as you like, for homework, shopping, bills or work, and check the answer against the worked examples above whenever a number matters. Two ways of getting the same answer is the best protection against a typo.
If a result ever surprises you, work through the worked example above with the same numbers and compare each step. Most surprises come from a single cause: the wrong operation, a swapped pair of numbers, or a decimal point one place out. Find which one it is, fix the input, and the answer will fall into line. The calculator never guesses — it applies the same rule every time, so a wrong answer always has a findable cause in the inputs.