Absolute value on a graphing calculator: quick answer
To do absolute value on GraphingCalculator.io, enter y = |x| in an expression row. You can also enter y = abs(x). The calculator understands both forms and draws the same V-shaped graph.
Enter y = |x − 2|. The vertex moves from (0, 0) to (2, 0), but the graph keeps its familiar V shape.
If your goal is only to calculate a number, enter something such as abs(−7). The result is 7. If your goal is to study a function or solve an equation, include x and look at the graph.
What does absolute value mean?
Absolute value describes distance from zero on the number line. Distance is never negative. That is why |5| = 5 and |−5| = 5. Both numbers are five units from zero.
The bars in |x| do not mean “make every number positive” in a careless way. They ask for the nonnegative distance represented by the expression inside. For example, |x − 2| is the distance between x and 2.
This distance idea explains why an equation such as |x − 2| = 3 often has two solutions. The numbers −1 and 5 are both three units from 2.
How to enter absolute value in our calculator
- 01Open the graphing workspace.
Select the first expression row. On a phone, you can use the mathematical keypad for common symbols.
- 02Enter the function.
Type y = |x| or y = abs(x). The built-in function picker also includes Absolute value.
- 03Close the expression correctly.
Use both vertical bars in |x| or the closing parenthesis in abs(x). An unfinished expression cannot be graphed.
- 04Inspect the V-shaped graph.
Move or zoom the coordinate area if the vertex and both arms are not easy to see.
The two input styles are equivalent. Vertical bars look like the notation used in many textbooks. The form abs(x) can be easier to type on a standard keyboard. Use whichever form feels clearer.
Why does the graph look like a V?
For x-values greater than or equal to zero, y = |x| behaves like y = x. For negative x-values, it behaves like y = −x. The negative half of the line y = x is reflected upward. The two pieces meet at the origin.
The meeting point is called the vertex. For the parent function y = |x|, the vertex is (0, 0). The domain is all real numbers because any real x-value can go inside absolute value. The range is y ≥ 0 because absolute value cannot produce a negative output.
(0, 0)
The two arms meet at the origin.
All real x
Every real input is allowed.
y ≥ 0
The parent graph stays on or above the x-axis.
The graph decreases as it approaches the vertex from the left. It increases after the vertex on the right. It is made from straight pieces, so the vertex is a sharp corner rather than a smooth curve.
Transform the graph with a, h, and k
A common transformation form is:
|a| changes steepness. A negative a turns the V downward.
The vertex moves right h units when the form is x − h.
The vertex moves up k units, or down when k is negative.
For a ≠ 0, the vertex of this form is (h, k). For example, y = 2|x − 3| + 1 has vertex (3, 1). The factor 2 makes its arms steeper than the parent graph.
GraphingCalculator.io can make this exploration interactive. Enter y = a|x − h| + k. When a, h, and k are undefined, create the offered sliders. Move one slider at a time and watch the graph respond. The guided function-transformation goal can also connect supported transformations to the parent graph and a value table.
Pay attention to what is inside the bars
The position of the absolute-value bars changes the function. The graph of y = |x| − 2 moves the parent V down two units, so its vertex is (0, −2). The graph of y = |x − 2| moves the V right two units, so its vertex is (2, 0). These expressions look similar, but they are not equal.
Absolute value around an entire output has another effect. In y = |f(x)|, any part of f(x) below the x-axis is reflected above it. In y = f(|x|), the absolute value changes the input instead. The right-hand behavior is copied to the left side. Keeping the bars visible while you compare both graphs is an excellent way to understand the difference.
When typing, pause and ask: “Which expression is the distance?” Everything between the matching bars belongs to the absolute value.
Worked example: solve |x − 2| = 3
An absolute-value equation can be solved by graphing each side. Enter these two functions in separate expression rows:
This is the same intersection principle used when solving a linear system by graphing: every shared point makes both displayed relationships true.
- 01Graph the absolute-value side.
Its vertex is (2, 0), so the V is centered on x = 2.
- 02Graph the constant side.
The equation y = 3 creates a horizontal line three units above the x-axis.
- 03Find both intersections.
The line meets the V at (−1, 3) and (5, 3).
- 04Read the solutions.
The x-coordinates are −1 and 5. These are the candidates for the original equation.
Both values satisfy the unchanged equation. Therefore, the verified solutions are x = −1 and x = 5. The graph shows why two answers are possible, and substitution confirms them exactly.
How the number of solutions can change
A horizontal line can meet an upward V in two points, one point, or no points. For y = |x|, a line y = c meets the graph twice when c is positive. It meets the vertex once when c = 0. It does not meet the graph when c is negative.
This visual rule depends on the equation and transformation. A downward V reverses which horizontal levels can meet it. Always study the actual graphs instead of memorizing one picture for every problem.
Graph analysis can help inspect visible intersections for supported plots. Those coordinates may still be numerical estimates. Zooming changes what the screen reveals; it does not turn a decimal estimate into symbolic proof. Substitute answers into the original equation whenever exactness matters.
For another two-answer graph, compare this V with a parabola in the guide to finding quadratic roots at x-intercepts.
Common mistakes to avoid
- Leaving a bar or parenthesis open. Write both bars in |x − 2| or close abs(x − 2).
- Confusing a value with a graph. abs(−5) evaluates to 5; y = abs(x) draws the whole function.
- Moving in the wrong direction. In |x − 3|, the graph moves right, not left.
- Reporting intersection points as x-solutions. The equation’s answers are x = −1 and x = 5, not the full coordinate pairs.
- Stopping after one intersection. Look at both arms of the V and use a window wide enough to show them.
- Assuming the graph is exact. Treat a screen reading as approximate until algebra or supported exact evidence verifies it.
Common questions
How do I type absolute value on GraphingCalculator.io?
Enter vertical bars around the expression, such as y = |x|, or use function notation, such as y = abs(x). Both forms represent absolute value.
Why is an absolute-value graph V-shaped?
Absolute value keeps nonnegative outputs and reflects negative outputs upward. The two linear pieces meet at the vertex and form a V.
How do you solve an absolute-value equation by graphing?
Graph each side separately, read the x-coordinates of every intersection, and substitute those values into the original equation.
Try the example yourself.
Graph y = |x − 2| and y = 3, find both intersections, then edit the expressions to move the V or the horizontal line.
Opens a separate editable copy in a new tab. Your existing graphs stay saved.