Lelifi·tools

Secant Calculator

The secant of 60 degrees is 2, because cos 60 is 0.5 and sec is 1 divided by cos. Type any angle to see sec, its cosine and its radian form, or switch to triangle mode and read sec from two sides. At 90 degrees secant is undefined.

Enter an angle in degrees or radians, or the two sides of a right triangle. The calculator returns secant, the cosine it came from, the angle in both units, and a note when secant has no value. Radian input also accepts an expression such as 7pi/6. Everything runs in your browser.

Enter an angle in degrees or radians, or the two sides of a right triangle, and the calculator returns the secant together with the cosine it came from.

By the Lelifi editors ·

Key takeaways

Secant at 60 degrees: the ray is cut at distance 260 degreescos 60 = 0.5sec 60 = 2x = 1, the tangent lineThe blue ray leaves the circle at 60 degreesand meets the tangent line at x = 1.That meeting point sits 1.732 above the axis,and the ray length follows from the right triangle1 x 1 + 1.732 x 1.732 = 4, so the ray is 2 long.Cosine reads the x coordinate, 0.5.Secant reads the ray out to the tangent, 2.1 divided by 0.5 is 2, the same number.
At 60 degrees the ray meets the tangent line x = 1 at a distance of 2 from the center, which is the secant. Cosine is the x coordinate, 0.5.
Secant from -360 to 360 degrees, clipped at 4-270-9090270-360-1800180360-4-2024Dashed red lines mark 90 and 270 and their negative twins, where cosine is zero and secant has no value.
The secant curve repeats every 360 degrees and breaks at 90, 270 and their negative twins, where the cosine is zero.
On this page
  1. What secant means on the unit circle
  2. The reciprocal identity behind the button
  3. Secant values at the angles people look up
  4. Where secant is undefined and why the number explodes
  5. Worked examples with real measurements
  6. Degrees, radians and the pi key
  7. Secant the function is not a secant line

What secant means on the unit circle

Cosine and secant read the same rotation in two different ways. Put an angle on the unit circle and the cosine is the x coordinate of the point where the angle lands: at 60 degrees that point is (0.5, 0.866). Secant takes that x coordinate and divides 1 by it, so sec 60 is 1 divided by 0.5, which is 2. Nothing about the angle changed. Only the reading did.

The name comes from the Latin word for cutting. In the standard construction, extend the angle's ray past the circle until it meets the vertical line x = 1. That line touches the circle at (1, 0), so a line crossing it is a cutting line, a secant. The distance from the origin out to that crossing point is |sec theta|. At 60 degrees the crossing sits at (1, 1.732) and the ray length is 2, as the first figure shows.

Two consequences follow straight from the definition. Because a cosine cannot sit between -1 and 1, a secant can never sit between -1 and 1 either: every real secant is at least 1 or at most -1. And because cosine is negative in the second and third quadrants, secant is negative there too. The sign of sec always matches the sign of cos, and the size is always the reciprocal.

The NIST Digital Library of Mathematical Functions, section 4.14 lists secant with the other five circular functions and treats it as 1 over cosine, which is the definition this calculator uses. OpenStax Precalculus, section 5.3 builds the same function from a right triangle and adds the sign rules for the four quadrants.

The reciprocal identity behind the button

In a right triangle, cosine is adjacent over hypotenuse, so secant flips it to hypotenuse over adjacent. A ramp whose horizontal run is 4.0 ft and whose sloping surface is 5.0 ft has sec of the base angle equal to 5.0 ÷ 4.0 = 1.25. The same number comes out of the angle: arccos(4.0 ÷ 5.0) = 36.87 degrees, and 1 ÷ cos 36.87 = 1.25.

The Pythagorean identity ties secant to tangent. Divide sin squared plus cos squared by cos squared and you get tan squared plus 1 equals sec squared. At 30 degrees, tan 30 is 0.5774 and 0.5774 squared is 0.3333, so 1 + 0.3333 = 1.3333. Sec 30 is 1.1547 and 1.1547 squared is also 1.3333. The identity holds to the last digit the calculator shows.

Calculus keeps the same thread. The derivative of sec x is sec x times tan x, which is 2 × 1.732 = 3.464 at 60 degrees. The integral of sec x is the natural log of the absolute value of sec x plus tan x, a result that looks strange until you differentiate it back. Neither fact changes the arithmetic on this page, but both show that secant is a first class function rather than a label for a division.

Secant values at the angles people look up

Standard angles have exact secants, and the rest come from a cosine table or a calculator. The table below repeats the cosine next to each secant so you can check any row by hand: divide 1 by the cosine column and you get the secant column.

AngleCosineSecantSign
0 degrees1.00001.0000positive
30 degrees0.86601.1547positive
45 degrees0.70711.4142positive
60 degrees0.50002.0000positive
90 degrees0.0000undefinednone
120 degrees-0.5000-2.0000negative
135 degrees-0.7071-1.4142negative
150 degrees-0.8660-1.1547negative
180 degrees-1.0000-1.0000negative
270 degrees0.0000undefinednone
360 degrees1.00001.0000positive

Angles that are not on the list are just as easy. At 40 degrees the cosine is 0.7660, so 1 ÷ 0.7660 = 1.3054. At 210 degrees the cosine is -0.8660, so 1 ÷ -0.8660 = -1.1547. The second figure plots the whole curve, and the vertical gaps are the angles where no value exists.

Where secant is undefined and why the number explodes

Cosine is zero at 90 degrees plus any whole number of half turns: 90, 270, 450, -90, and so on. Written in radians the same set is pi/2 plus k times pi. At those angles the division has no answer, and no finite value can stand in for it. A calculator that shows a huge number near 90 degrees is reporting the approach, not the value at 90.

The approach is steep. At 89.9 degrees the cosine is 0.001745, so secant is 572.96. Move a tenth of a degree closer and the secant is about ten times larger. That is why a surveying spreadsheet can return a ten digit number for what was meant to be a right angle, and why the calculator here prints undefined instead of a large number when the input lands exactly on the pole.

InputCosineSecantWhat the page shows
89 degrees0.0174557.30a finite value
89.9 degrees0.001745572.96a finite value
90 degrees0noneundefined
90.1 degrees-0.001745-572.96negative, same size
450 degrees0noneundefined, one turn later

The negative branch matters in practice. A ray that is a hair past vertical has a negative cosine, so its secant is a large negative number, not a large positive one. Sign errors at this boundary are common in code that compares a computed secant with a threshold instead of comparing the cosine with zero.

Worked examples with real measurements

A roof surface from its run and pitch. A shed roof has a horizontal run of 12 ft and a pitch of 30 degrees above horizontal. The sloping surface is the hypotenuse of that triangle, so its length is the run times the secant of the pitch: 12 × 1.1547 = 13.86 ft. Ordering 14 ft of panel per rafter covers the extra, and the same multiplier works for any run at that pitch.

Sunlight through the atmosphere. When the sun sits 60 degrees from straight overhead, light crosses twice the thickness of air it would cross from directly above, because 1 ÷ cos 60 = 2. At 80 degrees from overhead the factor is 1 ÷ 0.1736 = 5.76. That is the plane parallel estimate of air mass. It overstates the path near the horizon, where the curved atmosphere means light never crosses that much air, but the secant factor is the right first correction for solar panel output and for color temperature at low sun.

A triangle without the angle. A brace is 25 in long and meets a rail 20 in from the corner. Secant of the angle at the corner is 25 ÷ 20 = 1.25, and the angle itself is arccos(20 ÷ 25) = 36.87 degrees. A carpenter who only owns a tape measure gets both numbers from the side ratio, which is the mode this page offers below the angle field.

CaseWhat is knownSecantResult
Shed roof12 ft run, 30 degree pitch1.154713.86 ft of slope length
Sun 60 degrees from overheadzenith angle 602.0000twice the vertical air mass
Sun 80 degrees from overheadzenith angle 805.75885.76 times the vertical air mass
Diagonal braceadjacent 20 in, hypotenuse 25 in1.2500base angle 36.87 degrees

Degrees, radians and the pi key

Radians replace the 360 degree turn with 2 pi, so a quarter turn is pi/2 and one radian is about 57.2958 degrees. The secant of 1 radian is 1.8508, a value with no simple fraction, which is why radian answers are usually written to four decimals. The secant of 7pi/6 is cleaner: 7pi/6 is 210 degrees, the cosine is -0.8660, and the secant is -1.1547.

Mixing the two modes is the single most common error with this function. A calculator left in radian mode will read an input of 60 as 60 radians, which is 60 minus 9 full turns, or 343.94 degrees, and return 1.0507 instead of 2. If a secant answer is close to 1 when you expected a large number, check the mode before checking the formula.

Two more conventions are worth knowing. Secant is even, so sec(-40) equals sec(40), which is useful when a bearing comes in negative. And secant repeats every full turn, so sec(400) equals sec(40). Both follow from cosine, which has the same two properties.

Secant the function is not a secant line

The word shows up twice in math classes with two unrelated meanings. The secant function on this page is a ratio, 1 over cosine, and it takes one angle. A secant line is a straight line through two points on a curve, and its slope is the average rate of change between those points. If you need the second one, the slope calculator computes rise over run from two coordinate pairs, and that is the right tool.

The confusion is old rather than new: both meanings trace back to a line cutting a circle, one as the ray that meets the tangent, the other as a chord between two points. The arithmetic lives in different places, though. A secant line answer has units of y per x, while a secant function answer is a pure number with no units at all.

Related angles have their own pages. The reference angle calculator reduces an angle to its 0 to 90 degree form, the coterminal angle calculator handles full turns, and the right triangle calculator solves the sides this page reads. Use them together when a homework problem asks for the secant of a large angle: coterminal first, reference angle second, secant last.

Frequently asked questions

What is the secant of 60 degrees?

Sec 60 is 2. The cosine of 60 degrees is 0.5, and 1 ÷ 0.5 = 2. In a 30-60-90 triangle the hypotenuse is twice the short side, so the ratio of hypotenuse to adjacent side is 2 as well.

Is secant the same as 1 over cosine?

Yes. Sec theta = 1 ÷ cos theta for every angle where the cosine is not zero. The identity holds in degrees and in radians, and it is the definition used by NIST DLMF section 4.14.

Why is sec 90 undefined?

Cos 90 = 0, and division by zero has no value. The secant grows without bound as the angle approaches 90 from below and drops to large negative values just past it, so there is no single number to assign at the angle itself.

What is the secant of 0 degrees?

Sec 0 = 1. The ray has not rotated, the cosine is 1, and 1 ÷ 1 = 1. The same answer comes back at 360 degrees and at any whole number of turns.

Can a secant be negative?

Yes. Cosine is negative between 90 and 270 degrees, so secant is negative there. Sec 120 = -2, sec 150 = -1.1547 and sec 180 = -1. The sign of the secant always matches the sign of the cosine.

What is the secant of 45 degrees?

Sec 45 = 1.4142, the square root of 2. The cosine of 45 degrees is 0.7071, and 1 ÷ 0.7071 = 1.4142. It is the smallest positive secant above 1 at a standard angle besides 30 degrees.

How do I find secant on a phone calculator?

Most phone calculators have no sec button. Compute the cosine first, then divide 1 by it: cos 40 = 0.7660, then 1 ÷ 0.7660 = 1.3054. This page does both steps and shows the cosine so you can check the division.

What is the secant of pi over 3?

Pi over 3 radians is 60 degrees, so sec(pi/3) = 2. In radians the undefined points are pi/2, 3pi/2 and every pi/2 plus a whole turn.

Does secant have units?

No. Secant is a ratio of two lengths, hypotenuse over adjacent side, so the units cancel. A roof pitch of 30 degrees gives a secant of 1.1547, and that number multiplies a run in feet to give a slope length in feet.

What is the derivative of secant?

The derivative of sec x is sec x times tan x. At 60 degrees that is 2 × 1.732 = 3.464 per radian. The integral of sec x is the natural log of the absolute value of sec x plus tan x.

Why does my calculator give 1.05 for sec 60?

The calculator is in radian mode. 60 radians is 60 minus 9 full turns, or 343.94 degrees, and the secant of that angle is 1.0507. Switch to degrees, or type 1.0472 radians for the same 60 degree angle.

Is secant ever less than 1?

No. Cosine cannot be larger than 1 or smaller than -1, so its reciprocal cannot sit between -1 and 1. The smallest positive secant is 1, at 0 degrees, and the largest negative one is -1, at 180 degrees.

What is the secant of a 90 degree angle in a triangle?

It does not exist as a triangle ratio, because the right angle of a right triangle is never the angle you take a secant of: its adjacent side would have length zero. Secant of a right angle only makes sense on the unit circle, where it is still undefined.

How accurate are the rounded values on this page?

Values are shown to four decimals, which is within 0.0001 of the exact value. Sec 40 is 1.305407 and the page prints 1.3054. For surveying work, keep the full precision from the calculator rather than the rounded display, since rounding a secant near 89 degrees can move the last useful digit.

Spotted a wrong number or a broken result?

More Math tools

See all Math tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.