Nepedia
Back to Discover
Independent Reader
🔢

Law of cosines

math Maturity 7-9 Next article →

Imagine you have a triangle. You know the length of two sides. You also know the angle between them. How long is the third side? The law of cosines helps you find out.

Triangle with notations 2
Triangle with notations 2

This rule works for any triangle. It is a bigger version of the Pythagorean theorem. That theorem only works for right triangles.

triangle-with-an-unknown-angle-or-side
triangle-with-an-unknown-angle-or-side

The law of cosines is also great for finding angles. You can do this if you know all three side lengths.

Obtuse Triangle With Altitude ZP
Obtuse Triangle With Altitude ZP

People have studied this for a very long time. Euclid wrote about it in ancient Greece. Later, mathematicians like al-Tusi and al-Kashi used it too. In France, some people call it the theorem of al-Kashi.

Law of cosines following al-Kashi
Law of cosines following al-Kashi

This rule is a very helpful tool. It helps us solve many puzzles about shapes and space.

131 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (18)
File:Triangle with notations 2.svg
Triangle with notations 2.svg
File:triangle-with-an-unknown-angle-or-side.svg
triangle-with-an-unknown-angle-or-side.svg
File:SSA triangle ambiguity.png
SSA triangle ambiguity.png
File:Obtuse Triangle With Altitude ZP2.svg
Obtuse Triangle With Altitude ZP2.svg
File:Law of cosines following al-Kashi.png
Law of cosines following al-Kashi.png
File:Law of cosines in plane trigonometry.svg
Law of cosines in plane trigonometry.svg
File:Obtuse Triangle With Altitude ZP.svg
Obtuse Triangle With Altitude ZP.svg
File:Triangle with trigonometric proof of the law of cosines.svg
Triangle with trigonometric proof of the...
File:Triangle-with-cosines.svg
Triangle-with-cosines.svg
File:Triangle-law-of-cosines-proof.png
Triangle-law-of-cosines-proof.png
File:Ptolemy cos.svg
Ptolemy cos.svg
File:law of cosines with acute angles.svg
law of cosines with acute angles.svg

+ 6 more

More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.