Quickly find the geometric center of any rectangle. Input the coordinates of two opposite corners (x1, y1) and (x2, y2) and get the precise centroid coordinates (Cx, Cy) with our easy-to-use Centroid of Rectangle Calculator.
Formula:
The centroid (Cx, Cy) of a rectangle defined by two opposite corners (x1, y1) and (x2, y2) is calculated as follows:
- Cx = (x1 + x2) / 2
- Cy = (y1 + y2) / 2
Where:
- x1, y1 are the coordinates of the first corner.
- x2, y2 are the coordinates of the opposite corner.
- Cx, Cy are the x and y coordinates of the rectangle's centroid.