Right triangle calculator (a,b)

Please enter two properties of the right triangle

Use symbols: a, b, c, A, B, h, T, p, r, R


You have entered median ma and median mb.

Right scalene triangle.

The lengths of the sides of the triangle:
a = 3.0988386677
b = 7.84985667481
c = 8.43880092439

Area: T = 12.15989473229
Perimeter: p = 19.3854962669
Semiperimeter: s = 9.69224813345

Angle ∠ A = α = 21.54326700039° = 21°32'34″ = 0.37659905212 rad
Angle ∠ B = β = 68.45773299961° = 68°27'26″ = 1.19548058056 rad
Angle ∠ C = γ = 90° = 1.57107963268 rad

Altitude (height) to the side a: ha = 7.84985667481
Altitude (height) to the side b: hb = 3.0988386677
Altitude (height) to the side c: hc = 2.88219469075

Median: ma = 8
Median: mb = 5
Median: mc = 4.21990046219

Line segment ca = 7.33003001324
Line segment cb = 1.13877091115

Inradius: r = 1.25444720906
Circumradius: R = 4.21990046219

Vertex coordinates: A[8.43880092439; 0] B[0; 0] C[1.13877091115; 2.88219469075]
Centroid: CG[3.19219061185; 0.96106489692]
Coordinates of the circumscribed circle: U[4.21990046219; 0]
Coordinates of the inscribed circle: I[1.84439145864; 1.25444720906]

Exterior (or external, outer) angles of the triangle:
∠ A' = α' = 158.45773299961° = 158°27'26″ = 0.37659905212 rad
∠ B' = β' = 111.54326700039° = 111°32'34″ = 1.19548058056 rad
∠ C' = γ' = 90° = 1.57107963268 rad


Calculate another triangle

How did we calculate this triangle?

The calculation of the triangle has two phases. The first phase calculates all three sides of the triangle from the input parameters. The first phase is different for the different triangles query entered. The second phase calculates other triangle characteristics, such as angles, area, perimeter, heights, the center of gravity, circle radii, etc. Some input data also results in two to three correct triangle solutions (e.g., if the specified triangle area and two sides - typically resulting in both acute and obtuse) triangle).

1. Input data entered: median ma and median mb

ma=8 mb=5

2. From the median ma and median mb, we calculate a,b - Pythagorean theorem:

a=2x b=2y  ma2=x2+(2y)2 mb2=y2+(2x)2  x2=ma24y2  y=154 ma2mb2=154 8252=3.924 x=ma24 y2=824 3.9242=1.549  a=2x=2 1.549=3.098 b=2y=2 3.924=7.849

3. From the cathetus a and cathetus b, we calculate hypotenuse c - Pythagorean theorem:

c2=a2+b2 c=a2+b2=3.0982+7.8492=71.2=8.438

We know the lengths of all three sides of the triangle, so the triangle is uniquely specified. Next, we calculate another of its characteristics - the same procedure for calculating the triangle from the known three sides (SSS).
a=3.1 b=7.85 c=8.44

4. The triangle perimeter is the sum of the lengths of its three sides

p=a+b+c=3.1+7.85+8.44=19.38

5. The semiperimeter of the triangle

The semiperimeter of the triangle is half its perimeter. The semiperimeter frequently appears in formulas for triangles to be given a separate name. By the triangle inequality, the longest side length of a triangle is less than the semiperimeter.

s=2p=219.38=9.69

6. The triangle area - from two legs

T=2ab=23.1 7.85=12.16

7. Calculate the heights of the right triangle from its area.

ha=b=7.85  hb=a=3.1  T=2chc   hc=c2 T=8.442 12.16=2.88

8. Calculation of the inner angles of the triangle - basic use of sine function

sinα=ca α=arcsin(ca)=arcsin(8.443.1)=21°3234" sinβ=cb β=arcsin(cb)=arcsin(8.447.85)=68°2726" γ=90°

9. Inradius

An incircle of a triangle is a tangent circle to each side. An incircle center is called an incenter and has a radius named inradius. All triangles have an incenter, and it always lies inside the triangle. The incenter is the intersection of the three-angle bisectors. The product of a triangle's inradius and semiperimeter (half the perimeter) is its area.

T=rs r=sT=9.6912.16=1.25

10. Circumradius

The circumcircle of a triangle is a circle that passes through all of the triangle's vertices, and the circumradius of a triangle is the radius of the triangle's circumcircle. The circumcenter (center of the circumcircle) is the point where the perpendicular bisectors of a triangle intersect.

R=2c=28.44=4.22

11. Calculation of medians

A median of a triangle is a line segment joining a vertex to the opposite side's midpoint. Every triangle has three medians, and they all intersect each other at the triangle's centroid. The centroid divides each median into parts in the ratio of 2:1, with the centroid being twice as close to the midpoint of a side as it is to the opposite vertex. We use Apollonius's theorem to calculate a median's length from its side's lengths.

ma2=b2+(a/2)2 ma=b2+(a/2)2=7.852+(3.1/2)2=8  mb2=a2+(b/2)2 mb=a2+(b/2)2=3.12+(7.85/2)2=5  mc=R=2c=28.44=4.219

Calculate another triangle

Look also at our friend's collection of math problems and questions:

See triangle basics on Wikipedia or more details on solving triangles.