On this page
Walk once around a loop through a swirling vector field and add up how much the field pushes you along. Stokes' theorem says you get the same number by adding up the field's local spin over any surface stretched across that loop.
What does Stokes' theorem say?
Take a vector field F, a closed curve C, and a smooth oriented surface S whose edge is C. Stokes' theorem says ∮ F·dr around C equals ∬ curl F·dS over S, as stated in Theorem 6.19 of OpenStax Calculus Volume 3, section 6.7.
The left side is the circulation of F around the loop. The right side is the flux of curl F: how much of the field's local spin passes through the surface.
The idea goes back to the 1850s. According to the history section of Wikipedia's article on Stokes' theorem, the theorem first appears in a letter from William Thomson to George Stokes dated 2 July 1850, and Stokes set it as question 8 on the 1854 Smith's Prize examination.
If you have met Green's theorem and how to use it, Stokes is the same statement lifted off the flat page. Green's theorem is the special case where S is a flat region in the xy-plane, so only the z-component of curl F counts.
Why does the surface not matter?
Chop S into many tiny patches. Around each patch, the circulation is about curl F·n times the patch's area. Now add up every patch. Each inner edge is walked twice, once in each direction, so it cancels. Only the outer edge C survives.
Nothing in that argument used the shape of S, only its edge and its orientation. A flat disc, a hemisphere or a bulging bag with the same rim all give the same answer. OpenStax says it directly: flux integrals of curl vector fields are surface independent.
How do you get the orientation right?
Use the right-hand rule. Curl the fingers of your right hand in the direction you travel around C; your thumb points along the normal n you must use in dS. OpenStax puts the same rule another way: walk along C with your head pointing along n, and the surface stays on your left.
A curve running counterclockwise seen from above pairs with a normal pointing up.
For a hemisphere sitting on the xy-plane, up means the outward normal.
Reverse either the curve or the normal and the answer changes sign, so check the pairing before you integrate.
How do you check Stokes' theorem on a hemisphere?
Take F = (−y, x, z) and let S be the upper hemisphere x² + y² + z² = R², z ≥ 0, with the outward normal. Its edge C is the circle x² + y² = R² in the plane z = 0. The outward normal at the top points up, so C runs counterclockwise seen from above.
Way 1, the line integral:
Parametrise C as r(t) = (R cos t, R sin t, 0), with 0 ≤ t ≤ 2π.
Then dr = (−R sin t, R cos t, 0) dt, and on C the field is F = (−R sin t, R cos t, 0).
So F·dr = (R² sin² t + R² cos² t) dt = R² dt.
Integrating over one turn gives ∮ F·dr = 2πR².
Way 2, the flux of curl F through the hemisphere:
curl F = (∂z/∂y − ∂x/∂z, ∂(−y)/∂z − ∂z/∂x, ∂x/∂x − ∂(−y)/∂y) = (0, 0, 2).
On the sphere the outward unit normal is n = (x, y, z)/R, so curl F·n = 2z/R.
In spherical coordinates z = R cos φ and dS = R² sin φ dφ dθ, with 0 ≤ φ ≤ π/2 and 0 ≤ θ ≤ 2π.
The integral becomes ∫∫ 2R² cos φ sin φ dφ dθ = 2R² × 1/2 × 2π = 2πR².
Both ways give 2πR².
Way 3, the shortcut: replace the hemisphere with the flat disc x² + y² ≤ R² in the plane z = 0, normal pointing up, the same orientation. There curl F·n = 2 everywhere, so the flux is 2 × πR² = 2πR².
Where will you use Stokes' theorem next?
In physics, Stokes' theorem links the loop form and the curl form of Ampère's and Faraday's laws. Picking a convenient surface for a flux also shows up in why a betatron needs twice the field inside its orbit and in Gauss's-law puzzles such as a charge at a cube corner.
Before you integrate, run this checklist:
Is C closed, and is it exactly the edge of S?
Does the normal match the direction around C by the right-hand rule?
Is there a simpler surface with the same edge?
Does a second method give the same number?
If curl and flux still feel abstract, the Fermi Concept Library gives each mathematics concept its own lesson and its place in the map. When you are ready to practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



