Graphing Calculator
A graphing calculator turns an equation into a picture. Plot up to four functions on an interactive grid — no sign-up, no download, and nothing leaves your browser. Type a function of x, such as x^2 or sin(x), and the curve appears instantly.
Drag the graph to pan, use the zoom buttons or your mouse wheel, and read off roots, intercepts and values at any x below the graph.
Enter any x to read each function's value there.
Values at x = 2
How It Works
A graphing calculator turns an equation into a picture. You type a function of x — a rule that gives one y value for every x — and the calculator evaluates that rule at hundreds of x positions across the visible range, then joins the points into a smooth curve. Where the curve crosses the x-axis, the function equals zero: those crossings are the roots. Where it crosses the y-axis, x is zero: that point is the y-intercept. A system of equations — several equations to solve at once — is usually handled with matrices, not a graph.
Under the hood, your expression is read by a small parser that understands numbers, the variable x, the constants pi and e, the operators + − * / and ^, parentheses, and the functions sin, cos, tan, asin, acos, atan, log, ln, sqrt, abs and exp. The parser builds the calculation step by step — it never runs your text as code — so a mistake like a missing bracket produces a clear error message instead of a crash, and the other functions keep plotting.
Roots are found numerically. The calculator samples the function in fine steps across the visible x-range and watches for a sign change — a step where the value flips from positive to negative or the other way round. Each sign change brackets a root, and bisection (repeatedly halving the bracket) pins the root down to about 6 decimal places. A root exactly at a sampled point is caught directly. Because the search only covers the visible range, widen the x limits if a root you expect is missing from the table.
Discontinuities are handled too. A function like 1/x shoots off towards infinity near x = 0, and tan(x) has vertical jumps; the plotter breaks the curve wherever the value jumps by more than five times the visible y-range in a single step, so you see the two separate branches instead of a misleading vertical line.
Worked Example
Plot f(x) = x² − 4 — type x^2 - 4 in the first box and clear the others. It is a parabola opening upwards. At x = 3, the value is 3² − 4 = 9 − 4 = 5. At x = 0, the value is 0 − 4 = −4, so the y-intercept is (0, −4). The roots are where x² − 4 = 0, which factors as (x − 2)(x + 2) = 0, giving x = −2 and x = 2 — exactly the two crossings the calculator lists in the roots table.
Try a second function to see how curves compare: g(x) = sin(x). At x = π/2 (about 1.5708) it reaches 1, its highest point, and it crosses the x-axis at 0, ±π, ±2π and so on — within the −10 to 10 window you will see seven crossings: −3π, −2π, −π, 0, π, 2π and 3π (about ±9.4248, ±6.2832, ±3.1416 and 0). A number sequence can be pictured the same way — one point per term — and the shape of the points shows the pattern at once.
Assumptions
- Angles are in radians. sin, cos and tan take radians, as in most graphing tools: sin(π/2) = 1. If you are working in degrees, convert first — multiply by π/180, for example sin(30*pi/180).
- log means base 10; ln means base e. So log(100) = 2 and ln(e) = 1. There is no log with a custom base; use ln(x)/ln(b) for log base b.
- Only real values are plotted. Where a function is undefined — sqrt of a negative number, log of zero — that part of the curve is simply left blank, and the value lookup says "undefined".
- Roots are numeric approximations to about 6 decimal places, found only inside the current x-range. Roots that only touch the axis without crossing it (like x² at 0) are still listed when a sampled point lands on them.
- The graph is drawn from sampled points (about 600 across the window), so extremely narrow spikes between samples can be missed. Zoom in if a curve looks suspiciously smooth near a sharp feature.
Sources: No external data is used on this page — every figure is calculated from the expressions you enter. Last reviewed: 15 November 2026.
Built and tested by SumKitTool — see how we check our numbers.
How to Use This Calculator
Type a function in any of the four boxes and press Plot (or Enter). The graph redraws as you type, so you can experiment freely — change x^2 to x^3 and watch the curve change shape. Drag the graph to pan it, use the zoom buttons or the mouse wheel to zoom, or type exact limits in the x and y boxes for a precise window. Reset view returns to −10 to 10 on both axes.
Below the graph, the value-at-x box shows every plotted function's value at the x you choose, and the table lists each function's y-intercept and all roots found inside the current x-range. If an expression cannot be read, an error message names the problem and the other functions still plot — fix the typo and the curve comes back.
Tips and Practical Advice
Graphing is the fastest way to build intuition for how a function behaves.
- Compare functions side by side. Plot x^2 and 2^x together to see which grows faster; plot sin(x) and cos(x) to see the phase shift.
- Use the graph to check algebra. Solved x² − 4 = 0 by hand? The roots table should show −2 and 2 — a quick visual check before you hand in homework.
- Zoom in on crossings. If two curves look like they meet, zoom in on the meeting point and use the value-at-x lookup to pin down the exact x.
- Watch for hidden behaviour. A function like 1/(x − 3) looks empty near x = 3 only because the curve shoots off the top of the window — widen the y-range to see the branches.
Frequently Asked Questions
How do I plot a function on this graphing calculator?
Type a function of x, such as x^2 or sin(x), into one of the four function boxes and press Plot — or just press Enter. The curve draws instantly on the grid. You can plot up to four functions at once, each in its own colour, and the legend below the graph shows which colour belongs to which function.
What functions and symbols can I type?
You can use x, the numbers pi and e, the operators + − * / and ^ (power), and parentheses. Supported functions are sin, cos, tan, asin, acos, atan, log (base 10), ln, sqrt, abs and exp. Writing 2x works the same as 2*x. Anything the calculator cannot read — such as a missing bracket — shows a clear error message instead of a broken graph.
How does the calculator find roots and intercepts?
It scans the visible x-range in small steps and looks for places where the curve crosses the y = 0 line, then refines each crossing with bisection until it is accurate to about 6 decimal places. The y-intercept is simply the value of the function at x = 0. Only roots inside the current x-range are listed, so widen the range if a root is missing.
Can I zoom and pan the graph on a phone?
Yes. Drag the graph with one finger to pan, use the Zoom in and Zoom out buttons, or type exact x and y limits in the range boxes. On a computer you can also use the mouse wheel over the graph to zoom. The Reset view button returns to the standard −10 to 10 window.
Related hub: Math Calculators — browse all 64 math calculators in one place.
Last updated: