Cosine Calculator
Calculate cosine instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods. Get results you can export or share.
Calculator
Adjust values & calculateCommon Cosine Values
Formula
The cosine of angle x equals the ratio of the adjacent side to the hypotenuse in a right triangle. On the unit circle, cos(x) is the x-coordinate of the point at angle x.
Last reviewed: December 2025
Worked Examples
Example 1: Cosine of 60 Degrees
Example 2: Cosine of 150 Degrees
Background & Theory
The Cosine Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.
History
The history behind the Cosine Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.
Frequently Asked Questions
Formula
cos(x) = adjacent / hypotenuse
The cosine of angle x equals the ratio of the adjacent side to the hypotenuse in a right triangle. On the unit circle, cos(x) is the x-coordinate of the point at angle x.
Worked Examples
Example 1: Cosine of 60 Degrees
Problem: Calculate cos(60 degrees) and verify using the Pythagorean identity.
Solution: cos(60) = 0.5\nsin(60) = 0.86602540 (sqrt(3)/2)\nPythagorean check: sin2(60) + cos2(60) = 0.75 + 0.25 = 1.0 (confirmed)\nsec(60) = 1/cos(60) = 1/0.5 = 2.0
Result: cos(60) = 0.5 | sin(60) = 0.86602540 | Identity verified
Example 2: Cosine of 150 Degrees
Problem: Find cos(150 degrees) and identify the quadrant and reference angle.
Solution: 150 degrees is in Quadrant II (90-180 degrees).\nReference angle = 180 - 150 = 30 degrees.\ncos(150) = -cos(30) = -sqrt(3)/2 = -0.86602540\nCosine is negative in Q2, confirmed.\nsin(150) = sin(30) = 0.5
Result: cos(150) = -0.86602540 | Quadrant II | Reference angle = 30
Frequently Asked Questions
What is the cosine function in trigonometry?
The cosine function is one of the three primary trigonometric functions, along with sine and tangent. In a right triangle, the cosine of an angle is defined as the ratio of the length of the adjacent side to the length of the hypotenuse. Written as cos(x) = adjacent/hypotenuse, it measures how much of the hypotenuse lies along the horizontal direction relative to the angle. The cosine function produces values ranging from -1 to 1, oscillating smoothly as the angle changes. It is a fundamental building block of mathematics with applications spanning physics, engineering, computer science, signal processing, and virtually every quantitative field.
What are the cosine values for common angles?
The cosine values for standard angles are worth memorizing. cos(0) = 1, cos(30) = sqrt(3)/2 which is approximately 0.866, cos(45) = sqrt(2)/2 which is approximately 0.707, cos(60) = 1/2 = 0.5, cos(90) = 0, cos(120) = -1/2, cos(180) = -1, cos(270) = 0, and cos(360) = 1. A helpful pattern to remember is that cosine starts at 1, decreases to 0 at 90 degrees, reaches -1 at 180 degrees, returns to 0 at 270 degrees, and completes its cycle back at 1 for 360 degrees. These values form the foundation for solving most trigonometric problems without a calculator.
How is cosine related to the unit circle?
On the unit circle (a circle with radius 1 centered at the origin), the cosine of an angle equals the x-coordinate of the point where the angle's terminal side intersects the circle. If you draw an angle from the positive x-axis, the point on the circle at that angle has coordinates (cos(x), sin(x)). This geometric interpretation extends cosine beyond acute angles to all real numbers: as you sweep around the circle, the x-coordinate oscillates between -1 and 1. Cosine is positive in the first and fourth quadrants (right half of circle) and negative in the second and third quadrants (left half). This unit circle definition is the modern foundation for understanding all trigonometric functions.
What is the difference between cosine and inverse cosine?
Cosine takes an angle as input and produces a ratio as output, while inverse cosine (arccos or cos inverse) does the opposite: it takes a ratio as input and returns the angle. For example, cos(60) = 0.5 means the cosine of 60 degrees is one-half, while arccos(0.5) = 60 means the angle whose cosine is one-half is 60 degrees. The inverse cosine function has a restricted range of 0 to 180 degrees (0 to pi radians) to ensure it returns a single unique value. This is because cosine is not one-to-one over its full domain. The distinction between these functions is crucial for solving equations where you need to find an unknown angle from a known ratio.
How is cosine used in the Pythagorean identity?
The fundamental Pythagorean identity states that sin squared(x) plus cos squared(x) equals 1, written as sin2(x) + cos2(x) = 1. This identity holds true for every possible angle and is derived directly from the Pythagorean theorem applied to a right triangle with hypotenuse 1. From this primary identity, you can derive two secondary forms: dividing everything by cos2(x) gives 1 + tan2(x) = sec2(x), and dividing by sin2(x) gives cot2(x) + 1 = csc2(x). The Pythagorean identity is arguably the most important equation in trigonometry, used constantly in simplifying expressions, proving other identities, solving equations, and performing calculus operations like integration by substitution.
What is the cosine rule (law of cosines)?
The law of cosines generalizes the Pythagorean theorem to work with any triangle, not just right triangles. It states c2 = a2 + b2 - 2ab cos(C), where a, b, and c are side lengths and C is the angle opposite side c. When C = 90 degrees, cos(90) = 0 and the formula reduces to the Pythagorean theorem c2 = a2 + b2. The law of cosines is used to find a missing side when you know two sides and the included angle (SAS), or to find a missing angle when you know all three sides (SSS). It is essential in surveying, navigation, physics force calculations, and any situation involving non-right triangles where you need to relate sides and angles.
References
Reviewed by Manoj Kumar, Mathematics Educator · Editorial policy