Formula: Triangle Solver Mathematical Identity
- sideA: Side A (numeric parameter)
- sideB: Side B (numeric parameter)
- sideC: Side C (numeric parameter)
Solve SSS triangles for area, all three interior angles, inradius, and circumradius.
Each angle is named after the side facing it: angle A is opposite the first input, B opposite the second and C opposite the third. For the default 7, 8 and 9 that gives 48.19, 58.412 and 73.399 degrees. The largest angle always faces the longest side, which is a quick check that you entered the sides where you meant to.
Add the two shorter sides. If the total is not larger than the longest side, no triangle exists. The calculator checks this for you: sides of 1, 2 and 10, or a flat set such as 3, 4 and 7, return a message saying the lengths cannot form a triangle. If that happens with real measurements, one of them is wrong.
No. Heron's formula is symmetric in a, b and c, so any order of 7, 8 and 9 gives 26.833 square units, a semiperimeter of 12, r of 2.236 and R of 4.696. Only the angle labels follow the order, since each angle is named after the box holding the side opposite it.
Square the longest side and compare it with the sum of the squares of the other two. If they match exactly, or within your measuring error, the angle opposite the longest side is 90 degrees. The angle lines confirm it: 3, 4 and 5 shows angle C at exactly 90 degrees, with an area of 6 and a circumradius of 2.5, half the hypotenuse.
Yes, that is one of its classic uses. Measure the three straight edges between the corners in one unit and enter them. For a plot with more than three corners, split it into triangles along diagonals, measure the diagonals too, solve each triangle here, and add the areas. Very thin triangles amplify tape errors, so avoid long sliver shapes where you can.
It is the radius of the biggest circle that fits inside the triangle, which is useful for fitting a round object, a table or a planter into a triangular space. For the default triangle that circle has a radius of 2.236 units. Its centre sits where the three angle bisectors cross, equally distant from every side.
Three points that nearly lie on a straight line can only be joined by a very large circle. Sides of 10, 10 and 19.9 give a circumradius of 50.063 against an inradius of 0.498. When R is many times bigger than the longest side, the triangle is close to flat and small changes in the sides will swing the results.
Any single unit. The area comes out in that unit squared and the radii in that unit; the angle is always in degrees. The danger is mixing units, for example two sides in feet and one in inches, which describes a different triangle or one the calculator rejects as impossible. Convert everything to one unit before you type it in.
Only as precise as the sides. On the default triangle, changing side a from 7 to 4.2 swings angle C from 73.399 to 89.454 degrees, so even a small measuring slip moves the angle noticeably. For cutting work, measure to a fine fraction of each side's length and round the angle no further than your saw or gauge can actually set.
Not directly; this solver only takes three sides. If you know two sides and the angle between them, first find the third side with c² = a² + b² − 2ab cos C, then enter all three here. If you know an angle that is not between the two known sides, there may be two possible triangles, and you need to work out which one you have.
Three side lengths are all this solver asks for. The default triangle has sides of 7, 8 and 9 units, and from those alone it fixes the area, one interior angle and the two classic circles that fit the triangle.
The answer line is the area, 26.833 square units. Below it are the semiperimeter s of 12 units, an inscribed circle radius r of 2.236 units, a circumscribed circle radius R of 4.696 units, and all three interior angles: A of 48.19, B of 58.412 and C of 73.399 degrees.
The semiperimeter is just half the total edge length: 7 + 8 + 9 is 24, and half of that is 12. It looks like a minor line, but Heron's formula and the inradius both run through it, so it is worth checking first. If s is wrong, the side values were typed wrong.
Each angle is named after the side opposite it, so angle A faces side a, the first input, and angle C faces side c, the third. All three come from the law of cosines, worked through further down. Units follow whatever you typed: sides in metres give an area in square metres, sides in feet give square feet.
Heron's formula finds the area of any triangle from its sides with no height and no angle needed. You multiply s by its distance from each side, s − a, s − b and s − c, and take the square root.
For the default, those four numbers are 12, 5, 4 and 3. Multiply them together (12 × 5 is 60, then times 4, then times 3) and take the square root of the product, which is about 26.8328. The calculator rounds that to 26.833.
The neat thing about the formula is where it breaks. Each bracket s − a, s − b, s − c is half of the amount by which the other two sides exceed one side. If any bracket is zero, the triangle has collapsed into a straight line and the area is zero. If any bracket is negative, the three lengths cannot form a triangle at all.
Surveyors and builders like this formula because sides are easy to measure on the ground with a tape, while heights and angles are not. Pace or tape the three edges of a triangular plot, enter them, and you have the area without ever finding a perpendicular.
It does have one practical weakness. For very thin triangles, where one side is almost the sum of the other two, s − c becomes a small difference of two large numbers. Small measuring errors in the sides then move the area a lot, so a sliver-shaped plot needs extra care with the tape.
The angle comes from the law of cosines: cos C = (a² + b² − c²) / (2ab). For the default, that is (49 + 64 − 81) divided by (2 × 7 × 8), which is 32 divided by twice 56, or about 0.2857. The inverse cosine of 0.2857 is 73.399 degrees.
The other two angles on the result come from rotating the same formula. For angle A, opposite side a, use cos A = (b² + c² − a²) / (2bc). With the default that is 96 divided by twice 72, about 0.667, which gives 48.19 degrees. For angle B, cos B = (a² + c² − b²) / (2ac), which is 66 divided by twice 63, about 0.524, giving 58.412 degrees, as the result shows. The three angles 48.19, 58.412 and 73.399 add up to a straight angle, as any triangle's must.
Order matters only for the labels. Entering 8, 9 and 7 instead puts the 7 in the third box, so angle C now reads 48.19 degrees, the angle opposite the shortest side, and the other two angles swap names to match. Area, s, r and R do not change when you reorder. If your drawing labels the corners differently, enter each side in the box whose letter matches the corner facing it.
The largest angle is always opposite the longest side. If the longest side squared is bigger than the sum of the other two squared, that angle is obtuse; if it is equal, the triangle is right-angled; if smaller, all three angles are acute. For the default, 81 is less than 49 plus 64, so the triangle is acute.
Change side a from 7 to 4.2 and keep 8 and 9. The area falls to 16.799 square units, the semiperimeter to 10.6, the inradius to 1.585 and the circumradius to 4.5, while angle C opens up to 89.454 degrees.
That near-right angle is no accident. 4.2 squared is 17.64 and 8 squared is 64, which together make 81.64, just above 81, the square of side c. When a² + b² is very close to c², the angle opposite c is very close to 90 degrees. Here it misses by about half a degree.
The circumradius tells the same story. For a right triangle the circumscribed circle has the hypotenuse as its diameter, so R would be exactly half of 9, or 4.5. The calculator shows 4.5 to the displayed precision, because the triangle is so nearly right-angled.
The opposite move, raising a from 7 to 11, gives an area of 35.497, s of 14, r of 2.536 and R of 5.578, and angle C closes to 53.779 degrees. Side a is now the longest, so the biggest angle has moved to A, which the result shows as 80.406 degrees, with B at 45.816. The three still add up to a straight angle.
Not every three lengths make a triangle. The triangle inequality says each side must be shorter than the other two added together. Sides of 1, 2 and 10 fail badly, because 1 plus 2 is nowhere near 10.
The calculator checks this before it works anything out. Enter 1, 2 and 10 and, instead of an area, it returns a message saying these lengths cannot form a triangle because each side must be shorter than the other two added together. Under Heron's formula the number inside the square root would be negative, so there is no real area to report.
The borderline case is rejected too. Sides of 3, 4 and 7 meet the inequality with equality: 3 plus 4 is exactly 7, so the shape is a flat line with no area and no meaningful inradius or circumradius. The calculator treats it as not a triangle and shows the same message.
If you see that message for a shape you measured on the ground, the triangle exists and one of the measurements is wrong. Add the two shortest sides and compare them with the longest to see by how much the numbers miss, then remeasure the edge most likely to be off. A near miss usually means a very thin triangle, where small tape errors matter most.
The inradius r is the radius of the largest circle that fits inside the triangle touching all three sides. The calculator finds it as area divided by semiperimeter: 26.833 divided by 12 gives 2.236. Its centre is where the three angle bisectors meet.
The circumradius R is the radius of the circle that passes through all three corners, found as abc divided by four times the area. For the default, multiply 7, 8 and 9 together and divide by four times 26.833, and you get 4.696.
Two familiar triangles make good tests. A 3-4-5 right triangle gives an area of 6, r of 1 and R of 2.5, half the hypotenuse, exactly as the geometry says it should. An equilateral triangle with sides of 5 gives an area of 10.825, r of 1.443 and R of 2.887, and R is exactly twice r, which only happens for an equilateral triangle.
In general R is at least twice r, and the further a triangle is from equilateral, the bigger that gap gets. A long sliver such as 10, 10 and 19.9 has an inradius of only 0.498 but a circumradius of 50.063, because the circle through three nearly collinear points has to be enormous. A large R compared with the sides is a sign the triangle is close to flat.
Most real uses start with three tape measurements. A triangular garden bed, a gable end, a corner shelf or a truss panel can all be solved from their edges.
Measure each side along a straight line between corners, not along a curved edge or around an obstacle. Keep all three in the same unit. Mixing a side in feet with two in inches will still give a result, but it will describe a different triangle, or be rejected as one that cannot exist.
For land, many people split an irregular plot into triangles from one corner, measure each triangle's three sides, and add the areas. This calculator handles one triangle at a time, so record each area and add them up yourself. Remember that a field's area measured along a slope is larger than its plan area on a map.
Scale is straightforward. Multiply every side by 10 and the area is multiplied by 100 while the angles stay the same. Entering 70, 80 and 90 gives an inradius of 22.361, a circumradius of 46.957 and the same angle C of 73.399 degrees as the default.
For cutting timber or sheet material, the angle lines are what you set on a saw or a bevel gauge. Convert the angle at each corner from the law of cosines and mark them before cutting, since a frame built to the right lengths but the wrong angles will not close.
The area is shown to three decimals and the explanation line to four, so 26.833 and 26.8328 are the same result at different precision. If you carry it into further work, use the longer value.
Every side must be greater than zero. A zero or a minus sign typed by accident returns an error rather than a result, so a slip of the keyboard cannot turn into a plausible-looking area. Even so, glance at the semiperimeter line to confirm the sides were read the way you intended.
Measured sides carry error, and that error flows into the angle. On the default triangle, a one-unit change in side a moves angle C by several degrees, as the 4.2 and 11 cases show at larger scale. If the angle needs to be accurate to a degree, the sides need to be measured accurately to a small fraction of their length.