
Web Scripts & Software
DEV3 Triangle Calculator & Trig Solver — Source Code (React + Tailwind)
from $20$29
Loading…
Everyday tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Side a is opposite angle A, and so on. Leave the rest empty.
Case: SSS
This is an right, scalene triangle.
Computed in your browser in double precision. Angles of a triangle always add to 180° (π radians).
Need Triangle Calculator & Trig Solver as a full mobile or web app? We build it in about a week. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The triangle calculator & trig solver stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Get the full app behind this tool. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $20$29

Web Scripts & Software Mobile app
from $69$99

Enterprise SaaS Starters
from $69$99

Enterprise SaaS Starters
from $69$99

Web Scripts & Software
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99

Web Scripts & Software Mobile app
from $69$99
A triangle has six parts: three sides and three angles. Give this calculator any three that determine the triangle and it finds the rest, with the working shown and a diagram drawn to scale.
Area by Heron's formula, perimeter, the three altitudes (heights), the three medians, the inscribed circle radius (inradius) and the circumscribed circle radius (circumradius). The triangle is classified as acute, right or obtuse, and as equilateral, isosceles or scalene.
The Trig values tab returns sine, cosine, tangent, cosecant, secant and cotangent for any angle, and lists exact values for the standard unit circle angles such as 30, 45 and 60 degrees.
Results are computed in double precision and shown to six significant digits. Angles from sides use the law of cosines with clamping, so rounding never produces an impossible value.
Three, and at least one must be a side. The valid combinations are three sides (SSS), two sides and the angle between them (SAS), two angles and a side (ASA or AAS), or two sides and an angle not between them (SSA).
When you know two sides and an angle opposite one of them, the data can fit zero, one or two triangles. If the side opposite the angle is shorter than the other known side, but long enough to reach, two triangles exist. The calculator shows both.
The law of sines says a / sin A = b / sin B = c / sin C. The law of cosines says c^2 = a^2 + b^2 - 2ab cos C. Sines work when you know an angle and its opposite side; cosines work for SSS and SAS.
By Heron's formula, area = sqrt(s (s - a)(s - b)(s - c)) where s is half the perimeter. It works from three sides alone, and the calculator uses a numerically stable version for needle-thin triangles.
Choose the right triangle tab and enter any two sides, or one side and one acute angle. The hypotenuse follows c^2 = a^2 + b^2, and the angles come from sine, cosine and tangent.
Yes. Switch the angle unit to radians for both input and output. Internally all angle maths is done in radians or degrees without rounding the inputs.