CalcWorldHub
Free online calculator · no signup

Triangle barycentric coordinates calculator

Express a planar point as affine weights on three noncollinear triangle vertices.

4,000 tools
Triangle barycentric coordinates calculator — Vertex A (x,y), Vertex B (x,y), Vertex C (x,y) and calculation method
Triangle barycentric coordinates calculator: inputs and calculation method.

How to use this calculator

Express a planar point as affine weights on three noncollinear triangle vertices.

  1. 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.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Original calculation guide

Triangle barycentric coordinates explained

Solve signed-area weights that express a point relative to triangle vertices and classify whether the point lies inside.

Weight at vertex A0.4167
Weight at vertex A: 0.41666667 in the worked scenario below.

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.