About Function Plotter
A function graph makes the behaviour of an expression visible: where it grows, where it crosses zero and where it is undefined. Plotting a formula is also a quick way to check a homework answer or a model before applying it to real data.
This plotter evaluates up to three expressions of x with the same safe parser as the scientific calculator, samples them across a domain you choose, and draws axes, grid and a legend. Undefined points break the line instead of joining across a gap, and the sampled values can be downloaded as CSV. Everything runs in your browser.
What this tool does
Up to three functions
Plot sin(x), a polynomial and a Gaussian together and tell them apart by colour and line style in the legend.
Safe expression parser
Expressions are tokenized and evaluated in the browser with no eval; x, π, e, powers, roots, logs and trig functions are supported.
Controllable domain and sampling
Set the x minimum and maximum and choose 200 to 800 evenly spaced samples for a smooth curve.
Discontinuities stay visible
Where a function is undefined or infinite, the line breaks instead of drawing a false connection across the gap.
Accessible SVG and CSV
The chart carries a text description and legend, and the sampled x/y values download as CSV for checking.
How to use Function Plotter
- 01
Enter the functions
Type one to three expressions using x, such as sin(x), x^2 or exp(-0.2x^2), or choose a preset.
- 02
Set the domain
Choose the x minimum and maximum; negative values are allowed and the range must be valid.
- 03
Adjust the sampling
Increase the sample count for smoother curves or reduce it for a smaller SVG download.
- 04
Read the graph
Check the axes, ticks and legend, and note where a curve breaks because the function is undefined.
- 05
Download the result
Save the chart as SVG for print or editing, and the sampled values as CSV for further analysis.
How this tool works
- Works with
- f(x) → GRAPH
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- 2D y = f(x) only: implicit equations, inequalities, parametric and polar curves are not supported.
- Sampling is uniform, so very sharp features can be missed with few samples; increase the sample count.
- Near-vertical asymptotes that stay finite are joined by steep lines; only non-finite samples break the curve.
Privacy and file handling
The expressions and the domain you enter are parsed, sampled and drawn with plain JavaScript inside your browser tab. Nothing is uploaded, logged or stored, and no request is made to a server while you plot. Closing the page clears the input.
Read the full privacy policy