Gradient Calculator
Compute the gradient of a scalar field.
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 YouTubeRectangle area as product of dimensions
Khan Academy
Foundational area thinking across math tools.
Watch on YouTube
- Introduction to Integration
Math is Fun
Accumulation view that pairs with integral tools.
- Limits
Math is Fun
Limit basics that underpin derivative definitions.
More Math tools
See all ›Partial Derivative Calculator
Compute partial derivatives of multivariable functions.
Divergence Calculator
Compute divergence of a vector field.
Curl Calculator
Compute curl of a vector field.
Hessian Calculator
Compute the Hessian matrix of second derivatives.
Jacobian Calculator
Compute the Jacobian matrix of a vector map.