3D Graphing Calculator

Type z = f(x, y) to draw a 3D surface. Drag to rotate it, scroll or pinch to zoom, add more surfaces to compare, and use sliders for any extra letter.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the 3D graphing calculator

  1. Type a surface, such as z = sin(x)·cos(y) or just x^2 - y^2.
  2. Drag to rotate, scroll or pinch to zoom. The ⟳ button turns on auto-rotate; the home button resets the view.
  3. Set the x and y range (for example 5 means −5 to 5) and the detail level below the list.
  4. Add rows to draw more surfaces. With one surface, color shows height (purple low, yellow high); with several, each surface uses its row's color.

The z-axis scales itself to fit the surface, ignoring the most extreme 2% of points so a spike doesn't flatten everything else. Values that aren't real numbers, such as the square root of a negative, leave holes in the surface.

Surfaces to try

Type this Shape
z = x^2 + y^2 Paraboloid (a bowl)
z = x^2 - y^2 Saddle (hyperbolic paraboloid)
z = sin(x)·cos(y) Egg-crate waves
z = sin(sqrt(x^2 + y^2)) Ripples spreading from the center
z = exp(-(x^2 + y^2)/4) Bell-shaped bump (2D Gaussian)
z = sqrt(16 - x^2 - y^2) Top half of a sphere of radius 4
z = x·y Twisted saddle
z = 2x + 3y - 1 A tilted plane
z = a·sin(x) + b·cos(y) Waves with sliders for a and b

Reading a 3D graph

  • Height is z. Bright yellow areas are the highest values on the visible grid; dark purple the lowest.
  • Peaks and valleys are local maximums and minimums. A saddle point rises in one direction and falls in another, as at the center of x^2 - y^2.
  • Slices: fix one variable to see a 2D curve. On z = x^2 - y^2, the slice y = 0 is the parabola z = x², which you can draw on the 2D graphing calculator.
  • Planes: z = ax + by + c is always flat; its tilt is set by a and b.

Tips

  • Zoomed-in range: set the range to 1 or 2 to look closely at the center.
  • Steep functions: if the surface looks flat with a spike, shrink the range or pick a function without a singularity (for example 1/(x^2 + y^2 + 0.5) instead of 1/(x^2 + y^2)).
  • Use Fast detail on older phones and Fine for smooth screenshots.

How to type math

Use ^ for powers, sqrt() for square roots, exp() or e^ for exponentials, pi for π, and sin cos tan ln log abs. Multiplication can be implied: 2xy means 2·x·y. Any letter other than x, y and z gets a slider.

FAQ

Can I graph a sphere or other implicit 3D surface?

This calculator draws surfaces of the form z = f(x, y). For a sphere, graph the top and bottom halves as two rows: z = sqrt(9 - x^2 - y^2) and z = -sqrt(9 - x^2 - y^2).

Is it free and does it work on a phone?

Yes. It runs in your browser with no sign-up. On a phone, drag with one finger to rotate and pinch to zoom.

Why is part of my surface missing?

Points where the function isn't a real number (square roots of negatives, logs of zero or negatives, division by zero) are skipped, so those areas show as gaps.

How do I compare two surfaces?

Add a second row. Each surface gets its own color, and where one passes through the other you'll see them cross.