Graphing Calculator

· How we calculate · Free, no sign-up

Quick answer

Enter a function of x (for example x^2 − 2 or sin(x)) to plot it instantly. Drag to pan, scroll or pinch to zoom, and hover to read coordinates. You can plot up to five functions together and build a table of values — a free, browser-based alternative to a handheld graphing calculator.

Plot up to five functions of x on one graph, drag and zoom to explore them, trace any point and generate a table of values — free and right in your browser.

Use x as the variable: x^3 - 3x, 2sin(x), sqrt(x), abs(x), ln(x), e^(-x^2). Trig uses radians.

Drag to pan · scroll or pinch to zoom · hover or tap to trace a point

Table of values

How to use the graphing calculator

  1. Enter a function of x in a “y =” box, for example x^2 - 2. The curve is drawn as soon as you stop typing, and any typo is explained in red under the box.
  2. Add more functions (up to five) with the “Add function” button. Each gets its own colour; remove one with ✕.
  3. Explore the graph: drag to pan, scroll or pinch to zoom, and use ⟲ to return to the standard window of −10 to 10.
  4. Trace a point: hover (or tap) anywhere and the calculator shows the (x, y) coordinates on the nearest curve.
  5. Make a table of values by choosing a start x, a step and the number of rows below the graph.

Writing functions

To graphType
y = 3x² − 4x + 13x^2 - 4x + 1
y = √xsqrt(x)
y = |x − 2|abs(x - 2)
y = 2 sin(3x)2sin(3x)
y = eˣ, y = ln x, y = log₁₀ xe^x, ln(x), log(x)
y = 1 ÷ (x − 1)1/(x - 1)
y = ∛xcbrt(x)

Multiplication can be implied (2x, 3(x+1), 2pi). Powers are written with ^ and are evaluated before multiplication, so -x^2 is an upside-down parabola. Other available functions include tan, asin, acos, atan, sinh, cosh, tanh, floor, ceil, round and sign.

Worked example: reading the default graph

The two starting functions are a parabola, y = x² − 2, and a sine wave, y = sin(x). With the table set to start at −5 with a step of 1, the first row shows x = −5, x² − 2 = 23 and sin(−5) = 0.958924274663; at x = 0 the values are −2 and 0.

The parabola crosses the x-axis where x² − 2 = 0, i.e. at x = ±√2 ≈ ±1.41421. Zoom in on the right-hand crossing and trace it — the y value gets closer to 0 as x approaches 1.41421. Where the two curves intersect, both functions give the same y, which is a quick way to estimate solutions of the equation x² − 2 = sin(x) (around x ≈ −1.06 and x ≈ 1.73).

How the graph is drawn

The calculator evaluates each function once for every pixel across the screen and joins the points. When the value is undefined (such as ln(x) for x ≤ 0) or jumps across a vertical asymptote (like tan(x) at x = π/2 or 1/x at x = 0), the pen is lifted so no false vertical line appears. Grid lines are spaced at “nice” intervals of 1, 2 or 5 times a power of ten and adjust automatically as you zoom, and the axes use the same scale in both directions so circles look round and slopes look true.

Tips

Embed this calculator on your website — free

Copy this code into your page. The calculator stays up to date automatically and resizes to fit.

Frequently asked questions

How do I type a function into the graphing calculator?

Type the right-hand side of y = … using x as the variable, for example x^2 - 2, 2sin(x), sqrt(x) or 1/(x-1). Use ^ for powers, * for multiplication (or just write 2x), and pi or e for the constants. You may also type “y =” at the start; it is ignored.

How do I zoom and move around the graph?

On a computer, drag with the mouse to pan and use the scroll wheel to zoom around the cursor. On a phone or tablet, drag with one finger to pan and pinch with two fingers to zoom. The +, − and ⟲ buttons zoom in, zoom out and reset the view to −10 ≤ x ≤ 10.

How can I find the coordinates of a point on the graph?

Hover the mouse over the graph (or tap it on a touch screen). The calculator traces the curve closest to your pointer and shows its (x, y) coordinates. Zoom in for more precise values, or use the table of values below the graph.

Are trigonometric functions in degrees or radians?

Radians, which is the standard for graphing. That means sin(x) completes one full wave every 2π ≈ 6.283 units. To graph with degrees, convert inside the function, e.g. sin(x*pi/180).

Why are there gaps in graphs like tan(x) or 1/x?

Those functions are undefined at certain x values (vertical asymptotes), where y shoots off towards ±∞. The grapher detects these breaks and lifts the pen instead of drawing a false vertical line. Gaps also appear where a function has no real value, such as sqrt(x) for x < 0.