This graphing calculator draws the curve of any function 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, against , 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 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
- Type a function in the row labelled y₁, using x as the variable:
x^2 - 2,2x + 1,sin(x),sqrt(x)ore^(-x^2). You may also write it as an equation,y = 3x - 4orf(x) = x^3. - 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.
- 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.
- Read points: hover over or tap a curve. The marker snaps to the nearest curve and shows (x, y).
- Check the zeros and intersections in the panel below. Click any value to place the marker on it.
- 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.
- 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 into a picture by evaluating at many values of 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 appears as separate branches at and why has a gap at 0.
Zeros are found where changes sign between two neighbouring sample points. The intermediate value theorem guarantees a root in that interval when 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 at is rejected because is huge there instead of close to 0. Roots where the curve only touches the axis, like at 0, are caught by minimising . Intersections of and are simply the zeros of the difference:
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 and 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: and . There are no others, because as soon as , 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 ). 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 , shown as ±1.41421.
Tips for asymptotes, zooming and intersections
- Asymptotes. Rational and trigonometric functions such as
1/(x-2)ortan(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 orln(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
- OpenStax — Precalculus 2e, 6.2 Graphs of the other trigonometric functions
- OpenStax — Calculus Volume 1, 2.4 Continuity (intermediate value theorem)
- OpenStax — College Algebra 2e, 3.2 Domain and range
- Bisection method (overview and convergence)
Last updated: