1. Right triangle
How to use
Load the right triangle and compare the two sides of the formula.
Outcome
C = 90°, c = 5 and x = 0.
Elysia Tools
Navigation
Drag the vertices of a triangle to compare the included angle and its opposite side. Follow a signed projection to derive the law of cosines.
Open static visualizationTool usage guide
Load the right triangle and compare c² with a² + b². Then load the obtuse triangle and see where the altitude from B meets the extended base.
The sides BC and CA have lengths a and b and meet at C. The opposite side AB has length c. The relation is c² = a² + b² − 2ab cos(C). With three known sides, rearrange the equation to find cos(C).
Measure x from C in the direction of A. The foot D lies before C when C is obtuse, giving x < 0. If D passes beyond A, the distance to A is still |b − x|. Squaring the leg lengths makes the same proof work in both positions.
Collinear or coincident vertices
Angles and projections are left blank until the three vertices enclose a triangle.
Sides close to the triangle-inequality limit
In a very thin triangle, subtracting nearly equal numbers can lose precision. The three-side calculation uses a half-angle identity to preserve accuracy near 0° or 180°.
How to use
Load the right triangle and compare the two sides of the formula.
Outcome
C = 90°, c = 5 and x = 0.
How to use
Load the obtuse triangle, then look at C and the foot D in Proof.
Outcome
C = 120°, c = 7 and x = −1.50.
How to use
Load the side-side-side example and compare the reading with arccos((a² + b² − c²)/(2ab)).
Outcome
Sides 5, 6 and 7 give C ≈ 78.46°.
SAS gives two sides and the angle between them, which determine the third side. SSS gives three sides, from which you can calculate any interior angle.
At a Glance

Verified Results
Every parameter set and result below is a fixed output of this page's built-in model (each asserted before delivery) and reproduces directly: set the Parameters column in the interactive panel.
| Scenario | Parameters | Result |
|---|---|---|
| Equilateral triangle | a = b = 5, C = 60° | c = 5 |
| Right triangle | a = 3, b = 4, C = 90° | c = 5, x = 0 |
| Obtuse triangle | a = 3, b = 5, C = 120° | c = 7, x = −1.50 |
| Side-angle-side (SAS) | a = 5, b = 8, C = 60° | c = 7 |
| Side-side-side (SSS) | a = 5, b = 6, c = 7 | C ≈ 78.46° |
Sources
Papers and datasets underlying this visualization - every formula, algorithm, and data anchor on the page traces back to the sources below.
Jay Abramson (2021). 8.2 Non-right Triangles: Law of Cosines. Precalculus 2e, OpenStax.
Euclid, edited and translated by Richard Fitzpatrick (2008). Euclid's Elements of Geometry. Revised and corrected edition, Book 2.
MIT OpenCourseWare (2010). 18.02SC Notes: Dot Product. 18.02SC Multivariable Calculus, Fall 2010.
MIT OpenCourseWare (2010). 18.02SC Notes: Components and Projection. 18.02SC Multivariable Calculus, Fall 2010.
W. Kahan (2014). Miscalculating Area and Angles of a Needle-like Triangle. Lecture Notes for Introductory Numerical Analysis Classes, UC Berkeley.
Related
Format Conversion
Convert equations between AsciiMath, LaTeX and MathML: auto-detect the input format, produce canonical LaTeX, presentation MathML with an embedded TeX annotation, a best-effort AsciiMath back-translation, a screen-reader aria-label snippet (role=math), and a KaTeX HTML preview.
Development
Generate a complete GitHub profile README — banner, stats tiles, contribution heatmap, 3D contribution skyline and project cards — baked once into static, themeable SVG assets. No badge services that can go down; commit the SVGs next to your README and the profile never breaks.
Math & Numbers
Compute convective heat transfer (Newton's law of cooling): heat flux q = h·ΔT (W/m²), heat flow rate Q = h·A·ΔT (W), and convective thermal resistance R_conv = 1/(h·A) (K/W). h is the convective heat-transfer coefficient (W/(m²·K)); ΔT is the temperature difference between the surface and the fluid (K; a °C difference equals a K difference, a °F difference is converted by ×5/9); A the heat-transfer area. ΔT may be negative (indicating reverse heat flow), but h and A must be positive. Area in m²/cm².
Math & Numbers
Solve pressure, volume, temperature, or moles with the Ideal Gas Law (PV=nRT) or Combined Gas Law; also gas density and molar mass.
Create sweep, stereo or measurement-excitation fixtures, check their format and expected signal behavior, and hand off parameters, review evidence and file hashes without claiming a measured acoustic response.
Capture an authorized public page, reconcile observed styles with screenshot evidence, review colour pairs and token changes, and deliver a traceable design handoff without claiming to recover the original design system.
Inspect camera RAW intake, verify EXIF, create format-specific JPEG proofs and fix orientation, then clean metadata to policy before handoff.
Compare mortgage amortization, loan payoff, refinance, rent-versus-buy, and time-value scenarios with documented assumptions.
Next
Explore ideal zero-order kinetics, depletion and half-life, with comparison curves matched at the initial disappearance rate.
Change the rate constant and initial concentration to compare exponential decay, the semilog line and a sampled population.
Change the rate constant and initial concentration to explore the concentration curve, reciprocal plot and first half-life of a second-order reaction.
Vary temperature, activation energy and the prefactor, then compare k versus T with ln(k) versus 1/T.
Change the two rate constants and the starting mixture to explore net reaction direction, equilibrium composition and relaxation time.
Adjust the two rate constants in A → B → C to explore the height and timing of the intermediate peak and the buildup of product.
Interactive visualization of free radical chain reaction polymerization - Explore initiation, propagation, termination steps, chain growth animation, and molecular weight distribution
Interactive visualization of Le Chatelier's Principle - Explore how changes in concentration, pressure, and temperature affect chemical equilibrium with animated molecular dynamics