Graphing calculator

Type a function of x, such as x^2 - 2, and set the x range. A second function is optional: when you add one, the tool also finds the points where the two curves meet.

Use x, numbers, + - * / ^, parentheses, pi, e and sin(x), cos(x), tan(x), exp(x), ln(x), log(x) (base 10), sqrt(x), abs(x). Angles are in radians.
Leave empty to plot f alone. With g, the crossings of f and g are listed.
A number or constant such as -6 or -pi.
Must be larger than the left end.
Zeros of f (x where f = 0)-1.414213562, 1.414213562
y-intercept f(0)
-2
Lowest point in the window
y ≈ -2 at x ≈ 0
Highest point in the window
y ≈ 14 at x ≈ -4
Crossings of f and g (x, y)
(-1, -1); (2, 2)

Zeros, extremes and crossings are numeric estimates from 800 sample points across the window. A very narrow feature between two samples can be missed, so widen or shift the window to check.

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type f(x). Multiplication can be written 2x, 2*x or 2 × x; functions need brackets, as in sin(x).
  2. Optionally type g(x) to compare two curves.
  3. Set the left and right ends of the x range. The plot shows the x range at the bottom and the y range at the right.

How it works

The text is parsed into an expression tree (no code is executed) and evaluated at many x values. The plot is drawn from those values, with the axes through 0 when they fall inside the window. Crossings are the zeros of f − g.

Worked example

f(x) = x² − 2 on −4 to 4, with g(x) = x. The zeros of f are x = ±√2 ≈ ±1.414214 and f(0) = −2. The curves meet where x² − 2 = x, that is x = −1 and x = 2, so the crossings are (−1, −1) and (2, 2).

Tips

  • Zoom by changing the x range: a tighter window shows more detail and gives better extremes.
  • Use abs(x) for the absolute value and sqrt(x) for square roots; x^(1/3) is not defined for negative x here.
  • Angles are in radians: sin(pi/2) = 1.

Frequently asked questions

How are the zeros found?

The tool evaluates f at 800 evenly spaced points. Where the sign changes between two neighbours it narrows the interval by bisection; where f only touches zero, as in (x − 1)², it searches for the minimum of |f|. Sign changes at poles such as tan(x) near π/2 are rejected because |f| stays large there.

Why does the lowest or highest point say “≈”?

It is the best of the sampled points, not an exact optimum. For a smooth curve it is close; use a narrower window around it, or the derivative calculator, when you need more digits.

What happens with 1/x or tan(x), which are not defined everywhere?

Points where f is not a finite number are skipped and the line is lifted across jumps, so no false vertical line joins the two branches. The vertical scale follows the middle 98 percent of the values so one pole does not flatten the rest.

Can I plot x = 3 or a circle?

No. Only functions y = f(x) are supported, one y for each x.

More in Math

All tools in this category: Math ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.