How to use this calculator
Find the area centroid of a simple polygon from its ordered boundary vertices.
- 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.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How Polygon centroid from vertices calculator works
Find the area centroid of a simple polygon from its ordered boundary vertices.
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
- The area centroid of a simple polygon follows from cross-weighted adjacent vertices. Wolfram MathWorld polygon centroid
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.