Angle from Three Points Calculator
The angle formed at the vertex by three points given as coordinates, in the plane and in space. Also gives the other angles, sides and area of the triangle.
How do you find an angle from three points?
Three points define an angle: the middle point is the vertex and the other two show the arms. In this calculator the vertex is point B and the result is angle ABC.
First write the vectors from the vertex to the other two points: BA = A − B and BC = C − B. Then use the dot product: cos β = (BA · BC) / (|BA| × |BC|). The dot product is the sum of the products of matching components.
Example
For A(3, 0), B(0, 0) and C(3, 3), BA = (3, 0) and BC = (3, 3). The dot product is 3 × 3 + 0 × 3 = 9 and the lengths are 3 and 4.243. So cos β = 9 / (3 × 4.243) = 0.7071 and β = 45 degrees.
Other angles and the area of the triangle
The same steps at vertices A and C give the other two angles, and the three add up to 180 degrees. The area of the triangle is |x₁·y₂ − y₁·x₂| / 2 in the plane and half the magnitude of the cross product in space.
Angles in space
With three dimensional points the formula stays the same, with the z component added to the dot product and the lengths. The angle between two pipes, two steel members or two cables meeting at a node is found this way.
Where is it used?
Included station angles in a traverse, checking from coordinates whether a corner is square, reading an elbow or bend angle off a drawing, and joint angles of a robot arm all rest on this calculation.
Limits
The result lies between 0 and 180 degrees. The angle is undefined when the vertex coincides with one of the other points. With very short arms, a small measuring error in the coordinates changes the angle noticeably.
Related calculators
-
Geometry
Triangle Calculator: Sides, Angles and Scale Drawing
Enter three known values, including a side, to find missing sides, angles, area and perimeter. See a scale drawing and both solutions when valid. Free. -
Geometry
Distance Between Two Points Calculator
Distance between two points from their coordinates, in the plane and in space. Midpoint, coordinate differences, slope and direction angle, with working. -
Geometry
Projection Calculator: Parallel and Perpendicular Components
Scalar and vector projection of one vector onto another, parallel and perpendicular parts, and the distance and foot of the perpendicular from a point to a line. 2D and 3D. -
Geometry
Intersection of Two Lines Calculator
The point where two lines meet and the angle between them. Enter the lines as y = mx + n, ax + by + c = 0 or by two points each. Parallel and coincident cases are flagged. -
Mathematics
Trigonometry Calculator: Sin, Cos, Tan and Inverses
Calculate sin, cos, tan, cot, sec and csc in degrees, radians or gradians. Use inverse functions to find angles within one turn. Free, no account needed. -
Geometry
2D Transformation Matrix: Rotate and Translate Coordinates
Translate, rotate, scale and reflect a list of points. Chains the steps in order and gives the 3×3 transformation matrix, the new coordinates and a before and after sketch.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.