Centroid Calculator (Using Medians)
Determine the geometric center of a triangle by providing the coordinates of its three vertices.
X-coordinate of the first point.
Y-coordinate of the first point.
X-coordinate of the second point.
Y-coordinate of the second point.
X-coordinate of the third point.
Y-coordinate of the third point.
Intermediate Values (Side Midpoints)
Midpoint of BC (M1): (5.5, 1.5)
Midpoint of AC (M2): (1.5, 4.5)
Midpoint of AB (M3): (6, 5)
What is a Centroid (Calculated Using Medians)?
The centroid of a triangle is the geometric center of the shape. It is the point where the three medians of the triangle intersect. A median is a line segment that connects a vertex (a corner of the triangle) to the midpoint of the opposite side. Imagine a triangle cut out of a piece of cardboard with uniform density; the centroid is the point where you could balance the triangle perfectly on the tip of a pin. For this reason, it is also known as the center of gravity or center of mass. This calculator helps you find the exact coordinates of the centroid when you know the coordinates of the triangle’s three vertices.
The Centroid Formula and Explanation
To calculate the centroid of a triangle, you don’t need to physically draw the medians. Instead, you can use a simple and direct formula based on the coordinates of the vertices. The centroid’s coordinates are simply the average of the coordinates of the three vertices.
If the vertices of the triangle are A(x₁, y₁), B(x₂, y₂), and C(x₃, y₃), then the centroid G(Gx, Gy) is calculated as:
Gx = (x₁ + x₂ + x₃) / 3
Gy = (y₁ + y₂ + y₃) / 3
This method works because the point of intersection of the medians has these exact average coordinates. You can find more details in our article about the area of a triangle calculator.
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| (x₁, y₁), (x₂, y₂), (x₃, y₃) | Coordinates of the three vertices of the triangle. | Unitless (e.g., pixels, cm, inches) | Any real number |
| (Gx, Gy) | Coordinates of the calculated centroid. | Same as input units | Dependent on vertex coordinates |
Practical Examples
Example 1: A Simple Right Triangle
Let’s take a triangle with vertices at A(0, 6), B(0, 0), and C(8, 0).
- Inputs: x₁=0, y₁=6; x₂=0, y₂=0; x₃=8, y₃=0
- Calculation:
- Gx = (0 + 0 + 8) / 3 = 2.67
- Gy = (6 + 0 + 0) / 3 = 2
- Result: The centroid is located at approximately (2.67, 2).
Example 2: A Scalene Triangle
Consider a triangle with vertices at A(2, 8), B(10, 2), and C(1, 1), as in our calculator’s default values.
- Inputs: x₁=2, y₁=8; x₂=10, y₂=2; x₃=1, y₃=1
- Calculation:
- Gx = (2 + 10 + 1) / 3 = 13 / 3 ≈ 4.33
- Gy = (8 + 2 + 1) / 3 = 11 / 3 ≈ 3.67
- Result: The centroid is located at approximately (4.33, 3.67). This demonstrates how the centroid is always inside the triangle. For other triangle centers, see our orthocenter calculator.
How to Use This Centroid Calculator
- Enter Vertex Coordinates: Input the x and y coordinates for each of the three vertices (A, B, and C) of your triangle into the designated fields.
- View Real-Time Results: The calculator automatically updates the results as you type. The primary result is the centroid’s coordinates (Gx, Gy).
- Analyze Intermediate Values: You can also see the coordinates for the midpoints of each side of the triangle, which are used to construct the medians.
- Visualize the Result: The dynamic chart plots your triangle, its three medians (lines from each vertex to the opposite midpoint), and the calculated centroid, providing a clear visual confirmation.
- Reset or Copy: Use the “Reset” button to return to the default values or “Copy Results” to save the calculated coordinates for your records.
Key Factors That Affect the Centroid
The position of the centroid is directly and solely influenced by the positions of the three vertices.
- Vertex Position: Changing the coordinate of even one vertex will shift the centroid’s position. The centroid moves in the same direction as the vertex that is moved.
- Symmetry: In an equilateral triangle, the centroid coincides with the circumcenter, incenter, and orthocenter. In an isosceles triangle, the centroid lies on the axis of symmetry.
- The 2:1 Ratio Property: The centroid divides each median into two segments with a ratio of 2:1. The segment connecting the vertex to the centroid is twice as long as the segment connecting the centroid to the midpoint of the opposite side. You can learn more with an circumcenter calculator.
- Averaging Nature: Because the centroid is an average, it is always located inside the triangle, regardless of whether the triangle is acute, obtuse, or right-angled.
- Scaling: If you scale the triangle up or down by a certain factor from the origin, the centroid’s coordinates will also be scaled by the same factor.
- Translation: If you move the entire triangle without changing its shape (translation), the centroid will move by the exact same amount in the same direction.
Frequently Asked Questions (FAQ)
The centroid is the intersection of the medians (lines to midpoints), while the orthocenter is the intersection of the altitudes (perpendicular lines to opposite sides). The centroid is always inside the triangle; the orthocenter can be outside for an obtuse triangle.
The units of the centroid will be the same as the units used for the vertex coordinates. If your vertices are in centimeters, the centroid’s coordinates will also be in centimeters from the origin. The calculation itself is unitless.
No, never. The centroid is the center of mass, and as an average of the vertices’ positions, it must lie within the bounds of the triangle.
The formal definition of a centroid is the point where the three medians of a triangle intersect. While our formula provides a direct calculation, it is fundamentally derived from this geometric property involving the medians.
If the three points are collinear (form a straight line), you technically no longer have a triangle. The formula will still work, and it will give you the coordinate of the centroid of that line segment.
The calculation is perfectly accurate based on the mathematical formula. The displayed results are rounded to two decimal places for readability, but the underlying calculation is precise.
No. Since the formula is based on addition, the order in which you enter the vertices (A, B, C) does not affect the final result. (x₁ + x₂ + x₃) is the same as (x₂ + x₁ + x₃).
Each of the three medians divides the triangle into two smaller triangles of equal area. All six smaller triangles formed by connecting the centroid to the vertices also have equal areas.
Related Tools and Internal Resources
Explore other geometric concepts with our suite of calculators:
- Pythagorean Theorem Calculator: Solve for sides of a right triangle.
- Area of a Triangle Calculator: Find the area using different formulas.
- Circumcenter Calculator: Find the center of the circle that passes through all three vertices.
- Orthocenter Calculator: Locate the intersection of the triangle’s altitudes.
- Incenter Calculator: Find the center of the triangle’s inscribed circle.
- Aspect Ratio Calculator: Useful for scaling shapes and images.