Graphing Calculator

Plot functions on a 2D graph.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Type a function of x and an x range to draw its curve. Plotting x^2 from −2 to 2 starts at the point (−2, 4) and bottoms out at (0, 0).

How to use

1
Step 1
Type the function, for example sin(x) or x^2 - 3*x.
2
Step 2
Set the x minimum and maximum.
3
Step 3
Press Calculate to draw the graph.

How it works

The function is evaluated at 200 equal steps between your minimum and maximum, and the points are joined into a curve. Where the function is undefined, such as 1/x at x = 0, that point is left as a gap instead of drawing a line through it.

step = (xMax − xMin) ÷ 200      points = (x, f(x))

Worked example

A parabola

Input
f(x) = x^2, x from −2 to 2
Output
(−2, 4), (−1.98, 3.9204), … (0, 0) … (2, 4)
Walkthrough
The step is 4 ÷ 200 = 0.02, so the second point is x = −1.98 and y = 1.98² = 3.9204.

Limitations

  • One function of x per graph.
  • Sharp features narrower than one step (a hundredth of the range) can be missed.

Questions

How do I graph x squared?
Type x^2 and choose an x range such as −2 to 2.
What happens at x = 0 for 1/x?
The value there is undefined, so the graph leaves a gap at that point.
How many points does it plot?
200 steps across the x range you choose.

Features

  • Any function of x
  • Undefined points left as gaps
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Introduction to scientific notation

    Khan Academy

    Scientific notation for calculator and number tools.

    Watch on YouTube
  • Finding a percentage

    Khan Academy

    Percentage basics used across many calculator pages.

    Watch on YouTube
  • Data Index

    Math is Fun

    Stats and probability explainers for data tools.

  • Geometry Index

    Math is Fun

    Shape and formula index for geometry calculators.