Sec Calculator - Secant and Arcsecant

Use this free sec calculator to find the secant of any angle in degrees or radians, or to invert a secant value back to its principal angle.

Updated: June 16, 2026 • Free Tool

Sec Calculator

Secant takes an angle and returns the secant value. Arcsecant takes a secant value and returns the principal angle.

Choose degrees for typical angle values or radians for calculus and engineering formulas.

Used when Direction is 'Secant of an angle'. Type the angle in the unit selected below.

Used when Direction is 'Arcsecant (inverse)'. Must satisfy |y| >= 1 because |sec| is always at least 1.

Results

Secant (sec x)
0
Cosine of angle (cos x) 0
Reciprocal check (1 / cos x) 0
Principal angle in degrees 0°
Principal angle in radians 0rad

What Is a Sec Calculator?

A sec calculator computes the secant of an angle, which is the reciprocal of the cosine of that angle. The secant function, written sec(x), equals 1 divided by cos(x), so when you type an angle the tool returns the reciprocal of the cosine along with the cosine value itself for verification. The same tool can also run in the inverse direction, called arcsecant, to recover the principal angle that produced a given secant value.

  • Solving right-triangle problems: Find the ratio of the hypotenuse to the adjacent side from a known angle, useful in surveying and engineering.
  • Working with reciprocal trig identities: Confirm identities such as sec(0) = 1, sec(pi/3) = 2, and sec(pi) = -1 while working through homework.
  • Verifying derivative and integral results: Check the derivative of sec(x) (sec(x) tan(x)) or the integral of sec(x) (ln |sec(x) + tan(x)|).
  • Converting between secant values and angles: Use arcsecant to recover the principal angle from a secant value when a formula hands you the ratio.

Secant is one of the three reciprocal trig functions, alongside cosecant and cotangent. This tool handles the reciprocal so you can read the result without writing the division yourself.

The right-triangle interpretation is the clearest mental model: in a right triangle, sec(theta) equals the length of the hypotenuse divided by the length of the side adjacent to theta.

Because sec is the reciprocal of cosine, the Arccos Calculator is the natural companion for the inverse direction: it converts a cosine value back into the angle that produced it, and arcsec uses the same arccos relationship under the hood.

How the Sec Calculator Works

The tool reads your angle, converts it to radians if needed, and divides 1 by the cosine of that angle. When you switch the direction to arcsecant, the same engine runs the inverse: it takes a secant value and recovers the principal angle by computing the arccosine of 1 divided by the secant value.

sec(x) = 1 / cos(x), arcsec(y) = arccos(1 / y)
  • x: The input angle, given in the unit you select (degrees or radians). Sec is undefined where cos(x) is zero.
  • y: The secant value used in arcsecant mode. Must satisfy |y| >= 1 because the cosine range is [-1, 1].
  • sec(x): The reciprocal of the cosine. For real angles, sec(x) lives in (-infinity, -1] union [1, infinity).

The principal branch of arccosine returns the angle in [0, pi] radians, which is the principal branch of arcsecant because sec is symmetric on that range.

The cosine check is a quick way to catch a mistake. If you type an angle in radians by accident while the unit dropdown is set to degrees, the cosine value will not match what you expect. Floating-point arithmetic means the match is only exact to about 15 significant digits.

Worked example: sec(60 degrees)

x = 60 degrees, with the result requested as a secant value

sec(60 deg) = 1 / cos(60 deg) = 1 / 0.5 = 2.

2 (with a cosine check of 0.5)

An angle of 60 degrees in a right triangle has an adjacent-to-hypotenuse cosine of 0.5, so the reciprocal secant is exactly 2.

Worked example: arcsec(2)

y = 2, with the result requested in degrees

arcsec(2) = arccos(1 / 2) = arccos(0.5) = pi/3 = 60 degrees.

60 degrees (pi/3 radians)

The principal angle whose secant is 2 is 60 degrees, the reference value off a 30-60-90 right triangle.

According to Wikipedia: Trigonometric functions, the secant function is the reciprocal of cosine, with reference values cos(0) = 1, cos(pi/3) = 1/2, cos(pi/4) = sqrt(2)/2, and cos(pi) = -1.

When the surrounding formula expects the angle in a different unit than the sec calculator's input, the Radians to Degrees Calculator converts the value in both directions without changing the secant result.

Key Concepts Explained

These four concepts come up every time you work with the secant, and they are the building blocks for understanding what the result panel is showing you.

Reciprocal of cosine

Sec is defined as sec(x) = 1 / cos(x). That single identity is the reason the result equals 1 / cosine of the input angle.

Asymptotes at odd multiples of 90 degrees

Cosine is zero at 90 degrees plus any integer multiple of 180 degrees, so sec has a vertical asymptote at every one of those angles. The tool surfaces this as a domain error rather than returning infinity.

Range outside (-1, 1)

Because cos(x) is always between -1 and 1, sec(x) is always at least 1 in absolute value. Any secant value strictly between -1 and 1 has no real arcsecant, so the tool rejects those inputs in arcsecant mode.

Right-triangle ratio

In a right triangle, sec(theta) equals the hypotenuse divided by the side adjacent to theta. That geometric meaning is why secant shows up in surveying, navigation, and any problem that converts between side lengths and angles.

Both 90 and 270 degrees look like ordinary inputs, but the secant value there is undefined because dividing by zero is not allowed. The tool reports this as a clear domain error.

A 30-60-90 right triangle has hypotenuse 2, side adjacent to the 60-degree angle equal to 1, and side opposite equal to sqrt(3), so sec(60) = 2 / 1 = 2 lines up with the panel.

The right-triangle ratio interpretation of sec is easiest to see with a real triangle, so the Right Triangle Calculator lets you cross-check the secant against the adjacent and hypotenuse sides of a chosen triangle.

How to Use This Sec Calculator

Working with the tool only takes a few seconds. Pick the direction, type your input, and read the result.

  1. 1 Choose a direction: Select 'Secant of an angle' to compute sec(x) from an angle, or 'Arcsecant (inverse)' to recover the principal angle from a secant value.
  2. 2 Pick the angle unit: Set the angle unit to degrees for typical classroom work, or to radians for calculus and engineering formulas.
  3. 3 Enter your input: Type the angle in the Angle field, or the secant value in the Secant value (y) field. Only the matching field is used.
  4. 4 Read the secant result: The Secant row shows the reciprocal of the cosine. The Cosine row shows the cosine for verification.
  5. 5 Switch to arcsecant when you need the inverse: Change Direction to 'Arcsecant (inverse)', type a secant value with |y| >= 1, and read the principal angle in degrees and radians.
  6. 6 Watch for domain errors: Angles that make cosine zero (90 degrees plus any integer multiple of 180 degrees) and secant values with |y| < 1 surface a clear error.

Suppose a right triangle has an adjacent side of 3 and a hypotenuse of 5, so the cosine of the angle is 3 / 5 = 0.6. Enter 53.1301 degrees in degree mode. The tool returns a secant of 1.6667.

When the angle comes from a larger triangle problem with two known sides, the Triangle Calculator carries the side lengths, the missing angle, and the area through one workflow that pairs naturally with the secant step.

Benefits of Using This Sec Calculator

A tool that handles both directions, both angle units, and the cosine check in one panel saves time on homework and code reviews.

  • Two directions, one tool: Switch between secant of an angle and arcsecant of a secant value without leaving the page or re-entering inputs in a separate calculator.
  • Both angle units: Type angles in degrees or radians and read the secant value in the same panel, which is faster than converting units by hand.
  • Built-in cosine check: The reciprocal check (1 / cos x) sits next to the secant so you can confirm the reciprocal identity and catch unit-conversion mistakes immediately.
  • Domain validation: Angles that make cosine zero and secant values inside (-1, 1) are flagged with a clear domain error instead of returning NaN or Infinity.
  • Right-triangle context: The result panel shows the secant, the cosine, and the reciprocal check side by side, so you can read off the hypotenuse-to-adjacent ratio in one glance.

The biggest win is that the tool keeps the reciprocal identity and the domain rules visible, so the relationship sec(x) = 1 / cos(x) becomes a check you can read.

If the problem hands you the hypotenuse and the opposite side instead of the adjacent side, the Arcsin Calculator recovers the angle from the sine relationship and complements the secant result on the adjacent side.

Factors That Affect Your Results

A handful of factors control what the tool can give you. Knowing them up front prevents the most common mistakes, especially when an angle is near an asymptote.

Asymptotes at odd multiples of 90 degrees

Any angle of 90 + 180k degrees (or pi/2 + k*pi radians) has no real secant value. The tool reports a domain error rather than dividing by zero.

Angle unit must match the input

Typing 1.0472 with the unit set to degrees is read as 1.0472 degrees, not pi/3 radians. The cosine value in the result panel will not match the value you expect. Always confirm the unit before reading the secant.

Secant value range outside (-1, 1)

Real secant values always satisfy |sec(x)| >= 1. The tool rejects any arcsecant input inside (-1, 1) with a domain error because no real angle has a secant in that interval.

Period of 2*pi

Secant repeats every 360 degrees (2*pi radians). Typing 420 degrees and 60 degrees returns the same secant, which is useful when you need to bring an angle into the [0, 360) range.

Floating-point rounding near asymptotes

Angles like 89.9999 degrees or 90.0001 degrees sit just inside or just outside the asymptote, so their secant values are very large. The reciprocal amplifies floating-point noise near zero, so treat the last few digits as approximate.

  • The tool returns real-valued secant and arcsecant only. It does not compute complex-valued secant for angles where the cosine is zero.
  • Floating-point arithmetic means the reciprocal check equals the secant only to roughly 15 significant digits. Treat the reciprocal check as a sanity check, not an equality test, and round to the precision your problem actually requires.

If you ever need the supplementary angle to a secant result, remember that sec(pi - x) equals -sec(x) because cos(pi - x) equals -cos(x). For example, sec(120 degrees) equals -2, the negative of sec(60 degrees).

According to Wikipedia: Secant, the secant function has a range of (-infinity, -1] union [1, infinity) and vertical asymptotes at odd multiples of pi/2.

When an asymptote sits very close to the angle you typed, the Angle Converter is the fastest way to re-express that angle in gradians, turns, or a smaller angular unit so the secant stays inside the valid range.

Sec calculator input box showing an angle in degrees, with secant value, cosine check, and arcsecant mode result panel
Sec calculator input box showing an angle in degrees, with secant value, cosine check, and arcsecant mode result panel

Frequently Asked Questions

Q: What is sec in math?

A: Sec is the reciprocal of the cosine function. Given an angle whose cosine is not zero, sec(x) = 1 / cos(x), which means the secant is always at least 1 in absolute value for real angles.

Q: How do you calculate secant of an angle?

A: Compute the cosine of the angle in degrees or radians, then divide 1 by that cosine. The tool does both steps and adds a cosine check so you can verify the result in one place.

Q: What is the range of sec?

A: The real range of sec is (-infinity, -1] union [1, infinity). No real angle has a secant between -1 and 1, so the tool rejects any arcsecant input inside that interval with a domain error.

Q: Is sec the same as 1 over cos?

A: Yes. Sec is defined as the reciprocal of cosine, written sec(x) = 1 / cos(x). The result and the 1 / cos(x) check always agree to floating-point precision.

Q: What is sec of 0?

A: Sec of 0 is exactly 1, because cos(0) = 1 and 1 / 1 = 1. The result panel returns 1 along with the cosine check of 1 to confirm the identity.

Q: Why does sec have asymptotes?

A: Sec has vertical asymptotes at every odd multiple of 90 degrees (pi/2 radians) because cosine is zero at those angles and you cannot divide 1 by zero. The tool surfaces those angles as a clear domain error rather than returning infinity.