Sine cosine law: solve any triangle step by step

Enter three values of a triangle and see it drawn to scale, with every missing side and angle found by the sine law or the cosine law, including the two-answer ambiguous case.

Keep it one tap away for everyday use.

Bookmark Sine cosine law?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Set
  2. See
  3. Check
Nothing is uploadedWorks offline once open

Solve a triangle

Examples
More options: units

Only labels change for lengths. Angles you type are converted, and the answers are shown in the same unit.

The working

    More: area, perimeter and kind of triangle

    Try this

    • Choose "all three sides" and enter 3, 4 and 5. Angle C comes out as exactly 90°, so the cosine law contains Pythagoras.
    • Try sides 2, 3 and 6. There is no triangle: the two short sides cannot reach each other.
    • In Grade 11, try the ambiguous case with a = 8, b = 10 and A = 40°. Two different triangles fit; switch between them.

    Common mistakes

    • Calculator in the wrong mode: set it to degrees for angles in degrees. If your answer looks tiny or odd, check DEG or RAD.
    • Using the sine law for two sides and the angle between them. That case needs the cosine law first.
    • Matching a side with the wrong angle: side a sits opposite angle A, side b opposite B, side c opposite C.
    • Missing the second triangle in the ambiguous case (two sides and an angle not between them): check whether 180° minus your angle also fits.
    • The longest side is opposite the largest angle. Use it to check your answer.

    Check yourself

    What it does

    Pick what you know about a triangle (two angles and a side, two sides and the angle between them, or all three sides), type the three numbers and the triangle is drawn to scale. The missing sides and angles appear at once, with the law that found them written underneath. In Grade 11 you can also pick the ambiguous case, where two sides and an angle that is not between them can fit zero, one or two different triangles.

    The sine law says each side divided by the sine of its opposite angle is the same for the whole triangle. The cosine law is Pythagoras with a correction term: a² = b² + c² − 2bc cos A. Use the sine law when you know an angle and the side opposite it, and the cosine law when you know two sides and the angle between them, or all three sides. If your triangle has a right angle, try trig ratio explorer first, and for real-life uses see heights and distances and unit circle.

    How to use it

    1. Choose “What do you know?” from the list. The three boxes change their names to match.
    2. Type your three numbers. Angles are in degrees, sides in any one unit (cm, m, km).
    3. Read the drawing and the list of sides and angles under it. The line above the list tells you which law was used.
    4. In the ambiguous case, two buttons appear when two triangles fit. Press them to see each one.
    5. Answer a question under “Check yourself”. You get a fresh one each time and a worked answer.

    What each setting does

    • Two angles and a side: finds the third angle by subtracting from 180°, then uses the sine law for the other two sides.
    • Two sides and the angle between: uses the cosine law to find the third side, then again for another angle.
    • All three sides: uses the cosine law three ways to find every angle. If the two short sides cannot span the longest one, it says there is no triangle.
    • Ambiguous case (Grade 11): the sine law gives sin B, and B can be that angle or 180° minus it.

    Worked example

    Angle A = 40°, angle B = 65° and side a = 10 cm. Angle C = 180° − 40° − 65° = 75°. By the sine law, b = 10 × sin 65° / sin 40° ≈ 14.1 cm and c = 10 × sin 75° / sin 40° ≈ 15.03 cm. These are the numbers the tool shows when it opens.

    Working, units and examples

    Under the six answers there is a working list written the way an exam marks it: the angles add to 180°, then the sine law or cosine law with your numbers substituted and the result. In the ambiguous case each of the two triangles gets its own working.

    The answer is also given in one sentence at the top of the results, for example a = 10, b = 14.1, c = 15.03 (A = 40°, B = 65°, C = 75°). Open More options: units to type angles in radians instead of degrees and to add a length unit (mm, cm, m, km or ft). More: area, perimeter and kind of triangle gives the area ½ bc sin A, the perimeter, and whether the triangle is acute, right-angled or obtuse.

    Example buttons load a typical problem for each case: measuring across a river (two angles and a side), two ships leaving a port (two sides and the angle between them), a triangular plot (three sides), and the ambiguous case at Grade 11. A box lists the common mistakes: calculator in the wrong mode, using the sine law when the cosine law is needed, and matching sides with the wrong angles. Blank, zero or negative entries give a plain message.

    FAQs

    Why can SSA give two triangles? Swing side a like a gate around vertex C: if it is shorter than b but long enough to reach the base, it can touch the base in two places. That is why sin B = b sin A / a gives two angles, B and 180° − B.

    Does this follow the Ontario curriculum? The topics match the usual Grade 10 and Grade 11 trigonometry strands (MPM2D and MCR3U). fibub is not part of the Ontario government and curriculum wording changes, so check the official Ontario curriculum for your course.

    Why does my triangle not fit? The two shorter sides must add up to more than the longest side, and two angles must add up to less than 180°.

    Are my numbers saved? No. Everything is worked out in your browser and nothing is stored or sent.

    How do I know whether to use the sine law or the cosine law? Use the cosine law when you know three sides, or two sides and the angle between them; use the sine law when you know two angles and a side, or two sides and an angle opposite one of them.

    Where the numbers come from

    • The sine law and the cosine law are standard geometry results. Grade levels follow the Ontario Ministry of Education course topics for MPM2D and MCR3U; check the official curriculum for the current wording. Drawings are fibub's own.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-16.

    Change log for Sine cosine law

    1. Upgrade 48 Learn tools: solve-my-numbers cards, exam-style working, presets Details on GitHub
    2. Learn: Ontario Grade 8-12 curriculum map and three new maths tools Details on GitHub

    Every change to fibub

    Related tools