Triangle Calculator (all modes)


Find triangle properties from three sides, two sides with their included angle, or three coordinate points. Base-and-height mode returns area only because that information does not identify a unique triangle.

Each field is labelled with its meaning. Use consistent units within one calculation. Results are rounded for display.

Choose a mode, enter values and calculate. Use decimal points; lists accept commas or spaces.

Three sides

أدخل القيم:
النتائج:

Formula and method

For semiperimeter s=(a+b+c)/2, Heron area is √[s(s-a)(s-b)(s-c)]. cos A=(b²+c²-a²)/(2bc); inradius=area/s; circumradius=abc/(4area); median to a=½√(2b²+2c²-a²). Base-height area=bh/2.

Worked example

A 3-4-5 right triangle has area 6, perimeter 12, inradius 1 and circumradius 2.5. Its angle opposite side 5 is 90°.

Read the result

Area uses squared units; all other lengths use the input unit. Angles A, B and C oppose sides a, b and c. Coordinate mode uses point 1 opposite side a, point 2 opposite b, and point 3 opposite c.

Limits and edge cases

Lengths must lie from 10^-9 to 10^9; coordinates have magnitude at most 10^9. Nonpositive, impossible, collinear and numerically near-degenerate triangles are rejected. Angles are degrees. All lengths must use one unit.

Frequently asked questions

Can base and height give the perimeter?

No. Different triangles can share the same base and height, so only area is returned in that mode.

Can the included angle be 0° or 180°?

No. Those produce a degenerate triangle with zero area.