All articles
8 min read

Centroid: Formulas, Composite-Shape Method and Common Mistakes

A centroid is the average position of all points in a shape. For a triangle, average the corner coordinates; for composite shapes, use an area-weighted table and subtract holes.

By Rahul Jeewani, Founder · Updated 10 Oct 2026

A student balances a cardboard triangle on the tip of a pencil at a desk to find its centre.

Key takeaways

  1. 01
    The centroid of a triangle is the mean of its three corners, (x₁+x₂+x₃)/3 and (y₁+y₂+y₃)/3. Every other shape needs an area-weighted average: x̄ = ΣA·x̄ ÷ ΣA.
  2. 02
    For a composite shape, measure every part from one origin, enter holes as negative areas, and divide the summed area-times-distance products by the total area.
  3. 03
    In our worked example, forgetting the 60 mm base under a semicircle moves the answer by 25.56 mm, about half its value, while adding a hole instead of subtracting it moves it by 2.90 mm.
  4. 04
    Centroid and centre of mass are the same point only when the density is uniform.
In this article
  1. 1How do you find the centroid of a triangle?
  2. 2What are the centroid formulas for standard shapes?
  3. 3What is the composite-shape method for finding a centroid, with a worksheet?
  4. 4Which slips move the centroid of the 100 × 60 mm worked example the most?
  5. 5How can you test a centroid answer before submitting?
  6. 6Is the centroid the same as the centre of mass or centre of gravity?
  7. 7Where does centroid appear in first-year engineering, and how do we help?
  8. 8Frequently asked questions

In our experience, the slips that cost marks on centroid questions are usually the origin, a sign, or a formula meant for a different shape. The idea itself is short: the centroid is the point where a flat shape cut from uniform card would balance on a pencil tip.

The Savitribai Phule Pune University (SPPU) 2024-pattern syllabus puts the centroid of basic and composite figures in Unit I of Engineering Mechanics, a six-hour unit it shares with force systems and moment of inertia (how strongly a shape resists being rotated). The course carries a 70-mark end-semester theory paper, so six hours is not much time to build a reliable habit.

A triangle takes one line. A composite shape fails far more often, because it chains five steps and any one of them can slip. The method below, with a worksheet and a worked example, closes those gaps. A short checklist at the end lets you test an answer before you submit it.

How do you find the centroid of a triangle?

Average the corner coordinates. For corners (x₁, y₁), (x₂, y₂), (x₃, y₃), the centroid is ((x₁+x₂+x₃)/3, (y₁+y₂+y₃)/3). It is also where the three medians meet. A median joins a corner to the midpoint of the opposite side. The centroid sits two-thirds of the way along each median, measured from the corner (Math Is Fun).

A hand draws a median on a paper triangle where three pencil lines meet at one blue dot.
The three medians cross at one point, and that point is the centroid.

Example: corners (0, 0), (6, 0) and (3, 9). The centroid is ((0+6+3)/3, (0+0+9)/3) = (3, 3).

The orthocentre (where the altitudes meet; an altitude drops perpendicular from a corner to the opposite side), incentre (angle bisectors) and circumcentre (perpendicular lines through the midpoints of the sides) are different points. All four coincide only in an equilateral triangle.

Do not stretch the average-of-corners rule to four-sided shapes. Take the quadrilateral (0,0), (4,0), (4,1), (0,10). Averaging the corners gives (2.00, 2.75). The true area centroid is (1.45, 3.36). We got this by splitting the shape into a 4 × 1 rectangle (area 4, centroid (2, 0.5)) and a triangle (area 18, centroid (1.33, 4)), then weighting by area: x̄ = (4×2 + 18×1.333)/22 = 1.45 and ȳ = (4×0.5 + 18×4)/22 = 3.36. A shape with unequal parts needs weights, which is what the next sections build.

What are the centroid formulas for standard shapes?

Learn five shapes, each measured from a stated reference. These values are the standard ones in the Engineering LibreTexts shape table.

ShapeAreaCentroid location
Rectangle (b wide, h high)b·hb/2 from the left edge, h/2 from the bottom edge
Right triangle½·b·hb/3 and h/3, measured from the right-angle corner
Circleπ·r²At the centre
Semicircle (radius r)½·π·r²4r/(3π) ≈ 0.424r from the flat diameter, on the axis of symmetry
Quarter circle¼·π·r²4r/(3π) ≈ 0.424r from each straight edge

Two traps sit in this table. First, 4r/(3π) is the distance from the straight edge, not from the top of the curve. Second, it applies to the area. A thin curved wire shaped like a semicircle has its centroid at 2r/π ≈ 0.637r instead. Both come from integration. For the area, the strip method gives 4r/(3π). For the arc, ∫ r·sinθ · r dθ from 0 to π equals 2r², and dividing by the arc length πr gives 2r/π. The wire value is 1.5 times the area value (2/π ÷ 4/(3π) = 1.5), so using the wrong one puts that part's offset 50% out.

What is the composite-shape method for finding a centroid, with a worksheet?

Split the shape into parts whose centroids you know, then take an area-weighted average from one common origin. A composite shape is one built from simple parts, such as a rectangle with a semicircle on top and a hole cut out. The formula is x̄ = (A₁x̄₁ + A₂x̄₂ + …) ÷ (A₁ + A₂ + …), and the same for ȳ. A hole counts as a negative area (engineeringstatics.org). The products A·x̄ and A·ȳ are the first moments of area about the origin: each area multiplied by its distance from the origin.

The worksheet. Copy this into your answer sheet:

PartA (mm²)x̄ (mm)ȳ (mm)A·x̄A·ȳ
1
2
3 (hole: A is negative)
TotalΣAΣA·x̄ΣA·ȳ

Then x̄ = ΣA·x̄ ÷ ΣA and ȳ = ΣA·ȳ ÷ ΣA.

The steps:

  1. Sketch the shape and put the origin at one corner. We use the bottom-left.
  2. Split it into rectangles, triangles, circles, semicircles or quarter circles.
  3. For each part, write its area and the centroid distances from the origin, not from the part's own corner.
  4. Give holes a negative area.
  5. Fill the two moment columns, add the columns, and divide.

Worked example (our own calculation). A 100 mm wide, 60 mm high rectangle has a semicircle of radius 50 mm on top. A hole of radius 15 mm is centred at (50, 30).

PartA (mm²)x̄ȳA·x̄A·ȳ
Rectangle6,000.005030300,000180,000
Semicircle3,926.995081.22196,350318,953
Hole−706.865030−35,343−21,206
Total9,220.13461,007477,747

The semicircle's ȳ is 60 + 4×50/(3π) = 60 + 21.22 = 81.22. The result is x̄ = 461,007 ÷ 9,220.13 = 50.00 mm and ȳ = 477,747 ÷ 9,220.13 = 51.82 mm. The x̄ of 50 follows from symmetry, which is a free check.

Which slips move the centroid of the 100 × 60 mm worked example the most?

In this example, forgetting the 60 mm base under the semicircle does the most damage (25.56 mm), followed by using the arc formula (4.52 mm) and adding the hole (2.90 mm). We re-ran the worked example with each mistake in turn (our calculation):

Mistakeȳ you getError against 51.82 mm
Correct method51.82 mmnone
Semicircle ȳ taken as 21.22 (4r/3π) without adding the 60 mm base26.26 mm25.56 mm too low, about half the right answer
Arc formula 2r/π used for the semicircle's area (that part's offset becomes 31.83 mm instead of 21.22 mm)56.33 mm4.52 mm too high
Hole added instead of subtracted48.92 mm2.90 mm too low

The ranking holds for this shape. The size of each error depends on how large the affected part is, so on another shape the order can change, and any of the three can cost you the mark. Two further slips are using the wrong origin and adding centroids without weighting by area.

How can you test a centroid answer before submitting?

Run these five tests. Each has a clear pass or fail.

  • Same origin: every x̄ and ȳ in your table is measured from the one origin you drew. Pass if you can point to that origin on the sketch for every row. Fail if any row was measured from a part's own corner.
  • Hole sign: every hole has a negative area. Pass if the total area is smaller than the outline's area. Fail if it is equal or larger.
  • Symmetry: if the shape is symmetric about a line, the centroid lies on it. In the example x̄ = 50 came out exactly as symmetry predicts. Fail if your x̄ is off the line.
  • Bounding box: the answer lies inside the smallest rectangle around the shape. Here ȳ = 51.82 mm sits between 0 and 110 mm (60 + 50). Fail if either coordinate falls outside.
  • Dimension reading: for every hole, check that its centre plus its radius stays inside the outline. Pass if every hole sits wholly inside the plate. Fail if a hole crosses the edge, which means you read a dimension to the hole's edge instead of its centre.

Is the centroid the same as the centre of mass or centre of gravity?

Only for a body of uniform density. A centroid is a weighted average where the weight is area (flat shapes) or volume (solids). Centre of mass weights by mass, and centre of gravity by weight. In a uniform gravitational field and a uniform material, all three land on the same point (engineeringstatics.org, Engineering LibreTexts)).

A flat uniform plate balances on a pin in a lab beside a hanging plumb line.
A uniform plate balances at its centroid, which is why the three ideas coincide for it.

The same table method works in physics and in statics, as long as you weight by the right quantity. If one half of a plate is steel and the other is aluminium, the centroid stays at the geometric middle but the centre of mass shifts toward the steel. In your composite table, you would weight by mass instead of area.

Where does centroid appear in first-year engineering, and how do we help?

In SPPU's first-year Engineering Mechanics (course code CVL107, 2024 pattern), Unit I lists "centroid of basic figures, centroid of composite figure", followed by moment of inertia and the parallel and perpendicular axis theorems. The course carries 70 marks in the end-semester theory exam, 30 in internal assessment and 25 in term work (SPPU syllabus). Other universities arrange it differently, so check your own syllabus.

Centroid is one unit among several, so it helps to see where it sits in the whole course. Our unit-by-unit plan for studying Engineering Mechanics at SPPU shows how to order the units, and our guide to the Engineering Mechanics SPPU online course shows what the course covers. If you are still deciding what to take in first year, our roadmap of first-year engineering classes in Maharashtra compares the options.

RG Lectures, started in May 2018 by Rahul Jewaani (RG Sir) in Ulhasnagar, Maharashtra, runs an FE Engineering course for SPPU that covers Physics, Mechanics and Drawing, with one year of validity. As of October 2026 you can take Engineering Mechanics on its own, or as a combo with the other first-year subjects. Our approach is Padhna Aasaan Hai: explain the idea in plain words, then drill it on questions, which is exactly what the worksheet above asks of you. See the FE Engineering SPPU course.

We also teach Physics for the Maharashtra Common Entrance Test (MHT-CET) and Higher Secondary Certificate (HSC) Board Physics.

Learn Engineering Mechanics the Padhna Aasaan Hai way

RG Lectures offers an FE Engineering course for SPPU covering Physics, Mechanics and Drawing, with Engineering Mechanics available on its own or as a combo.
See the course

Frequently asked questions

Yes. A ring (annulus) has its centroid at the centre, which is empty. A thin C-shaped or L-shaped bracket has its centroid in the open gap. A triangle's centroid, by contrast, is always inside it.
No, for standard and composite shapes. The table method above needs only area, a known centroid per part, and arithmetic. Integration is for curved boundaries with no standard formula, or for deriving the table values themselves.
In k-means clustering, a method that groups data points into k sets, a centroid is the plain average position of the points in one group. It is the same mean as a triangle's corner average, with no area weighting.
Both are right, for different objects. 4r/3π ≈ 0.424r applies to a solid semicircular area, measured from the flat diameter. 2r/π ≈ 0.637r applies to a thin semicircular wire or arc.
Cut the shape from uniform card and hang it from a pin at one point, with a plumb line (a weighted string) hanging from the same pin. Draw the vertical line. Repeat from a second point. The two lines cross at the centroid, because the card hangs with its balance point directly below the pin.

Sources

  1. 1.Savitribai Phule Pune University, First Year Engineering 2024 Pattern syllabus (CVL107 Engineering Mechanics)
  2. 2.Engineering LibreTexts, Centroids and Area Moments of Inertia for 2D Shapes
  3. 3.Engineering LibreTexts, 7.4 Centroids
  4. 4.engineeringstatics.org, Centroids using composite parts
  5. 5.engineeringstatics.org, Statics: Centroids
  6. 6.Math Is Fun, Centroid and Center of Gravity

Keep reading

www.rglectures.com.

Trusted physics learning platform for MHT-CET, Maharashtra Board, Class 11, Class 12, and Engineering students. Learn Physics in a simple and practical way with RG Lectures.

© 2026 Rg lectures

Powered by PageLens.ai

Get in touch — we'd love to help.

Contact us