Median Length Calculator
Compute the three medians of a triangle from its side lengths, with each median shown.
What it does
A median of a triangle is the straight segment from a vertex to the midpoint of the opposite side. Each median cuts that opposite side into two equal pieces, and it also splits the triangle into two regions of equal area. Every triangle has three medians, one from each corner, and the three of them always pass through a single point.
That shared point is the centroid. It divides each median in the ratio two to one, counting from the vertex down to the midpoint of the side. For a thin, uniform triangular plate the centroid is also the balancing point, which is why the same construction appears in engineering drawings as well as in geometry class.
The lengths of the medians follow from Apollonius' theorem. For the median from A to side a, the theorem says that b squared plus c squared equals twice the square of m_a plus twice the square of half of a. Rearranging gives m_a = 0.5 x sqrt(2b^2 + 2c^2 - a^2). Wolfram MathWorld lists this result for the triangle median, and a Florida International University geometry worksheet asks students to derive the same identity from the law of cosines.
A useful check comes from right triangles. The median drawn to the hypotenuse of a right triangle is exactly half the hypotenuse. Take sides 6, 8 and 10: the medians work out to 8.544, 7.2111 and 5, and that last value is half of 10. If your numbers do not show this pattern for a right triangle, something has gone wrong.
This page needs no angles and no coordinates. Enter the three side lengths in one unit and the tool returns all three medians in that unit. It checks the triangle inequality first, because three arbitrary lengths do not always close a triangle.
How to use
- Enter side a, the side opposite vertex A.
- Enter side b, the side opposite vertex B.
- Enter side c in the same unit as the other two sides.
- The tool checks the triangle inequality before it computes any median.
- Read m_a first, the median from vertex A to the midpoint of side a.
- Read m_b and m_c for the other two vertices, then compare them when two sides are equal.
Formula
- m_a
- Length of the median from vertex A to side a, in the same unit as the sides.
- m_b
- Length of the median from vertex B to side b.
- m_c
- Length of the median from vertex C to side c.
- a
- Side opposite A, the side that m_a meets at its midpoint.
- b
- Side opposite B.
- c
- Side opposite C.
Apollonius' theorem states b^2 + c^2 = 2 x (m_a^2 + (a/2)^2), which rearranges to the formula above. In a right triangle the median to the hypotenuse equals half the hypotenuse. In an isosceles triangle the medians from the two equal-side vertices have equal lengths. For a very thin triangle the subtraction under the square root can cost a little precision.
Worked example
Example: medians of a 6-8-10 right triangle
Defaults: a = 6, b = 8 and c = 10. These sides close a triangle and satisfy 6^2 + 8^2 = 10^2.
- Median to side a: 2b^2 + 2c^2 - a^2 = 2 x 64 + 2 x 100 - 36 = 128 + 200 - 36 = 292.
- m_a = 0.5 x sqrt(292) = 0.5 x 17.0880 = 8.544.
- Median to side b: 2c^2 + 2a^2 - b^2 = 200 + 72 - 64 = 208.
- m_b = 0.5 x sqrt(208) = 0.5 x 14.4222 = 7.2111.
- Median to side c: 2a^2 + 2b^2 - c^2 = 72 + 128 - 100 = 100.
- m_c = 0.5 x sqrt(100) = 5, which is half the hypotenuse of 10, as expected for a right triangle.
- The tool shows m_a = 8.544, m_b = 7.2111 and m_c = 5.
Reference table
| Sides (a, b, c) | m_a | m_b | m_c |
|---|---|---|---|
| 6, 8, 10 | 8.544 | 7.2111 | 5 |
| 13, 14, 15 | 12.9711 | 12.1655 | 11.2361 |
| 5, 5, 6 | 4.9244 | 4.9244 | 4 |
| 2, 2, 2 | 1.7321 | 1.7321 | 1.7321 |
Limits
- Only works for three sides that close a triangle. Impossible triples are rejected.
- Assumes a flat Euclidean triangle, not one drawn on a curved surface.
- Returns straight segment lengths only. It does not locate the centroid or give the area.
- A very thin triangle can lose a little precision in the subtraction under the square root.
Common mistakes
- Using half of side a where the formula calls for the whole of side a.
- Swapping which side is a and which is b, so the median lands on the wrong side.
- Confusing a median with an angle bisector or an altitude. They coincide only in special triangles.
- Adding a^2 under the root instead of subtracting it.
- Mixing units between the three sides.
Try it yourself
Quick checks. Answers sit tucked under each question.
An equilateral triangle has side 4. How long is each median?
0.5 x sqrt(2 x 16 + 2 x 16 - 16) = 0.5 x sqrt(48) = 3.4641. In an equilateral triangle every median is also an altitude.
A right triangle has legs 3 and 4. Find the median to the hypotenuse.
The hypotenuse is 5, so the median to it is 5 / 2 = 2.5. This holds for every right triangle.
Sides are 5, 5 and 6. Which median is shortest?
m_a = m_b = 4.9244 and m_c = 4, so the median to the base of length 6 is shortest. The medians to the two equal sides are equal.
Questions
What is a median of a triangle?
The segment from a vertex to the midpoint of the opposite side. It cuts that side in half and splits the triangle into two equal areas.
How many medians does a triangle have?
Three, one from each vertex. They all pass through the centroid.
Is a median the same as an altitude?
Only when the two sides at the vertex are equal, or in an equilateral triangle. In general they are different lines.
Where is the centroid?
At the meeting point of the medians, two thirds of the way from each vertex to the midpoint of the opposite side.
Do I need the triangle's angles?
No. Three sides are enough because Apollonius' theorem links each median directly to the side lengths.
What does the median to the hypotenuse equal in a right triangle?
Exactly half the hypotenuse. For a 6-8-10 triangle that median is 5.
Sources
- Wolfram MathWorld: Triangle Median
- Florida International University, MTG 3212 geometry worksheet: median length identity from the law of cosines