Simplify Your Workflow: Search MiniWebtool.
Add Extension
> Law of Cosines Calculator

Law of Cosines Calculator

Use the Law of Cosines to find unknown sides or angles in a triangle. Supports SAS (Side-Angle-Side) and SSS (Side-Side-Side) cases. Get step-by-step solutions with detailed explanations and interactive triangle visualization!

Law of Cosines Calculator
Law of Cosines Calculator:

Try the following examples:[SAS: a=5, b=7, C=60°] [SAS: a=8, b=10, C=45°] [SSS: a=5, b=7, c=8] [SSS: a=3, b=4, c=5 (right triangle)]

Case Type:
Angle Unit:

Input Guide:

  • SAS: Input 1 = Side a, Input 2 = Side b, Input 3 = Angle C (between a and b)
  • SSS: Input 1 = Side a, Input 2 = Side b, Input 3 = Side c

Embed Law of Cosines Calculator Widget

About Law of Cosines Calculator

Welcome to our Law of Cosines Calculator, a comprehensive online tool for solving triangles using the Law of Cosines. Whether you're dealing with SAS (Side-Angle-Side) or SSS (Side-Side-Side) cases, our calculator provides accurate solutions with detailed step-by-step explanations and interactive visualizations.

What is the Law of Cosines?

The Law of Cosines (also known as the Cosine Rule) is a fundamental theorem in trigonometry that generalizes the Pythagorean theorem. It relates the sides of a triangle to the cosine of one of its angles. The law states:

$$c^2 = a^2 + b^2 - 2ab\cos(C)$$

where $a$, $b$, and $c$ are the lengths of the sides of a triangle, and $C$ is the angle opposite side $c$. Similarly, we can write:

$$a^2 = b^2 + c^2 - 2bc\cos(A)$$

$$b^2 = a^2 + c^2 - 2ac\cos(B)$$

When rearranged to solve for angles, the Law of Cosines becomes:

$$\cos(A) = \frac{b^2 + c^2 - a^2}{2bc}$$

Key Features of Our Law of Cosines Calculator

Understanding Triangle Cases

SAS (Side-Angle-Side)

When you know two sides and the angle between them, you can use the Law of Cosines to find the third side, then calculate the remaining angles.

SSS (Side-Side-Side)

When you know all three sides of a triangle, you can use the Law of Cosines to find all three angles.

How to Use the Law of Cosines Calculator

  1. Select the case type: Choose SAS or SSS from the dropdown menu.
  2. Choose angle unit: Select degrees or radians.
  3. Enter your values:
    • SAS: Input 1 = Side a, Input 2 = Side b, Input 3 = Angle C (the angle between sides a and b)
    • SSS: Input 1 = Side a, Input 2 = Side b, Input 3 = Side c
  4. Click "Calculate" to get your solution.
  5. Review the step-by-step solution and triangle visualization.

Applications of the Law of Cosines

The Law of Cosines is widely used in various fields:

Mathematical Background

The Law of Cosines is a generalization of the Pythagorean theorem. When the angle $C = 90°$ (a right angle), $\cos(C) = 0$, and the formula reduces to:

$$c^2 = a^2 + b^2$$

This is exactly the Pythagorean theorem! The Law of Cosines works for all types of triangles: acute, obtuse, and right triangles.

Derivation

The Law of Cosines can be derived using coordinate geometry or by applying the Pythagorean theorem to a triangle that has been divided by an altitude.

Important Properties

Why Use Our Law of Cosines Calculator?

Law of Cosines vs. Law of Sines

While both laws are used to solve triangles, they have different applications:

Additional Resources

For more information on the Law of Cosines and triangle geometry, check out these resources:

Reference this content, page, or tool as:

"Law of Cosines Calculator" at https://MiniWebtool.com// from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Nov 18, 2025

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Top & Updated:

Random PickerRandom Name PickerRelative Standard Deviation Calculator (High Precision)Remove SpacesFeet and Inches to Cm ConverterMAC Address GeneratorSort NumberLine CounterFPS ConverterBatting Average CalculatorRoman Numerals ConverterMAC Address LookupPhone Number ExtractorWord to Phone Number ConverterBitwise CalculatorPercent Off CalculatorLog Base 10 CalculatorText FormatterBinary to Gray Code ConverterOctal CalculatorSum CalculatorCm to Feet and Inches ConverterDecimal to BCD ConverterQuotient and Remainder CalculatorERA CalculatorSHA256 Hash GeneratorGray Code to Binary ConverterBCD to Decimal ConverterSun, Moon & Rising Sign Calculator 🌞🌙✨Random Quote GeneratorCompound Growth CalculatorVideo to Image ExtractorNumber of DigitsAI ParaphraserFacebook User ID LookupAI Punctuation AdderURL ExtractorMP3 LooperSalary Conversion CalculatorCompare Two StringsSquare Root (√) CalculatorRemove AccentStandard Error Calculator (High Precision)Saturn Return Calculator 🪐On Base Percentage CalculatorSlugging Percentage CalculatorFirst n Digits of PiBinary to BCD ConverterOutlier CalculatorConvolution CalculatorDay of the Year Calculator - What Day of the Year Is Today?Log Base 2 CalculatorBreak Line by CharactersLove Compatibility CalculatorModulo (Mod) CalculatorIP(IPv4/IPv6) Address to Hex ConverterDay of Year CalendarRemove Audio from VideoBCD to Binary ConverterHex to BCD ConverterExponential Growth Calculator (High Precision)List of Prime NumbersPVIF Calculator (High Precision)lbs to kg ConverterAverage Deviation CalculatorSHA512 Hash GeneratorPercent Growth Rate CalculatorRandom Group GeneratorBCD to Hex ConverterMerge VideosRandom Birthday GeneratorScientific Notation to Decimal ConverterAdd Prefix and Suffix to TextOPS CalculatorVideo SplitterMedian CalculatorAudio SplitterPVIFA Calculator (High Precision)Leap Years ListNumber ExtractorList RandomizerMaze GeneratorRemove Line BreaksList of Fibonacci NumbersMAC Address AnalyzerSlope and Grade Calculator 📐Adjust Video SpeedSquare Numbers ListAdd Watermark to VideoBase-N CalculatorVideo CompressorRandom Object GeneratorActual Cash Value CalculatorNatural Log CalculatorRandom Name GeneratorRemove Leading Trailing SpacesTime Duration Calculator ⏳Ratio to Percentage CalculatorEmail ExtractorWHIP CalculatorSort Lines AlphabeticallyLottery Number GeneratorAverage Calculator (High Precision)Reverse VideoWAR CalculatorHypotenuse CalculatorAngel Number CalculatorRoot Mean Square CalculatorSum of Positive Integers CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderDate CalculatorHex to Decimal ConverterRandom String GeneratorAmortization CalculatorMarkup CalculatorName Number CalculatorDecimal to Hex ConverterRandom Number PickerBlood Donation Time CalculatorAntilog CalculatorField Goal Percentage CalculatorRandom Line PickerAPY to APR CalculatorSort Text By LengthOne Rep Max (1RM) CalculatorName RandomizerRandom Animal GeneratorFixed Deposit CalculatorPPM to Percent ConverterCube Numbers ListCaesar Cipher ToolMorse Code GeneratorPercent to PPM ConverterSRT to TXT Converterkg to lbs ConverterXML ValidatorArithmetic Mean CalculatorJob FinderBonus CalculatorCAGR CalculatorStatistics CalculatorSRT Time ShiftFirst n Digits of eProportion CalculatorFVIFA Calculator (High Precision)Exponential Integral CalculatorLoop VideoMD5 Hash GeneratorSHA1 Hash GeneratorPER CalculatorIs it a Prime Number?Binary CalculatorDiscount Factor Calculator (High Precision)Decimal to Binary ConverterExponential Decay Calculator (High Precision)Standard Deviation Calculator (High Precision)Doubling Time CalculatorBarcode GeneratorWork Hours CalculatorCm to Inches ConverterAudio ExtractorQuote FinderHex CalculatorPopulation Standard Deviation Calculator (High Precision)Random Word GeneratorAdd or Replace Audio in VideoRotate VideoVideo CropperFlip VideoFlip GIFFlip ImageInches to cm ConverterIP(IPv4/IPv6) Address to Binary ConverterReduce Fractions CalculatorPythagorean Theorem CalculatorGIF to MP4 ConverterMP4 to GIF ConverterColor InverterAdd Text to ImageImage EnhancerImage SplitterImage Color PickerAdd Line to ImagePalette GeneratorpH CalculatorMolar Mass CalculatorReverse LineMolarity CalculatorAngle ConverterWeight (Mass) ConverterLength ConverterVolume ConverterPressure ConverterEnergy ConverterShoe Size ConverterSpeed ConverterTemperature ConverterPower ConverterImage RotatorHousing Appreciation CalculatorCar Depreciation CalculatorHome Affordability CalculatorDestiny Number CalculatorMortgage Comparison CalculatorCompound Savings CalculatorIRR CalculatorImage CensorImage CompressorFuture Value Factor (FVIF) CalculatorUltimate Frequency & Wavelength Convertern-th Root Calculator (High-Precision)Cron Job GeneratorUnix Permission Calculator (chmod)Venus Sign Calculator (Love Style) 💖Mars Sign Calculator (Drive & Passion) 🔥Password Strength TesterMercury Sign Calculator (Communication) 🗣️Astrological Element Balance CalculatorAstrological Modality Balance CalculatorMercury Retrograde Calendar 🌟New Moon & Full Moon Calendar 🌑🌕Advanced Zodiac Compatibility Analyzer 💞Moon Sign Compatibility Calculator 🌙Celtic Tree Zodiac Calculator 🌳Birthstone and Zodiac Flower Finder 💎🌸Concrete Calculator 🧱Brick and Mortar Calculator 🧱Paint Calculator 🎨Tile Calculator 🔲Flooring Calculator 🏠Drywall Calculator 🧱Wallpaper Calculator 🎨Stair Calculator 🪜Roof Pitch and Rafter Calculator 🏠Roofing Calculator 🏠Stud Wall Framing Calculator 🏗️Mulch, Soil, and Gravel Calculator 🌱Fence Calculator 🏡Decking Calculator 🏗️Board Foot Calculator 🪵Squareness Checker (3-4-5 Rule) 📐Miter Angle Calculator 📐High-Precision Sine CalculatorHigh-Precision Cosine CalculatorHigh-Precision Tangent CalculatorArcsin (Inverse Sine) CalculatorArccos (Inverse Cosine) CalculatorArctan (Inverse Tangent) CalculatorArctan2 CalculatorCosecant/Secant/Cotangent CalculatorHigh-Precision Hyperbolic Functions CalculatorRight Triangle CalculatorGeneral Triangle SolverLaw of Sines CalculatorLaw of Cosines Calculator