📏 Cos Calculator — Cosine of an Angle (Degrees or Radians)

Enter an angle in degrees or radians and get its cosine instantly, along with the reciprocal secant (sec) — undefined cases clearly labeled.

📏 Enter Your Angle
Result
cos θ
sec θ (reciprocal)
📏

Enter an angle to see its cosine and secant

Guide

About the Cos Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This cos calculator finds the cosine of any angle you enter, in degrees or radians, and shows the reciprocal ratio, secant (sec), right alongside it. Cosine is the trigonometric ratio behind the horizontal component of rotational and periodic motion — it produces a valid value between -1 and 1 for every possible angle, making it a natural companion to sine for describing anything that moves in a circle or oscillates smoothly. Its reciprocal, secant, is undefined exactly where cosine equals zero (90°, 270°, and their multiples), and this calculator catches that condition and reports "Undefined" instead of an error.

What This Calculator Measures

Cosine is defined on the unit circle as the x-coordinate of the point reached after rotating by angle θ from the positive x-axis — equivalently, in a right triangle, cosine is the ratio of the side adjacent to an acute angle to the hypotenuse. This calculator converts your angle to radians internally, evaluates cos(θ) directly, then computes sec(θ) = 1/cos(θ) with a check for the zero-denominator case.

Who Should Use This Calculator

This tool is built for trigonometry and precalculus students checking cosine homework, physics students resolving the horizontal component of a force or projectile's motion, electrical engineers analyzing phase-shifted signals and power factor angles, navigators and surveyors computing horizontal distances from a bearing, and anyone who needs a quick, reliable cosine value without digging out a scientific calculator.

Why Cosine Matters

Cosine describes the horizontal half of circular and periodic motion, complementing sine's vertical half. Because cosine's output is always bounded between -1 and 1, and it starts at its maximum value (1) rather than zero, it's the natural choice whenever a system's motion or phase is measured from its starting peak rather than its starting center point.

Real-World Applications

Physicists split projectile motion into a cosine-based horizontal component and a sine-based vertical one. Electrical engineers use cosine in power factor calculations and AC phase-angle analysis. Navigators and surveyors compute horizontal (easting) distances from a bearing angle. Architects use cosine to calculate horizontal spans from roof pitch angles. Computer graphics and animation use cosine alongside sine for smooth circular and rotational motion.

Tips for Accurate Results

  • Double-check the degrees/radians toggle — a value meant as radians treated as degrees (or vice versa) produces a completely different cosine.
  • Remember cosine itself is never undefined, but its reciprocal secant is undefined at 90°, 270°, and every multiple of 90° added to 90°.
  • Cosine is positive in Quadrants I and IV (-90° to 90°) and negative in Quadrants II and III (90° to 270°) — use this to sanity-check your sign.
Formula

The Cosine Formula, Explained

How cosine is defined, and its reciprocal relationship with secant

Cosine (from a right triangle)
cos θ = adjacent ÷ hypotenuse

Cosine (from the unit circle)
cos θ = the x-coordinate of the point at angle θ

Reciprocal: Secant
sec θ = 1 ÷ cos θ  (undefined when cos θ = 0, i.e. at 90°, 270°, ...)

Where:
θ (theta) = the input angle, converted to radians before evaluation.
"Adjacent" and "hypotenuse" refer to the sides of a right triangle relative to angle θ.
↔️

Always Between -1 and 1

Cosine never exceeds 1 or drops below -1 — its output is always bounded, mirroring sine's behavior but 90° out of phase.

♾️

Never Undefined

Unlike tangent or cotangent, cosine has no asymptotes — every real angle produces a valid cosine value.

🔄

Reciprocal: Secant

Secant flips cosine upside down (sec = 1/cos), so it is undefined exactly where cosine equals zero.

⚙️ Why This Formula Works

On the unit circle, rotating a point by angle θ from the positive x-axis traces out coordinates (cos θ, sin θ). Because the circle has a radius of exactly 1, the x-coordinate — cosine — can never leave the range [-1, 1] no matter how far you rotate, which is the geometric reason cosine's range is fixed.

🎯 When to Use Cosine

  • Right triangles: when you know the angle and hypotenuse and need the adjacent side, or vice versa
  • Horizontal components: resolving a force, velocity, or displacement into its left/right part
  • Phase-shifted signals: AC power and signal analysis that measure phase from a peak rather than zero

📋 Assumptions

  • The angle is a real number, entered as a plain decimal
  • Degrees convert to radians via rad = degrees × π/180
  • Secant near a zero denominator is treated as exactly undefined within a tiny numerical tolerance

⚠️ Limitations of the Formula

  • Cosine itself has no undefined angles — this limitation applies only to its reciprocal, secant
  • Secant is undefined at 90°, 270°, and every angle coterminal with them
  • Results are rounded floating-point approximations, not exact symbolic values
Walkthrough

Step-by-Step: How to Use the Cos Calculator

From entering an angle to reading the cosine and secant

Enter your angle

Type the angle value into the input field — any real number, positive or negative, is accepted.

Choose degrees or radians

Select which unit your angle is measured in using the toggle above the input.

Click "Calculate"

The calculator converts your angle to radians internally and evaluates cosine.

Read the cosine value

See the cosine result, always between -1 and 1, displayed in the results panel.

Check the secant

Review the reciprocal secant value, which is labeled "Undefined" whenever cosine equals zero.

Example

Worked Example

Finding the cosine and secant of a 60° angle

Scenario

A support beam makes a 60° angle with the horizontal. What is the cosine of that angle, and what is its reciprocal secant?

Angle60°
In Radians≈ 1.047198
QuadrantI (positive)
Step 1 — Convert to radians: rad = 60 × π/180 ≈ 1.047198.
Step 2 — Evaluate cosine: cos 60° = 0.5 — one of the standard reference angle values.
Step 3 — Compute secant: sec 60° = 1 ÷ 0.5 = 2.
cos 60°
0.5
sec 60°
2

Undefined case: at 90°, cos 90° ≈ 0, so sec 90° is Undefined — dividing 1 by 0 has no defined result. The calculator shows this explicitly instead of displaying "Infinity."

Interpretation

Understanding Your Cosine Result

Domain, range, and period of cosine and secant

FunctionDomainRangePeriod
cos θAll real angles[-1, 1]360°
sec θAll angles except 90°, 270°, ...(-∞,-1] ∪ [1,∞)360°

Reading the result: the cosine value tells you the x-coordinate of your angle on the unit circle, scaled to a maximum swing of 1 in either direction. The secant flips that value upside down, so small cosine values near zero produce very large secant values, and vice versa.

Typical ranges: cosine stays between -1 and 1 for every angle; secant can never fall between -1 and 1 — it jumps straight from 1 (or -1) out toward infinity as cosine approaches zero.

Manual verification: for common reference angles (0°, 30°, 45°, 60°, 90°), cosine takes the clean values 1, √3/2 ≈ 0.8660, √2/2 ≈ 0.7071, 0.5, and 0 — a quick way to check the calculator's output by hand.

Use Cases

Practical Use Cases for the Cos Calculator

Where finding a cosine value is genuinely useful

🎓

Trigonometry homework

Check cosine values for right-triangle and unit-circle problems.

🚀

Projectile motion (horizontal component)

Find the horizontal velocity or distance component of a launched object.

🔌

Engineering phase angles

Compute power factor and phase-shift relationships in AC circuits.

🧭

Navigation & surveying (easting)

Find the horizontal distance component from a bearing angle.

🏗️

Roof span & structural angles

Find the horizontal span of an incline given its angle and length.

🎮

Game development & graphics

Drive circular motion or rotation alongside sine for the x-axis component.

🛰️

Satellite & orbital mechanics

Compute the horizontal projection of an orbital or elevation angle.

🎵

Signal & waveform phase analysis

Model phase-shifted waveforms that start at a peak rather than zero.

🤖

Robotics kinematics

Solve joint angle equations that use cosine alongside sine.

📐

Vector & force decomposition

Break any vector into its horizontal (cosine) component.

🌉

Bridge & truss design

Determine horizontal load components across angled support members.

🧮

Quick reference lookup

Get an instant cosine value for any angle without a textbook or table.

Pros & Cons

Advantages and Limitations

What this cos calculator does well, and where it doesn't apply

✅ Advantages

  • Free, instant, and requires no signup or account
  • Runs entirely in your browser — no data ever leaves your device
  • Cosine is defined for every real angle — no gaps or errors ever occur for the primary result
  • Accepts both degrees and radians with a simple toggle
  • Also computes the reciprocal secant automatically
  • Correctly labels secant as "Undefined" instead of showing an error or huge number
  • Accepts negative angles and angles beyond 360° or 2π
  • Useful across coursework, engineering, navigation, and physics contexts alike
  • Fast-loading and fully mobile-friendly
  • Consistent, error-free results every time
  • Free to use as many times as needed, with no calculation limit

⚠️ Limitations

  • Secant cannot return a value at 90°, 270°, and coterminal angles — genuinely undefined there
  • Results are decimal approximations, not exact symbolic forms (e.g. it won't show √3/2 as a fraction)
  • Does not solve a full right triangle for missing sides — it only evaluates the cosine ratio itself
  • Does not compute the inverse (arccosine) function to find an angle from a cosine value
  • Assumes the angle is entered in the unit selected by the toggle — mismatches produce misleading results
  • Does not visualize the angle on a unit circle diagram
Reference

Cos vs Sin vs Tan at Common Angles

How cosine compares to sine and tangent at 0°, 30°, 45°, 60°, and 90°

Anglecossintan
100
30°0.8660250.50.577350
45°0.7071070.7071071
60°0.50.8660251.732051
90°01Undefined

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Entering an angle in radians while the toggle is set to Degrees (or vice versa)
  • Confusing cosine with sine — remember cosine starts at 1 (at 0°) while sine starts at 0
  • Assuming cosine can be undefined somewhere — it never is; only its reciprocal secant can be
  • Forgetting the sign of cosine flips to negative for angles between 90° and 270°
  • Mixing up "adjacent" and "opposite" sides when applying cosine to a right triangle by hand
  • Rounding cosine too early before computing secant from it, compounding small errors

💡 Expert Tips & Best Practices

  • Memorize the five reference values (0°, 30°, 45°, 60°, 90°) to sanity-check any cosine result quickly
  • Pair this with the Sin Calculator when you need both components of a vector or wave
  • Use the Trigonometry Calculator if you need all six ratios of the same angle at once
  • To go from a cosine value back to an angle, use the Inverse Trig Calculator
  • Keep at least 6 decimal places when doing manual verification to avoid compounding rounding errors
📝

Summary: This cos calculator gives you an instant, free way to find the cosine of any angle plus its reciprocal secant, with undefined cases clearly flagged. Pair it with the Sin Calculator and Tan Calculator for a fuller trigonometry toolkit.

FAQ

Frequently Asked Questions

Common questions about the cosine function

What does the cos calculator compute?
It computes cos(θ), the cosine of an angle you enter in either degrees or radians, and also shows the reciprocal ratio secant (sec = 1/cos θ). Cosine has no undefined angles, but its reciprocal secant is undefined wherever cosine equals zero.
How do you find the cosine of 60 degrees?
Convert 60° to radians (60 × π/180 ≈ 1.047198) and evaluate cosine at that angle, which equals exactly 0.5. This is one of the standard reference angles worth memorizing: cos 60° = 1/2.
What is the range of the cosine function?
Cosine always produces a value between -1 and 1, inclusive. It reaches its maximum of 1 at 0°, its minimum of -1 at 180°, and equals 0 at 90° and 270°.
Is cosine ever undefined?
No. Cosine is defined for every real number input — there is no angle at which cos(θ) breaks down. This is different from tangent and cotangent, which are undefined at specific angles.
Why is secant undefined at some angles?
Secant is defined as sec θ = 1/cos θ. Whenever cos θ = 0 — at 90°, 270°, and every angle coterminal with them — dividing 1 by 0 has no defined result, so sec is reported as Undefined at those exact angles.
What is the difference between cosine and sine?
Cosine and sine are both wave-shaped functions with the same range [-1, 1] and period 360°, but they are offset by 90°: cos θ = sin(θ + 90°). On the unit circle, cosine gives the x-coordinate of a point while sine gives its y-coordinate.
How does degrees vs radians affect the cosine calculation?
The underlying cosine value only depends on the actual angle, not the unit used to describe it — cos(60°) and cos(π/3 radians) are the same number. This calculator converts degrees to radians internally (rad = degrees × π/180) so you can enter either unit and get the same correct result.
What is the period of the cosine function?
Cosine repeats every 360° (or 2π radians). This means cos(60°), cos(420°), and cos(780°) all produce the exact same value, since each angle is exactly one or two full rotations apart from the others.
Can cosine be negative?
Yes. Cosine is negative for angles between 90° and 270° (Quadrants II and III), where a point on the unit circle sits to the left of the y-axis. For example, cos 120° = -0.5 and cos 240° = -0.5.
How is cosine used in real-world applications?
Cosine models the horizontal component of periodic and rotational motion: the horizontal component of projectile motion, phase-shifted AC signals, engineering phase angles, and any oscillation measured from its starting peak all use cosine.
What is CAH in SOHCAHTOA?
CAH stands for "Cosine = Adjacent over Hypotenuse" — in a right triangle, the cosine of an acute angle equals the length of the side adjacent to that angle divided by the length of the hypotenuse.
How accurate is this cos calculator?
It uses standard double-precision floating point math and displays results rounded to six decimal places, which is precise enough for virtually any academic, engineering, or everyday use.
Does this calculator accept negative angles?
Yes. Negative angles are measured clockwise instead of counterclockwise from the positive x-axis. Cosine is an even function, so cos(-60°) equals the same value as cos(60°).
What's the difference between this and the full trigonometry calculator?
This tool focuses specifically on cosine and its reciprocal secant, which is faster when that's all you need. The full Trigonometry Calculator computes all six ratios — sin, cos, tan, cot, sec, and csc — from one angle at once.
Learn More

Authoritative Resources on Cosine

Trusted educational references to go deeper on the cosine function

Related Calculators

Explore other trigonometry tools