Math

Graphing Calculator

A graphing calculator plots an equation of the form y = f(x) as a curve, so you can see its shape, roots, and turning points at a glance. Type one or more functions below, then zoom, pan, and hover to read exact coordinates. It all runs in your browser.

y =
y =
drag to pan, scroll to zoom

Supported syntax

KindExampleNotes
VariablexThe horizontal axis value.
Operators+ - * / ^Add, subtract, multiply, divide, power.
Grouping(x + 1)(x - 1)Parentheses, with implicit multiplication.
Powers and rootsx^3, sqrt(x)Exponents and square roots.
Trigonometrysin(x), cos(x), tan(x)Also asin, acos, atan. Radians.
Logarithmslog(x), ln(x)log is base 10. ln is the natural log.
Other functionsabs(x), exp(x)Also floor, ceil, round, sign.
Constantspi, e, tau3.14159..., 2.71828..., and 2 pi.

How to use it

1. Type a function

Enter an expression in x, such as x^2 - 4 or sin(x), next to y =.

2. Add more curves

Press Add function to plot several graphs at once, each in its own color.

3. Zoom and pan

Scroll to zoom toward the cursor, or drag the grid to move around.

4. Read the values

Move over the grid to read the x and y coordinates under the cursor.

Common questions

What functions can I graph?

Any expression in x built from + - * / and ^, parentheses, and the built-in functions sin, cos, tan, asin, acos, atan, sqrt, abs, log, ln, exp, floor, ceil, round, and sign. The constants pi, e, and tau are available too. You can also write a number next to x or a bracket for implicit multiplication, so 2x and 3(x + 1) both work.

Does log mean base 10 or natural log?

In this tool log is base 10, matching the common calculator convention, and ln is the natural logarithm with base e. So log(1000) is 3 and ln(e) is 1. If you want a different base, use the change of base rule, for example log base 2 of x is ln(x) / ln(2).

Are angles in degrees or radians?

Trigonometric functions use radians, which is the standard for mathematical graphing. To work in degrees, multiply by pi / 180 inside the function, for example sin(x * pi / 180). One full turn is 2 pi radians, also written as tau.

Why does my graph have a gap or a missing section?

The tool only draws points where the function returns a real, finite number. A gap appears where the result is undefined, such as sqrt(x) for negative x or 1 / x at x = 0. Near a vertical asymptote the line is lifted rather than drawn as a tall spike, which keeps the shape honest.

Does anything I type get uploaded?

No. The expression parser and the plot both run entirely in your browser with plain JavaScript and a canvas. Nothing you enter is sent to a server, so the calculator keeps working the same way even after the page has loaded and you go offline.