Triangle Calculator
Solve any triangle: right triangles with Pythagoras and trig, 30-60-90 special ratios, and general triangles from SSS, SAS, ASA or AAS using the law of sines and cosines. Every result comes with a drawn diagram and step-by-step math. Free, instant, private.
✓ Right + General Triangles · ✓ Drawn Diagrams · ✓ Angles, Sides & Area🔧 JS ⏳ · Input — · Result — · Engine ⏳
Enter any two values — leave the rest blank. Angles in degrees.
📋 All Sides & Angles
Ratio: short = x · long = x√3 · hypotenuse = 2x — angles fixed at 30°, 60°, 90°.
Right Triangle Calculator — Pythagoras & Trig
A right triangle has one 90° angle; the side opposite it is the hypotenuse, always the longest. Enter any two values in the first tab and everything else solves:
- Pythagorean theorem: a² + b² = c² — legs to hypotenuse (c = √(a²+b²)) or backwards (a = √(c²−b²)).
- Trigonometry: sin(α) = a/c · cos(α) = b/c · tan(α) = a/b — and inverses (arcsin, arccos, arctan) from an angle to sides.
- Area: ½ × a × b — legs are the base and height.
Example: legs 3 and 4 → hypotenuse 5, angles ≈ 36.87° and 53.13°, area 6. Try it above — the drawn diagram and step-by-step panel update instantly.
The 30-60-90 Triangle — Fixed Ratio
Memorize one side and you know them all: a 10 cm short leg gives a ≈17.32 cm long leg and a 20 cm hypotenuse. These appear constantly on tests because the ratios are exact — the calculator applies √3 at full precision so rounding never bites you. The 30° angle faces the short leg, the 60° faces the long leg, the 90° faces the hypotenuse.
Solving Any Triangle — SSS, SAS, ASA, AAS
- SSS (three sides): Law of Cosines finds the largest angle first: cos(C) = (a² + b² − c²) ÷ (2ab); then Law of Sines or angle sum for the rest; area via Heron's formula: s = (a+b+c)/2, Area = √(s(s−a)(s−b)(s−c)).
- SAS (two sides + angle between): Area = ½·a·b·sin(C) directly; the third side comes from Law of Cosines; remaining angles from Law of Sines.
- ASA / AAS (two angles + a side): third angle = 180° − both; then Law of Sines: a = b·sin(A) ÷ sin(B).
Each mode validates the triangle inequality (any two sides must exceed the third) and the 180° angle sum — impossible triangles are rejected with an explanation instead of returning nonsense.
Why Use This Triangle Angle Calculator?
Four Solver Modes
Right, SSS, SAS, ASA and AAS — every triangle scenario covered in one page.
Drawn Diagram
The solved triangle renders to scale on canvas — see it, don't imagine it.
Steps Shown
Which law ran, with which numbers — homework-ready working out.
Impossible-Triangle Guard
Triangle inequality and 180° sum enforced — nonsense inputs get clear messages.
100% Private
Pure browser math — nothing sent, stored, or tracked.
Instant & Offline
Solves on every keystroke — perfect for checking homework at speed.
Popular Use Cases
- 🎓 Geometry and trigonometry homework — verify working, not just answers
- 🏗️ Construction and carpentry — rafter angles, roof pitches, bracing lengths
- 🧭 Navigation — bearing distances forming triangles on maps
- ⚙️ Engineering layouts — bracket angles and support lengths
- 🎨 Design and art — exact proportions for triangular compositions
- 📐 Quick checks — "is 5-12-13 right?" and one-side 30-60-90 lookups
Pro Tips for Triangle Problems
- Right triangle? Two knowns is enough: any two of a, b, c, α fully determine the rest — Pythagoras handles sides, trig handles angles.
- SSS: solve the biggest angle first: Law of Cosines on the longest side avoids ambiguous arc-cosine cases and always gives a valid angle between 0° and 180°.
- Spot special triangles: 3-4-5 family (right), 30-60-90 (x, x√3, 2x), 45-45-90 (x, x, x√2). Recognizing them saves all the trig work.
- Check with the angle sum: solved angles must total 180°. The general solver does this internally; a quick mental check catches typos in manual work.
- Keep units consistent: mixing meters and centimeters across sides silently breaks area and perimeter. Convert first, then solve.
0 Comments