Engineering ToolBox - Resources, Tools and Basic Information for Engineering and Design of Technical Applications!

Law of Cosines

One side of a triangle when the opposite angle and two sides are known.

Sponsored Links

The "Law of Cosines" can be used to calculate one side of a triangle when the angle opposite and the other two sides are known.

Law of cosines

The "Law of Cosines" can be expressed as

$$ c^2 = a^2 + b^2 - 2 a  b cos C            \tag{1} $$


a, b and c = length of triangle sides (m, ft ..)

C = angle opposite side c (degrees)

Example - Calculate Side in Triangle

If side a = 1 m, side b = 1.3 m and angle C = 60 degrees - the side c can be calculated by modifying eq. 1 to 

$$ c = \sqrt{ (1 m)^2 + (1.3 m)^2 - 2 (1 m) (1.3 m) cos (60 degrees) }  = \underline{1.18} m         $$

Law of Cosines Calculator

The generic calculator below can used to calculate the side c:

a (m, ft ....)

b (m, ft ....)

C (degrees)

Law of Cosines - Excel Template

Law of cosines - excel template

Sponsored Links

Related Topics

Related Documents

Sponsored Links

Engineering ToolBox - SketchUp Extension - Online 3D modeling!

3D Engineering ToolBox Extension to SketchUp - add parametric components to your SketchUp model

Add standard and customized parametric components - like flange beams, lumbers, piping, stairs and more - to your Sketchup model with the Engineering ToolBox - SketchUp Extension - enabled for use with the amazing, fun and free SketchUp Make and SketchUp Pro .Add the Engineering ToolBox extension to your SketchUp from the SketchUp Pro Sketchup Extension Warehouse!

About the Engineering ToolBox!


We don't collect information from our users. Only emails and answers are saved in our archive. Cookies are only used in the browser to improve user experience.

Some of our calculators and applications let you save application data to your local computer. These applications will - due to browser restrictions - send data between your browser and our server. We don't save this data.

Google use cookies for serving our ads and handling visitor statistics. Please read Google Privacy & Terms for more information about how you can control adserving and the information collected.

AddThis use cookies for handling links to social media. Please read AddThis Privacy for more information.


This page can be cited as

  • Engineering ToolBox, (2013). Law of Cosines. [online] Available at: [Accessed Day Mo. Year].

Modify access date.

. .


3D Engineering ToolBox - draw and model technical applications! 2D Engineering ToolBox - create and share online diagram drawing templates! Engineering ToolBox Apps - mobile online and offline engineering applications!

Scientific Online Calculator

Scientific Calculator

3 30

Sponsored Links