# Triangle solver > How do I solve a triangle? Give three parts of a triangle and get the other three, its area and a drawing to scale, including the case with two answers. Solve a triangle from three sides, two sides and an angle, or two angles and a side: the missing parts, area and a drawing to scale, both answers when two fit. - Page: https://how.box/triangle/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/triangle/?k={k}&a={a}&b={b}&c={c}&aa={aa}&ab={ab}&ac={ac}&u={u}&au={au} - `k` (sss, sas, asa, aas or ssa): Known parts: sss, sas, asa, aas or ssa. Example: `sss`. - `a` (number 0.000001 to 1e6): Side a in metres. Example: `3`. - `b` (number 0.000001 to 1e6): Side b in metres. Example: `4`. - `c` (number 0.000001 to 1e6): Side c in metres. Example: `5`. - `aa` (number 0 to 3.141592653589793): Angle A in radians. Example: `0.5235987755982988`. - `ab` (number 0 to 3.141592653589793): Angle B in radians. Example: `0.7853981633974483`. - `ac` (number 0 to 3.141592653589793): Angle C in radians. Example: `1.0471975511965976`. - `u` (mm, cm, m, in, ft or yd): Length unit shown: mm, cm, m, in, ft or yd. Example: `m`. - `au` (deg or rad): Angle unit shown: deg or rad. Example: `deg`. Example answer: https://how.box/triangle/?k=sss&a=3&b=4&c=5&aa=0.5235987755982988&ab=0.7853981633974483&ac=1.0471975511965976&u=m&au=deg A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `triangle_solve`: Solves a triangle from three known parts by the laws of sines and cosines (OpenStax Precalculus 2e §8.1–8.2). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"triangle_solve","arguments":{"case":"sss","a":3,"b":4,"c":5,"A":0.5235987755982988,"B":0.7853981633974483,"C":1.0471975511965976,"unit":"m","angle_unit":"deg"}}}` - GET: https://how.box/mcp/run/triangle_solve?case=sss&a=3&b=4&c=5&A=0.5235987755982988&B=0.7853981633974483&C=1.0471975511965976&unit=m&angle_unit=deg ## How it works Three parts fix a triangle, as long as one of them is a side. The angles always add up to 180°, so two angles give the third. Two laws connect the sides and angles: the law of sines, a / sin A = b / sin B = c / sin C, and the law of cosines, c² = a² + b² − 2ab × cos C, which is Pythagoras' theorem with a correction for angles other than 90°. Example: sides 3, 4 and 5. The law of cosines gives cos C = (3² + 4² − 5²) / (2 × 3 × 4) = 0, so C = 90°: a right triangle. Then sin A = 3 / 5 gives A ≈ 36.87° and B = 180° − 90° − 36.87° ≈ 53.13°. The area is ½ × a × b × sin C = 6. Two sides and an angle that is not between them (SSA) is the ambiguous case: the side opposite the angle can swing to meet the third side in two places, in one, or not at all. When two triangles fit, both are shown. Source: OpenStax Precalculus 2e, sections 8.1 and 8.2 (CC BY 4.0). ## FAQ **Why can't I solve a triangle from three angles?** Angles fix only the shape, not the size: a small and a large triangle can have the same angles. You need at least one side. **Why are there sometimes two answers?** With two sides and an angle opposite one of them, the shorter side can reach the base at two points. Both triangles are correct; pick the one that matches your drawing. **How do I check whether three lengths make a triangle?** The two shorter sides together must be longer than the longest one. Sides of 1, 2 and 5 never meet. **Is this the same as Pythagoras?** For a right triangle, yes: the law of cosines with C = 90° becomes c² = a² + b². The solver works for every other triangle too. **Do all three sides need the same unit?** Yes. Convert the measurements to one unit before comparing sides. The unit selector changes how the stored lengths are displayed. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)