Project Nayuki

Triangle solver (JavaScript)


Triangle diagram with sides and angles labelled
Variable Input Solution Solution 2
Area (square units):

Tips: In the triangle diagram, click on a letter to jump to that input. When solved, hover over a letter to read its value.


This JavaScript program calculates the missing sides and angles of a triangle. Give exactly 3 pieces of information, including at least one side.


The source code is available for viewing.


A standalone offline version is available for download: triangle-solver.html (right-click the link to save)

This file is free for personal use. For teachers or commercial use, please contact me to buy a registration for $10 USD.

More info