Plane Area Centroid Calculator

← Back to Engineering Library

Locate the centroid of a filled shape

Measure x to the right and y upward from the lower-left corner of the shape’s bounding box. Enter lengths in one unit. For the right triangle, the perpendicular legs meet at the origin. For the semicircle, the flat diameter lies along the bottom.

Centroid and area

Centroid (30, 15) mm · Area 1800 mm²

x = 60 / 2 = 30 mm. y = 30 / 2 = 15 mm. A = 60 × 30 = 1800 mm².

How shape determines the centroid

The centroid is the area-weighted mean position of a filled region. A symmetry axis passes through it. For a rectangle of width w and height h, x = w/2, y = h/2 and A = wh. A square uses h = w. A 60 × 30 mm rectangle therefore has centroid (30, 15) mm and area 1800 mm².

For a right triangle with legs w and h on the axes, the centroid is the mean of its three vertices: x = w/3, y = h/3 and A = wh/2. For legs 60 and 30 mm, the result is (20, 10) mm and 900 mm².

For radius r, a circle has x = y = r and A = πr2. At r = 10 mm this gives (10, 10) mm and about 314.159 mm². A filled upper semicircle has x = r and y = 4r/(3π) above its diameter, from the first moment of area divided by area. Its area is πr2/2. At r = 10 mm, y = 40/(3π) ≈ 4.244 mm and A ≈ 157.080 mm².

Choosing a datum on a drawing

A triangular gusset extends 120 mm along its bottom edge and 90 mm up its left edge. From their intersection, its centroid is (40, 30) mm. If that corner is at (200, 50) mm on an assembly drawing with parallel axes, add the offsets: the same point is at (240, 80) mm in assembly coordinates.

Compare shapes with a 20 mm width

The circle and semicircle both have a radius of 10 mm. For each shape the coordinates start at its own bounding box’s lower-left corner.

Centroid and area for five filled shapes of width 20 mm
Shape Height (mm) x (mm) y (mm) Area (mm²)
Square 20 10 10 400
Rectangle 12 10 6 240
Right triangle 12 6.667 4 120
Circle 20 10 10 314.159
Semicircle 10 10 4.244 157.080

Download the Centroids of plane areas table (PDF)

Questions about centroid coordinates

Is the semicircle distance measured from its curved edge?

The vertical coordinate starts at the flat diameter. For radius 30 mm, the centroid is 12.732 mm above that line. Its distance below the highest point is 30 − 12.732 = 17.268 mm.

What if the right angle is on the other side?

For a horizontally mirrored triangle, subtract the reported x coordinate from the width. A 90 mm wide triangle with the right angle at the bottom right has x = 90 − 30 = 60 mm from the left. Its height coordinate stays the same.

Is this also the center of mass?

The two coincide for a flat plate of uniform thickness and density. Added weights, varying thickness or different materials require mass weighting.

Can I use the semicircle setting for a bent wire?

A wire occupies an arc, while the semicircle setting includes the whole filled area. The wire’s center of mass requires weighting by length along the arc.

How do holes affect the centroid?

In a composite-area calculation, subtract the hole’s area and its first moments using the same datum as the outer shape. Removing an off-center hole moves the remaining centroid away from the hole.

What happens if I double every dimension?

With the origin fixed at the bounding-box corner, both centroid coordinates double. Area increases by a factor of four. Changing the unit selector interprets the entered dimensions in the selected unit.

Shape formulas: Engineering ToolBox, Centroids of Plane Areas. For the semicircle shown here the diameter is horizontal.

Related Engineering Calculators

Share This Article
Tags: