Calculator: Triangle centroid
Enter the labelled inputs to calculate: Value Gx; Value Gy.
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
G=(A+B+C)/3
Use one coordinate unit throughout. Triangle vertices must be non-collinear. Polygon vertices must follow the boundary of a simple non-self-intersecting polygon; orientation changes the signed area.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
G=(A+B+C)/3
What assumptions apply?
Use one coordinate unit throughout. Triangle vertices must be non-collinear. Polygon vertices must follow the boundary of a simple non-self-intersecting polygon; orientation changes the signed area.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Value Ax = 0
Value Ay = 0
Value Bx = 4
Value By = 0
Value Cx = 0
Value Cy = 3
|
Value Gx: 1.333333333
Value Gy: 1
|
| 2 |
Value Ax = 1
Value Ay = 2
Value Bx = 5
Value By = -1
Value Cx = -2
Value Cy = 7
|
Value Gx: 1.333333333
Value Gy: 2.666666667
|
| 3 |
Value Ax = -3.5
Value Ay = 1
Value Bx = 2
Value By = 4.5
Value Cx = 0
Value Cy = -2
|
Value Gx: -0.5
Value Gy: 1.166666667
|