Home · Math · Trigonometry · Cosine Triangle Calculator
Cosine Triangle Calculator
Find the side opposite a known angle from the two neighbouring sides, using the law of cosines.
What this calculator does
Find the side opposite a known angle from the two neighbouring sides, using the law of cosines. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The law of cosines generalises Pythagoras to non-right triangles: the side opposite angle B depends on the two sides around B and the cosine of B. The area uses ½ac·sin B.
All angles are entered and returned in degrees.
Side lengths may use any consistent unit; areas use the square of that unit.
Worked example
With the example inputs this page opens with (side a 5, side c 7, included angle b (degrees) 50), the result is 5.39 — side b. Change any figure and the result updates with the same formula.
Quick reference
| Side a | Side b |
|---|---|
| 2.5 | 5.72 |
| 4 | 5.39 |
| 5 | 5.39 |
| 6.25 | 5.64 |
| 7.5 | 6.14 |
| 10 | 7.68 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Cosine Triangle Calculator work?
Find the side opposite a known angle from the two neighbouring sides, using the law of cosines. Side a, side c, included angle B → Side b, area, perimeter. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Cosine Triangle Calculator need?
Side a, side c, included angle B → Side b, area, perimeter. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Cosine Triangle Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.