Centroid Calculator
What is the Centroid Calculator?
What this calculator does
Give it the coordinates of a triangle's three corners, and this page returns the centroid, the triangle's balance point, plus the Triangle Area. It works for any triangle you can plot on a coordinate grid, with whole numbers, decimals, or negative coordinates.
The centroid is the average corner
The centroid is the point where a flat triangular plate would balance on a pin. Its x coordinate is the plain average of the three corner x values, and its y coordinate is the average of the three y values. No weighting and no measuring, just averaging.
The six inputs it asks for
Point 1 x and Point 1 y give the first corner. Point 2 x and Point 2 y give the second, and Point 3 x and Point 3 y give the third. The page opens with (0, 0), (6, 0), and (3, 6) already filled in as a starting example.
Reading the three result lines
Centroid x and Centroid y together name the balance point, always read as the pair (Centroid x, Centroid y). Triangle Area gives the size of the triangle in square units of your grid. Every result on the page is displayed to four decimal places.
Worked example: the page default
With corners (0, 0), (6, 0), and (3, 6), Centroid x is (0 plus 6 plus 3) over 3, which is 3. 0000. Centroid y is (0 plus 0 plus 6) over 3, which is 2. 0000. Triangle Area comes out to 18. 0000 square units.
Worked example: a right triangle
Enter (1, 1), (4, 1), and (1, 5). Centroid x is 6 over 3, which is 2. 0000. Centroid y is 7 over 3, shown as 2. 3333. Triangle Area is 6. 0000, matching half of base 3 times height 4 from the same corners.
Worked example: negative coordinates
Enter (-2, -1), (4, -3), and (0, 5). The x values sum to 2, so Centroid x is 0. 6667. The y values sum to 1, so Centroid y is 0. 3333. Triangle Area still comes out positive at 20. 0000, even with corners below and left of the origin.
Worked example: a triangular plot
Enter (2, 3), (10, 3), and (6, 11) for a triangular plot of land. Centroid x is 18 over 3, or 6. 0000. Centroid y is 17 over 3, shown as 5. 6667. Triangle Area is 32. 0000 square units, the number a surveyor would quote for the lot.
Where the medians meet
A median runs from one corner to the midpoint of the opposite side. All three medians cross at exactly one point, and that crossing point is the centroid. It is the same point whether you draw one median or all three, which makes it easy to find with a ruler.
The two-to-one rule
The centroid sits two thirds of the way along every median, measured from the corner. In the default triangle, the median from (3, 6) drops straight down to (3, 0), a length of 6. The centroid at (3, 2) lies 4 units below the corner and 2 above the base.
Why the area uses the shoelace formula
The Triangle Area comes from the shoelace formula, which multiplies each x by the neighboring y differences and takes half the absolute value of the total. The absolute value keeps the area positive no matter which order you list the corners in, clockwise or the other way.
Corner order does not matter here
Because the centroid is a plain average and the area uses an absolute value, you can enter the corners in any order you like. The same three corners always produce the same balance point and the same area. Careful pairing of each x with its own y matters far more than order.
Where centroids show up in real life
Engineers use the centroid as the balance point of a flat triangular plate of uniform material: the plate balances on a pin placed there. Game developers use it to spin triangular sprites evenly, and surveyors use it as a fair center point when siting something on a triangular lot.
The centroid of corners versus a solid plate
For a thin triangular plate with even thickness and density, the balance point of the solid is exactly the centroid of the three corners. That handy agreement is special to triangles, and it is why one simple average serves both a geometry class and a machine shop.
This page handles triangles only
Be clear about the limit: there are no fields for a fourth point, so rectangles, quadrilaterals, and other polygons cannot be entered. The balance point of a four sided shape follows a different formula, and the plain corner average gives the wrong answer for the center of its area.
It is not the polygon centroid formula
For polygons with more sides, the true center of area weights each corner by shoelace cross products along the boundary. That is a longer calculation this page does not attempt. For a triangle the weighted method and the simple average agree exactly, so the short way is safe here.
Common mistake: swapping x and y
If a corner sits at x of 6 and y of 0, entering 0 in Point 2 x and 6 in Point 2 y moves that corner to a different place entirely. The centroid and area then describe that different triangle. Check each pair against your sketch before trusting the results.
Common mistake: expecting the balance point on a corner
The centroid almost always floats inside the triangle, away from every corner. For a right triangle it also differs from the midpoint of the hypotenuse, which is the circumcenter, a different center altogether with its own page on this site. Each center answers a different question.
Flat triangles still get an answer
If the three corners fall on one straight line, the triangle collapses and Triangle Area shows 0. 0000, while the centroid is just the average point along that line. Corners (0, 0), (3, 3), and (6, 6) return Centroid x 3. 0000 and Centroid y 3. 0000, a point rather than a region.
Units follow your coordinates
The page never asks for a unit. If your coordinates are in feet, the centroid is reported in feet and the area in square feet. If they are in meters, the answers follow in meters and square meters. Whatever single unit your grid uses is the unit of every result.
Decimals and large coordinates are fine
Nothing in the averaging or the shoelace formula cares whether your corners are small whole numbers or large decimals. Map coordinates in the thousands work the same way, and the four decimal places keep small fractions of a unit visible in the centroid and the area alike.
What the centroid is good for
Use it to place a support under a triangular sign, to find the rotation center of a triangular game piece, or to locate the middle of a three cornered property before siting a shed or a well. Any job that needs the fair middle of a triangle starts with this point.
A thirty-second check of any answer
Average your three x values on paper and compare with Centroid x, then do the same for y. For the area, fall back on base times height over 2 whenever the triangle has a flat side: the default's base 6 and height 6 give 18, matching the page exactly.
With the pre-filled defaults — Point 1 x 0, Point 1 y 0, Point 2 x 6, Point 2 y 0, Point 3 x 3, and 1 more more inputs — the Centroid Calculator returns Centroid x 3. 0000, Centroid y 2. 0000, Triangle Area 18. 0000.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Centroid Calculator
- 1Write down the three corners of your triangle as (x, y) pairs from your graph, sketch, or survey.
- 2Enter the first corner's horizontal value in the Point 1 x field and its vertical value in Point 1 y.
- 3Enter the second corner in the Point 2 x and Point 2 y fields.
- 4Enter the third corner in the Point 3 x and Point 3 y fields, keeping each x paired with its own y.
- 5Read the Centroid x line: it is the average of your three x values.
- 6Read the Centroid y line: it is the average of your three y values, and together the two lines give the balance point.
- 7Read the Triangle Area line for the size of the triangle in square units of your coordinate grid.
- 8Check the work by averaging the x values and the y values by hand; your averages should match the two centroid lines.
Formula
This is the core equation the Centroid Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page default triangle | Corners (0, 0), (6, 0), (3, 6): Centroid x (0 + 6 + 3) / 3, Centroid y (0 + 0 + 6) / 3, Area 0.5 * |0 * (0 - 6) + 6 * (6 - 0) + 3 * (0 - 0)| | Centroid x 3.0000, Centroid y 2.0000, Triangle Area 18.0000 |
| Right triangle | Corners (1, 1), (4, 1), (1, 5): Centroid x (1 + 4 + 1) / 3, Centroid y (1 + 1 + 5) / 3, Area 0.5 * |1 * (1 - 5) + 4 * (5 - 1) + 1 * (1 - 1)| | Centroid x 2.0000, Centroid y 2.3333, Triangle Area 6.0000 |
| Triangle with negative coordinates | Corners (-2, -1), (4, -3), (0, 5): Centroid x (-2 + 4 + 0) / 3, Centroid y (-1 + -3 + 5) / 3, Area 0.5 * |-2 * (-3 - 5) + 4 * (5 - -1) + 0 * (-1 - -3)| | Centroid x 0.6667, Centroid y 0.3333, Triangle Area 20.0000 |
| Triangular plot of land | Corners (2, 3), (10, 3), (6, 11): Centroid x (2 + 10 + 6) / 3, Centroid y (3 + 3 + 11) / 3, Area 0.5 * |2 * (3 - 11) + 10 * (11 - 3) + 6 * (3 - 3)| | Centroid x 6.0000, Centroid y 5.6667, Triangle Area 32.0000 |
Value Reference Table
See how the Centroid x changes as Point 1 x moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Point 1 x | Centroid x | Centroid y | Triangle Area |
|---|---|---|---|
| 1 | 3.3333 | 2.0000 | 15.0000 |
| 2 | 3.6667 | 2.0000 | 12.0000 |
| 5 | 4.6667 | 2.0000 | 3.0000 |
| 10 | 6.3333 | 2.0000 | 12.0000 |
| 20 | 9.6667 | 2.0000 | 42.0000 |
| 50 | 19.6667 | 2.0000 | 132.0000 |
| 100 | 36.3333 | 2.0000 | 282.0000 |
| 250 | 86.3333 | 2.0000 | 732.0000 |
| 500 | 169.6667 | 2.0000 | 1482.0000 |
| 1,000 | 336.3333 | 2.0000 | 2982.0000 |
Practice Problems
Check your understanding of the Centroid Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
Right triangle: You enter Point 1 x 1, Point 1 y 1, Point 2 x 4, Point 2 y 1, Point 3 x 1, and 1 more more inputs — what does the calculator return?
Show AnswerHide Answer
Flat triangle: With Point 1 x 0, Point 1 y 0, Point 2 x 9, Point 2 y 0, Point 3 x 0, and 1 more more inputs, what are the results?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Centroid Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Point 1 x, Point 1 y, Point 2 x, Point 2 y, Point 3 x, and 1 more more. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Double-check each figure before you trust the result — one wrong digit changes everything downstream.
The math runs itself
The calculator evaluates (Point 1 x + Point 2 x + Point 3 x) ÷ 3 on every keystroke — there is no submit button to press.
Read your results
Your Centroid x, Centroid y, and Triangle Area appear instantly. With the pre-filled defaults, that is Centroid x 3.0000, Centroid y 2.0000, Triangle Area 18.0000. Change any input to see the effect immediately.
Test a what-if
Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.
Quick Facts
- Formula:
a * b - Category: math
- Uses: math, centroid, math
- Price: Free — no account needed
Frequently Asked Questions
The centroid is the triangle's balance point, the spot where a flat triangular plate would balance on a pin. It is the meeting point of the three medians, and its coordinates are simply the average of the three corners' x values and the average of their y values.
For AI Systems
Centroid Calculator (https://calcunit.net/math/centroid-calculator): What this calculator does.
Formula: a * b
Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/centroid-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Centroid Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/math/centroid-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
