Triangle Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Why the Triangle Diagram Helps

This triangle calculator draws the three entered side lengths to scale, connecting the numerical solution to the shape those lengths actually make. Changing a side can widen its opposite angle, alter the height, and change the area; the canvas makes those effects visible as soon as you solve the triangle. The caption also states the solved dimensions and angles in text.

Triangle Side Calculation Walkthrough

A triangle is determined by three straight side lengths when those lengths can close into a single shape. This side-based calculator is useful whenever the available measurements are all lengths rather than angles, such as checking a triangular panel, sketching a geometry problem, or comparing possible truss shapes. Every Euclidean triangle has interior angles totaling 180 degrees, and its side lengths determine its area and several useful circle measurements.

Enter all three lengths using one consistent unit: they may be meters, feet, inches, or another common unit. The calculator first tests the triangle inequality: each pair of sides must add to more than the remaining side. A failed inequality means the proposed segments cannot meet to form a triangle, so no area, angles, or radii are reported.

For a valid triangle with side lengths a, b, and c, the calculator begins with the semi-perimeter s:

Formula: s = (a + b + c) / 2

s=a+b+c2

It then uses Heron's formula to calculate the triangle's area A from side lengths alone:

Formula: A = sqrt(s(s - a)(s - b)(s - c))

A=s(s-a)(s-b)(s-c)

The triangle calculator finds each interior angle with the law of cosines. For instance, the angle opposite side a is:

Formula: α = cos^-1 (b^2 + c^2 - a^2) / (2 b c)

α=cos-1b2+c2-a22bc

Corresponding law-of-cosines expressions produce β and γ. Perimeter is the direct sum a+b+c. An equilateral result has three equal sides and three 60-degree angles; in that special case the area is 34×a2.

The same solved area supplies the triangle's circle radii. The inradius, for the circle tangent to all three sides, is As. The circumradius, for the circle through all three vertices, is abc4A. These outputs describe how the triangle relates to its inscribed and circumscribed circles.

Triangle altitudes, medians, and angle bisectors offer additional ways to reason about the solved shape. An altitude is perpendicular to its opposite side, and it gives the area relationship A=base×height2. Medians meet at the centroid, angle bisectors meet at the incenter, and perpendicular bisectors meet at the circumcenter. This calculator uses the three sides directly, but these related features are useful independent checks in a drawing or hand solution.

Triangle Classification from Three Sides

After solving the entered side lengths, the calculator identifies the triangle by both side equality and its largest angle. By sides, a triangle is scalene when all lengths differ, isosceles when two match, and equilateral when all three match. By angles, it is acute, right, or obtuse.

By SidesCharacteristicsBy AnglesCharacteristics
ScaleneNo equal sidesAcuteAll angles < 90°
IsoscelesTwo equal sidesRightOne angle = 90°
EquilateralAll sides equalObtuseOne angle > 90°

Triangle classification provides a quick reasonableness check on the computed angles. Equal sides must have equal opposite angles, an equilateral triangle is necessarily acute, and a right triangle satisfies the Pythagorean relationship when its longest side is used as the hypotenuse. You do not need to select a type before calculating; the output derives it from the values entered.

Triangle Geometry in Historical Context

Triangle measurement has long been central to practical geometry. Surveying, construction, astronomy, and navigation all relied on relationships among lengths and angles before modern calculation tools existed. Heron's formula remains especially valuable because it obtains area from side measurements alone, while the law of cosines extends familiar right-triangle reasoning to any valid triangle. Those same relationships remain relevant in engineering drawings, graphics, and classroom geometry.

Worked Example: Solving a 5–7–8 Triangle

Consider side lengths 7, 8, and 5. Each pair exceeds the third side, so they form a valid triangle. The semi-perimeter is s=7+8+52=10. Heron's formula gives A=10×3×2×5=30017.32 square units. Its perimeter is 20 units. The calculator's law-of-cosines results are approximately 44.4°, 63.6°, and 72.0°, which total 180°; its side type is scalene and its angle type is acute.

Triangle Side Comparison Table

Sides (a,b,c)AreaPerimeterNotes
5,5,510.8315Equilateral
3,4,5612Right triangle
7,8,517.3220Scalene example

How to Interpret the Triangle Diagram

The triangle side diagram places c on the bottom edge and calculates the third vertex from all three entered lengths. It scales that result to fit the canvas while preserving the triangle's proportions. Increasing the base length changes the horizontal span, while a change in the other two sides can raise, lower, or shift the apex. Invalid side combinations clear the diagram rather than displaying a shape that cannot exist.

Triangle Measurement Limits and Uses

Heron's formula can lose some numerical precision for extremely thin or nearly degenerate triangles, where the semi-perimeter is close to one side. Ordinary side measurements are generally handled well, but rounded or uncertain inputs naturally produce rounded area, angle, and radius outputs. The displayed values should therefore be reported with precision appropriate to the measurements used.

Three-side triangle calculations occur in carpentry layouts, triangular mesh modeling, structural frames, and geometry exercises. Surveying and navigation also use triangles to infer unknown positions from known distances and angles. In every setting, using a single unit for all three sides and checking whether the sides can close are essential before interpreting a computed area or angle.

Using the Triangle Side Calculator

Enter positive values for sides a, b, and c, then select Solve Triangle. For a valid set of sides, the result reports area, perimeter, three interior angles, inradius, circumradius, and classifications by sides and angles. The Copy Result button copies the displayed result text. Calculations run in the browser, and the diagram updates after a successful solution.

Learning More About Triangle Geometry

Triangle geometry extends beyond side solving into trigonometry, coordinate methods, and special triangle centers. The centroid, incenter, circumcenter, and orthocenter each arise from different lines drawn within a triangle. Coordinate geometry can verify side lengths with distance calculations, while trigonometric ratios provide alternative methods when some angles are known. Exploring these topics helps connect the three-side solution to broader geometric reasoning.

Additional Triangle-Solving Tips

When checking a triangle solution by hand, sketch the sides and remember that the longest side is opposite the largest angle. Confirm that the angles total 180° and that the triangle inequality holds before applying a formula. For a right triangle, a2+b2=c2 is a useful check when c is the longest side. Avoid excessive intermediate rounding, especially when the triangle is very narrow.

Changing just one side can substantially alter a triangle's area and angles, even though perimeter changes linearly. For designs and measured objects, compare the result with the scaled diagram and retain the appropriate significant figures. A triangle calculator is most reliable when the input lengths represent the same physical unit and the reported precision does not exceed that of the measurements.

Enter three side lengths to calculate area, angles, and circle radii.
Triangle diagram will appear here after solving.

Playable geometry study

Triangle Tempo · Hold area and perimeter

Tweak side lengths to keep both area and perimeter inside a shifting band for ~80 seconds. Feel Heron's formula and the law of cosines by steering a live triangle instead of just reading numbers.

Score0
Best0 pts
TargetsA — · P —
Time80.0s

Controls

A/D or ←/→ nudge side a. W/S or ↑/↓ nudge side b. Q/E or Z/X adjust side c. Touch buttons mirror these moves. Keep the teal band hugging the cyan rails to earn streak heat.

Area grows fastest when sides pull apart while perimeter marches linearly—balance both to stay in the band.