Trigonometry calculator — SOHCAHTOA for right-angled triangles

Enter two legs, a leg and the hypotenuse, or a side and an acute angle, and the trigonometry calculator finds the missing sides and angles of a right-angled triangle with Pythagoras’ theorem and SOHCAHTOA. It also works out the area and the height to the hypotenuse.

Enter the sides as positive numbers in the same units and the angles in degrees. Side a is opposite angle A, b is opposite B and c is opposite C.

a = 3b = 4c = 536.87°53.13°90°ABC
Sides and angles
a = 3; b = 4; c = 5A ≈ 36.87°; B ≈ 53.13°; C = 90°

Triangle: a = 3; b = 4; c = 5; A ≈ 36.87°; B ≈ 53.13°; C = 90°. Area ≈ 6.

Step-by-step breakdown
  1. Perimeter12
  2. Area (by Heron’s formula)6
  3. Perpendicular height to each sidea: 4; b: 3; c: 2.4
  4. Radius of the inscribed circle (incircle)r ≈ 1
  5. Radius of the circumscribed circle (circumcircle)R ≈ 2.5
  6. Type of triangleright-angled, scalene

Step-by-step working

  1. By Pythagoras’ theorem:

    c = √(a² + b²) = √(3² + 4²) = 5
  2. Using the trig ratios in a right-angled triangle (SOHCAHTOA):

    tan A = a / b = 3 / 4 = 0.75, A ≈ 36.8699°
  3. The angles in a triangle add up to 180°:

    B = 90° − A ≈ 90° − 36.8699° ≈ 53.1301°

Formula

sin A=ac

SOHCAHTOA: the sine of an acute angle is the opposite side over the hypotenuse, the cosine is the adjacent side over the hypotenuse, and the tangent is the opposite side over the adjacent side.

How we got there

c = √(a² + b²) = √(3² + 4²) = 5

Labels: the legs (the two shorter sides) are a and b, the hypotenuse is c, angle A is opposite side a, and the right angle is C. So for angle A, a is the opposite side and b is the adjacent side.

How to solve a right-angled triangle

  1. Two legs — use Pythagoras’ theorem

    a = 3, b = 4: c = √(9 + 16) = 5.

  2. Find the angle with tan

    tan A = opposite / adjacent = a / b = 3/4 = 0.75, so A = tan⁻¹ 0.75 ≈ 36.87°.

  3. The other acute angle

    B = 90° − A ≈ 53.13°.

  4. Area

    Area = ab / 2 = 3 × 4 / 2 = 6.

Still mixing up opposite and adjacent? Find a maths tutor for Year 9

Trig ratios in a right-angled triangle

This is where sin, cos and tan of an acute angle are defined: they are ratios of sides. That is why they depend only on the angle, not on the size of the triangle.

The line from the right angle to the midpoint of the hypotenuse is half as long as the hypotenuse, and the side opposite a 30° angle is half the hypotenuse.

Where it comes up

The height of a tree from the length of its shadow, the pitch of a roof, the diagonal of a screen — they are all right-angled triangles.

At GCSE, SOHCAHTOA and Pythagoras’ theorem are on both tiers, and right-angled triangles hide inside many harder questions: trapeziums, rhombuses and, at Higher tier, 3D shapes such as pyramids.

Common mistakes

  • Mixing up the opposite and adjacent sides for the angle.
  • Dividing by a leg instead of the hypotenuse in the formula for sine.
  • Getting a leg longer than the hypotenuse: the hypotenuse is always the longest side.

Frequently asked questions

Ratios of sides, remembered as SOHCAHTOA: sin A = a / c (opposite over hypotenuse), cos A = b / c (adjacent over hypotenuse), tan A = a / b (opposite over adjacent).

By Pythagoras’ theorem, c = √(a² + b²), or from an angle: c = a / sin A.

b = √(c² − a²), or from an angle: a = c sin A, b = c cos A, b = a / tan A.

Half the product of the legs: area = ab / 2. The height to the hypotenuse is h = ab / c.

Three whole numbers that make a right-angled triangle, such as 3, 4, 5. Others are 5, 12, 13 and 8, 15, 17: for each of them Pythagoras’ theorem gives a whole-number hypotenuse.

The angles of any triangle add up to 180°, and the right angle takes 90°. So the acute angles make up the rest: B = 90° − A, and sin A = cos B.

Struggling with trigonometry?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.