Polygon Centroid Finder: Find the Center Point of Any Shape on a Map
What This Polygon Centroid Finder Does
This tool finds the center of a shape. You draw a polygon or a rectangle on the map, or open a GeoJSON or KML file, and the tool shows four kinds of center point with their coordinates: the centroid, the bounding box center, the average of the corners and a visual center that is always inside the shape. You can drag the corners and watch the points move.
Use it to find the lat/lon of a parcel or a region, to place a label or a pin inside an odd shape, to turn polygons into points for a spreadsheet, or to check a shape you drew. You do not need to install software or have an account.
The Four Center Points
"The center of a shape" can mean more than one thing. The tool gives you all four so you can pick the one that fits your task.
| Center | How it is found | Always inside? | Use it for |
|---|---|---|---|
| Centroid | The average position of all the area (center of mass). | No | Balance point, average location, and the standard point for a polygon in GIS. |
| Bounding box center | The middle of the smallest box that holds the shape. | No | Centering a map view on the shape. |
| Corner average | The average of the corner points. | No | Quick checks. It depends on how many corners each side has. |
| Visual center | The center of the largest circle that fits inside the shape. | Yes | Placing a label, a pin or an icon inside the shape. |
What You Get
- The centers on the map, as colored markers you can show or hide.
- The latitude and longitude of each center, in decimal degrees or in degrees, minutes and seconds.
- Copy buttons for lat/lon, WKT and a GeoJSON point.
- The area, the outline length, the number of corners and the largest circle that fits in the shape.
- A GeoJSON, KML or CSV download and a link that opens the same shape for someone else.
What Is a Centroid?
The centroid is the center of mass of a flat shape. Think of the shape cut from card: you can balance it on a pin at its centroid. For a polygon with corners (x1, y1) to (xn, yn), the tool finds it from the area of each piece:
A hole counts as negative area, so the centroid moves away from the hole. When there are several shapes, each centroid is weighted by the area of its shape.
Centroid of Common Shapes
For simple shapes the centroid has a known place. A triangle has its centroid at 0.333 of its height from the base, and a semicircle has it at 0.424 of its radius from the flat side. You can draw these shapes in the tool to check the numbers.
| Shape | Distance of the centroid from the base | As a part of the height or radius |
|---|---|---|
| Rectangle | Half the height | 0.500 |
| Triangle | One third of the height | 0.333 |
| Semicircle | 4 x r / (3 x π) from the flat side | 0.424 |
| Quarter circle | 4 x r / (3 x π) from each straight side | 0.424 |
When the Centroid Is Outside the Shape
For a shape that curves around a gap, such as a C or a crescent, the balance point can fall in the gap. The "A C-shaped area" example in the tool has an area of 46.8 hectares. Its centroid is at 40.75400, -73.98614, which is outside the shape. The visual center is 332 m away, inside the shape, and the largest circle that fits there has a radius of 167 m.
If you need a point that is on or in the shape, for example to place a label, use the visual center. If you need the average position of the area, use the centroid.
Centroid, Bounding Box Center and Corner Average
The bounding box center is easy to find but it ignores the shape inside the box. The corner average moves toward the side that has more corners. A coast drawn with many points on one side pulls the average to that side. The centroid depends only on the area, so adding corners along a straight edge does not change it.
Large Shapes and the Curve of the Earth
On a globe, the lines of longitude come together toward the poles, so the northern part of a shape is narrower than the southern part. The state of Colorado, drawn as a box from 37 to 41 degrees north, has an area of about 268,995 km². The middle of the box is at latitude 39.0000, but the centroid is at 39.0334, -105.55. The two are 3.7 km apart. Try the "The state of Colorado" example.
Coordinate Formats
You can show the coordinates as decimal degrees, with 2 to 10 decimals, or as degrees, minutes and seconds. The copy buttons give you what a program or a spreadsheet needs:
- lat, lon in decimal degrees, for a map search box or a spreadsheet.
- WKT, the text format of GIS databases. Note that WKT lists longitude first, for example POINT(-73.9857 40.7484).
- GeoJSON, a point with the coordinates in the order longitude, latitude.
- Degrees, minutes and seconds, for example 40° 44′ 54.2″ N, 73° 59′ 8.5″ W, are shown in the table when you choose them.
Typical Uses
A centroid turns a shape into one point. These are the common reasons people want that point.
| Task | Why the centroid helps |
|---|---|
| Label or pin for a parcel | Put the pin at the visual center so it falls inside the parcel, even for an odd shape. |
| Lat/lon for a region or a county | Give one coordinate for the whole shape, for example to sort or to measure distances. |
| Distance between areas | Measure from centroid to centroid instead of from an edge. |
| Joining data to a point | Turn each polygon into a point so it can be joined with a table of coordinates. |
| Weather or climate lookup | Ask a service for the value at the center of a field or a city. |
| Map view and zoom | Center the map on the middle of the shape, using the bounding box center. |
| Sales or service area | Find the middle of a territory and plan a depot or a visit from there. |
| Checking a drawn shape | Drag a corner and see how the balance point moves. |
Files: Open and Download
You can open GeoJSON (.geojson, .json) and KML files. The tool reads the polygons in them, including polygons with holes and multi-part shapes, and finds the centers of every shape and of all of them together.
You can download the centers as GeoJSON or KML, with the shapes added if you want, or as a CSV table with the name, method, latitude and longitude of each point. Open the files in Google Earth, QGIS or any GIS program. To see a file again, use the KML Viewer.
How to use the Polygon Centroid Finder
Choose Polygon and click the corners of the shape, then double-click to close it. Or choose Rectangle and click two corners. You can also open a GeoJSON or KML file.

The map shows the centroid in red and the visual center in green. Tick the boxes to show the bounding box center and the corner average too.

Click "Move corners" and drag a corner to a new place. The centers update while you drag. Right-click a corner to delete it.

Choose decimal degrees or degrees, minutes and seconds. Press a button to copy the lat/lon, the WKT or a GeoJSON point, or download GeoJSON, KML or CSV.

Assumptions and Limits
- The shape is laid on a flat plane centered on it, and the centroid is the center of mass of that flat shape. Areas and lengths are measured on a sphere with the Earth radius of 6,371 km. The result is accurate to a fraction of a percent of the shape size for shapes up to a few hundred km wide.
- A polygon is a flat shape with straight edges between its corners. The tool does not follow the curve of the Earth between two corners.
- The visual center is found to within about 0.5 m, or a small part of the shape size for a big shape. A shape with a very long, thin part can have more than one best point. The tool shows one of them.
- To measure an area without finding its center, use the Area Calculator. To draw a zone around a shape, use the Buffer Zone Generator.