Skip to content

Triangle Calculator

Area, angles and perimeter of any triangle from its three sides.

Calculated on your device. Nothing you enter is sent anywhere.

Area (square units)

Area (square units): 29.39387691

This scalene obtuse triangle has an area of 29.39387691 square units.

Perimeter
32
Angle A, opposite a (°)
34.047732
Angle B, opposite b (°)
122.87835
Angle C, opposite c (°)
23.073918
Type
Scalene, obtuse

In short

Three sides fix a triangle completely. Heron’s formula gives the area from the sides alone: with s as half the perimeter, the area is the square root of s(s − a)(s − b)(s − c). The law of cosines then gives each angle, and the three angles add up to 180°. The sides must satisfy the triangle inequality.

How it works

Heron’s formula

s = (a + b + c) ÷ 2 Area = √(s(s − a)(s − b)(s − c))

Law of cosines

cos A = (b² + c² − a²) ÷ 2bc A + B + C = 180°

For very thin triangles, s − a can lose most of its digits to rounding, so the calculator sorts the sides so a ≥ b ≥ c and uses the equivalent form ¼√((a + (b + c))(c − (a − b))(c + (a − b))(a + (b − c))), as Corral’s Elementary Trigonometry recommends.

Worked examples

Sides 10, 15 and 7

s = 16, so the area is √(16 × 6 × 1 × 9) = √864 = 29.3939, which OpenStax Algebra and Trigonometry Example 5 rounds to 29.4.

Open this example in the calculator

Sides 5, 4 and 7

s = 8 and the area is √96 = 4√6 = 9.79796, matching Corral’s Example 2.15 (≈ 9.8).

Open this example in the calculator

The angle opposite 20 in a 20, 25, 18 triangle

cos A = (25² + 18² − 20²) ÷ (2 × 25 × 18) = 549 ÷ 900, so A = 52.4105°; OpenStax Example 2 gives 52.4°.

Open this example in the calculator

Using this calculator well

  • Use the same unit for every side. The area comes out in that unit squared.
  • The longest side faces the largest angle. If its square is more than the other two squares added, the triangle is obtuse; if equal, it is right-angled.
  • Land and plots: measuring the three sides of a triangular plot is enough to find its area, as in OpenStax’s Chicago lot of 62.4, 43.5 and 34.1 m (about 711.4 m²).

Frequently asked questions

How do I find the area of a triangle with three sides?

Use Heron’s formula. Add the sides and halve the total to get s, then take the square root of s × (s − a) × (s − b) × (s − c). A 3, 4, 5 triangle has s = 6 and area √(6 × 3 × 2 × 1) = 6.

How do I find the angles of a triangle from its sides?

Use the law of cosines: cos A = (b² + c² − a²) ÷ 2bc, then take the inverse cosine. Repeat for a second angle, and subtract both from 180° for the third. A 3, 4, 5 triangle has angles of about 36.87°, 53.13° and 90°.

What is the triangle inequality?

Any two sides of a triangle must add up to more than the third. Sides of 2, 3 and 6 cannot form a triangle, because 2 + 3 is less than 6. If the two shorter sides add up exactly to the longest, the triangle collapses into a straight line with zero area.

What are scalene, isosceles and equilateral triangles?

A scalene triangle has three different sides, an isosceles triangle has at least two equal sides, and an equilateral triangle has all three equal, with every angle 60°. Triangles are also acute, right or obtuse by their largest angle.

Sources and methodology

  1. Algebra and Trigonometry 2e, 10.2 Non-right Triangles: Law of Cosines, OpenStax, Rice University, cos α = (b² + c² − a²) ÷ 2bc; Heron: √(s(s − a)(s − b)(s − c)), s = half the perimeter; Example 2: 20, 25, 18 → α ≈ 52.4°; Example 5: 10, 15, 7 → 29.4; Example 6: 62.4, 43.5, 34.1 m → 711.4 m² (accessed November 24, 2026)
  2. Elementary Trigonometry (Corral), 2.4 The Area of a Triangle, Michael Corral, Schoolcraft College (LibreTexts), Heron’s formula; Example 2.15: 5, 4, 7 → 4√6 ≈ 9.8; Example 2.16: the rearranged form ¼√((a + (b + c))(c − (a − b))(c + (a − b))(a + (b − c))) for a ≥ b ≥ c avoids rounding error in thin triangles (accessed November 24, 2026)

Rounding: Uses a rearranged Heron’s formula that stays accurate for long, thin triangles. Results keep 12 significant digits; angles are shown to 8.

Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.

Changelog
  • 1.0.0 · November 24, 2026: First published.

How we build and test calculators

Embed this calculator on your site

Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.

<iframe src="https://northcalculator.com/embed/en/triangle" title="Triangle Calculator" width="100%" height="760" style="border:0" loading="lazy"></iframe>