Triangle Calculator from Coordinates
Type the coordinates of three corners, or drag them on the grid…
Type the coordinates of three corners, or drag them on the grid, to get the side lengths, angles and area, exact for whole-number points.
Corners in any order. Side a is opposite A (from B to C), and so on.
More optionsNo length unit
Length unit
A label for the answers; the maths is the same in any unit.
ExampleArea
11sq units
By the shoelace formula. The triangle is obtuse and scalene, with one angle over 90°.
Type your own values, or drag a corner.
Drag a corner; it snaps to the grid every whole unit.
| Side | Opposite angle |
|---|---|
| a = 7.2801exactly √53 | A = 100.305° |
| b = 4.4721exactly 2√5 | B = 37.185° |
| c = 5 | C = 42.51° |
Area 11Perimeter 5 + 2√5 + √53 ≈ 16.7522
Perimeter, heights and circlesEvery other measurement of this triangle
| Area | 11 square units |
|---|---|
| Perimeter | 5 + 2√5 + √53 ≈ 16.7522 |
| Height to side a | 3.0219 |
| Height to side b | 4.9193 |
| Height to side c | 4.4 |
| Inradius (inscribed circle) | 1.3133 |
| Circumradius (circle through the corners) | 3.6997 |
| Angles in radians | A 1.7506, B 0.649, C 0.7419 |
How this works: 6 sources,
How this works
Method
Each side is the distance between two corners, found with the distance formula, which is Pythagoras on the horizontal and vertical gaps: d = √((x₂ − x₁)² + (y₂ − y₁)²). From (0, 0) to (2, 5) that is √(4 + 25) = √29. Full method
Sources
How it’s tested
2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: any three values, both triangles in the ambiguous case, exact answers, worked steps, a drawing you can drag and seven focused pages.
How to work out a triangle from its corners
Each side is the distance between two corners, found with the distance formula, which is Pythagoras on the horizontal and vertical gaps: d = √((x₂ − x₁)² + (y₂ − y₁)²). From (0, 0) to (2, 5) that is √(4 + 25) = √29.
The area comes straight from the coordinates by the shoelace formula: multiply each x by the difference of the other two y values, add, and halve. For the corners (0, 0), (6, 0) and (2, 5) it is ½ |0 × (0 − 5) + 6 × (5 − 0) + 2 × (0 − 0)| = ½ × 30 = 15. The sign of the sum before the bars says whether the corners go round anticlockwise (positive) or clockwise.
With the three sides known, the angles come from the law of cosines, as for any triangle: here about 68.2°, 51.34° and 60.46°. Whole-number corners always give an area that is a whole number or ends in .5, and side lengths that are square roots of whole numbers, which is why the calculator can keep them exact.
d = √((x₂ − x₁)² + (y₂ − y₁)²) · Area = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|
- The shoelace formula, also called Gauss’s area formula, was described by Albrecht Ludwig Friedrich Meister in 1769. Source: Wikipedia, Shoelace formula.
- US grade 8 standards ask students to apply the Pythagorean theorem to find the distance between two points in a coordinate system (8.G.B.8). Source: Common Core State Standards, Grade 8 Geometry (8.G.B.7, 8.G.B.8).
Triangles from corner coordinates
Side lengths, area and largest angle for triangles given by three points, worked out with the distance and shoelace formulas.
| Corners | Sides | Area | Largest angle |
|---|---|---|---|
| (0, 0) (4, 0) (0, 3) | 5, 3, 4 | 6 | 90° |
| (0, 0) (6, 0) (2, 5) | √41, √29, 6 | 15 | 68.2° |
| (1, 2) (5, −1) (3, 6) | √53, 2√5, 5 | 11 | 100.3° |
| (−2, −1) (3, 1) (0, 4) | 3√2, √29, √29 | 10.5 | 66.8° |
| (0, 0) (5, 0) (2.5, 4.33) | √249989/100, √249989/100, 5 | 10.825 | 60° |
| (1, 1) (7, 1) (4, 9) | √73, √73, 6 | 24 | 69.44° |
| (−3, 2) (2, −2) (4, 5) | √53, √58, √41 | 21.5 | 67.29° |
| (0, 0) (8, 2) (3, 7) | 5√2, √58, 2√17 | 25 | 68.2° |
Common questions
Does the order of the points matter?
Not for the lengths, angles or area. The order only names the corners (the first point is A) and decides the sign inside the shoelace formula, which the absolute value removes.
What if the three points are on one line?
Then the shoelace sum is 0 and there is no triangle, only a line segment. The calculator says so; move one point off the line.
How do I check a right angle from coordinates?
Two sides are perpendicular when the products of their gaps cancel: from (0, 0) to (4, 0) and to (0, 3), 4 × 0 + 0 × 3 = 0. Or check Pythagoras on the side lengths: 3² + 4² = 5².