Vector calculusFree · No sign-up

Curl Calculator

This curl calculator finds ∇×F, the rotation of a vector field, with steps in Cartesian, cylindrical or spherical coordinates. It gives the curl vector and its magnitude at a point, tests whether the field is conservative and finds the potential function. Students and engineers use it for vector calculus homework, fluid vorticity and electromagnetism checks.

See the field map
  • Conservative test + potential function
  • 2D scalar curl and 3D curl
  • Spinning paddle wheel at the point
4
coordinate systems
2D + 3D
vector fields
8
ready-made examples
Curl engine
Coordinate system
Vector field F = ⟨P, Q, R⟩
P =
Q =
R =
p =
Preview
—Full solution ↓

Results

Your curl, as a spinning paddle wheel

The wheel at your point turns at half the curl: counterclockwise when the k-part is positive, clockwise when it is negative.

Interactive diagram

Field map and rotation

curl > 0 counterclockwisecurl < 0 clockwise

Curl

Components

Step-by-step solution

—

    Step by step

    How to Use the Curl Calculator

    To use the curl calculator, follow these 5 steps. The result and the map update as you type.

    1. 1

      Pick the coordinate system

      Choose 2D, Cartesian, cylindrical (r, θ, z) or spherical (ρ, φ, θ). The labels of the 3 inputs change to match.

    2. 2

      Type the components

      Use the variables of the system: -y and x in 2D, x*y in Cartesian, rho*sin(phi) in spherical.

    3. 3

      Add a point (optional)

      Enter coordinates in the same system, angles in radians, for example 2, pi/4, 1.

    4. 4

      Read the result

      Check the curl, its value and magnitude at the point, and the potential function when the curl is 0.

    5. 5

      Explore the map

      Drag the point across the map. The paddle wheel speeds up, stops or turns the other way.

    Try an example:

    Definition

    What Is the Curl of a Vector Field?

    The curl of a vector field is a vector that measures how much the field rotates around each point: its direction is the axis of rotation and its magnitude is twice the local rotation speed. For F = ⟨P, Q, R⟩, the curl is written curl F or ∇ × F, the cross product of the nabla operator with F.

    Each component of the curl is a circulation density, the circulation of F around a tiny loop divided by the area of the loop. For the k-component, the loop lies flat in the xy-plane:

    The sign of the circulation gives the sense of rotation. A positive k-component means counterclockwise rotation, seen from above, and a negative one means clockwise rotation. A field with curl 0 everywhere is irrotational.

    Curl is a topic of Calculus III and vector calculus, next to the gradient and the divergence, and the central operator of fluid dynamics, aerodynamics and electromagnetism.

    Circulation explorer: shrink the loop and circulation / area becomes the curl
    circulation ∮ F · dr—
    circulation / area—
    curl (k) at (0.6, 0.4)—
    field—

    Orange arrows on the loop run with the counterclockwise direction and teal arrows run against it; the shading is the k-component of the curl. For ⟨−y³, x³⟩, circulation / area equals 1.56 + 1.5r² and reaches the curl 1.56 as r goes to 0. Try the point vortex: the ratio is 0 until the loop reaches the origin at r ≈ 0.72.

    The word curl in other subjects
    SubjectWhat "curl" meansFormula or example
    Vector calculus (this page)rotation of a vector field
    Strength traininga biceps, hammer, preacher or leg curl liftone-rep max (1RM) = w(1 + reps/30), the Epley formula
    SoftwarecURL (Client URL), a command-line tool for HTTP requestscurl -X GET https://example.com
    Hair carea curl pattern, from type 2A waves to 4C coilsnone

    A barbell curl of 30 lb (13.6 kg) for 10 reps gives an estimated 1RM of 30 × (1 + 10/30) = 40 lb (18.1 kg) by the Epley formula, and 30 × 36/(37 − 10) = 40 lb by the Brzycki formula. The rest of this page covers the vector calculus curl.

    Formula

    Curl Formula (Determinant Form)

    The curl formula is the 3 × 3 determinant with the unit vectors i, j, k in the first row, the partial derivative operators ∂/∂x, ∂/∂y, ∂/∂z in the second row and the components P, Q, R in the third row.

    Expand the determinant along the first row, cofactor by cofactor, to get the component formula:

    Each component of the curl uses the 2 variables that its own axis leaves out. The i-component, CURL X, has only y and z derivatives; the j-component, CURL Y, has only z and x derivatives; the k-component, CURL Z, has only x and y derivatives. The components Fx, Fy, Fz are the same functions as P, Q, R.

    Mind the middle sign. The cofactor expansion puts a minus in front of the j-term, which turns into ∂P/∂z − ∂R/∂x, with P first.

    Determinant breakdown: each component, then the curl (live engine)

    —

    eMathHelp, Symbolab and Wolfram Alpha return ∇ × F as a formula; Mathematica uses Curl[{P, Q, R}, {x, y, z}] and Python's SymPy has sympy.vector.curl. The determinant is the same 3 × 3 rule a matrix determinant calculator or a cross product calculator applies to numbers.

    Plane fields

    2D Curl (Scalar Curl)

    The 2D curl of a plane field F = ⟨P, Q⟩ is the scalar ∂Q/∂x − ∂P/∂y. The scalar curl is the k-component of the 3D curl of ⟨P, Q, 0⟩: the i- and j-components vanish, since P and Q do not depend on z and R = 0.

    Straight streamlines can still rotate, and curved streamlines can carry no rotation:

    • Shear flow ⟨y, 0⟩: every arrow points along x, yet the curl is 0 − 1 = −1. The faster flow on top turns a paddle wheel clockwise.
    • Point vortex ⟨−y, x⟩/(x² + y²): every arrow circles the origin, yet the curl is 0 away from the origin. The speed falls off at exactly the rate that cancels the turning.

    Rotation is a property of the point, not of the path the flow takes.

    Straight but rotating, curved but irrotational

    Left: shear ⟨y, 0⟩, curl = −1 everywhere (teal shading). Right: point vortex, curl = 0 everywhere except the origin (no shading).

    Curvilinear coordinates

    Curl in Cylindrical and Spherical Coordinates

    The curl in cylindrical and spherical coordinates adds scale factors to the derivatives, r in cylindrical and ρ and sin φ in spherical, and writes the result in the unit vectors of that system.

    Cylindrical (r, θ, z)

    F = Fr er + Fθ eθ + Fz ez

    Spherical (ρ, φ, θ), φ from +z

    F = Fρ ρ̂ + Fφ φ̂ + Fθ θ̂

    For a swirl F = Fθ(r) eθ, the cylindrical curl reduces to (1/r) d(rFθ)/dr in the z-direction. The circulation around a circle of radius r is 2πr Fθ, so the curl is 0 exactly when rFθ stays constant.

    • Fθ = r (rigid rotation): curl = (1/r)(2r) = 2 ez.
    • Fθ = 1/r (point vortex): curl = (1/r)(0) = 0 for r > 0.

    In spherical coordinates, the rigid rotation about the z-axis is Fθ = ρ sin φ. Its curl is 2 cos φ ρ̂ − 2 sin φ φ̂, which is the constant vector 2k written in spherical unit vectors.

    Swirl explorer: circulation on 2 circles for Fθ = rⁿ
    Γ on r = 0.8 (2πrF_θ)—
    Γ on r = 1.5 (2πrF_θ)—
    curl (e_z)—
    between the circles—

    The curl equals (n + 1) rⁿ⁻¹. At n = −1, both circles carry Γ = 2π and the ring between them has curl 0, the point vortex.

    Method

    How to Calculate Curl in 4 Steps

    To calculate curl, list the components, find the 6 cross partial derivatives, combine them into 3 components and evaluate at the point. The 4 steps below use F = ⟨cos y, xz, y²⟩ at (1, 0, 2).

    01

    Name the components

    To start, read off P, Q and R in order:

    02

    Find the 6 partial derivatives

    To fill the formula, take each component in the 2 variables it does not own:

    03

    Subtract in pairs

    To build the curl, subtract in the order i, j, k:

    04

    Evaluate at the point

    To evaluate at (1, 0, 2), substitute x = 1, y = 0, z = 2:

    Physical meaning

    What Curl Means: Rotation and the Paddle Wheel

    Curl means local rotation: a small paddle wheel placed in a flow spins about the axis of ∇ × F with angular speed |∇ × F|/2. The wheel turns counterclockwise, seen from the tip of the curl vector, by the right-hand rule: point the right thumb along ∇ × F, and the fingers curl in the direction of the spin.

    For a fluid with velocity field v, the curl is the vorticity, ω = ∇ × v. A body rotating rigidly at angular velocity Ω has v = Ω × r and vorticity 2Ω, so the rotation speed is half the curl.

    Curl in physics and engineering
    FieldCurl equationMeaning
    Fluid velocity vω = ∇ × vvorticity, the spin of fluid particles
    Magnetic field B∇ × B = μ₀Jcurrent flowing around a wire makes B circle it
    Electric field E∇ × E = −∂B/∂tFaraday's law of induction
    Airflow over a wingL′ = ρVΓlift per unit span from circulation Γ

    Outside a long straight wire, B = μ₀I/(2πr) eθ, the point-vortex profile, so ∇ × B = 0 there; inside the wire, ∇ × B = μ₀J.

    Paddle-wheel explorer: drag the wheel across the field
    wheel at—
    curl (k)—
    ω = curl / 2—
    spin—

    F = ⟨y, 0⟩. In the shear flow, the wheel turns clockwise at every point. In the point vortex, the flow circles the origin, but a wheel placed anywhere off the origin does not spin.

    Conservative fields

    Irrotational and Conservative Fields

    An irrotational field has ∇ × F = 0; a conservative field is the gradient of a potential function, F = ∇f. Every conservative field is irrotational, and an irrotational field is conservative on a simply connected domain.

    01

    Finding a Potential Function

    To find a potential function f with ∇f = F, integrate P in x, then fix the leftover function with Q and R. For F = ⟨2xy + z, x², x⟩, which has curl 0:

    1. Integrate P in x: f = x²y + xz + g(y, z).
    2. Match Q: ∂f/∂y = x² + gy = x², so gy = 0 and g = h(z).
    3. Match R: ∂f/∂z = x + h′(z) = x, so h is a constant.

    The work along any path from A to B equals f(B) − f(A): from (0, 0, 0) to (1, 1, 1), the work is 2.

    Path independence: 3 paths from A to B in F = ⟨2xy, x²⟩
    work ∫ F · dr on this path—
    f(B) − f(A), f = x²y—

    Green curves are the level curves of the potential f = x²y; the arrows cross them at 90°. Every path gives the same work, 1.94.

    02

    Why Simply Connected Domains Matter

    Curl 0 proves a field conservative only on a simply connected domain, a region where every closed loop can shrink to a point without leaving the region. The plane, a ball and all of 3D space are simply connected; the plane with the origin removed is not.

    The point vortex ⟨−y, x⟩/(x² + y²) has curl 0 on the punctured plane, but its circulation around the unit circle is 2π, not 0. The loop cannot shrink past the hole at the origin, so the curl test says nothing about it. The would-be potential θ = atan2(y, x) jumps by 2π on each lap and is not a single-valued function.

    Hole explorer: slide the loop past the origin
    circulation Γ—
    loop—

    The curl is 0 at every point the loop touches, in both positions. The circulation is 2π ≈ 6.2832 whenever the loop wraps the hole, and 0 when it does not.

    Integral theorems

    Stokes' Theorem and Green's Theorem

    Stokes' theorem states that the circulation of F around a closed curve C equals the flux of ∇ × F through any surface S bounded by C.

    For F = ⟨−y, x, 0⟩ and the unit disk, ∇ × F = 2k, so the flux is 2 × π = 2π. The circulation around the unit circle agrees: F · T = 1 at every point, times the length 2π. The orientation follows the right-hand rule, with C counterclockwise seen from the side n points to.

    Green's theorem is Stokes' theorem for a flat region D in the xy-plane.

    For F = ⟨−x²y, xy²⟩ on the unit square [0, 1] × [0, 1], the scalar curl is x² + y² and the double integral is 1/3 + 1/3 = 2/3, the same as the circulation around the 4 sides. Both theorems need F smooth on the whole region; the point vortex breaks Green's theorem on any square around the origin. Circulation along a curve is computed by the line integral calculator.

    Green's theorem explorer: circulation around the square = ∬ curl F dA
    circulation ∮ F · dr—
    ∬ (Qx − Py) dA—

    F = ⟨−x²y, xy²⟩. Orange side arrows run with the counterclockwise direction and teal arrows run against it.

    Identities

    Identities: div(curl F) = 0 and curl(∇f) = 0

    The 2 identities state that the divergence of a curl is always 0 and the curl of a gradient is always 0, for every field with continuous second partial derivatives.

    Both identities follow from the equality of mixed partial derivatives (Clairaut's theorem). Expand ∇ · (∇ × F), and the 6 second derivatives cancel in pairs, for example Ryx − Rxy = 0. Expand ∇ × (∇f), and each component is a difference such as fzy − fyz = 0.

    • div(curl F) = 0: a curl field is divergence-free. Magnetism uses this: ∇ · B = 0 lets B = ∇ × A, with A the vector potential.
    • curl(∇f) = 0: a gradient field is irrotational. Every conservative force, such as gravity or the electrostatic force, has curl 0.

    The converses hold on simply connected domains: a curl-free field there is a gradient, and a divergence-free field on all of 3D space is a curl. Divergence is computed by the divergence calculator, and ∇f by the gradient calculator.

    Identity check on the live engine

    div(curl F) for a chosen F

    curl(∇f) for a chosen f

    The engine differentiates symbolically, then simplifies. Every result ends at 0 and ⟨0, 0, 0⟩.

    Practice

    Worked Examples

    There are 4 worked examples below: a rotation field, a polynomial field at a point, a conservative field with its potential and the point vortex. Each one loads into the calculator with one click.

    2D

    Rotation Field ⟨−y, x⟩

    1. Components:
    2. Scalar curl:
    3. Angular speed:

    Answer: at every point. The field is rigid rotation at 1 rad/s counterclockwise, and every paddle wheel spins at that rate.

    3D

    curl ⟨xy, yz, zx⟩ at (1, 2, 3)

    1. i:
    2. j:
    3. k:
    4. At (1, 2, 3):

    Answer: , with magnitude √14 ≈ 3.7417 at (1, 2, 3). The map shows the slice z = 3, shaded by the k-component −x.

    conservative

    Conservative Field and Its Potential

    F = ⟨yz, xz, xy⟩.

    1. Curl:
    2. Integrate P in x:
    3. Match Q and R:

    Answer: . The work from (0, 0, 0) to (1, 1, 1) is f(1, 1, 1) − f(0, 0, 0) = 1 on every path. The map shows the 2D field ⟨2xy, x²⟩ with its potential x²y.

    counterexample

    The Point Vortex: Curl 0 but Not Conservative

    F = ⟨−y, x⟩/(x² + y²), defined for (x, y) ≠ (0, 0).

    1. Qx:
    2. Py:
    3. Curl:
    4. Unit circle:

    Answer: curl 0 everywhere it is defined, yet the circulation is 2π ≠ 0, so the field is not conservative. The domain has a hole at the origin.

    Questions

    Frequently Asked Questions

    What does a curl of zero mean?

    A curl of zero means the field has no local rotation at the point: a small paddle wheel placed there does not spin. A field with curl 0 everywhere is irrotational. On a simply connected domain, such as all of 3D space, curl 0 means the field is conservative: F = ∇f for a potential f, and the work between 2 points does not depend on the path.

    Is curl defined in 2D?

    Yes, curl is defined in 2D as the scalar ∂Q/∂x − ∂P/∂y, the k-component of the 3D curl of ⟨P, Q, 0⟩. A positive scalar curl means counterclockwise rotation and a negative one clockwise rotation. For the rotation field ⟨−y, x⟩, the 2D curl is 1 − (−1) = 2.

    How is curl different from divergence?

    Curl is different from divergence in what it measures and what it returns: curl measures rotation and returns a vector, divergence measures outflow and returns a scalar. Curl is the cross product ∇ × F; divergence is the dot product ∇ · F. The field ⟨−y, x, 0⟩ has curl 2k and divergence 0; the field ⟨x, y, 0⟩ has curl 0 and divergence 2.

    Does zero curl always mean conservative?

    No, zero curl means conservative only on a simply connected domain. The point vortex ⟨−y, x⟩/(x² + y²) has curl 0 on the plane without the origin, but its circulation around the unit circle is 2π, so no single-valued potential exists. On all of 3D space, a ball or any region without holes, curl 0 does guarantee F = ∇f.

    What is the right-hand rule for curl?

    The right-hand rule for curl says point the right thumb along ∇ × F, and the curled fingers show the direction of rotation. For ⟨−y, x, 0⟩, the curl 2k points up the z-axis and the rotation is counterclockwise, seen from above. The same rule orients the boundary curve in Stokes' theorem.

    This curl calculator finds ∇×F with steps in 4 coordinate systems, tests whether a field is conservative, finds the potential function and shows the spin on a field map.