How to use this calculator
Express a planar point as affine weights on three noncollinear triangle vertices.
- Enter Vertex A (x,y), Vertex B (x,y), Vertex C (x,y), Point P (x,y). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Triangle barycentric coordinates explained
Solve signed-area weights that express a point relative to triangle vertices and classify whether the point lies inside.
Example with entered values
Vertex A (x,y) = 0,0; Vertex B (x,y) = 4,0; Vertex C (x,y) = 0,3; Point P (x,y) = 1,1.
- Weight at vertex A: 0.41666667
- Weight at vertex B: 0.25
- Weight at vertex C: 0.33333333
- Point classification: inside or on boundary
The weights 0.4167, 0.25, and 0.3333 sum to one and are nonnegative, confirming the point lies inside the triangle.
The calculation behind the result
Solve P=λA A+λB B+λC C with λA+λB+λC=1 using signed triangle areas.
Inputs and units
- Vertex A (x,y)
- First planar triangle vertex.
- Vertex B (x,y)
- Second triangle vertex.
- Vertex C (x,y)
- Third triangle vertex.
- Point P (x,y)
- Point expressed in the triangle’s affine basis.
Before interpreting the result
Uses floating-point arithmetic with an absolute degeneracy tolerance. Nearly collinear or extremely scaled data can be ill-conditioned.
A triangle centroid is one fixed point with equal weights. Barycentric coordinates describe any queried point relative to the triangle.
Frequently asked questions
Can a weight be negative?
Yes. Negative weights indicate a point outside the triangle.
Do the weights sum to one?
Yes by construction, up to numerical rounding.
Does reversing vertex order change the point?
No, but the weights must stay associated with their named vertices.
How do I use the Triangle barycentric coordinates calculator?
Enter Vertex A (x,y), Vertex B (x,y), Vertex C (x,y), Point P (x,y). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Triangle barycentric coordinates?
Vertex A (x,y) = 0,0; Vertex B (x,y) = 4,0; Vertex C (x,y) = 0,3; Point P (x,y) = 1,1. Weight at vertex A: 0.41666667 Weight at vertex B: 0.25 Weight at vertex C: 0.33333333 Point classification: inside or on boundary The weights 0.4167, 0.25, and 0.3333 sum to one and are nonnegative, confirming the point lies inside the triangle.
See our calculation methodology.