Median Length Calculator

Compute the three medians of a triangle from its side lengths, with each median shown.

Math and PercentUpdated 2026-11-183 min read
Median Length Calculator
The side opposite vertex A, where the median m_a lands.
The side opposite vertex B.
The side opposite vertex C.
Median m_a, from A to side a
...
Median m_b, from B to side b...
Median m_c, from C to side c...

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

  1. Enter side a, the side opposite vertex A.
  2. Enter side b, the side opposite vertex B.
  3. Enter side c in the same unit as the other two sides.
  4. The tool checks the triangle inequality before it computes any median.
  5. Read m_a first, the median from vertex A to the midpoint of side a.
  6. Read m_b and m_c for the other two vertices, then compare them when two sides are equal.

Formula

m_a = (1/2) x sqrt(2b^2 + 2c^2 - a^2), with m_b and m_c found by rotating the letters. All sides use the same unit and each median comes out in that unit.
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.

  1. Median to side a: 2b^2 + 2c^2 - a^2 = 2 x 64 + 2 x 100 - 36 = 128 + 200 - 36 = 292.
  2. m_a = 0.5 x sqrt(292) = 0.5 x 17.0880 = 8.544.
  3. Median to side b: 2c^2 + 2a^2 - b^2 = 200 + 72 - 64 = 208.
  4. m_b = 0.5 x sqrt(208) = 0.5 x 14.4222 = 7.2111.
  5. Median to side c: 2a^2 + 2b^2 - c^2 = 72 + 128 - 100 = 100.
  6. m_c = 0.5 x sqrt(100) = 5, which is half the hypotenuse of 10, as expected for a right triangle.
  7. The tool shows m_a = 8.544, m_b = 7.2111 and m_c = 5.

Reference table

Medians for selected triangles, with all lengths in the same unit
Sides (a, b, c)m_am_bm_c
6, 8, 108.5447.21115
13, 14, 1512.971112.165511.2361
5, 5, 64.92444.92444
2, 2, 21.73211.73211.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

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.