Learn
An absolute value calculator for the two everyday cases: type a number, or type the arithmetic hiding between the bars - either way one distance comes back, and the number-line picture below explains why it never comes back negative. The absolute value calculator below takes both forms in one click.
Each row is one calculation: |input| = result, calculate rows independently.
Two boxes, one idea. An absolute value calculator answers a single question: how far is this number from zero? The absolute value calculator on this page takes that question in two forms - a bare number, or the arithmetic hiding between the bars.
Two result rows come back, one per box, and both rows are distances - an absolute value calculator never reports a sign, only a size. The first row is , the distance from your number to 0. For -7 the absolute value calculator returns 7. Both rows update together, because one absolute value calculator backs both boxes. The second row evaluates the expression first and then measures its result from zero. Enter 2 - 5*3 and the box computes -13, so the second row reads 13.
This page is more than a static absolute value calculator - it is also an AI tutor you can ask questions:
Both boxes feed the same definition, so start anywhere, and the absolute value calculator keeps the two rows side by side. If you have never met the bars before, the next section builds the picture from scratch. If you already know what means, skip ahead - the absolute value calculator will keep working either way.

No bars on the keyboard? The pipe character | usually hides above the enter key - shift plus backslash on US layouts. Typing abs(x) is the long-standing stand-in, and the AI box on this page accepts it happily. In the Expression box you can skip the character entirely: the absolute value calculator there already knows where the bars belong, so 8 - 12 simply means |8 - 12|. Three notations, one idea - |x|, abs(x), and the two boxes of the absolute value calculator above. Pick whichever your homework uses; the distance answer does not change. The absolute value calculator on this page simply accepts all three dialects - and measures the same distance under each.
The absolute value of a number is its distance from zero on the number line. Distance ignores direction, so a trip 5 units left and a trip 5 units right count the same. An absolute value calculator turns that one-fact picture into answers, and the picture in turn explains every answer the absolute value calculator gives. The picture shows both trips - and why they land on one answer. Reading it takes three seconds; the absolute value calculator underneath takes even less. Point it at 5 or at -5 and the reply is the same 5, because both arrows reach equally far. Distance is the whole story, and an absolute value calculator is that story told in one number.
Absolute value calculator in one picture: -5 and 5 both sit 5 units from 0, so |-5| = 5 and |5| = 5 - distance reads the same in either direction
Ray's New Higher Algebra (1866) calls the same idea the numerical value of an expression - what it is worth once the signs are settled. Today the definition splits on the sign of :
-x, & x < 0 \end{array}\right.$$The in the table is the same as the Value box - one letter, one input, exactly the pairing an absolute value calculator needs to accept AI-filled forms. For the second case applies, so . An absolute value calculator runs exactly this case split on every click. It never drops the minus that flips a negative input - the flip is where hand calculations usually slip. Whenever you doubt a result, ask what the absolute value calculator would print for the same and compare cases. Feed -3 into the Value box and it lands in the same second case as did. For it walks the second case too: .
One consequence deserves its own line: for every real . Zero is the floor, and it is also the one guard every absolute value calculator applies before printing. Zero input, zero out - any absolute value calculator will show it. If a computation hands you a negative "absolute value", something upstream went wrong - Mistake 1 below shows the usual culprit. An absolute value calculator is a handy referee for exactly those disputes.
Subtract, then take the bars - that is the whole distance formula. The gap between and on the number line is , and the order cannot matter: and both equal 5. One expression field turns an absolute value calculator into a distance meter - the Expression box above is wired for exactly this. The absolute value calculator is the fast path; the number line is the proof. Type either order and the absolute value calculator erases the sign for you, same 5 both times. It is also the quiet answer to why the bars exist at all: without a sign-eraser, and could not share one distance.
Distance between two numbers as absolute value: |3 - (-2)| = 5, the gap from -2 to 3 on the number line
Read the picture left to right: 3 sits 2 units right of 0, and -2 sits 2 units left. Between them stretches a 5-unit gap. Any "how far apart" question is an absolute value in disguise, and that gap - five units of pure distance - is exactly what an absolute value calculator reports.
The Expression box above computes such gaps directly. Type 3 - (-2) and the absolute value calculator answers 5 - no sign bookkeeping required. Reverse the entry to (-2) - 3 and the absolute value calculator still answers 5. Temperature spans, elevation gaps, and profit-versus-loss spreads all fold into the same shape. A morning of -6 degrees and an afternoon of 9 degrees differ by degrees. A gain of 120 dollars against a loss of 45 spans . Both readings fall out of the absolute value calculator in one entry each, which is why a general-purpose absolute value calc earns its keep beyond plain runs.
A dedicated absolute value calculator could stop at ; this one follows the bars wherever they appear.
Two quick facts follow from the distance reading, and both come in handy:
With the definition and the distance formula on the table, the three examples below run the absolute value calculator through its paces - three signs, an expression, and a real gap. Watch what each one feeds in and what comes back.
Evaluate , , and - the three sign cases an absolute value calculator meets every day. Each lands in a different branch of the definition, so an absolute value calculator treats all three differently - worth one look each.
Check the pattern: 12, 0, and 9 are all non-negative, as every absolute value must be. The drill itself is old - sign-flip exercises like fill the practice sections of a century of algebra texts. An absolute value calculator compresses all three cases to clicks; the case list above is what those clicks mean. Run 12, then 0, then -9 through the Value box of the absolute value calculator: three clicks, three one-step answers. Each result matches the rule case it came from. An absolute value calculator shows no work for these - none is needed - but it never fumbles the flip on , which is the one place a rushed pencil does. Three cases, three answers, no surprises.
Evaluate , the sample preloaded in the Expression box.
A wrong turn starts with the bars. Splitting them over the subtraction gives , a negative number - impossible for an absolute value, so the split must be wrong. An absolute value calculator catches this slip by construction: it never opens the bars until the inside is a single number. Inside first, bars last, every time - an absolute value calculator enforces that order for you. This two-step routine is precisely what the absolute value calculator automates. The Expression box reduced 2 - 5*3 to -13 internally; the absolute value calculator then measured -13 from zero, and the second row reported 13.
Change the sample to 8 - 12 and the same machinery returns 4, ready for checking by hand in two lines - subtract to -4, flip to 4. That is the division of labor on this page: the absolute value calculator answers fast, and the hand routine above lets you audit every answer it gives.
A diver rests on a ledge 18 m below the surface, which reads m on the depth scale. A gull rides the swell 7 m above it, at m on the same scale. How far apart are they?
They are 25 m apart, and one Expression entry did all the work. The same line answers any vertical-gap question - the Expression box of the absolute value calculator takes 7 - (-18) unchanged and returns 25. Note that the absolute value calculator never asks which one is higher - distance has no hierarchy. Whatever the context - sea level, ground level, or zero on a price chart - an absolute value calculator turns paired readings into one clean gap. A balcony 12 m up and a basement 3 m down? The absolute value calculator takes 12 - (-3) and hands back 15 m, no diagram required.
The reverse question runs the other direction. Given the 25 m gap and the gull's 7 m, where can the diver be? Two depths fit: and - each exactly 25 m from 7, as the absolute value calculator's distance reading promised. Turning a distance back into candidates is solving an equation, not evaluating one. An absolute value calculator evaluates; it does not hunt candidates. That job belongs to the absolute value equations calculator on this site, and its guide on how to solve absolute value equations walks the two branches step by step.
The bars obey three short rules, and each one says something about distance:
Try the product rule on the absolute value calculator: is 12, and so is . One absolute value calculator run covers the left side, two runs the right - entries -34, then -3, then 4 - the absolute value calculator settles it either way. The Expression box takes -34 in one entry, while the same absolute value calculator confirms the split version through two Value runs. The square-root link matters later in algebra - it is the reason equals 6 and not -6. Enter (-6)^2 and the Expression box evaluates it to 36 internally; the bars, wherever you place them, return 6.
Run -7 the same way: squared it is 49, rooted it is 7, and the absolute value calculator confirms |(-7)^2| = 7 without any prompting. The absolute value calculator agrees here, because the bars and the root both erase signs.
Not every tempting pattern is a rule, though. Sums resist the bars: while , a gap no absolute value calculator papers over, because the two expressions genuinely differ and honest arithmetic says so. That failed sum rule is exactly Mistake 3 below - the properties table earns its keep by marking where the analogy stops. A quick check on the absolute value calculator settles each row in seconds.
Three slips cause most of the lost points around the bars:
Each slip vanishes under one habit: reduce whatever sits inside the bars to a single number before judging any signs. That habit is exactly the two-step routine the absolute value calculator above executes on every Calculate click. Watch it run Mistake 2 as a demo: enter 9 - 12 and the box reads 3, not -3, because the bars waited for the whole subtraction. That patience is what separates an absolute value calculator from a hasty rewrite of the same line. Keep the habit and the absolute value calculator becomes a checker; lose it and no absolute value calculator can rescue the answer, because the entry itself is wrong.
A weather station in Fairbanks logs a wind chill of 12 below zero, written . Its summary screen shows the reading as , the distance from zero on the degree scale. What number does the screen show? Confirm with the absolute value calculator above.
A puzzle app adjusts a score by points. Evaluate the adjustment, and check it with the absolute value calculator above.
A drone hovers 120 ft above ground level. Directly beneath it, a gopher tunnel runs 35 ft below ground level. Write the vertical gap between them as , then evaluate it with the absolute value calculator above.
It measures a number's distance from zero, which is the one job an absolute value calculator never gets wrong. This absolute value calculator covers the two everyday inputs - a bare number in the Value box, or an expression such as 2 - 5*3 in the Expression box. Both result rows report one non-negative number: the distance. An absolute value calculator that printed anything else would be broken by definition - that is the entire contract, and how little room the idea leaves. You can confirm each of these numbers with the absolute value calculator.
No. Distance counts units, and counts stop at zero - $|0| = 0$ is the floor, and no absolute value calculator can print anything below it. A negative result means the minus sits outside the bars, as in $-|-3| = -3$; the bars did their job and the sign in front undid it. Every absolute value calculator is built on that floor. You can confirm each of these numbers with the absolute value calculator.
The routine for how to do absolute value by hand is one line: keep positive numbers, flip negative ones. So $|9| = 9$ and $|-9| = 9$ - the same trip in opposite directions. With an expression inside, finish that arithmetic first and take the bars last, the same order the absolute value calculator follows internally. One check: any honest absolute value calculator returns identical answers for 9 and -9. You can confirm each of these numbers with the absolute value calculator.
This page evaluates; that one solves. Put simply: evaluation asks for one number, and this absolute value calculator answers with exactly that. Given $|x| = 6$, the absolute value equations calculator returns two candidates, $x = 6$ and $x = -6$, because two spots sit 6 units from zero. Our guide on how to solve absolute value equations walks that two-branch method in full. You can confirm each of these numbers with the absolute value calculator.
They extend the distance picture to ranges: $|x| < 3$ gathers everything within 3 units of zero, that is $-3 < x < 3$. The absolute value calculator on this page stays with equalities; the walkthrough on how to solve absolute value inequalities turns the picture into interval answers. An absolute value calculator plus a range question is the wrong pairing; the guide is the right one. You can confirm each of these numbers with the absolute value calculator.
Yes - subtract in either order and the bars erase the sign: $|3 - (-2)|$ and $|(-2) - 3|$ both read 5. The Expression box of the absolute value calculator above takes any such gap in one click - that symmetry is exactly why an absolute value calculator can ignore input order. You can confirm each of these numbers with the absolute value calculator.