Coordinates are in grid units (1 unit = 1/40 of the SVG width). Angles always sum to 180 degrees.
The formulas behind the numbers
The area of a triangle is found with the shoelace formula, which works for any shape: multiply each x by the next y, subtract the next x times the current y, add the results around the figure, and halve the absolute total. This gives the same answer as the familiar base times height divided by two, but without needing to know which side is the base.
The perimeter is simply the sum of the three side lengths, each found from the distance formula, which is the square root of the sum of the squared differences in x and y. Each angle is found from the cosine rule: the cosine of the angle at a corner equals the sum of the squares of its two adjacent sides minus the square of the opposite side, all divided by twice the product of the adjacent sides.
Dragging a corner keeps all of this consistent. Angles always add to exactly 180 degrees inside a flat triangle. If you drag the three points into a straight line, the area collapses to zero, which is the tool telling you the shape is no longer a triangle.
Why use an interactive figure
Geometry is easier to understand when you can move it. Watch how the area changes differently from the perimeter: stretching one corner far out can add a lot of perimeter while adding little area. Watch an angle grow as you flatten the opposite side, and shrink as you raise it. These are the relationships that textbooks describe, made visible.
How to use the lab
- Drag any of the three blue handles. The triangle redraws and all eight measurements update while you move.
- Watch the angle values as you drag a corner across from a side. Flatten the triangle and the opposite angle shrinks toward zero; pull the corner up and it grows toward a right angle and beyond.
- Compare area with perimeter. Push one corner far out and the perimeter climbs quickly while the area grows much more slowly — a shape can have a long outline without enclosing much.
- Line all three points up to see the area collapse to zero. That is the tool confirming the points no longer form a triangle.
A worked example you can reproduce
Put one corner at the origin, one four units to the right, and one three units up. The three sides come out as 3, 4 and 5 grid units, which is the classic right triangle: the angle between the two shorter sides reads 90°, and the other two angles are about 36.9° and 53.1°. The perimeter is 12 units and the area is 6 square units, which matches base times height divided by two: 4 × 3 ÷ 2 = 6.
Now drag the top corner sideways while keeping its height. The base and the height stay the same, so the area does not move, but the two slanted sides and their angles change. That is a useful check on the formula: the area depends only on the base and the perpendicular height, not on how slanted the sides are.
Where the numbers are useful
Reading a triangle from its coordinates is the same skill used in surveying, drafting, roof framing and screen layout. If you know where the corners are, you can get every length and angle without measuring each one separately. For a right triangle, the distance formula reduces to the Pythagorean theorem, and for any other triangle the angle calculation is the law of cosines. If you only need the side lengths, the triangle calculator takes them directly, and the distance formula page covers the two-point step on its own.
Frequently asked questions
Is this tool free? Yes, it is free and needs no login, and the drag interaction works on phones and tablets as well as desktop.
What are the units? Measurements are in grid units, where one unit is one fortieth of the drawing width, so you can compare shapes without committing to centimetres or inches.
Can the angles ever not sum to 180? Only if the points stop forming a triangle, for example when they line up. Otherwise they always sum to 180 degrees.
How accurate are the measurements? Side lengths are shown to three decimals and angles to one decimal, calculated from the exact coordinates rather than measured from the drawing, so rounding is the only source of error.
Can I use this in a classroom? Yes. Project it, drag a corner and ask what will happen to the area before you move it — the prediction-then-check loop is the part that makes the relationship stick.
Does it work offline? The page has no network calls after the first load, so the lab keeps working on a plane, in a classroom with weak Wi-Fi, or with the tab left open.
Last updated