CalcWorldHub
Free online calculator · no signup

Polygon centroid from vertices calculator

Find the area centroid of a simple polygon from its ordered boundary vertices.

Polygon centroid from vertices calculator — X coordinates, comma-separated, Y coordinates, comma-separated and calculation method
Polygon centroid from vertices calculator: inputs and calculation method.

How to use this calculator

Find the area centroid of a simple polygon from its ordered boundary vertices.

  1. Enter X coordinates, comma-separated, Y coordinates, comma-separated. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

How Polygon centroid from vertices calculator works

Find the area centroid of a simple polygon from its ordered boundary vertices.

Area centroid of a uniform rectangleA rectangle is shown with a central point marked as its area centroid, halfway across and halfway up.centroid
For a uniform rectangle, the area centroid is at the intersection of its diagonals.

Inputs and units

  • X coordinates, comma-separated: Ordered vertex x-coordinates; at least three finite values.
  • Y coordinates, comma-separated: Matching y-coordinates in the same boundary order.

Formula and method

Cₓ=Σ(xᵢ+xᵢ₊₁)cᵢ/(3Σcᵢ); Cᵧ=Σ(yᵢ+yᵢ₊₁)cᵢ/(3Σcᵢ), cᵢ=xᵢyᵢ₊₁−xᵢ₊₁yᵢ

Worked example

A 4-by-2 rectangle with lower-left corner (0,0) has area centroid (2,1).

Interpreting the result

The returned pair is in the same coordinate units and frame as the vertices. For a symmetric rectangle it equals the geometric center.

Assumptions and limits

Requires a simple polygon with nonzero signed area and boundary-ordered vertices. A concave polygon is allowed; self-intersections, holes, and nonuniform density are not modeled.

Sources and method

Frequently asked questions

Is the centroid the average of the listed vertices?

No. The formula weights edges by signed cross products and returns the area centroid.

What if the vertices are collinear?

The enclosed area is zero, so an area centroid is undefined.

How do I use the Polygon centroid from vertices calculator?

Enter X coordinates, comma-separated, Y coordinates, comma-separated. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Polygon centroid from vertices?

A 4-by-2 rectangle with lower-left corner (0,0) has area centroid (2,1).

What does the Polygon centroid from vertices calculator calculate?

Find the area centroid of a simple polygon from its ordered boundary vertices.

Related calculators