Plot the graph of a mathematical function y = f(x) over a custom range using an interactive canvas.
📖 Cartesian Function PlottingFill in the fields on the left with your information, then press Calculate to see your result instantly. No sign-up required, and no data is sent anywhere — everything is calculated right in your browser.
The function graphing calculator plots the curve of any mathematical function y = f(x) directly on a Cartesian coordinate grid inside the browser, with no need for any external graphing software. Simply write the function using x as the variable, and specify the range of x values to plot, and the calculator computes the corresponding y value for a large number of x points within that range (approximately 400 points) and connects them with a continuous line to form the curve's shape. The x and y axes are drawn automatically if zero falls within the displayed range. This tool is very useful for students to visually understand the shape of linear, quadratic, and trigonometric functions, to quickly verify an algebraic solution before submitting homework, or to explore how a curve's shape changes when adjusting the function's coefficients. Sampling hundreds of points across the chosen range is what allows even sharply curving functions, like trigonometric or higher-degree polynomial curves, to appear smooth rather than visibly made of straight segments.
A function graphing tool does not actually know the true, continuous shape of a curve in the way a mathematician reasons about it algebraically — instead, it approximates the curve by calculating the y-value at a large number of closely spaced x-values across the chosen range, then connecting those individual points with short straight line segments.
This point-sampling approach explains why the number of sampled points matters directly for visual quality. Sampling only 10 points across a wide range would produce a visibly jagged, angular approximation of the true curve, especially anywhere the function changes direction sharply. Sampling several hundred points, as this tool does, makes the individual straight segments so short that the human eye perceives the result as a smooth, continuous curve, even though it is technically composed of many tiny straight lines joined end to end.
This same underlying technique — approximating a continuous curve with a large but finite number of sample points — is exactly how essentially all digital graphing software works, from simple browser-based tools to professional scientific and engineering plotting packages, differing mainly in how many points are sampled and how intelligently those points are distributed (sampling more densely in regions where the function changes rapidly, for instance).
Visualizing a function's graph builds intuition that pure algebra alone often does not provide as quickly. A quadratic function's parabola shape immediately shows whether it has zero, one, or two real roots (matching the discriminant's sign discussed for the quadratic formula), a trigonometric function's periodic wave shape makes its repeating pattern immediately obvious in a way a table of values does not, and a function with a discontinuity or vertical asymptote will visibly show a gap or a sharp break in the plotted curve.
Practically, graphing is a fast way to check an algebraic answer: after solving an equation by hand, plotting the corresponding function and checking where the curve crosses the x-axis should visually confirm the same roots that were found algebraically. It is also a valuable exploration tool for understanding how changing a function's coefficients — adjusting the 'a' in a quadratic, for instance — stretches, shifts, or reflects the resulting curve, building the kind of intuitive understanding of function behavior that is difficult to develop from equations alone.
You can use +, -, ×, ÷, ^ for powers, parentheses, and sin(, cos(, tan(, sqrt(, log(, ln(, along with π, using x as the variable.
The graph simply breaks at those points (like division by zero or the square root of a negative number) instead of drawing a false continuous line through them.
Yes, narrow the X Min and X Max range to focus on a smaller section of the function and re-plot it.