Divergence Calculator

Compute divergence of a vector field.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter the components of a vector field, one per line, to get its divergence. For F = (x², y², z²) the divergence is 2x + 2y + 2z.

How to use

1
Step 1
Type each component on its own line.
2
Step 2
List the variables, like x,y,z.
3
Step 3
Press Calculate.

How it works

Divergence measures how much the field spreads out from a point. A positive value means a source, a negative value a sink, and zero an incompressible flow. The Divergence Theorem turns the surface flux of F into the volume integral of ∇·F.

∇·F = ∂P/∂x + ∂Q/∂y + ∂R/∂z

Worked example

A cyclic field

Input
F = (x*y, y*z, z*x)
Output
y + z + x
Walkthrough
∂(xy)/∂x = y, ∂(yz)/∂y = z, ∂(zx)/∂z = x. Their sum is y + z + x.

Limitations

  • Each component is differentiated by its matching variable, in the order you list them.

Questions

What is the divergence of (x², y², z²)?
2x + 2y + 2z.
What is the divergence of (xy, yz, zx)?
x + y + z.
What does zero divergence mean?
The field neither spreads out nor converges at that point.

Features

  • Three components
  • Symbolic result
  • Runs in your browser

Related resources

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

  • Definite integrals intro

    Khan Academy

    Definite integral basics for area-under-curve calculators.

    Watch on YouTube
  • Vectors | Essence of linear algebra

    3Blue1Brown

    Linear algebra intuition for matrix and vector tools.

    Watch on YouTube