Triangle Calculator

Calculate triangle sides, angles, area, perimeter, medians, inradius, and circumradius with multiple solve modes and step-by-step solutions

Check Triangle Calculator

Used only to label copied results, areas, and lengths.

Try:

Formula result

Copy-ready result handoff

Use this after solving sides, angles, area, or perimeter for a triangle.

Common searches
triangle calculatortriangle solversides and angles
Input check

Confirm the known side and angle pattern before trusting the solved triangle.

Assumption

Angle sums must be 180 degrees and side lengths must satisfy the triangle inequality.

Triangle solution note

Copy this after replacing the bracketed result with the value shown by the calculator.

Triangle result: [paste solved side, angle, area, and perimeter values].
Inputs checked: Confirm the known side and angle pattern before trusting the solved triangle.
Assumption: Angle sums must be 180 degrees and side lengths must satisfy the triangle inequality.
Use case: Geometry homework, roof pitch review, survey sketch, or diagram value check.
Next check: Use Right Triangle Calculator when one angle is exactly 90 degrees.

About This Tool

Calculator Task Context

Use this calculator to solve triangle side, angle, perimeter, and area relationships from the dimensions you know.

Formula And Method Used

The calculator applies triangle formulas such as angle sum, Pythagorean relation for right triangles, Heron area, and trigonometric laws when enough inputs are available.

Worked Example

  1. For a right triangle with legs 3 and 4, compute c = sqrt(3^2 + 4^2).
  2. c = sqrt(25) = 5, and the area is 3*4/2 = 6.

Common Mistakes And Limits

  • A triangle is only valid when every side is positive and any two sides sum to more than the third.
  • Do not mix degrees and radians when entering angles.
  • SSA inputs can describe two possible triangles, one triangle, or no triangle depending on the values.

Related Calculators

Triangle Calculator: Solve Any Triangle with Six Comprehensive Modes and Proportional Visualization

Our triangle calculator provides six comprehensive solve modes for determining all sides, angles, area, perimeter, and advanced properties of any triangle from minimal input data: SSS (three sides known), SAS (two sides and the included angle), ASA (two angles and the included side), AAS (two angles and a non-included side), SSA (two sides and a non-included angle with ambiguous case detection), and a simple base-height mode for quick area calculations. A triangle is the most fundamental polygon in Euclidean geometry, consisting of three vertices connected by three line segments called sides, with the interior angles always summing to exactly 180 degrees, and every triangle can be uniquely determined by specifying three independent measurements that include at least one side length, which is why our calculator offers these six distinct input configurations that cover every possible combination of known information. The SSS mode uses Heron's formula to compute the area directly from the three side lengths without requiring any angle or height measurement, then applies the Law of Cosines to determine all three interior angles, providing a complete solution from the most commonly available input data. The SAS and ASA modes leverage the Law of Cosines and Law of Sines respectively to find the unknown sides and angles, while the AAS mode uses the angle sum property to find the third angle before applying the Law of Sines, and the SSA mode includes automatic detection of the ambiguous case where two different valid triangles may exist for the same input values. Beyond the basic sides and angles, our calculator computes the semi-perimeter, inradius (radius of the inscribed circle), circumradius (radius of the circumscribed circle), all three medians, and all three altitudes, providing a complete geometric profile of the triangle with a proportional SVG visualization that accurately represents the shape based on the computed dimensions. For solving right triangles specifically using the Pythagorean theorem and trigonometric ratios, our Right Triangle Calculator provides specialized right triangle computation with hypotenuse, legs, and angle calculations.

Heron's Formula and the Law of Cosines: Solving Triangles from Three Sides (SSS)

Heron's formula, attributed to Hero of Alexandria in the first century AD, provides an elegant method for calculating the area of a triangle when all three side lengths are known, without requiring any angle or height measurement, making it one of the most practically useful formulas in geometry because side lengths are often the easiest measurements to obtain in real-world applications such as surveying, construction, and land measurement. The formula first computes the semi-perimeter s equals (a plus b plus c) divided by 2, then calculates the area as the square root of s times (s minus a) times (s minus b) times (s minus c), and the beauty of this approach is that it works for any valid triangle regardless of whether it is acute, right, or obtuse, equilateral, isosceles, or scalene. Once the area is known from Heron's formula, the Law of Cosines provides the means to determine all three interior angles: angle A equals the arccosine of (b squared plus c squared minus a squared) divided by (2bc), and similarly for angles B and C, where each angle is computed from the two adjacent sides and the opposite side. The Law of Cosines, which states that c squared equals a squared plus b squared minus 2ab times the cosine of angle C, is a generalization of the Pythagorean theorem that applies to all triangles, not just right triangles, and it reduces to the Pythagorean theorem when angle C equals 90 degrees because the cosine of 90 degrees is zero. Our calculator also validates the triangle inequality theorem before computing, which states that the sum of any two sides must be strictly greater than the third side, ensuring that the input values can actually form a valid triangle and providing a clear error message when they cannot. The step-by-step solution panel shows the complete derivation from the semi-perimeter through the area calculation to the final angle values, with intermediate results displayed at each stage to help students understand the logical flow of the computation. For verifying the Pythagorean relationship in right triangles identified by our calculator, our Pythagorean Theorem Calculator provides dedicated a² + b² = c² computation with Pythagorean triple generation.

The Law of Sines and Angle-Based Solve Modes: ASA, AAS, and the Ambiguous SSA Case

The Law of Sines states that in any triangle, the ratio of each side length to the sine of its opposite angle is constant, expressed as a divided by sin(A) equals b divided by sin(B) equals c divided by sin(C), and this powerful relationship enables our calculator to solve triangles in the ASA, AAS, and SSA modes where angle information is provided alongside side measurements. In the ASA mode (two angles and the included side), the third angle is immediately determined by the angle sum property (C equals 180 minus A minus B), and then the Law of Sines provides both unknown sides: side a equals c times sin(A) divided by sin(C), and side b equals c times sin(B) divided by sin(C), giving a unique and unambiguous solution because two angles and any side completely determine a triangle up to congruence. The AAS mode (two angles and a non-included side) works similarly, first computing the third angle from the angle sum property and then using the Law of Sines to find the two unknown sides, and like ASA it always produces a unique solution because the same three pieces of information are known, just organized differently in terms of which side is specified relative to the known angles. The SSA mode (two sides and a non-included angle) is the most mathematically interesting because it can produce zero, one, or two valid triangles depending on the relationship between the given sides and angle, a situation known as the ambiguous case of the Law of Sines: when the side opposite the given angle is shorter than the other given side and the angle is acute, two different triangles satisfy the given conditions because the arcsine function has two possible values in the range from 0 to 180 degrees, and our calculator detects this ambiguity and reports both possible solutions when they exist. The area in all angle-based modes is computed using the SAS area formula, A equals one-half times a times b times sin(C), which requires two sides and their included angle and is derived from the standard base-times-height formula by expressing the height as one side times the sine of the included angle. For computing areas of other geometric shapes including rectangles, circles, trapezoids, and ellipses, our Area Calculator provides multi-shape area computation with SVG visualization and formula reference.

Medians, Inradius, and Circumradius: Advanced Triangle Properties and Their Geometric Significance

Beyond the basic sides, angles, and area, our triangle calculator computes several advanced geometric properties that provide deeper insight into the triangle's structure and have important applications in engineering, physics, and computational geometry. The median of a triangle is a line segment connecting a vertex to the midpoint of the opposite side, and every triangle has three medians that intersect at a single point called the centroid, which is the center of mass of the triangle and divides each median in a 2:1 ratio from vertex to midpoint; the length of median m_a to side a is calculated using the formula m_a equals one-half times the square root of (2b squared plus 2c squared minus a squared), and similarly for the other two medians. The inradius is the radius of the largest circle that fits entirely inside the triangle, called the inscribed circle or incircle, which is tangent to all three sides and whose center, called the incenter, is the point where all three angle bisectors meet; the inradius is elegantly computed as r equals the area divided by the semi-perimeter, providing a direct connection between the triangle's area and its inscribed circle that is useful in optimization problems and circle packing. The circumradius is the radius of the circle that passes through all three vertices of the triangle, called the circumscribed circle or circumcircle, whose center (the circumcenter) is the point where all three perpendicular bisectors of the sides meet; the circumradius is computed as R equals a divided by (2 times sin(A)), and every triangle has a unique circumcircle, with the circumcenter located inside the triangle for acute triangles, on the hypotenuse for right triangles, and outside the triangle for obtuse triangles. The three altitudes (heights) of a triangle, each perpendicular from a vertex to the opposite side, are computed as h_a equals 2 times the area divided by a, and they intersect at a point called the orthocenter, which together with the centroid and circumcenter lies on a single line called the Euler line, one of the most remarkable results in triangle geometry. For computing the slope of lines that form triangle sides on a coordinate plane, our Slope Calculator provides slope computation from two points with slope-intercept and point-slope form conversion.

Applications of Triangle Calculations in Surveying, Engineering, Navigation, and Computer Graphics

Triangle calculations are foundational to an extraordinarily wide range of practical applications across surveying, civil engineering, architecture, navigation, astronomy, computer graphics, and physics, because the triangle is the simplest polygon and any complex shape can be decomposed into triangles, making triangle geometry the building block for analyzing and constructing virtually all geometric structures. In land surveying, triangulation is the primary method for determining distances and positions across large areas: surveyors measure angles from two known points to an unknown point, forming a triangle where two angles and the baseline distance are known (ASA configuration), and the Law of Sines then provides the distances to the unknown point with high precision, a technique that has been used since ancient times to map territories and that remains the foundation of modern geodetic surveys and GPS satellite positioning systems. In structural engineering and architecture, triangle calculations determine the forces in truss structures, roof pitches, and load-bearing configurations: a roof truss is essentially a network of triangles because triangles are inherently rigid structures that cannot be deformed without changing the length of at least one side, unlike quadrilaterals which can collapse into parallelograms, and engineers use the Law of Cosines and trigonometric relationships to calculate the angles and member lengths needed to support specific loads at specific spans. In computer graphics and 3D modeling, every surface in a rendered scene is decomposed into triangular meshes because triangles are guaranteed to be planar (all three vertices always define a unique plane), making them the universal primitive for rasterization algorithms that convert 3D geometry into 2D pixel images on screen, and a typical video game scene may contain millions of triangles that must have their areas, normals, and vertex positions calculated in real time. In navigation, both maritime and aerial, triangle calculations enable dead reckoning and celestial navigation: a navigator who knows the bearing to two landmarks and the distance between them can determine their exact position using the ASA or AAS triangle solution, and astronomical navigation uses spherical triangles on the celestial sphere to compute latitude and longitude from star observations. For computing the distance between two points that form triangle vertices on a coordinate plane, our Distance Calculator provides Euclidean distance computation with midpoint calculation and coordinate visualization.