Ma · Mathematics

How to Find the Centroid of a Plane Area

Published By the 9to5Science editorial team

At a glance

  1. 1. Choose axes

    Set a coordinate system that makes the region and its boundaries easy to describe.

  2. 2. Find the area

    Compute the total area using a double integral or vertical and horizontal slices.

  3. 3. Find first moments

    Integrate each coordinate multiplied by area over the region.

  4. 4. Divide by area

    Divide both first moments by the total area to get the centroid coordinates.

Advertisement

The centroid is the geometric center of a plane region. You can find it by averaging the coordinates of all the points in the region, weighted by area. The same method works for a filled shape, a thin plate of uniform density, or a region described by curves.

The calculation depends on the region’s shape and your choice of coordinate axes. For simple shapes, use known centroid locations; for a region bounded by curves, use an integral.

Centroid formulas

Let RR be a plane region with area AA. Its centroid coordinates are

xˉ=1A∬Rx dA,yˉ=1A∬Ry dA.\bar{x}=\frac{1}{A}\iint_R x\,dA, \qquad \bar{y}=\frac{1}{A}\iint_R y\,dA.

The integrals in the numerators are the first moments of area about the yy- and xx-axes, respectively. In words, each coordinate is the area-weighted average of that coordinate throughout the region.

If the region is described by vertical slices, with lower boundary y=g(x)y=g(x) and upper boundary y=f(x)y=f(x) for a≤x≤ba\le x\le b, then

A=∫ab[f(x)−g(x)] dx,A=\int_a^b [f(x)-g(x)]\,dx, xˉ=1A∫abx[f(x)−g(x)] dx,yˉ=12A∫ab[f(x)2−g(x)2] dx.\bar{x}=\frac{1}{A}\int_a^b x[f(x)-g(x)]\,dx, \qquad \bar{y}=\frac{1}{2A}\int_a^b [f(x)^2-g(x)^2] \,dx.

The last formula follows because a vertical strip has area [f(x)−g(x)]dx[f(x)-g(x)]dx and its average height is [f(x)+g(x)]/2[f(x)+g(x)]/2. Horizontal slices give analogous formulas when those are easier to describe.

Worked example: area under y=x2y=x^2

Find the centroid of the region between y=x2y=x^2 and the xx-axis, from x=0x=0 to x=1x=1. The lower boundary is g(x)=0g(x)=0, and the upper boundary is f(x)=x2f(x)=x^2.

First find the area:

A=∫01x2 dx=[x33]01=13.A=\int_0^1 x^2\,dx=\left[\frac{x^3}{3}\right]_0^1=\frac{1}{3}.

For the xx-coordinate, calculate the first moment about the yy-axis:

∫01x(x2) dx=∫01x3 dx=14.\int_0^1 x(x^2)\,dx=\int_0^1 x^3\,dx=\frac{1}{4}.

Therefore,

xˉ=1/41/3=34.\bar{x}=\frac{1/4}{1/3}=\frac{3}{4}.

For the yy-coordinate, use the vertical-slice formula:

yˉ=12A∫01(x2)2 dx=12/3⋅15=310.\bar{y}=\frac{1}{2A}\int_0^1 (x^2)^2\,dx =\frac{1}{2/3}\cdot\frac{1}{5} =\frac{3}{10}.

The centroid is (3/4, 3/10)(3/4,\,3/10). It lies within the region in this example.

Composite shapes and holes

If a region consists of several simpler parts, use each part’s area and centroid instead of integrating the entire boundary. For parts indexed by ii,

xˉ=∑iAixi∑iAi,yˉ=∑iAiyi∑iAi,\bar{x}=\frac{\sum_i A_i x_i}{\sum_i A_i}, \qquad \bar{y}=\frac{\sum_i A_i y_i}{\sum_i A_i},

where (xi,yi)(x_i,y_i) is the centroid of part ii. A hole is treated as a negative area. This is a signed-area calculation; the coordinates of each part must be measured from the same axes.

For example, take a 4×24\times2 rectangle with its lower-left corner at the origin, and remove a circular hole of radius 0.50.5 centered at (1,1)(1,1). The rectangle has area 88 and centroid (2,1)(2,1). The hole has area π/4\pi/4 and centroid (1,1)(1,1). The remaining area is 8−π/48-\pi/4, so

xˉ=8(2)−(π/4)(1)8−π/4=16−π/48−π/4,yˉ=8(1)−(π/4)(1)8−π/4=1.\bar{x}=\frac{8(2)-(\pi/4)(1)}{8-\pi/4} =\frac{16-\pi/4}{8-\pi/4}, \qquad \bar{y}=\frac{8(1)-(\pi/4)(1)}{8-\pi/4}=1.

The yy-coordinate stays at 11 because both the rectangle and the hole are symmetric about that horizontal line. The centroid shifts right because removing area to the left of the rectangle’s center leaves relatively more area on the right.

Common mistakes

  • Mixing up first moments: The moment about the yy-axis uses xx; the moment about the xx-axis uses yy.
  • Forgetting the total-area denominator: Each first moment must be divided by the region’s area, not by a boundary length or a component’s area.
  • Using the wrong slice height: For vertical slices, use upper boundary minus lower boundary. The squared-boundary formula for the yy moment uses upper squared minus lower squared.
  • Counting holes as positive: Subtract a hole’s area and its area-weighted coordinates.
  • Confusing centroid with center of mass: The centroid is the center of a geometric area. It equals the center of mass of a thin plate only when density is uniform; varying density requires density-weighted integrals.

Choose the axes before calculating, keep the area and moment units consistent, and check that the result is plausible; for a nonconvex region, the centroid may lie outside the region. For a symmetric region, the centroid must lie on each axis of symmetry.

References

  1. Calculus: Early Transcendentals, James Stewart

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.