Everything, Everywhere
Verified Specification | Standardized Formulas | Instant Precision
Secure & Private (Zero Data Retention) Free Access • No Sign-Up
Geometry & Trigonometry Law of Sines & Cosines Zero Server Uploads

Triangle Calculator & Universal Trigonometric Solver

Solve any triangle with 3 known values (SSS, SAS, ASA, AAS, SSA). Computes all missing sides, interior angles, area (Heron's formula), perimeter, inradius, circumradius, and altitudes with an interactive scalable vector diagram.

Triangle Area
31.30
Heron's Formula
Perimeter (P)
28.00
Semi-perimeter s = 14.00
Classification
Scalene / Obtuse
Angles sum to 180.0°
Inradius (r) & Circumradius (R)
r = 2.24 | R = 6.04
Inscribed & Circumscribed circles

📐 Dynamic Scale Geometry Diagram

Vector schematic drawn to exact mathematical scale showing vertex angles, side lengths, and interior geometry.

🔢 Complete Solved Triangle Metrics

Sides & Angles

Side a: 7.000
Side b: 9.000
Side c: 12.000
Angle A (α): 35.43° (0.618 rad)
Angle B (β): 48.19° (0.841 rad)
Angle C (γ): 96.38° (1.682 rad)

Altitudes & Medians

Altitude h_a: 8.94
Altitude h_b: 6.96
Altitude h_c: 5.22
Inradius (r): 2.24
Circumradius (R): 6.04
Area / Perimeter Ratio: 1.12

📐 Step-by-Step Trigonometric & Heron's Derivations

Solving triangle equations...

⚠️ 5 Fatal Traps & Geometric Ambiguity Pitfalls

1. The SSA (Side-Side-Angle) Ambiguous Case Catastrophe When given two sides and a non-included angle, blind calculators often return only a single solution. If the opposite side $a$ is shorter than adjacent side $b$ but longer than the perpendicular altitude ($b \sin A < a < b$), TWO completely valid, geometrically distinct triangles exist—one acute and one obtuse. Ignoring the second solution leads to catastrophic engineering errors in surveying and truss design.
2. The Triangle Inequality Violation Three positive numbers do not automatically make a triangle. By Euclid's Triangle Inequality Theorem, the sum of any two sides must strictly exceed the third ($a + b > c$). Attempting to construct a triangle with sides 4, 6, and 12 is mathematically impossible because the two shorter lengths cannot bridge the gap.
3. IEEE-754 Floating-Point Arccosine Domain Crash (NaN) In digital computation, rounding inaccuracies in the Law of Cosines can calculate cos(C) as 1.0000000000000002 for near-collinear triangles. Because Math.acos() is mathematically defined strictly on the interval [-1, 1], an unclamped value instantly returns NaN and crashes client-side scripts. Clamping via Math.min(1, Math.max(-1, cosVal)) is mandatory.
4. Degree vs. Radian Conversion Mismatch JavaScript native Math.sin(), Math.cos(), and Math.tan() functions accept angles solely in radians, while human users almost universally input degrees. Forgetting to multiply degrees by (π / 180) or forgetting to convert inverse trigonometric outputs back via (180 / π) produces completely chaotic geometric dimensions.
5. The Law of Sines Obtuse Angle Blindspot The inverse sine function arcsin(x) only returns values between -90° and +90°. If a triangle possesses an obtuse angle (> 90°), using the Law of Sines to solve for that largest angle will falsely return its acute supplement (180° - θ). The Law of Cosines must always be used to solve for the largest angle first because arccosine uniquely spans 0° to 180°.
Sponsored Utility
While You're Here
Sponsored Recommendations
Advertisement