Logo

MonoCalc

/

Altitude of Triangle

Geometry

Enter the three side lengths of the triangle. All three altitudes are computed instantly using Heron's formula.

Side a (opposite vertex A)

Side b (opposite vertex B)

Side c (opposite vertex C)

Length Unit

Decimal Places (0–10)

AcuteScalene

triangle

Altitude hₐ (to side a)

5.8788 cm

Altitude h_b (to side b)

4.8990 cm

Altitude h_c (to side c)

4.1991 cm

Intermediate Values

Triangle Area
14.6969 cm²
Semi-perimeter (s)9.0000 cm
Altitudes meet atOrthocenter (H)

Triangle Diagram with Altitudes

ABChₐh_bh_cDashed lines = altitudes (perpendicular to each side)

About This Tool

Altitude of Triangle Calculator – Find All Three Heights Instantly

The altitude of a triangleis a perpendicular line segment drawn from a vertex to the line containing the opposite side. It measures the triangle's height relative to that base. Every triangle has exactly three altitudes — one from each vertex — and this calculator computes all three simultaneously from just the three side lengths, using Heron's formula and the altitude–area relationship.

What Is an Altitude?

Given a triangle with vertices A, B, C and opposite sides a, b, c:

  • Altitude hₐ runs from vertex A perpendicular to side a (segment BC), meeting it at the foot Fₐ.
  • Altitude h_b runs from vertex B perpendicular to side b (segment CA), meeting it at foot F_b.
  • Altitude h_c runs from vertex C perpendicular to side c (segment AB), meeting it at foot F_c.

All three altitudes always intersect at a single point called the orthocenter (H). For an acute triangle H lies inside the triangle; for a right triangle H coincides with the right-angle vertex; and for an obtuse triangle H lies outside the triangle.

The Formula: Heron's Formula and the Altitude–Area Relationship

The most general method for finding all three altitudes uses the triangle's area as an intermediate result. Given side lengths a, b, and c:

s = (a + b + c) / 2  (semi-perimeter)
A = √(s × (s − a) × (s − b) × (s − c))  (Heron's formula)
hₐ = (2 × A) / a
h_b = (2 × A) / b
h_c = (2 × A) / c

This relationship comes directly from the basic area formula for a triangle: Area = ½ × base × height, rearranged to height = 2 × Area / base. The calculator also validates the triangle inequality(a + b > c, a + c > b, b + c > a) before computing — if the three sides cannot form a valid triangle, a clear error is shown.

Special Cases and Triangle Types

Certain triangle types produce notable altitude properties:

  • Equilateral triangle (a = b = c): All three altitudes are equal in length: h = (√3 / 2) × a ≈ 0.866 × a. In an equilateral triangle the altitude, median, and angle bisector from every vertex all coincide.
  • Right triangle (a² + b² = c² where c is the hypotenuse): The two legs are themselves the altitudes to each other. The altitude to the hypotenuse equals h_c = (a × b) / c — a classical result used in geometric mean proofs.
  • Isosceles triangle (two equal sides): The altitude from the apex to the unequal base bisects that base, so h_apex = √(a² − (c/2)²). The two altitudes from the base vertices are equal in length.
  • Obtuse triangle: The feet of the two shorter altitudes fall outside the sides (on their extensions). The orthocenter lies outside the triangle, on the opposite side of the longest side.

How to Use the Calculator

  1. Enter the three side lengths a, b, and c. All three must be positive numbers that satisfy the triangle inequality.
  2. Choose a length unit (mm, cm, m, km, in, ft, or yd). The same unit applies to inputs and outputs.
  3. Adjust decimal precision (0–10 places) as needed for your application.
  4. Results appear instantly: hₐ, h_b, h_c, the triangle area, and the semi-perimeter.
  5. Use the Copy button next to each altitude value to copy it to your clipboard.
  6. Expand the Step-by-Step Breakdown to see Heron's formula substituted with your values at every stage.
  7. The SVG diagram shows your triangle drawn to scale with all three dashed altitude lines and right-angle markers at each foot.

Altitudes vs. Medians vs. Angle Bisectors

Students often confuse the three types of cevians (line segments from a vertex). Here is how they differ:

  • Altitude: Perpendicular to the opposite side (90° angle at the foot). Meets at the orthocenter.
  • Median: Connects a vertex to the midpoint of the opposite side. Meets at the centroid (divides each median 2:1 from the vertex).
  • Angle bisector: Bisects the vertex angle into two equal halves. Meets at the incenter (center of the inscribed circle).

In a scalene triangle all three are distinct line segments of different lengths. In an equilateral triangle they all coincide. In an isosceles triangle the altitude from the apex to the unequal base coincides with the median and angle bisector to that base.

Practical Applications

Altitude calculations appear throughout engineering, architecture, and science:

  • Architecture and construction: The altitude to the base gives the vertical height of a triangular gable or roof truss, essential for calculating roof pitch, load distribution, and material quantities.
  • Structural analysis: Finding the orthocenter and altitudes of a triangular cross-section or truss element helps determine moment arms and stress distributions in structural engineering.
  • Geometry education: Altitude problems appear in high school and undergraduate geometry, trigonometry, and calculus courses — from finding triangle areas to proving the geometric mean altitude theorem for right triangles.
  • Surveying and GIS: Triangulated terrain models use altitude calculations to estimate vertical heights within triangular facets for elevation profiling and slope analysis.
  • Computer graphics: Altitude and orthocenter computations underpin barycentric coordinate systems used in triangle rasterization, texture mapping, and physics simulations on triangular meshes.

Accuracy and Limitations

All calculations use JavaScript's 64-bit floating-point arithmetic (IEEE 754 double precision), providing approximately 15 significant digits. The displayed precision is adjustable from 0 to 10 decimal places. For very flat or degenerate triangles (where one side nearly equals the sum of the other two), floating-point rounding can reduce accuracy — but for all practical geometry and engineering problems the results are more than sufficient. The calculator works entirely in the browser; no data is sent to any server.

Frequently Asked Questions

Is the Altitude of Triangle free?

Yes, Altitude of Triangle is totally free :)

Can I use the Altitude of Triangle offline?

Yes, you can install the webapp as PWA.

Is it safe to use Altitude of Triangle?

Yes, any data related to Altitude of Triangle only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is the altitude of a triangle?

The altitude of a triangle is a perpendicular line segment drawn from a vertex to the line containing the opposite side (the base). It represents the height of the triangle relative to that base. Every triangle has three altitudes — one from each vertex — and they all meet at a single point inside or outside the triangle called the orthocenter.

How many altitudes does a triangle have?

Every triangle has exactly three altitudes, one dropped from each vertex perpendicular to the opposite side. In an acute triangle all three altitude feet lie on the sides and the orthocenter is inside the triangle. In a right triangle two of the altitudes are the legs themselves, and the orthocenter coincides with the right-angle vertex. In an obtuse triangle the orthocenter lies outside the triangle.

What is the formula for the altitude of a triangle?

The most general method uses Heron's formula: first compute the semi-perimeter s = (a + b + c) / 2, then the area A = √(s(s−a)(s−b)(s−c)). The three altitudes are then hₐ = 2A/a, h_b = 2A/b, and h_c = 2A/c, where a, b, c are the side lengths. For a right triangle with legs p and q and hypotenuse r you can also use h = (p × q) / r for the altitude to the hypotenuse.

What is the difference between altitude and median in a triangle?

An altitude is perpendicular to the opposite side — it meets the base at a 90-degree angle. A median connects a vertex to the midpoint of the opposite side but is generally not perpendicular to it. In a scalene triangle the altitude and median from the same vertex are entirely different line segments of different lengths. They coincide only in an equilateral triangle (and the altitude from the apex of an isosceles triangle coincides with the median to the base).

What is the orthocenter and how is it related to altitudes?

The orthocenter (H) is the point where all three altitudes of a triangle intersect. It is one of the four classical triangle centers (along with the centroid, circumcenter, and incenter). For an acute triangle H lies inside the triangle; for a right triangle H coincides with the right-angle vertex; and for an obtuse triangle H lies outside the triangle on the opposite side of the longest side. The orthocenter plays a key role in advanced geometry, including the nine-point circle theorem.

How accurate are the calculator's results?

All calculations use JavaScript's 64-bit floating-point arithmetic (IEEE 754 double precision), giving approximately 15 significant digits of accuracy. You can adjust the displayed decimal precision from 0 to 10 places. For most practical and educational purposes — including engineering and architectural calculations — this precision is more than sufficient.