🏔️3D Surface Plotter - Graph z = f(x, y) Online with Rotation, Contours and PNG Export
The graph of a two-variable function z = f(x, y) is a surface, and its shape is hard to picture from the formula alone. Type the formula and the tool samples it on a grid over your x and y ranges and draws a height-coloured 3D surface you can view from any angle. Switch to contours to see level curves on the surface and projected onto the floor. It is the 3D companion of the 2D function grapher — handy for multivariable calculus, partial derivatives, extrema and saddle points, or for illustrating slides.
Free · No sign-up · Runs in your browserLast updated:
Loading tool...
How to use 3D Surface Plotter
- 1Type the formula after “z =”, e.g. sin(x)*cos(y) or x^2-y^2
- 2Set the x and y ranges and the grid resolution (the z range is automatic)
- 3Drag to rotate, scroll or pinch to zoom, and switch between solid, wireframe and contours
- 4Add a second or third surface to compare, then export a PNG
FAQ
- How do I enter a function of x and y?
- Type only the right-hand side, e.g. x^2+y^2, sin(x)*cos(y) or exp(-(x^2+y^2)). You can drop the multiplication sign in 2x (but write 3x*y for 3xy), use ^ for powers, and functions such as sin, cos, tan, exp, ln, sqrt and abs plus the constants pi and e — the same syntax as the 2D grapher.
- Why does my surface have holes?
- Either the function is undefined there (sin(r)/r at the origin, ln of a negative number) or the values fall outside the z range. The automatic z range cuts off spikes that shoot to infinity, like 1/r, so the rest of the surface is not flattened; enter a larger z range to see the whole spike.
- What is the difference between a saddle and a monkey saddle?
- The saddle z = x² − y² has a minimum along x and a maximum along y at the origin — the textbook saddle point. The monkey saddle z = x³ − 3xy² has three downward directions (two legs and a tail) and all its second derivatives vanish at the origin, so the second-derivative test cannot classify it.
- What does the contour view show?
- Contours join points of equal height, just like the lines on a topographic map: where they bunch together the surface is steep. The tool draws coloured contours on the surface and projects them onto the floor, which makes extrema, saddle points and the direction of the gradient easy to spot.