Function Graph Plotter
Free online function graph plotter. Supports trigonometric, exponential, and logarithmic functions with no sign-up. 100% client-side and offline.
Loading tool...
What is Function Graph Plotter?
A Function Graph Plotter is a free online tool that visualizes one or more mathematical functions on an interactive canvas. Enter expressions in terms of x, such as sin(x), x^2, or exp(x), and the tool draws the curve instantly. You can zoom with the mouse wheel, pan by dragging, set exact axis ranges, and compare up to eight functions at once. A safe built-in expression engine handles trigonometric, exponential, and logarithmic functions without using eval or external libraries, and everything runs locally in your browser.
Key Benefits
- Plot multiple functions simultaneously with distinct colors
- Zoom and pan interactively or set exact axis bounds
- Safe expression engine supports a wide range of math functions
- High-resolution rendering with adaptive sampling near asymptotes
- Runs fully offline with no data uploads
Common Use Cases
- β’Visualize functions for math homework and classroom demos
- β’Compare several curves to find intersections and behavior
- β’Explore trigonometric, exponential, and logarithmic graphs
- β’Inspect function behavior near asymptotes and discontinuities
- β’Quickly check the shape of a formula before coding it
How to Plot a Function
- Enter a function: Type a function in terms of x, such as sin(x) or x^2, into the first expression field. The graph appears instantly.
- Add more functions (optional): Click Add to plot additional functions. Each gets its own color and a visibility toggle for easy comparison.
- Zoom and pan: Scroll the mouse wheel to zoom in or out, and drag the canvas to pan across the graph.
- Adjust the view: Use the View Bounds fields to set exact X and Y ranges, or click Reset to return to the default view.
Key Features
- Plot up to eight functions at once, each with its own color and visibility toggle.
- Interactive zoom and pan via mouse wheel, drag, and manual axis range inputs.
- Safe built-in expression engine supports +, -, *, /, ^, %, parentheses, and constants pi, e, and tau.
- Includes sin, cos, tan, asin, acos, atan, sinh, cosh, sqrt, abs, exp, log, log10, floor, ceil, and round.
- High-resolution adaptive sampling renders clean curves even near asymptotes.
- Runs 100% client-side and offline, so your formulas never leave your device.
Frequently Asked Questions
What functions can I plot?
You can plot any expression in terms of x using the supported operators (+, -, *, /, ^, %) and functions, including sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt, cbrt, abs, exp, log, ln, log10, log2, floor, ceil, round, sign, min, and max. Constants pi, e, and tau are also available.
How do I plot multiple functions at once?
Click the Add button to create additional function rows. Each function gets a distinct color and a visibility toggle, so you can compare several curves on the same axes.
Does the graph plotter work offline?
Yes. The expression engine and rendering run entirely in your browser, so the tool works fully offline and never uploads your formulas to any server.
How do I zoom and pan the graph?
Scroll the mouse wheel over the canvas to zoom toward the cursor, and click-and-drag to pan. You can also enter exact X and Y bounds in the View Bounds fields for precise control.