Type a function of x — for example x^2, sin(x), 2x+3 or 1/x — and see its graph instantly. Add a second function to compare, and zoom in or out to explore intercepts, turning points and asymptotes.
Numbers, x, + − * / ^ and brackets, plus sin, cos, tan, sqrt, abs, log (base 10), ln, exp and the constants pi and e. Implicit multiplication works too: 2x, 3(x+1) and (x+1)(x-1) are all understood.
Those functions jump between very large positive and negative values at an asymptote. The plotter detects the jump and lifts the pen instead of drawing a false vertical line.
Use the caret: x^2 means x squared, x^3 cubed, and x^0.5 is the same as sqrt(x). Powers are right-associative, so 2^3^2 is read as 2^(3^2) = 512.
It starts at x from −10 to 10 and y from −10 to 10. Each zoom step multiplies the range by about 0.7 (in) or 1.4 (out).
The plotter parses each expression into tokens (numbers, x, operators, functions), inserts implied multiplication signs (2x → 2*x), and evaluates it with a recursive-descent parser that respects the standard order of operations: ^ binds tightest and associates to the right, then * and /, then + and −, with functions and brackets first. It then samples the function at 720 x-positions across the window and connects consecutive finite points, skipping gaps where the function is undefined or jumps across an asymptote.
Inputs: f(x) = x^2 − 4.
Steps: At x = 0, y = −4 (the lowest point). At x = 2, y = 4 − 4 = 0, and at x = −2, y = 0 — the two x-intercepts. At x = 3, y = 9 − 4 = 5.
Result: A parabola with vertex (0, −4) crossing the x-axis at −2 and 2, exactly as the graph shows.
Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.