# Trigonometry Calculator

URL: https://hifreetools.com/calculators/trigonometry-calculator

> Evaluate sine, cosine, tangent and their inverses in degrees or radians, and solve a right triangle's missing sides and angles from any two known values.

## Quick answer

Trigonometry relates the angles of a triangle to the lengths of its sides. This calculator does two jobs: it evaluates the six trig functions (sin, cos, tan, csc, sec, cot) and their inverses for any angle in degrees or radians, and it solves a right triangle — given any two values (with at least one side) it finds the remaining sides, both acute angles, and the area using the Pythagorean theorem and SOH-CAH-TOA.

## Formula

- sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse, tan θ = sin θ ÷ cos θ
- csc θ = 1 ÷ sin θ, sec θ = 1 ÷ cos θ, cot θ = cos θ ÷ sin θ
- Right triangle (right angle at C): c² = a² + b², A = arctan(a ÷ b), B = 90° − A, area = ab ÷ 2

The function evaluator converts the angle to radians when needed and applies the standard trig functions; inverse functions return an angle in your chosen unit. The right-triangle solver assumes the right angle is at C and applies SOH-CAH-TOA (sin A = opposite/hypotenuse, etc.) together with the Pythagorean theorem a² + b² = c². The two acute angles always sum to 90°, and the area is ½ · a · b.

## Inputs

- Angle θ (degrees) (-1000000 to 1000000); default 30
- Angle θ (radians) (-100000 to 100000); default 1
- Value x (−1 to 1) (-1 to 1); default 0.5
- Value x (-1000000000000 to 1000000000000); default 1
- Side a (opposite A) (0 to 1000000000000); default 3
- Side b (adjacent to A) (0 to 1000000000000); default 4
- Hypotenuse c (0 to 1000000000000); default 5
- Angle A (degrees) (0 to 90); default 30

## Worked examples (computed by the page's own function)

- Angle θ (degrees) = 30 → sin θ = 0.5, cos θ = 0.866025, tan θ = 0.57735, csc θ = 2  (sin(30°) = 0.5, cos(30°) = 0.8660254)
- Side a (opposite A) = 3, Side b (adjacent to A) = 4 → Side a = 3, Side b = 4, Hypotenuse c = 5, Angle A (°) = 36.869898  (c = √(3² + 4²) = 5)
- Value x = 1 → arctan x (degrees) = 45, arctan x (radians) = 0.785398  (arctan(1) = 45°)

## Verification

Checked against 20 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-28: Moved to the schema renderer with a sourced ledger. The function picker became modes that show all six functions at once (degrees or radians) plus arcsin/arccos and arctan; the right-triangle solver's 'any two values' became five modes. tan and sec at 90° are now left out as undefined instead of showing 1.6×10¹⁶.

## FAQ

**Does it work in degrees and radians?**
Yes. Use the angle-unit selector to switch between degrees and radians; it applies to the input angle for direct functions and to the output angle for inverse functions.

**What's the minimum I need to solve a right triangle?**
Any two values, as long as at least one is a side length. Two sides, or one side plus an acute angle, are enough; two angles alone are not.

**Why is tan 90° missing from the results?**
Tangent is the ratio sin/cos, and cos 90° = 0, so tan 90° is undefined (it heads to infinity). The tool leaves tan and sec out of the results at 90° instead of showing a misleading huge number; csc and cot are left out at 0° and 180° for the same reason.

**Which angle is A and which is B?**
The right angle is at C. Angle A is opposite side a, and angle B is opposite side b, so A and B are the two acute angles that add up to 90°.

**Can it give csc, sec, and cot?**
Yes — the function list includes cosecant, secant, and cotangent, which are the reciprocals of sine, cosine, and tangent.

**Is anything uploaded?**
No. All calculations run in your browser.


## Sources

- [Wikipedia — Trigonometric functions](https://en.wikipedia.org/wiki/Trigonometric_functions)
- [Wikipedia — Inverse trigonometric functions](https://en.wikipedia.org/wiki/Inverse_trigonometric_functions)
- [Wolfram MathWorld — Right Triangle](https://mathworld.wolfram.com/RightTriangle.html)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Trigonometry Calculator", https://hifreetools.com/calculators/trigonometry-calculator
