Home › Calculators › 3D Graphing Calculator

3D Graphing Calculator

Type z = f(x, y) to draw a 3D surface, or x(t), y(t), z(t) for a space curve. Drag to rotate, scroll to zoom, switch on contour lines and a contour map, plot several functions together and download the view as a PNG image.

Last updated:

Examples:
Functions
Plot range & display
Drag to rotate · scroll or pinch to zoom · right-drag or Shift-drag to pan
Advertisement
Advertisement

How to use the 3D Graphing Calculator

  1. Type a surface such as sin(x)*cos(y), x^2 - y^2 or e^(-(x^2+y^2)) in the z = box, or tap an example.
  2. Add more with + Surface or + Parametric curve (enter x(t), y(t), z(t) and the t range).
  3. Set the plot range for x and y. Leave z min and z max empty for automatic scaling.
  4. Rotate and zoom: drag the graph, scroll or pinch to zoom, Shift-drag to pan, or use the Top, Front and Side buttons.
  5. Turn on contours, mesh lines or color by height, then press Download PNG to save the picture.

Surfaces worth trying

Namez = f(x, y)Suggested rangeWhat to look for
Paraboloidx^2 + y^2−3 to 3Circular contours, minimum at the origin
Saddle (hyperbolic paraboloid)x^2 - y^2−3 to 3Up in one direction, down in the other; contours are hyperbolas
Egg cratesin(x)*cos(y)−5 to 5A grid of peaks and pits
Ripplesin(sqrt(x^2 + y^2))−10 to 10Concentric waves
Gaussian bumpe^(-(x^2 + y^2))−3 to 3Bell shape; its integral over the plane is π
Monkey saddlex^3 - 3x*y^2−2 to 2Three valleys around a flat critical point
Conesqrt(x^2 + y^2)−3 to 3Straight sides, a corner at the origin
Plane2x - y + 1−5 to 5Evenly spaced straight contours

Reading a 3D graph

  • Height and color: with Color by height on, low values are dark and high values are light, so the top view works as a heat map.
  • Contours and the gradient: the gradient ∇f = ⟨∂f/∂x, ∂f/∂y⟩ always points across the contour lines, straight uphill. Where contours bunch together the gradient is large.
  • Critical points: peaks and pits are surrounded by closed contour loops; at a saddle, contours cross in an X. Confirm them with the Partial Derivative Calculator by checking where both first partials are zero.
  • Traces: the Front view (looking along the y-axis) shows the surface's profile in the x–z plane, and the Side view shows the y–z profile.

Parametric curve ideas

Curvex(t)y(t)z(t)t range
Helixcos(t)sin(t)t/(2pi)0 to 6pi
Conical spiralt*cos(4t)t*sin(4t)t0 to 2pi
Trefoil knotsin(t) + 2sin(2t)cos(t) - 2cos(2t)-sin(3t)0 to 2pi
Viviani's curve1 + cos(t)sin(t)2sin(t/2)0 to 4pi
Line through a point1 + 2t-1 + t3 - t-2 to 2

Frequently asked questions

How do I graph a function of two variables in 3D?

Type the formula for z in terms of x and y, for example z = x^2 + y^2. The calculator evaluates it on a grid over your x and y range and connects the points into a lit surface. Use ^ for powers, sqrt() for roots and functions like sin, cos, ln and e^.

How do I plot a parametric curve in 3D?

Press + Parametric curve and enter x(t), y(t) and z(t) together with the start and end of t. A helix, for example, is x = cos(t), y = sin(t), z = t/(2pi) for t from 0 to 6pi. The curve is drawn as a tube so it stays visible from every angle.

What are contour lines?

A contour line joins all points where the surface has the same height, like the lines on a topographic map. The calculator draws them on the surface and can project them onto the floor as a contour map. Closely spaced contours mean the surface is steep there.

Why is part of my surface missing?

Points where the function is undefined (for example sqrt of a negative number, ln of zero, or division by zero) are left out. Parts that are outside the z range are clipped at the top or bottom of the box. Clear z min and z max to let the calculator choose the range automatically.

Can I plot two surfaces to see where they intersect?

Yes. Add a second surface and both are drawn in the same box with different color maps. Where one passes through the other you can see the intersection curve; the Two surfaces example shows a bowl meeting an upside-down bowl along a circle.

Does it need a fast computer?

No. It uses WebGL, which is built into every modern browser, and the default grid of 70 × 70 cells draws instantly on phones. Choose Fine or Very fine resolution for smoother surfaces on bigger screens. Everything runs locally; nothing is uploaded.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Partial Derivative CalculatorPartial derivatives ∂/∂x, ∂/∂y, second and mixed orders with steps, gradient and Hessian.Derivative CalculatorSymbolic derivative of any f(x) up to 5th order, with steps, slope at a point and a graph.Vector Calculator2D and 3D vectors: add, subtract, dot and cross product, magnitude, angle, unit vector, projection.Anaglyph 3D Image MakerTurn a left/right photo pair into a red-cyan 3D anaglyph or cross-eye stereo pair.DC Circuit SimulatorDraw batteries, resistors, bulbs and switches and see voltages and currents flow live.Normal Map GeneratorTurn a texture photo into normal, height, roughness and AO maps with a live 3D preview.Stereogram GeneratorMake Magic Eye style 3D autostereograms from text, shapes or your own depth map.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Domain and Range CalculatorFind the domain and range of a function in interval notation, with steps and a graph.Eigenvalue and Eigenvector CalculatorEigenvalues (real or complex), eigenvectors and the characteristic polynomial of a square matrix.Equation SolverSolve any equation for x: exact roots, complex roots, numeric answers, steps and a graph.Inequality CalculatorSolve linear, quadratic, rational and absolute value inequalities with steps and a number line.Inverse Function CalculatorFind the inverse f⁻¹(x) of a function with steps, domain restrictions and a graph.Laplace Transform CalculatorLaplace transform of f(t) with the table rule used for each term and the region of convergence.Limit CalculatorEvaluate limits at a point or at infinity, one-sided or two-sided, with steps, table and graph.Linear Interpolation CalculatorInterpolate or extrapolate y for any x from two points or a data table, with steps and a plot.Matrix Inverse CalculatorFind the inverse of a 2×2 to 8×8 matrix in exact fractions with Gauss–Jordan or adjugate steps.RREF CalculatorRow reduce any matrix to RREF with exact fractions, every row operation, pivots and rank.Stem and Leaf Plot MakerMake stem-and-leaf plots (standard, split stems or back-to-back) with a key; copy or save PNG.Taylor Series CalculatorTaylor and Maclaurin polynomials of any f(x) to order n, with exact coefficients and a graph.Antilog CalculatorInverse logarithm (antilog) in base 10, e, 2 or any base, with steps and scientific notation.Asymptote CalculatorFind vertical, horizontal and slant asymptotes and holes of a function, with graph and reasoning.Cramer's Rule CalculatorSolve 2x2 and 3x3 linear systems by Cramer's rule with every determinant shown step by step.Dot Plot MakerMake a dot plot or line plot from data or a frequency table; download PNG or SVG.Exponential Regression CalculatorFit y = a·bˣ or y = a·e^(kx) to data with r², predictions, residuals and a plot.Extended Euclidean Algorithm CalculatorFind gcd(a, b) and Bézout coefficients x, y with the full step-by-step division table.Factor Tree GeneratorDraw the prime factor tree of any number as a printable diagram, with exponent form and steps.Function Composition CalculatorFind f(g(x)), g(f(x)), f + g, f · g and f / g with values at a point and domains.X and Y Intercept CalculatorFind the x- and y-intercepts of lines, curves and functions with steps and a graph.Line Intersection CalculatorFind where two lines cross from equations, points or slopes, with parallel checks and a graph.Linear Programming SolverSolve max/min linear programs with the simplex method: tableau steps and a 2-variable graph.Modular Exponentiation CalculatorCompute a^b mod m for huge numbers with square-and-multiply steps (BigInt).Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Nth Term CalculatorFind the nth term formula of a sequence: arithmetic, geometric, quadratic or cubic.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial CalculatorAdd, subtract, multiply, divide and evaluate polynomials; see roots, degree and a graph.
See all 74 Algebra & Calculus Calculators →