Plot a function in the browser
No library, no plugin and no eval — the expression is tokenised, converted to reverse Polish notation and evaluated on a stack.
How Graphing Calculator works
This is a calculation, not a lookup: the expression is evaluated in the page and the steps are shown so the answer can be checked by hand. Because nothing is looked up remotely, the tool keeps working with the network off and cannot quietly change its answer between visits.
That is the whole architecture: static files, one script, no upload endpoint to leak or log. Close the tab and the work is gone.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Which functions are supported?
sin, cos, tan, sqrt, abs, log (base 10), ln, exp, floor, ceil, round, plus the constants pi and e and the variable x.
Why not just use eval?
Because eval runs whatever it is given, and this site's content policy blocks it anyway. A parser cannot execute anything — it can only produce a number.
How is the vertical range chosen?
From the sampled values in the window, with 8% padding. That is why a function with a pole can look compressed — narrow the x range to see the detail.
Can I plot two functions?
Not in this version. Plot them one at a time and compare against the grid.
Keep going
More math tools
Percentage Calculator
Work out percentages, increases, decreases and percentage differences with the formula shown for each answer.
Open toolAspect Ratio Calculator
Enter an original size and a new width or height — the other side is calculated to preserve the ratio.
Open toolRandom Number Generator
Pick numbers between a minimum and maximum using the browser's cryptographic random source.
Open toolDice Roller
Roll up to 100 dice of any standard type, add a modifier and see each face plus the total.
Open toolStandard Deviation
Paste a list of numbers to get mean, median, both standard deviations and variance.
Open toolFraction Calculator
Do fraction arithmetic and get the answer simplified to lowest terms with its decimal value.
Open tool