3D Surface Plotter Help
Help

3D Surface Plotter Online

This 3D surface plotter turns a formula into an interactive graph you can spin around. Type an expression for z in terms of x and y — like sin(x)*cos(y) or x^2 - y^2 — and it draws the surface with WebGL, so you can drag to rotate and pinch or scroll to zoom. It runs entirely in your browser: no signup, no app to install, and nothing uploaded. Set custom X/Y domain bounds and grid resolution any time.

Type an expression for z in terms of x and y — like sin(x)*cos(y) or x^2 - y^2 — in the field above and the surface redraws instantly. Drag the graph to rotate it, pinch or scroll to zoom, and open Grid settings to change the X/Y range or resolution.

Ready to see your function in three dimensions?

Use the free 3D Surface Plotter →

How to plot a 3D surface from z = f(x, y)

There is one thing to type — the formula — and the graph updates the moment you change it, with no submit button:

  1. Open capsuletools.app/3d-surface-plotter/
  2. Type your function in the z = field, using x and y as the two variables (for example sin(x)*cos(y))
  3. Or tap a preset — the example chips (ripples, a saddle, radial waves) fill the field for you, which is handy on a phone
  4. Explore the surface — drag to rotate, pinch or scroll to zoom

Points where the function is undefined — a division by zero, or a square root of a negative number — are simply left as gaps in the surface, so an asymptote or a restricted domain won't crash the plot.

z = sin(x) * cos(y)  →  a gentle egg-carton of ripples
z = x^2 - y^2  →  a saddle that curves up one way, down the other
z = sin(sqrt(x^2 + y^2))  →  concentric radial waves

Rotate, zoom, and explore the graph

The graph is a live WebGL scene, not a flat picture. Drag anywhere on it to orbit the camera around the surface and look at it from above, below, or edge-on. Pinch with two fingers on a touchscreen, or use the mouse wheel on a desktop, to zoom in and out. A double-tap or double-click resets the view. Your chosen angle stays fixed while you edit the formula, so you can compare several functions from exactly the same viewpoint.

Set custom X/Y domain bounds and grid resolution

Open the Grid settings panel to control the region the surface covers and how finely it's drawn:

A Reset to defaults button returns the range to −5…5 on both axes and the resolution to 50×50.

Supported functions and notation

Formulas are parsed with a full expression engine, so most standard math notation works. Use * for multiplication and ^ for powers, and remember trigonometric functions take their argument in radians:

NotationMeaningExample
+ − * /add, subtract, multiply, dividex*y - 2
^powerx^2 + y^2
sqrt( )square rootsqrt(x^2 + y^2)
sin cos tantrig, in radianssin(x)*cos(y)
exp( ) log( )ex, natural logexp(-(x^2+y^2))
abs( )absolute valueabs(x) + abs(y)
pi  econstantssin(pi*x)

Frequently asked questions

What is a 3D surface plot?

A 3D surface plot is a graph of a function of two variables, z = f(x, y), drawn as a surface in three dimensions. For every (x, y) point on a flat base plane the function's value becomes the height (z), and joining those heights across a grid makes a landscape-like surface — peaks where the function is large, valleys where it is small. It is the standard way to visualize how one quantity depends on two inputs at once.

How do you graph z = f(x, y) in 3D?

Type the expression for z in terms of x and y, such as sin(x)*cos(y) or x^2 - y^2. The plotter samples an evenly spaced grid of x and y values across the chosen domain, evaluates the function at each point to get its height, and draws the connected surface with WebGL. Change the formula and the surface redraws immediately — there is no submit button.

How do I plot a 3D function online for free?

This 3D surface plotter is free and runs entirely in your browser — no signup, no install, and nothing uploaded. Enter a function of x and y, then drag to rotate and pinch or scroll to zoom the resulting surface. Because all the parsing and rendering happens on your own device, your formulas never leave it.

What is a 3D plotter?

A 3D plotter is a tool that turns a mathematical formula, or a set of data, into a three-dimensional graph you can view from any angle. This one plots functions of the form z = f(x, y) as an interactive surface you can rotate, zoom, and explore, which makes it easy to see maxima, minima, saddles, and symmetry that are hard to read off a flat 2D graph.

How do I rotate and zoom a 3D graph?

Drag on the graph to orbit the camera around the surface. To zoom, pinch with two fingers on a touchscreen or use the mouse wheel on a desktop. Double-tap or double-click resets the view to its starting angle. The camera angle you set stays put while you edit the formula, so you can compare different functions from the same viewpoint.

Is there a free online 3D graphing calculator?

Yes — this is a free, no-signup 3D graphing tool for surfaces of the form z = f(x, y). It focuses on plotting functions of two variables as rotatable surfaces rather than emulating a handheld calculator, and it works on phones and desktops alike straight from the browser.


Use the free 3D Surface Plotter →