Skip to content

Graphing Calculator

Plot several functions, pan and zoom, trace points, find zeros and intersections, and build a table of values.

-8-6-4-22468-6-4-22460xy

Hover or tap a curve to read its coordinates.

Functions

Roots and intersections

Zeros of ⁦y₁⁩

Zeros of ⁦y₂⁩

Intersections of ⁦y₁⁩ and ⁦y₂⁩

Searched over the visible x range (-10 to 10).

Table of values

xy₁y₂
-50.9589246.25
-40.7568024
-3-0.141122.25
-2-0.9092971
-1-0.8414710.25
000
10.8414710.25
20.9092971
30.141122.25
4-0.7568024
5-0.9589246.25

This graphing calculator draws the curve of any function y=f(x)y = f(x) the moment you type it. Enter as many as eight functions, each in its own colour, and compare them on the same axes: a parabola against a line, sin⁡x\sin x against cos⁡x\cos x, a cost curve against a revenue curve. It is a full online graphing calculator that runs in your browser, on a phone as well as on a laptop, with nothing to install and no account.

Beyond the picture, it does the reading for you. Hover over a curve (or tap it on a touch screen) to see the exact coordinates of the point under your finger. The panel under the graph lists the zeros of the first two functions and the points where they intersect, computed numerically to about ten significant digits, and a table of values gives f(x)f(x) for any starting value and step. When you have a graph worth keeping, copy the link: the functions, colours and window are stored in the address, so whoever opens it sees exactly the same picture.

How to use this calculator

  1. Type a function in the row labelled y₁, using x as the variable: x^2 - 2, 2x + 1, sin(x), sqrt(x) or e^(-x^2). You may also write it as an equation, y = 3x - 4 or f(x) = x^3.
  2. Add more curves with Add function. Click the coloured dot to change a curve's colour, untick the box to hide it, or press × to remove it.
  3. Move around the plane: drag the graph to pan, use the mouse wheel or pinch with two fingers to zoom, or use the + and − buttons. The circular arrow brings back the standard window, from −10 to 10 on the x-axis.
  4. Read points: hover over or tap a curve. The marker snaps to the nearest curve and shows (x, y).
  5. Check the zeros and intersections in the panel below. Click any value to place the marker on it.
  6. Build a table of values by choosing the first x and the step; for example a start of 0 and a step of 0.5.
  7. Choose radians or degrees for the trigonometric functions. Radians are the default, as in every calculus textbook.

The graph can also be driven from the keyboard: focus it with Tab, then use the arrow keys to pan, + and − to zoom and 0 to reset.

The formula

A function grapher turns y=f(x)y = f(x) into a picture by evaluating ff at many values of xx and joining the points. This one samples one point every two pixels, then splits any step where the curve moves more than about one and a half pixels vertically, so steep parts stay smooth.

Joining points blindly would draw false vertical lines across asymptotes. Before connecting two samples, the plotter halves the gap repeatedly: if the jump shrinks, the function is just steep and the points are joined; if it stays as large while the interval becomes tiny, the function is discontinuous there and the line is broken. That is why tan⁡x\tan x appears as separate branches at x=±π2,±3π2,…x = \pm\frac{\pi}{2}, \pm\frac{3\pi}{2}, \dots and why 1x\frac{1}{x} has a gap at 0.

Zeros are found where ff changes sign between two neighbouring sample points. The intermediate value theorem guarantees a root in that interval when ff is continuous, and the bisection method narrows it down: halve the interval, keep the half where the sign changes, repeat until the two ends agree to machine precision. A sign change across a pole such as tan⁡x\tan x at π2\frac{\pi}{2} is rejected because ∣f∣|f| is huge there instead of close to 0. Roots where the curve only touches the axis, like x2x^2 at 0, are caught by minimising ∣f∣|f|. Intersections of y1y_1 and y2y_2 are simply the zeros of the difference:

y1(x)=y2(x)  ⟺  y1(x)−y2(x)=0y_1(x) = y_2(x) \iff y_1(x) - y_2(x) = 0

Supported functions and notation:

Type Write
Powers and roots x^2, x², sqrt(x) or √x, cbrt(x)
Trigonometry sin, cos, tan, asin, acos, atan
Hyperbolic sinh, cosh, tanh and their inverses asinh…
Exponential and logs exp(x) or e^x, ln(x), log(x) (base 10), log2(x), log(b, x)
Other abs(x), intg(x) (floor), int(x) (integer part)
Constants π or pi, e

Multiplication can be implied: 2x, 3(x+1) and x(x-2) all work.

Worked example

The calculator opens with y1=sin⁡xy_1 = \sin x and y2=x24y_2 = \frac{x^2}{4} in radians. Where do they meet?

On the standard window from −10 to 10, the panel lists two intersections: the origin (0, 0) and the point (1.93375, 0.934851). You can check the second one by hand: sin⁡(1.93375)≈0.934851\sin(1.93375) \approx 0.934851 and 1.933752/4≈0.9348511.93375^2 / 4 \approx 0.934851. There are no others, because x24>1≥sin⁡x\frac{x^2}{4} > 1 \ge \sin x as soon as ∣x∣>2|x| > 2, and for negative x between −2 and 0 the sine is negative while the parabola is positive.

The same panel gives the 7 zeros of sin x in view: 0 and the multiples of π, such as 3.14159 and 6.28319, up to 9.42478 (that is 3π3\pi). The parabola has a single zero, at 0, where it touches the x-axis without crossing it.

Now replace y₂ with x^2 - 2: its zeros are ±2\pm\sqrt{2}, shown as ±1.41421.

Tips for asymptotes, zooming and intersections

  • Asymptotes. Rational and trigonometric functions such as 1/(x-2) or tan(x) are drawn as separate branches. If a curve seems to vanish, it is probably very large: zoom out, or move the window up or down.
  • Zooming. The scale is the same on both axes, so circles look round and slopes look true. Zoom around a feature by placing the pointer on it before scrolling; on a phone, pinch with two fingers centred on the point.
  • Finding intersections precisely. The list only covers the visible x range. To find where two curves cross outside it, pan or zoom out first. Clicking an entry moves the marker there, which is handy to see which crossing is which.
  • Domains. Where a function is undefined, such as sqrt(x) for negative x or ln(x) for x ≤ 0, nothing is drawn and the table shows "undefined".
  • Degrees. Switch to degrees for school trigonometry with angles in degrees: the period of sin(x) then becomes 360, so zoom out to see a full wave.

This graph calculator is the visual companion of the scientific calculator. To solve an equation exactly, the quadratic formula calculator and the equation solver show the algebra, and the derivative calculator gives the slope of the curves you plot.

Frequently asked questions

How do I plot a function online?

Type the right-hand side of y = f(x) in a function row, for example x^2 - 4x + 3, and the curve appears straight away. To plot a function next to another one, press Add function and type the second expression. Each curve gets its own colour.

Is this online graphing calculator free?

Yes. It runs entirely in your browser, needs no account or download, and works on phones, tablets and computers. Your functions are not sent to a server; they only appear in the page address so that you can share the graph.

Why does tan x not show vertical lines?

Those lines would be false: tan x is not defined at π/2 + kπ, and its values jump from very large positive to very large negative there. The plotter detects the jump and breaks the curve. The vertical asymptotes themselves are not drawn as lines.

How accurate are the zeros and intersections?

They are found by bisection, which narrows each root to the limit of double-precision arithmetic, and are displayed with 6 significant digits. Two roots closer together than the sampling step (1/2000 of the visible width) can merge, so zoom in on a crowded area to separate them.

Can it draw 3D surfaces, parametric or polar curves?

No. This tool plots explicit functions of one variable, y = f(x), in two dimensions. For a circle, plot its two halves, sqrt(9 - x^2) and -sqrt(9 - x^2).

Can I share or save a graph?

Press Copy link. The link contains your functions, their colours, which ones are hidden, the angle unit and the current window, so opening it rebuilds exactly the same graph. You can also bookmark the page: the address updates as you work.

Sources

Last updated:

More Math calculators

People also use