Triangle CalculatorSolve any triangle
Examples
Show
Pinned, kept fixedCalculated
  • Drag a corner to reshape; angles snap to 15° (hold Alt to move freely)
  • Arrow keys move a focused corner
  • Click a value to type it: Enter applies, Esc cancels, ↑ ↓ nudge, Shift ×10
  • Drag a value sideways to adjust it
  • Click a pin to keep a value fixed
  • Drag a corner to reshape; angles snap to 15°
  • Tap a value to type it, − and + step it
  • Slide a value sideways to adjust it
  • Tap a pin to keep a value fixed
← Back to the calculator

Questions and answers

How the solver works and how to get the most out of it.

Which method is solving my triangle right now?

Side-Angle-Side (SAS). You pinned sides b and c and the angle α (at corner A) between them. Side a is calculated first.

The method changes as soon as you pin a different combination of values.

What do Side-Side-Side (SSS), Side-Angle-Side (SAS) and the other names mean?

The name lists the three known values in order around the triangle. S stands for a side, A for an angle.

  • Side-Side-Side (SSS): all three sides are known. The law of cosines gives each angle.
  • Side-Angle-Side (SAS): two sides and the angle between them. The law of cosines gives the third side.
  • Angle-Side-Angle (ASA): two angles and the side between them. The third angle is 180° minus the other two, then the law of sines gives the other sides.
  • Angle-Angle-Side (AAS): two angles and a side that is not between them. Solved the same way as ASA.
  • Side-Side-Angle (SSA): two sides and an angle that is not between them. The law of sines gives a second angle, but zero, one or two triangles can fit.
What does pinning a value do?

Three values define a triangle. The pinned values (filled blue) are the ones you set; the other three are calculated from them.

When you type or slide a value, it becomes pinned and the oldest pin is released. Tapping the pin icon on a label pins its current value the same way, without changing the triangle. A message tells you which pin was released.

Dragging a corner changes all values directly. The pins stay, and they apply again the next time you type a value.

Why can't I pin three angles?

Three angles fix the shape of a triangle but not its size: a small and a large triangle can have exactly the same angles. Besides, the angles always add up to 180°, so the third angle carries no new information. At least one side therefore always stays pinned.

Why do two different triangles fit sometimes?

This happens with Side-Side-Angle (SSA), also called the ambiguous case. The law of sines gives the sine of a missing angle, and two angles share the same sine: θ and 180° − θ. When both lead to a valid triangle, both are solutions.

The other solution is drawn as a dashed outline. Tap it, or use Triangle 1 / Triangle 2 in the Values panel, to switch. Try the "Two solutions" example to see it.

Why does it say "No triangle"?
  • Sides too short: each side must be shorter than the other two combined (the triangle inequality). With 2, 3 and 6 the two short sides can't meet.
  • Angles too large: two angles that already add up to 180° or more leave no room for a third.
  • Side-Side-Angle too short: the side opposite the known angle may be too short to reach the other side's far end.

The invalid value is not applied, so the last valid triangle stays on screen.

How are corners, sides and angles named?

Corners are A, B and C. Each side is named after the opposite corner with a lowercase letter: side a lies opposite A (between B and C). The angle at each corner uses the Greek letter: α at A, β at B, γ at C. So side a and angle α always face each other, which is what the law of sines relies on.

How can I enter or change a value?
  • Type: tap a label on the diagram or a field in the Values panel. Press Enter to apply, Esc to cancel.
  • Expressions: sqrt(2), √3, 3/4, 2pi/3, 2^0.5 and decimal commas like 4,5 all work.
  • Slide: drag a label sideways to change it continuously. Angles move in half-degree steps and stick at multiples of 15°.
  • Step: while editing, use the − and + buttons or the arrow keys. Shift steps ten times further.
How do I hit exact angles like 90° when dragging a corner?

With "Snap angles" on, any angle close to a multiple of 15° (15°, 30°, 45°, 60°, 90°, …) locks onto it, and the snapped angle lights up in orange. Near two such angles at once, the corner jumps to the point where both are exact, for example 90° and 45°.

Hold Alt (Option on a Mac) to move freely, or turn "Snap angles" off. "Snap to grid" puts corners on grid points instead, which is handy for whole-number coordinates.

Which formulas does the solver use?
Law of cosines: a² = b² + c² − 2bc · cos α
Law of sines: a / sin α = b / sin β = c / sin γ
Angle sum: α + β + γ = 180°
Area: ½ · b · c · sin α = √(s(s−a)(s−b)(s−c)), with s = (a+b+c)/2
Height: hₐ = 2 · Area / a
Median: mₐ = ½ · √(2b² + 2c² − a²)
Inradius: r = Area / s
Circumradius: R = a / (2 · sin α)

The Working panel shows each step with your actual numbers.

How do I know whether a triangle is right-angled?

The Shape panel tags it as Right and names the hypotenuse, the side opposite the 90° angle. The diagram draws a small square in that corner instead of an arc. For right triangles the law of cosines turns into Pythagoras' theorem, since cos 90° = 0: a² = b² + c² when α = 90°.

What do the Heights, Incircle and Circumcircle overlays show?
  • Heights: the perpendicular line from each corner to the opposite side. In an obtuse triangle it lands outside, so the side is extended with a dotted line.
  • Incircle: the largest circle that fits inside, touching all three sides. Its centre I is where the angle bisectors meet.
  • Circumcircle: the circle through all three corners, centred at O. In a right triangle O sits exactly on the middle of the hypotenuse.
How precise are the results, and what do the units do?

All calculations run at full precision; the Decimals setting (in the settings row above the values) only rounds what is shown. The length unit is a label, so the numbers are the same in any unit and nothing is converted. Angles can be shown in degrees or radians (π rad = 180°).

Which format should I pick for Copy results?
  • Plain text: a readable summary with the working steps, for notes or messages.
  • Markdown table: for wikis, GitHub, Notion or chat tools that render Markdown.
  • Spreadsheet (tab-separated): paste into Excel, Numbers or Google Sheets and every value gets its own cell.
  • CSV: comma with decimal point for scripts and English-language spreadsheets; semicolon with decimal comma for German and other European spreadsheet settings.
  • JSON and XML: structured data for code, APIs and other tools.
  • LaTeX table: a tabular block for papers and worksheets.
  • SVG image: the diagram as a vector graphic, for Figma, Inkscape, Illustrator or the web.
  • PNG image: the diagram as a high-resolution picture for slides, chats and documents.
  • Report with diagram: picture, values and working in one formatted block for Word, Outlook, OneNote or Google Docs.
  • TikZ drawing: the diagram as LaTeX code, with angle marks and labels.
  • GeoGebra commands: rebuild the triangle in GeoGebra to keep exploring it there.
  • DXF drawing: the triangle at true scale for CAD programs.

Numbers use the Decimals setting, and the preview shows exactly what will be copied. Images come in light or dark colours. Your choices are remembered.

Can I download files, print or share a link?

Yes. Next to Copy there is a Download file button for every format, and the Share & print box lets you copy a link to the current triangle, share it through your phone's share menu, or print a one-page summary with diagram, values and working. Choose "Save as PDF" in the print dialog to get a PDF.

When the calculator is shown inside another page, such as an embed or a preview, these buttons are hidden because downloads and printing are blocked there. Copying works everywhere.

How do I change the language?

Triangle Calculator starts in your browser's language if it is one of the ten supported languages, otherwise in English. Use the language menu in the top bar to switch; your choice is remembered on this device. Numbers follow the language, for example 4,5 in German and 4.5 in English.

Is my triangle saved?

Your last triangle and settings are kept in this browser on this device, so they are back when you return. The calculator does not send your triangle anywhere. Reset (in the settings row above the values) brings back the starting 3-4-5 right triangle.

The page address also holds the triangle, so a bookmark or a shared link reopens it exactly.