Centroid Calculator
Calculate the centroid (center of mass) of a set of points in 2D space. Enter coordinates and weights to find the weighted average position.
Was this calculator helpful?
How to use this tool?
This calculator computes the weighted centroid (center of mass) of a set of points in a 2D plane. Each point can have a weight that influences its contribution.
How to Use
- Enter points in the text area. Use the format:
x,y;weight(e.g.,0,0;1). Separate multiple points with a space or new line. - Weight is optional – if omitted, it defaults to 1. If provided, it must be a positive number.
- Click "Calculate Centroid".
Output
- Centroid coordinates (X, Y) – the weighted average of all points.
- Total weight – sum of all weights used in the calculation.
Example input: 0,0;2 4,0;1 2,3;1 → Centroid ≈ (1.5, 0.75)
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
The centroid is the geometric center of a set of points, calculated as the weighted average of their coordinates.
Enter each point as x,y;weight. Separate multiple points by space or new line. Weight is optional (default 1). Example: 0,0;1 1,1;2 2,2;1
If no weight is specified, each point is assumed to have a weight of 1, giving an unweighted average.