Share this
See also
Centroids Table
Moments of Inertia Table
Finding the moment of inertia of composite shapes

How to find the centroid of an area

- By Dr. Minas E. Lemonis, PhD - Updated: June 23, 2020

Table of contents

Integration formulas

The centroid of any shape can be found through integration, provided that its border is described as a set of integrate-able mathematical functions. Specifically, the centroid coordinates xc and yc of an area A, are provided by the following two formulas:

x_c=\frac{1}{A}\int_A x \: dA

y_c=\frac{1}{A}\int_A y \: dA

The integral term in the last two equations is also known as the 'static moment' or 'first moment' of area, typically symbolized with letter S. Therefore, the last equations can be rewritten in this form:

x_c=\frac{S_y}{A}

y_c=\frac{S_x}{A}

where S_y=\int_A x \:dA and S_x=\int_A y\: dA .

The area A can also be found through integration, if that is required:

A=\int_A 1 \:dx dy

icon

The first moment of area S is always defined around an axis and conventionally the name of that axis becomes the index. For instance Sx is the first moment of area around axis x. Thus It is not peculiar that the first moment, Sx is used for the centroid coordinate yc , since coordinate y is actually the measure of the distance from the x axis.

icon

'Static moment' and 'first moment of area' are equivalent terms. You may use either one, though in some engineering disciplines 'static moment' is prevalent.

Steps for finding centroid using integration formulas

The steps for the calculation of the centroid coordinates, xc and yc , through integration, are summarized to the following:

  1. Select a coordinate system, (x,y), to measure the centroid location with.
  2. Select an appropriate, and convenient for the integration, coordinate system. It can be the same (x,y) or a different one. Called hereafter working coordinate system.
  3. Describe the borders of the shape and the x, y variables according to the working coordinate system.
  4. Integrate, substituting, where needed, the x and y variables with their definitions in the working coordinate system.

The application of the procedure will become clear with the examples later in the article.

Composite Areas

For composite areas, that can be decomposed to a finite number n of simpler subareas, and provided that the centroids of these subareas are available or easy to find, then the centroid coordinates of the entire area x_c, y_c can be calculated through the following formulas:

x_c = \frac{\sum_{i}^{n} A_i y_{c,i}}{\sum_{i}^{n} A_i}

y_c = \frac{\sum_{i}^{n} A_i x_{c,i}}{\sum_{i}^{n} A_i}

where A_i is the surface area of subarea i, and x_{c,i}, y_{c,i} the centroid coordinates of subarea i. The sum \sum_{i}^{n} A_i is equal to the total area A. The sums that appear in the two nominators are the respective first moments of the total area: S_x=\sum_{i}^{n} A_i y_{c,i} and S_y=\sum_{i}^{n} A_i x_{c,i} .

icon

The above formulas impose the concept that the static moment (first moment of area), around a given axis, for the composite area (considered as a whole), is equivalent to the sum of the static moments of its subareas.

Steps to find the centroid of composite areas

The steps for the calculation of the centroid coordinates, xc and yc , of a composite area, are summarized to the following:

  1. Select a coordinate system, (x,y), to measure the centroid location with.
  2. Decompose the total area to a number of simpler subareas.
  3. Find the centroid of each subarea in the x,y coordinate system.
  4. Find the surface area and the static moment of each subarea.
  5. Find the total area A and the sum of static moments Sx and Sy, in respect to axes x, y.
  6. Calculate the centroid coordinates, x_c=\frac{S_y}{A} and y_c=\frac{S_x}{A} .

For step 1, it is permitted to select any arbitrary coordinate system of x,y axes, however the selection is mostly dictated by the shape geometry. The final centroid location will be measured with this coordinate system, i.e. xc will be the distance of the centroid from the origin of axes, in the direction of x, and similarly yc will be the distance of the centroid from the origin of axes, in the direction of y. Typically, a characteristic point of the shape is selected as the origin, like a corner point of the border or a pole for curved shapes.

With step 2, the total complex area should be subdivided into smaller and more manageable subareas. This can be accomplished in a number of different ways, but more simple and less subareas are preferable. The requirement is that the centroid and the surface area of each subarea can be easy to find. However, if the process of finding the centroid is performed in the context of finding the moment of inertia of the shape too, additional considerations should be made for the selection of subareas. Read our article about finding the moment of inertia for composite areas (available here), for more detailed explanation. 

Sometimes, it may be preferable to define negative subareas, that are meant to be subtracted from other bigger subareas to produce the final shape.

Four ways to decompose an angle plate to simpler rectangular subareas. Method d employs a negative subarea (cutout)

In step 3, the centroids of all subareas are determined, in respect to the selected, at step 1, coordinate system. For subarea i, the centroid coordinates should be x_{c,i} and y_{c,i} . The work we have to do in this step heavily depends on the way the subareas have been defined in step 2. Centroid tables from textbooks or available online can be useful, if the subarea centroids are not apparent. You may find our centroid reference table helpful too.

In step 4, the surface area of each subarea is first determined and then its static moments around x and y axes, using these equations:

S_{x,i}=A_i y_{c,i}

S_{y,i}=A_i x_{c,i}

where, Ai is the surface area of subarea i, and x_{c,i}, y_{c,i} , the centroid coordinates of subarea i, that should be known from step 3. 

icon

The static moment (first moment) of an area can take negative values.

The following figure demonstrates a case where the same rectangular area may have either positive or negative static moment, based on the location of its centroid, in respect to the axis. The sign of the static moment is determined from the sign of the centroid coordinate. For the rectangle in the figure, if y_c<0 (case b) then the static moment should be negative too.

If a subarea is negative though (meant to be cutout) then it must be assigned with a negative surface area Ai . Consequently, the static moment of a negative area will be the opposite from a respective normal (positive) area. 

In step 5, the process is straightforward. In order to find the total area A, all we have to do is, add up the subareas Ai , together. 

A=\sum_i^n A_i

Similarly, in order to find the static moments of the composite area, we must add together the static moments Sx,i or Sy,i of all subareas:

S_x=\sum_i^n S_{x,i}

S_y=\sum_i^n S_{y,i}

Step 6, is the final one, and leads to the wanted centroid coordinates:

x_c=\frac{S_y}{A}

y_c=\frac{S_x}{A}

icon

The described procedure may be applied for only one of the two coordinates xc or yc, if wanted.

Example 1: centroid of a right triangle using integration formulas

Derive the formulas for the centroid location of the following right triangle.

Step 1

We select a coordinate system of x,y axes, with origin at the right angle corner of the triangle and oriented so that they coincide with the two adjacent sides, as depicted in the figure below:

Step 2

For the integration we choose the same coordinate system, as defined in step 1.

Step 3

The triangular area is bordered by three lines:

  1. The x axis, i.e. y=0
  2. The y axis, i.e. x=0
  3. The inclined line passing through points (b,0) and (0,h). Let's assume the line equation has the form: y=a_1 x + a_2 . Substituting point (0,h) to the line equation we get: h=0+a_2\Rightarrow a_2=h . Substituting point (b,0), and the a2=h, we get: 0=a_1 b + h\Rightarrow a_1=-\frac{h}{b} . Therefore, we have found the line equation in terms of the triangle side lengths, as:

y=-\frac{h}{b}x+h\Rightarrow

y=\frac{h}{b}(b-x)

Step 4a

First, we'll find the yc coordinate of the centroid, using the formula: y_c=\frac{S_x}{A} . The first moment of area S_x is given by the double integral:

S_x=\iint_A y\:dA=\int_{x_L}^{x_U}\int_{y_L}^{y_U} y \:dydx

where, x_L, x_U are the lower and upper bounds of the area in terms of x variable and y_L, y_U , the respective bounds in terms of the y variable. First, we'll integrate over y. So the lower bound, in terms of y is the x axis line, with y=0 and the upper bound is the inclined line, given by the equation, we've already found: y=\frac{h}{b}(b-x) . Finding the integral is straightforward:

\int_0^{\frac{h}{b}(b-x)} y \:dy=\Bigg[\frac{y^2}{2}\Bigg]_0^{\frac{h}{b}(b-x)}=

=\frac{1}{2}\frac{h^2}{b^2}(b-x)^2-0

=\frac{h^2}{2b^2}(b^2-2bx+x^2)

So, we have found the first moment S_x for an area bounded between the x axis and the inclined line, going on ad infinitum (because no x bounds are imposed yet). Next, we have to restrict that area, using the x limits that would produce the wanted triangular area. These are x_L=0 and x_U=b . Therefore, the integration over x, that will produce the final moment of the area, becomes:

S_x=\int_0^b \frac{h^2}{2b^2}(b^2-2bx+x^2) \:dx

=\frac{h^2}{2b^2}\int_0^b \left(b^2x-bx^2+\frac{x^3}{3}\right)' \:dx

=\frac{h^2}{2b^2}\Bigg[b^2x-bx^2+\frac{x^3}{3}\Bigg]_0^b

=\frac{h^2}{2b^2}\left(b^3-b^3+\frac{b^3}{3} - 0\right)

=\frac{h^2}{2b^2}\frac{b^3}{3}\Rightarrow

S_x=\frac{bh^2}{6}

The only thing remaining is the area A of the triangle. That is available through the formula:

A=\frac{bh}{2}

Finally, the centroid coordinate yc is found:

y_c=\frac{S_x}{A}=\frac{\frac{bh^2}{6}}{\frac{bh}{2}}=\frac{h}{3}

Step 4b

The process for finding the x_c coordinate of the centroid is pretty similar. This time we'll need the first moment of area, around y axis, S_y :

S_y=\iint_A x\:dA=\int_{x_L}^{x_U}\int_{y_L}^{y_U} x \:dydx

We integrate over y:

\int_0^{\frac{h}{b}(b-x)} x \:dy=x\Big[y\Big]_0^{\frac{h}{b}(b-x)}=

=\frac{h}{b}(bx-x^2)

And then over x, to get the final first moment of area:

S_y=\int_0^b \frac{h}{b}(bx-x^2) \:dx

=\frac{h}{b}\Bigg[\frac{bx^2}{2}-\frac{x^3}{3}\Bigg]_0^b

=\frac{h}{b}\left(\frac{b^3}{2}-\frac{b^3}{3}-0\right)

S_y=\frac{hb^2}{6}

And finally, we find the centroid coordinate xc:

x_c=\frac{S_y}{A}=\frac{\frac{hb^2}{6}}{\frac{bh}{2}}=\frac{b}{3}

Example 2: centroid of semicircle using integration formulas

Derive the formulas for the location of semicircle centroid

Step 1

The coordinate system, to locate the centroid with, can be anything we want. In order to take advantage of the shape symmetries though, it seems appropriate to place the origin of axes x, y at the circle center, and orient the x axis along the diametric base of the semicircle.

Because the shape is symmetrical around axis y, it is evident that centroid should lie on this axis too. In other words:

x_c=0

In the next steps we'll need to find only coordinate yc.

Step 2

We must decide on the working coordinate system. It could be the same Cartesian x,y axes, we have selected for the position of centroid. Because the shape features a circular border though, it seems more convenient to select a polar system, with its pole O coinciding with circle center, and its polar axis L coinciding with axis x, as depicted in the figure below. The independent variables are r and φ. Specifically, for any point of the plane, r is the distance from pole and φ is the angle from the polar axis L, measured in counter-clockwise direction.

With this coordinate system, the differential area dA now becomes: dA=ds\: dr = (r\:d\varphi)dr=r\: d\varphi\:dr , where ds is the differential arc length for differential angle .

Step 3

In terms of the polar coordinates r, \varphi , the semicircle shape, is bounded through these limits:

  • 0\le r \le R
  • 0\le \varphi \le \pi

Also, we 'll need to express coordinate y, that appears inside the integral for yc , in terms of the working coordinates, r, \varphi . Employing the highlighted right triangle in the figure below and using simple trigonometry we find: y=r \sin\varphi .

Step 4

Using the aforementioned expressions for dA and y , the definite integral for the first moment of area, S_x , of the semicircle becomes:

S_x=\iint_A y\:dA\Rightarrow

S_x=\int^R_0\int^{\pi}_0 r \sin\varphi \:r\: d\varphi dr

First, we integrate over variable φ.

S_x=\int^R_0 \left(\int^{\pi}_0 r^2 \sin\varphi\:d\varphi\right)dr\Rightarrow

S_x=\int^R_0 \left(r^2 \int^{\pi}_0 \sin\varphi \:d\varphi\right)dr

The anti-derivative for \sin\varphi is: -\cos\varphi , and as a result, the integral inside the parentheses becomes:

\int^{\pi}_0 \sin\varphi \:d\varphi = \Big[-\cos\varphi\Big]_0^{\pi}

-\cos\pi +\cos 0=-(-1)+1=2

Substituting to the expression of Sx, we now have to integrate over variable r: 

S_x=\int^R_0 2r^2 dr\Rightarrow

S_x=2\int^R_0 \left(r^3 \over 3\right)'dr=2\left[ r^3 \over 3\right]^R_0\Rightarrow

S_x=2\left(\frac{R^3}{3} -0\right)=\frac{2 R^3}{3}

The area of the semicircle is:

A=\frac{\pi R^2}{2}

Finally, the centroid coordinate yc can be found:

y_c = \frac{S_x}{A}\Rightarrow

y_c = \frac{\frac{2R^3}{3}}{\frac{\pi R^2}{2}}\Rightarrow

y_c = \frac{4R}{3\pi}

Example 3: Centroid of a tee section

Find the centroid of the following tee section

This is a composite area. The procedure for composite areas, as described above in this page, will be followed.

Step 1

We place the origin of the x,y axes to the middle of the top edge. The x axis is aligned with the top edge, while the y is axis is looking downwards.

Due to symmetry around the y axis, the centroid should lie on that axis too. In other words:

x_c=0

In the remaining we'll focus on finding the centroid coordinate yc.

Step 2

This is a composite area that can be decomposed to more simple subareas. We choose the following pattern, where the tee is decomposed to two rectangles, one for the top flange and one for the web. We'll refer to them as subarea 1 and subarea 2, respectively.

Step 3

The centroids of each subarea will be determined, using the defined coordinate system from step 1. For subarea 1:

y_{c,1}=\frac{4''}{2}=2\text{ in}

And for subarea 2:

y_{c,2}=4''+\frac{8''}{2}=8 \text{ in}

Step 4

The surface areas of the two subareas are:

A_1=12''\times4''=48\text{ in}^2

A_2=6''\times8''=48\text{ in}^2

The static moments of the two subareas around x axis can now be found:

S_{x_1}=A_1 y_{c,1}= 48\text{ in}^2 \times 2\text{ in}=96\text{ in}^3

S_{x_2}=A_2 y_{c,2}= 48\text{ in}^2 \times 8\text{ in}=384\text{ in}^3

Step 5

The total area of the tee shape is:

A=A_1+A_2=48+48=96\text{ in}^2

The static moment of the entire tee area, around x axis, is:

S_x=S_{x_1}+S_{x_2}=96+384=480\text{ in}^3

The above calculations can be summarized in a table, like the one shown here:

Areayc,iAiSx,i=Aiyc,i
(in)(in2)(in3)
124896
2848384
Total96480

Step 6

Knowing the total static moment, around x axis, S_x , and the total surface area, A , we are now in position to find the centroid coordinate, y_c :

y_c=\frac{S_x}{A}=\frac{480\text{ in}^3}{96 \text{ in}^2}=5 \text{ in}

Example 4: plate with a hole

Find the centroid of the following plate with a hole. The hole radius is r=1.5''.

Step 1

We place the origin of the x,y axes to the lower left corner, as shown in the next figure. We are free to choose any point we want, however a characteristic point of the shape (like its corner) is convenient, because we'll find the resulting centroid coordinates xc and yc in respect to that point.

Step 2

This is a composite area that can be decomposed to a number of simpler subareas. Among many different alternatives we select the following pattern, that features only three elementary subareas, named 1, 2 and 3. In particular, subarea 1 is a rectangle, subarea 2 is a circular cutout, characterized as negative subarea, and similarly subareas 3 is a triangular cutout that is also a negative subarea.

Step 3

The centroids of each subarea we'll be determined, using the defined coordinate system from step 1. For subarea 1:

x_{c,1}=\frac{8''}{2}=4\text{ in}

y_{c,1}=\frac{11''}{2}=5.5\text{ in}

For subarea 2:

x_{c,2}=4\text{ in}

y_{c,2}=4''+3''=7 \text{ in}

For subarea 3:

x_{c,3}=4''+\frac{2}{3}4''=6.667\text{ in}

y_{c,3}=\frac{1}{3}4''=1.333 \text{ in}

Step 4

The surface areas of the three subareas are:

A_1=8''\times 11''=88\text{ in}^2

A_2=\pi r^2=\pi (1.5'')^2=7.069\text{ in}^2

A_3=\frac{4''\times 4''}{2}=8\text{ in}^2

The static moments of the three subareas, around x axis, can now be found:

S_{x_1}=A_1 y_{c,1}= 88\text{ in}^2 \times 5.5\text{ in}=484\text{ in}^3

S_{x_2}=A_2 y_{c,2}= 7.069\text{ in}^2 \times 7\text{ in}=49.48\text{ in}^3

S_{x_3}=A_3 y_{c,3}= 8\text{ in}^2 \times 1.333\text{ in}=10.67\text{ in}^3

The static moments around y axis are:

S_{y_1}=A_1 x_{c,1}= 88\text{ in}^2 \times 4\text{ in}=352\text{ in}^3

S_{y_2}=A_2 x_{c,2}= 7.069\text{ in}^2 \times 4\text{ in}=28.27\text{ in}^3

S_{y_3}=A_3 x_{c,3}= 8\text{ in}^2 \times 6.667\text{ in}=53.33\text{ in}^3

Step 5

The total area of the shape is:

A=A_1-A_2-A_3=88-7.069-8=72.931\text{ in}^2

The static moments of the entire shape, around axis x, is:

S_x=S_{x_1}-S_{x_2}-S_{x_3}

=484-49.48-10.67=423.85\text{ in}^3

And around axis y:

S_y=S_{y_1}-S_{y_2}-S_{y_3}

=352-28.27-53.33=270.40\text{ in}^3

The above calculation steps can be summarized in a table, like the one shown here:

Areaxc,iyc,iAiSx,i=Aiyc,iSy,i=Aixc,i
(in)(in)(in2)(in3)(in3)
145.588484352
2 (negative)47-7.069-49.48-28.27
3 (negative)1.3336.667-8-10.67-53.33
Total72.931423.85270.40

Step 6

We can now calculate the coordinates of the centroid:

x_c=\frac{S_y}{A}=\frac{270.40\text{ in}^3}{72.931 \text{ in}^2}=3.71 \text{ in}

y_c=\frac{S_x}{A}=\frac{423.85\text{ in}^3}{72.931 \text{ in}^2}=5.81 \text{ in}

Related pages

Centroids Table
Moments of Inertia Table
Finding the moment of inertia of composite shapes

Liked this page? Share it with friends!