Vector calculusFree · No sign-up

Surface Integral Calculator

This surface integral calculator finds the flux ∬F·dS or the scalar integral ∬f dS over a parametric surface r(u, v), with exact answers. It shows the normal vector, each integration step and the surface in 3D, and it flips the orientation on request. Students and engineers use it for surface area, shell mass, fluid flux and Gauss's law in Calculus III and physics.

See the surface
  • Flux and scalar types
  • 7 ready surfaces or your own r(u, v)
  • v limits that depend on u
7
surface presets
Exact
by iterated integration
8
ready-made examples
Surface integral engine
Type
Normal
Vector field F = ⟨P, Q, R⟩ in x, y, z
P =
Q =
R =
Surface r(u, v) unit sphere
x =
y =
z =
u from
to
v from
to
Preview
—Full solution ↓

Results

Your surface integral, on the surface

Red sticks are the unit normals. Green patches add to the integral and orange patches subtract. For flux, the dashed teal arrows show the field.

Interactive diagram

Surface, normals and field

normalfieldadds integrand > 0

Surface integral

Double integral in u and v

Step-by-step solution

—

    Step by step

    How to Use the Surface Integral Calculator

    To use the surface integral calculator, follow these 5 steps. The value and the 3D surface update as you type.

    1. 1

      Pick flux or scalar

      Flux needs a vector field F; the scalar type needs a function f. Flip the normal if you need the other side.

    2. 2

      Type the field or the function

      Use x, y and z, for example F = ⟨x, y, z⟩ or f = x^2 + y^2.

    3. 3

      Choose the surface

      Tap a surface or type r(u, v). The v limits may use u, such as 1 - u for a triangle.

    4. 4

      Read the value

      See the normal vector, the double integral in u and v, and the surface area.

    5. 5

      Turn the surface

      Drag to rotate it and check that the normals point the way you expect.

    Try an example:

    Definition

    What Is a Surface Integral?

    A surface integral is an integral taken over a curved surface S in 3D space, adding up a function or the flow of a vector field across every small patch of the surface. The symbol is ∬S, and ∯S marks a closed surface such as a sphere.

    There are 2 types of surface integrals:

    • Scalar surface integral ∬S f dS: a scalar field weighted by surface area, for surface area (f = 1), the mass of a shell and averages over a surface.
    • Flux integral ∬S F · dS: the vector-field flux, the amount of F passing through S per unit time, in the direction of a chosen normal.

    Both types become an ordinary double integral over a region D of the uv-plane once the surface is a parametric surface r(u, v). The surface area element dS = |ru × rv| du dv converts parameter area into surface area.

    A surface integral is the 2D member of a family: a line integral runs over a curve, a surface integral over a surface, and a volume integral (triple integral) over a solid.

    Patch-sum explorer: ∬ z dS on the upper hemisphere as a sum over patches (drag to rotate)
    patches—
    Σ z ΔS—
    exact ∬ z dSπ ≈ 3.1416
    error—

    Each patch contributes its height z times its area ΔS. Darker patches sit higher. As the patches shrink, the sum approaches the exact value π.

    Line, surface and volume integrals compared
    IntegralOverElementBecomes
    Line integrala curve r(t)ds = |r′(t)| dta single integral in t
    Surface integrala surface r(u, v)dS = |ru × rv| du dva double integral in u, v
    Volume integrala solid EdV = dx dy dza triple integral

    Parametrization

    Parametric Surfaces r(u, v)

    A parametric surface is a map r(u, v) = ⟨x(u, v), y(u, v), z(u, v)⟩ that sends each point of a region D in the uv-plane to a point of the surface. The 2 parameters u and v work as coordinates drawn on the surface: on the unit sphere, u is the polar angle φ and v is the azimuth θ.

    Holding v fixed and moving u traces a u-curve; holding u fixed traces a v-curve. The 2 partial derivatives ru = ∂r/∂u and rv = ∂r/∂v are tangent vectors along those curves, and their cross product ru × rv is a normal vector to the surface.

    The region D does not have to be a rectangle. The calculator accepts v-limits that depend on u, so a triangle such as 0 ≤ u ≤ 1, 0 ≤ v ≤ 1 − u works directly.

    uv-map explorer: the parameter region (left) and the surface (right)
    (u, v)—
    r(u, v)—
    |r_u × r_v|—
    surface—

    Orange: the u-line and ru. Teal: the v-line and rv. Red: the normal ru × rv. On the sphere, the normal shrinks to 0 at the poles, where |ru × rv| = sin u.

    ∬ f dS

    Scalar Surface Integral ∬ f dS

    The scalar surface integral adds up a scalar field f over a surface, each patch weighted by its area dS; it turns into a double integral over the parameter region D.

    01

    Surface Area Element |r_u × r_v|

    The surface area element dS = |ru × rv| du dv is the area of the small parallelogram spanned by ru du and rv dv. The length of a cross product equals the area of the parallelogram its 2 vectors span.

    Surface area elements of common surfaces
    Surface|ru × rv|
    Sphere, radius RR² sin φ
    Cylinder, radius RR
    Cone z = r√2 r
    Graph z = g(x, y)√(1 + gx² + gy²)
    02

    Surface Area and Mass of a Shell

    With f = 1, the scalar surface integral is the surface area; with f = δ, a density, it is the mass of a thin shell.

    • Unit sphere: ≈ 12.566.
    • Upper hemisphere: 2π.
    • Cone z = √(x² + y²), r ≤ 1, density x² + y²: m = ∫∫ r² · √2 r dr dθ = π√2/2 ≈ 2.2214.
    Area element on the unit sphere: patches shaded by |rφ × rθ| = sin φ

    Every patch covers the same parameter rectangle Δφ × Δθ, but the patches near the equator are larger (darker) and the patches near the poles shrink to slivers. The factor sin φ in dS accounts for that difference; without it, the sphere's area would come out as 2π², not 4π.

    ∬ F · dS

    Flux Integral ∬ F · dS

    The flux integral adds up the normal component of a vector field F over an oriented surface: the amount of F passing through S, counted positive in the direction of the chosen normal.

    03

    The Normal Vector r_u × r_v

    The normal vector N = ru × rv is perpendicular to the surface, and its length is |ru × rv|. The unit normal is n = N/|N|, so dS = n dS = N du dv. In the flux formula, the lengths cancel and only the dot product F · N stays, with no square root.

    For the unit sphere, N = sin φ · ⟨sin φ cos θ, sin φ sin θ, cos φ⟩ = sin φ · r, pointing outward. For a graph z = g(x, y), N = ⟨−gx, −gy, 1⟩, pointing upward.

    04

    Orientation: Outward vs Inward

    Orientation is the choice of which side of the surface counts as positive, and reversing it flips the sign of the flux. Closed surfaces use the outward normal by convention; open surfaces such as a paraboloid cap usually use the upward normal. Swapping u and v, or the button "Flip orientation" in the calculator, reverses N.

    A surface needs 2 sides to carry a flux. A Möbius strip has only 1 side and no consistent normal, so it has no flux integral.

    Flux explorer: normals (red) and the field (dashed) on 3 surfaces
    flux (numeric)—
    exact—
    normal—
    field and surface—

    Where the field arrows lean the same way as the normals, the flux contribution is positive. Flip the orientation: the normals turn around and every value changes sign.

    Method

    How to Evaluate a Surface Integral in 5 Steps

    To evaluate a surface integral, parametrize the surface, find ru and rv, take their cross product, substitute into the integrand, and integrate over D. The 5 steps below find the flux of F = ⟨0, 0, z⟩ upward through the paraboloid z = 1 − x² − y², z ≥ 0.

    1. Parametrize the surface: r(u, v) = ⟨u cos v, u sin v, 1 − u²⟩, 0 ≤ u ≤ 1, 0 ≤ v ≤ 2π, with u the radius and v the angle.
    2. Find the partial derivatives: ru = ⟨cos v, sin v, −2u⟩ and rv = ⟨−u sin v, u cos v, 0⟩.
    3. Take the cross product: N = ru × rv = ⟨2u² cos v, 2u² sin v, u⟩. The z-component u ≥ 0, so N points upward.
    4. Substitute: F(r(u, v)) = ⟨0, 0, 1 − u²⟩, so F · N = u(1 − u²) = u − u³.
    5. Integrate over D: ≈ 1.5708.

    For a scalar integral, replace steps 4 and 5 with f(r(u, v)) · |N| and integrate that. The calculator prints each of the 5 stages, simplifies |ru × rv| when it can, and gives the exact value with a decimal next to it.

    Common surfaces

    Parametrizations of Common Surfaces

    There are 7 surfaces that cover most textbook problems: the sphere, the hemisphere, the cylinder, the cone, the paraboloid, the plane and the graph z = g(x, y). Each one has a standard parametrization built from spherical, cylindrical or Cartesian coordinates.

    05

    Sphere and Hemisphere

    A sphere of radius R uses spherical coordinates with ρ fixed at R: r(φ, θ) = ⟨R sin φ cos θ, R sin φ sin θ, R cos φ⟩, 0 ≤ φ ≤ π, 0 ≤ θ ≤ 2π. The upper hemisphere stops at φ = π/2; a partial surface such as a spherical cap stops at a smaller φ. dS = R² sin φ dφ dθ.

    06

    Cylinder

    A cylinder of radius R around the z-axis uses cylindrical coordinates with r fixed at R: r(θ, z) = ⟨R cos θ, R sin θ, z⟩, 0 ≤ θ ≤ 2π, z₀ ≤ z ≤ z₁. N = ⟨R cos θ, R sin θ, 0⟩ points outward and dS = R dθ dz. The flux of ⟨x, y, 0⟩ out of r = 2, 0 ≤ z ≤ 3 is 4 × 2π × 3 = 24π.

    07

    Cone and Paraboloid

    A cone and a paraboloid use polar coordinates in the xy-plane, with z as a function of the radius u:

    • Cone z = √(x² + y²): r(u, v) = ⟨u cos v, u sin v, u⟩, dS = √2 u du dv.
    • Paraboloid z = x² + y²: r(u, v) = ⟨u cos v, u sin v, u²⟩, dS = u√(1 + 4u²) du dv.
    08

    Plane and Graph z = g(x, y)

    A graph z = g(x, y) uses x and y as the parameters: r(x, y) = ⟨x, y, g(x, y)⟩, with N = ⟨−gx, −gy, 1⟩ and dS = √(1 + gx² + gy²) dA. The plane x + y + z = 1 is the graph g = 1 − x − y: N = ⟨1, 1, 1⟩ and dS = √3 dA. The flux of ⟨x, y, z⟩ through its first-octant triangle is ½.

    iPick u and v so that the region D is as simple as possible, ideally a rectangle. Circular symmetry around the z-axis points to polar or cylindrical parameters; symmetry around the origin points to spherical parameters; a surface given as z = g(x, y) over a simple region uses x and y directly. The graph z = x² + y² over the unit square, a non-circular region, has area ≈ 1.8616.

    Integral theorems

    Divergence Theorem and Stokes' Theorem

    The divergence theorem turns the outward flux through a closed surface into a triple integral of div F over the solid inside it.

    For F = ⟨x, y, z⟩ and the unit sphere, div F = 3, so the flux is 3 × (4/3)π = 4π, the same value as the direct surface integral. Gauss's law in electrostatics is the same statement: the flux of E through a closed surface equals Q/ε₀, the enclosed charge over the permittivity of free space.

    Stokes' theorem turns the flux of curl F through a surface S into the circulation of F around its boundary curve C.

    For F = ⟨−y, x, 0⟩, curl F = ⟨0, 0, 2⟩. Its flux up through the upper unit hemisphere is 2π, and the circulation of F around the unit circle at the rim is 2π as well.

    The volume side is computed by the triple integral calculator, div F by the divergence calculator, and the boundary side of Stokes' theorem by the line integral calculator.

    Divergence theorem on a closed cylinder, F = ⟨x, y, z²⟩
    side (2πa²h)—
    top (πa²h²)—
    bottom—
    total flux—
    ∭ div F dV = ∭ (2 + 2z) dV—

    A closed surface needs every piece: side, top and bottom. On the bottom, z = 0, so F · (−k) = 0. The sum of the 3 surface integrals matches the volume integral of div F = 2 + 2z for every radius and height.

    Practice

    Worked Examples

    There are 4 worked examples below: 2 flux integrals, a surface area and a scalar integral over a hemisphere. Each one loads into the calculator with one click.

    flux

    Flux of ⟨x, y, z⟩ Through the Unit Sphere = 4π

    1. Surface:
    2. Normal:
    3. Dot product:
    4. Integrate:

    Answer: . The divergence theorem agrees: div F = 3 times the volume 4π/3.

    flux

    Flux Through a Paraboloid

    F = ⟨0, 0, z⟩ up through z = 1 − x² − y², z ≥ 0.

    1. Surface:
    2. Normal:
    3. Dot product:
    4. Integrate:

    Answer: . With the downward normal, the answer is −π/2.

    area

    Surface Area of a Paraboloid

    z = x² + y² over the unit disk.

    1. Surface:
    2. Area element:
    3. Substitute w = 1 + 4u²:
    4. Integrate:

    Answer: , larger than the flat disk's π ≈ 3.1416, since the surface tilts more steeply toward the rim.

    scalar

    ∬ z dS on a Hemisphere

    f = z on the upper unit hemisphere.

    1. Surface:
    2. Integrand:
    3. Integrate:

    Answer: . Divided by the area 2π, the average height of the hemisphere is ½.

    Wolfram Alpha, Symbolab and eMathHelp return surface integrals as text, GeoGebra draws parametric surfaces, and Mathematica and MATLAB integrate the parametric form. This surface integral calculator combines the exact answer, every step, an orientation flip and a 3D view of the surface with its normals.

    Questions

    Frequently Asked Questions

    What is the difference between a surface integral and a double integral?

    The difference is that a double integral runs over a flat region of the plane, while a surface integral runs over a curved surface in 3D. A surface integral becomes a double integral over the parameter region D once the surface is written as r(u, v), with the extra factor |r_u × r_v| for the stretching. For a flat region in the xy-plane, |r_u × r_v| = 1 and the 2 integrals agree.

    Why does orientation matter for flux?

    Orientation matters for flux since the flux counts the flow in the direction of the chosen normal, so reversing the normal flips the sign. The flux of ⟨0, 0, z⟩ through the paraboloid z = 1 − x² − y² is π/2 with the upward normal and −π/2 with the downward normal. A scalar surface integral ∬ f dS does not depend on orientation.

    What is dS?

    dS is the surface area element, the area of a tiny patch of the surface: dS = |r_u × r_v| du dv. On a sphere of radius R, dS = R² sin φ dφ dθ; on a graph z = g(x, y), dS = √(1 + g_x² + g_y²) dA. The vector element dS = n dS = (r_u × r_v) du dv carries the direction of the normal and is used in flux integrals.

    How do you choose u and v?

    Choose u and v so that the surface is traced once and the parameter region D is as simple as possible, ideally a rectangle. Use the angles φ and θ for a sphere, θ and z for a cylinder, the radius and the angle for a cone or a paraboloid, and x and y for a graph z = g(x, y). The order of u and v sets the direction of r_u × r_v.

    Can flux be negative?

    Yes, flux is negative when more of the field crosses the surface against the chosen normal than with it. The flux of ⟨x, y, z⟩ through the unit sphere is 4π with the outward normal and −4π with the inward normal. A flux of 0 means the inflow and outflow balance, as for any divergence-free field through a closed surface.

    This surface integral calculator finds flux and scalar surface integrals over parametric surfaces with steps, the normal vector, the surface area and a 3D view.