🧮
🧮 Math & statistics

Hyperbola Calculator (foci, eccentricity, asymptotes)

Results update as you type.

Your numbers

Understanding the hyperbola calculator — concept and principle

A hyperbola is a curve with two separate branches, defined as the set of points whose distances to two fixed points (the foci) differ by a constant. This calculator works with the standard horizontal hyperbola x²/a² − y²/b² = 1, centred at the origin, and gives the foci, the eccentricity, the asymptotes and the length of the latus rectum. Hyperbolas appear in analytic geometry, in the paths of objects that pass a planet or star without being captured, in radio navigation and in cooling-tower shapes.

Hyperbola x²/9 − y²/16 = 1 with its 6 by 8 box, asymptotes and fociThe box 2a = 6 wide and 2b = 8 tall sits at the centre. Its diagonals are the asymptotes y = ±(4/3)x. Half a diagonal is √(9 + 16) = 5, so a circle of radius 5 marks the foci (±5, 0). Eccentricity 5 ÷ 3 ≈ 1.67; latus rectum 32/3 ≈ 10.67.A 6 × 8 box sets everythingc = 5a = 3b = 4(5, 0)(−5, 0)√(3² + 4²) = 5foci (±5, 0)e = c ÷ a = 5 ÷ 3≈ 1.67box diagonalsy = ±(4/3)xlatus rectum 2b² ÷ a= 32/3 ≈ 10.67
For a hyperbola c² = a² + b², so the foci lie outside the box.

How it is calculated

The vertices, where the branches turn, are at (±a, 0).

The principle

For any point on the hyperbola, the difference of its distances to the two foci is 2a. Writing that condition with foci at (±c, 0) and simplifying gives x²/a² − y²/(c² − a²) = 1, so b² = c² − a², or c² = a² + b². Unlike an ellipse, where c² = a² − b², the foci lie outside the vertices. For large x, the "1" on the right becomes negligible compared with x²/a² and y²/b², so the curve approaches the lines y = ±(b/a)x; these are the asymptotes, which the branches approach but never touch. Eccentricity measures how open the branches are: e close to 1 gives narrow branches, large e gives branches that open wide.

Worked example

  1. Inputs: a = 3, b = 4.
  2. c = √(9 + 16) = 5, so the foci are (±5, 0).
  3. Eccentricity: 5 ÷ 3 ≈ 1.666666667.
  4. Asymptotes: b ÷ a = 4 ÷ 3, so y = ±1.333333333x.
  5. Latus rectum: 2 × 16 ÷ 3 = 32 ÷ 3 ≈ 10.66666667.

How to read the result

The vertices (±3, 0) are where the branches are closest to the centre, and the foci (±5, 0) sit further out. The asymptote slope 4/3 shows how steeply the branches climb; when a = b the asymptotes are at 45° and the hyperbola is called rectangular, with e = √2 ≈ 1.414. The eccentricity of conics follows a clear scale: 0 for a circle, between 0 and 1 for an ellipse, exactly 1 for a parabola and above 1 for a hyperbola.

Common mistakes

Keep in mind: The formulas assume a hyperbola centred at the origin with a horizontal transverse axis. For a shifted centre (h, k), add h to the x-coordinates and k to the y-coordinates, and a rotated hyperbola needs a coordinate rotation first.

Frequently asked questions

What are the vertices of the example hyperbola?

(±3, 0). They lie at distance a from the centre, between the centre and the foci.

What is the difference of distances from a point on it to the foci?

Always 2a, here 6. For the vertex (3, 0): 8 − 2 = 6.

Is the latus rectum the same for ellipses?

The formula 2b²/a is the same, but b is defined differently for each curve.

Sources: Apollonius of Perga, Conics, Books I–III · J. Stewart, L. Redlin and S. Watson, Precalculus: Mathematics for Calculus, Cengage, chapter on conic sections

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →