What is the Graph Generator?
Graph mathematical functions online with this free graph generator. Enter y = f(x) expressions like sin(x), x^2, or exp(x) — plot up to 3 functions with axes, grid lines, and auto-scaling. Supports trig, log, sqrt, and polynomials. Runs instantly in your browser.
How to use the Graph Generator
- Enter one or more functions of x (one per line).
- Set the x range to plot (e.g. −6.28 to 6.28 for one period of sine).
- Optionally fix y minimum and maximum; leave blank for auto-scale.
- Review the live SVG graph with legend and coordinate axes.
- Compare multiple functions on the same axes.
Common use cases
- Visualizing sin, cos, and tan for trigonometry homework
- Comparing x^2 and 2*x on the same axes
- Graphing exponentials and logarithms
- Checking function behavior before calculus problems
- Quick function sketches for presentations
Frequently asked questions
- What expressions are supported?
- Polynomials (x^2), trig (sin, cos, tan), ln, log, sqrt, exp, abs, pi, and e. Use * for multiplication (2*x) and ^ for powers (x^3).
- How is this different from the Data Plotter?
- The Graph Generator plots functions y = f(x) from expressions. The Data Plotter graphs tabular x,y data you enter as numbers.
- Can I plot multiple functions?
- Yes. Enter up to 3 expressions, one per line. Each appears in a different color with a legend.
- How are discontinuities handled?
- Vertical asymptotes (e.g. 1/x at x = 0) break the line so spikes do not connect across undefined regions.
- Is my data sent to a server?
- No. Parsing and plotting happen entirely in your browser.