3D Graph Documentation
Graph surfaces, curves, points and vectors in 3D
This guide covers every equation type, slider, range and function in the free 3D graphing calculator at ClippyTools. Every equation on this page has a Copy button: copy it, then paste it into an equation box in the calculator.
Quick start
- Open the calculator. Two equations are already drawn, and eight more examples are hidden.
- Click an equation box, type or paste an equation, and wait a moment. The graph updates by itself.
- Drag the graph to rotate it, scroll to zoom, and use the eye button on a row to show or hide it.
Try pasting this into a new row (press Add Surface first):
z = sin(x) * cos(y)
All surfaces are solid. A surface in front blocks whatever is behind it, so an object inside a sphere is hidden until you look from inside.
Ready to try the equations yourself?
Open the 3D graphing calculatorEquation types
The calculator decides the type from how you write the equation. The small badge at the left of each row shows what it understood.
| Type | How to write it | Variables | Example |
|---|---|---|---|
| Explicit surface S | z = f(x, y) or just an expression | x, y | z = x^2 - y^2 |
| Implicit surface I | Any equation with = that is not z = ... | x, y, z | x^2 + y^2 + z^2 = 25 |
| Parametric curve P | x = ..., y = ..., z = ... using t | t | x = cos(t), y = sin(t), z = t/3 |
| Parametric surface P | Same format, using v as well | u, v | x = 3*cos(u), y = 3*sin(u), z = v |
| Point • | (x, y, z) | sliders only | (2, 2, 2) |
| Vector → | vector((tail),(tip)) | sliders only | vector((0,0,0),(1,2,3)) |
| Slider = | A letter set to a number | none | a = 2 |
How each type is drawn
- Implicit surfaces are drawn by the graphics card (GPU raymarching), so they stay sharp at any zoom. They support a fixed list of functions (see Functions).
- Explicit and parametric graphs are built as meshes (80×80 points for explicit surfaces, 60×60 for parametric surfaces, 400 points for curves). Undefined points, such as
1/xat 0, leave a gap. - The spaces and capital letters in implicit equations do not matter:
X^2andx^2are the same.
Sliders
Use any letter that is not x y z t u v and not already a math name (e, pi, sin and so on). A slider appears under the equation rows.
z = a * sin(x) * cos(y) creates a slider named a.
- You can also define one on its own row:
r = 5sets the sliderrto 5. - A new slider starts at 1 with a range of −10 to 10. Edit the min and max boxes to change the range. Typing a value outside the range widens it.
- Press ▶ to animate. The value sweeps between min and max in about six seconds and bounces back.
- Sliders are shared: every equation that uses
auses the same value. - Sliders appear only for rows that are visible, so hidden examples do not add sliders until you show them.
- Implicit surfaces update instantly when you drag. Meshes are rebuilt as you drag, which can be slower on weak devices.
Sliders also work inside ranges and restrictions: x = cos(t), y = sin(t), z = t/3 {0<=t<=b}
Ranges and restrictions
Put conditions in curly braces after the equation. Separate several conditions with commas, which means "and".
Parameter ranges
Defaults: curves use t from −π to 3π, parametric surfaces use u and v from −π to π, and explicit surfaces cover the visible cube.
x = cos(t), y = sin(t), z = t/3 {0<=t<=6*pi}gives three turns.x = u, y = v, z = u*v {-2<=u<=2, -1<=v<=1}sets both ranges.z = sin(x)*cos(y) {-3<=x<=3}limits the domain of an explicit surface.- Bounds can be any expression, such as
2*pi. Use<=,<or ≤, and either order:{6>=t>=0}. - The older form also works:
x = cos(t), y = sin(t), z = t/3, t = 0..6*pi
General restrictions
Keep only the part of a surface or curve where a condition is true. This works on every equation type.
z = x^2 + y^2 {x^2+y^2<=9}a bowl cut at radius 3x^2 + y^2 + z^2 = 25 {z>=0}the top half of a spherex^2 + y^2 + z^2 = 25 {-2<=x<=2}a slab of a spherez = x*y {z>0, x<2}two conditions together
Points and vectors
- Point:
(1, 2, 3)draws a small sphere. - Vector from the origin:
vector((1,2,3)) - Vector between two points:
vector((0,0,0),(1,2,3))goes from the first to the second and ends in an arrowhead. - Coordinates can use sliders:
(a, 2*b, 3) - Items outside the visible cube are hidden, and a vector that crosses the edge is trimmed.
- Surfaces are solid, so a point or vector inside a sphere or under a surface cannot be seen from outside. Hide the other row with its eye button.
Functions and operators
Operators everywhere: + − * / ^, brackets, and the constants pi and e.
Implicit surfaces and their restrictions (GPU)
| Group | Supported |
|---|---|
| Roots and powers | sqrt cbrt pow(a,b) square cube hypot |
| Trigonometry | sin cos tan sec csc cot asin acos atan atan(y,x) atan2(y,x) |
| Hyperbolic | sinh cosh tanh |
| Exponentials and logs | exp log (natural) ln log(x, base) log2 log10 |
| Rounding and sign | abs floor ceil round(x) round(x, digits) sign fract |
| Other | min and max (up to 6 values) mod(a,b) and a % b |
Not available on the GPU: asinh and the other inverse hyperbolics, nthRoot, gamma, factorial, conditionals (? :), logic, random, matrices, strings, complex numbers, and constants other than pi and e. These show the red ? badge. Wrong argument counts, such as sqrt(x, y), also show ?.
x^(1/3) is undefined for negative x on the GPU. Use cbrt(x) instead. tan jumps to huge values near π/2, so expect steep sheets there.Explicit, parametric, points, vectors, ranges (CPU)
These use the full math.js function library: everything above plus asinh, nthRoot, factorial, gamma, mod and more. Anything that returns a complex number (for example sqrt(-1)) is treated as undefined and leaves a gap. random gives a different value at every point, so it looks like noise.
Controls and settings
| Action | How |
|---|---|
| Rotate | Drag. A quick flick keeps spinning until you click or touch again. |
| Pan | Right-drag (3D), or drag in 2D mode. One finger in 2D on touch screens. |
| Zoom | Scroll, pinch, or the + and − buttons. The range readout (±) shows the visible size, from ±0.5 to ±100. |
| Reset | The ⌂ button restores view, zoom and position. |
| 2D / 3D | 2D shows the XY plane from above. 3D is the rotating view. |
| Preset views | Front, Right, Top and Iso buttons (3D only). |
| 123 | Shows or hides the numbers along the axes. |
| Axes & grid | Toggle for the axes, labels, box and grid. |
| Snap to axes | When on, a slow drag that ends near an axis-aligned view snaps to it. |
| Ray steps | Quality of implicit surfaces, 32 to 384 (default 32). Raise it if thin or sharp surfaces show gaps or noise. Lower it for speed. |
Rows
- Up to 30 rows. Each has a colour picker, an eye button (show or hide) and a × button (remove). One row always stays.
- Badges: S surface, I implicit, P parametric, = slider, • point, → vector, ? not understood (red outline), ∅ nothing to draw in the current range.
- The graph updates about a quarter of a second after you stop typing.
The calculator uses WebGPU when your browser has it, and falls back to WebGL2. It needs one of them, so very old browsers may show an error instead of the graph.
Examples you can copy
Press Copy next to any equation (or click the equation), then paste it into an equation box in the calculator.
Copied an equation? Paste it in the calculator.
Go to the 3D graphing calculatorTroubleshooting
| Problem | What to do |
|---|---|
| I can't see my graph | Another solid surface may be in front. Hide other rows with the eye button, zoom out, or check that the equation fits inside the visible range. |
| Point or vector is missing | It may be inside a sphere or under a surface. Hide that row, or use coordinates outside it. |
| Red ? badge | The text is not understood. Check brackets and commas, and that implicit equations use only the GPU function list. For restrictions, use one of <=, >=, <, >. |
| ∅ badge | The equation is valid but nothing is drawn in the current range. Widen a range, zoom out, or check a restriction. |
| Gaps or noise on an implicit surface | Increase Ray steps. |
| Slow while dragging a slider | Lower Ray steps, hide unused rows, or avoid sliders in large mesh surfaces. |
| A surface vanishes after adding a restriction | The restriction may use a variable the equation does not have, such as t on a plain surface. |
| Graph does not load | Your browser needs WebGPU or WebGL2. Update it, or try a current Chrome, Edge, Firefox or Safari. |
Current limits
- Graphs cannot be saved or shared yet.
- Inequality solids such as
x^2+y^2+z^2 <= 25are not supported yet. Use an equation with a restriction instead. - Cut implicit surfaces are open, not capped.
Open the 3D graphing calculator
Free tools at ClippyTools.com