Centroid Calculator uses the method of composite areas. Build the shape from simple parts on the grid; holes count as negative areas.

1 · Draw the parts on the grid
- Choose a tool above the grid: Rectangle, Triangle, Polygon, Circle, Semicircle or Quarter circle.
- Solid or hole? The Solid / Hole switch decides what the next part will be. Holes are subtracted.
- Draw with the mouse or a finger:
- Rectangle – press at one corner and drag to the opposite corner.
- Triangle – click the three corners.
- Polygon – click the corners; click the first corner again, double-click or press Enter to close.
- Circle, semicircle, quarter circle – press at the centre and drag out the radius.
- Grid and snap: type the grid spacing (e.g. 5, 10 or 0.5) and choose whether points snap to the grid, half or quarter grid, or not at all. The coordinates under the cursor are shown in the corner.
- Move and resize: with Select / move, drag a part to move it and drag its round handles to resize it. Drag the empty grid to pan; use the mouse wheel, pinch or the + / − buttons to zoom; Fit shows everything. ↶ (or Ctrl+Z) undoes, Delete removes the selected part.
2 · Edit the numbers
Every part appears in the Parts list with its numbers: a rectangle's left-bottom corner, width and height; a circle's centre and radius; a sector's centre, radius and angles α₁ → α₂ (counter-clockwise, degrees); the corners of a triangle or polygon (add or remove corners there). Change any number and the drawing follows. You can switch a part between solid and hole, duplicate or delete it.

3 · Read the result
The summary shows the total area and the centroid \((\bar x, \bar y)\); G and the centroidal axes are drawn in red. The Table of parts lists each part's area, centroid and first moments with the totals, and the Step-by-step solution shows the formulas with your numbers.


