Gradient Calculator

Compute the gradient of a scalar field.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a function and its variables to get the gradient vector, one partial derivative per variable. ∇(x² + y² + z) = (2x, 2y, 1).

How to use

1
Step 1
Type the function.
2
Step 2
List the variables, like x,y,z.
3
Step 3
Press Calculate.

How it works

The gradient points in the direction of steepest increase, and its length is the rate of increase in that direction. Setting every component to zero finds the critical points of f.

∇f = (∂f/∂x, ∂f/∂y, ∂f/∂z)

Worked example

Product of three variables

Input
f = x*y*z, variables x,y,z
Output
x: z*y, y: z*x, z: x*y
Walkthrough
Each partial leaves the other two variables as multipliers: ∂/∂x of xyz = yz.

Limitations

  • List every variable the function uses; ones you omit are treated as constants.
  • Components are not algebraically simplified.

Questions

What is the gradient of x² + y² + z?
(2x, 2y, 1).
What is the gradient of xyz?
(yz, xz, xy).
What does the gradient point toward?
The direction in which f increases fastest.

Features

  • One partial per variable
  • Any number of variables
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Derivative as a concept

    Khan Academy

    Core derivative intuition for differentiation tools.

    Watch on YouTube
  • Rectangle area as product of dimensions

    Khan Academy

    Foundational area thinking across math tools.

    Watch on YouTube