A graphing calculator draws the graph of a function so you can see its shape, where it crosses the axes and how it changes. Type up to three functions of x, such as x^2 - 4 or sin(x), and this free online graphing calculator plots them on one grid, finds the x-intercepts and y-intercept of each, and works out the value at any x you choose. It runs in your browser, with nothing to install.
What is the graph of a function?
The graph of a function f is the set of points (x, y) where y = f(x). When x and f(x) are real numbers, these points are Cartesian coordinates in a plane, and together they usually form a curve. Plotting that curve turns a formula into a picture: you can see at a glance where the function is positive or negative, where it rises and falls, where it has peaks and valleys, and where it is not defined at all.
How to use the graphing calculator
- Type a function in the y1 box. Write it in terms of x, for example 2x + 1, x^3 - 3x or sqrt(x). You can start with y = or f(x) = if you like; the calculator ignores it.
- Add up to two more functions in y2 and y3 to compare them on the same axes. Each one gets its own colour.
- Set the x range, the part of the x-axis you want to see. It starts at -10 to 10.
- Leave the y range empty to let the calculator fit the graph to the values, or enter your own minimum and maximum to zoom in.
- Choose radians or degrees for trigonometric functions.
- Press Plot graph. The graph updates as you type, and the table lists each function's y-intercept and x-intercepts in the range shown.
How to type functions
| To write | Type |
|---|---|
| Powers | x^2, x^3, 2^x |
| Multiplication | 3*x or simply 3x |
| Square and cube roots | sqrt(x), cbrt(x) |
| Trigonometry | sin(x), cos(x), tan(x), asin(x), acos(x), atan(x) |
| Logarithms | ln(x) for natural log, log(x) for base 10 |
| Exponential | exp(x) or e^x |
| Absolute value | abs(x) |
| Constants | pi, e |
Use brackets to make the order clear: 1/(x+1) is not the same as 1/x+1. The calculator reads what you type with its own parser, so a typo shows a message rather than a wrong graph.
Graphing calculator examples
A parabola: y = x^2 - 4
Plot x^2 - 4 from -10 to 10 and you get a U-shaped parabola. The table shows a y-intercept of -4, because putting x = 0 into the function gives 0 - 4. The x-intercepts are -2 and 2, the points where x^2 = 4. These are the roots of the equation x^2 - 4 = 0, so a graph is a quick way to check the answers to a quadratic equation.
A wave: y = sin(x)
In radians, sin(x) is a wave between -1 and 1 that crosses zero at every multiple of pi. Between -10 and 10 the table lists the x-intercepts as about -9.4248, -6.2832, -3.1416, 0, 3.1416, 6.2832 and 9.4248. Switch to degrees and set the x range to 0 to 360 to see one full wave in degrees instead.
Comparing two lines
Plot 2x + 1 as y1 and -x + 7 as y2. The lines cross where both give the same y. To find that point exactly, type 2x + 1 - (-x + 7) as y3: its x-intercept, 2, is the x where the two lines meet, and putting 2 into either line gives y = 5.
Reading the graph
- Y-intercept: where the curve crosses the vertical axis, the value of the function at x = 0.
- X-intercepts (roots or zeros): where the curve crosses the horizontal axis. The calculator finds them by looking for places where the value changes sign, then narrows each one down.
- Gaps and asymptotes: functions like 1/x and tan(x) shoot off towards infinity. The calculator breaks the line there instead of joining the two sides, and a jump across the axis is not listed as a root.
- Undefined values: sqrt(x) and ln(x) only exist for some x, so nothing is drawn where they are not defined.
Tips for a clearer graph
- Zoom with the x range. To see the detail near a root or a turning point, make the range smaller around it.
- Fix the y range when a function grows very fast, such as e^x, so the interesting part is not squashed flat.
- Check a value by typing it in the Value at x box. The table then shows the exact value of each function there.
- Save the graph with Download SVG. The file stays sharp at any size, so it is ideal for homework, notes and slides.
Who uses a graphing calculator?
Students use a graphing calculator to check homework, see what a new kind of function looks like, and test answers to equations before an exam. Teachers use it to show how changing a number in a formula moves or stretches a graph. It is just as handy outside the classroom, for example to compare two pricing plans drawn as straight lines and see where one becomes cheaper than the other.
Related math tools
For a single answer rather than a graph, use the scientific calculator. Find the gradient of a line with the slope calculator, and see what a function approaches with the limit calculator.
What next
Use this often? Add Graphing to your Home screen.
Frequently asked questions
How do I use the graphing calculator?
Type a function of x in the y1 box, such as x^2 - 4, set the x range and press Plot graph. Add up to two more functions to compare them on the same axes.
How does the graphing calculator find x-intercepts?
It looks for places in the range where the function changes sign, then narrows each one down until it finds where the value is zero.
Can I graph trigonometric functions in degrees?
Yes. Choose Degrees and set the x range in degrees, such as 0 to 360, to see one full wave of sin(x) or cos(x).
Why is there a gap in my graph?
The function isn't defined there or jumps towards infinity, as 1/x does at 0 and tan(x) does at 90 degrees. The calculator breaks the line instead of joining the two sides.
Can I save the graph?
Yes. Press Download SVG to save the graph as an image that stays sharp at any size.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.