What is a hyperbola calculator?
A hyperbola is a curve with two separate branches that open away from each other, like two bowls turned back to back. It is the third of the three conic sections — the ellipse, the parabola, and the hyperbola — and it appears whenever something moves away from a centre faster than it approaches it. This calculator works with the standard hyperbola x²/a² − y²/b² = 1, centred at the origin and opening left and right.
You give it a, the semi-major axis, and b, the semi-minor axis, and it returns the three numbers that describe the curve: the eccentricity, the distance to each focus, and the slope of the asymptotes. The eccentricity says how stretched the curve is. The foci are the two points the curve bends around. The asymptotes are the straight lines the branches approach but never touch.
Hyperbolas are less familiar than parabolas, but they are just as real. The path of a comet that visits the sun once and never returns is a hyperbola. The shadow of a lamp on a wall is a hyperbola. The navigation system that guided ships before GPS — LORAN — worked by measuring the difference in arrival times of radio signals, and the lines of constant difference are hyperbolas.
How a hyperbola calculator works
The eccentricity is e = √(1 + b²/a²). It is always greater than 1 for a hyperbola, which is what separates it from an ellipse, whose eccentricity is always less than 1. For the default example, a = 3 and b = 4, so e = √(1 + 16/9) = √(25/9) = 5/3, about 1.67. The bigger the eccentricity, the more the branches open out and the flatter the curve looks near the vertex.
The distance from the centre to each focus is c = √(a² + b²). For the default, c = √(9 + 16) = √25 = 5, so the foci sit at (−5, 0) and (5, 0). The vertices — the closest points of the two branches to the centre — sit at (−3, 0) and (3, 0), which is the distance a from the centre. The foci are always outside the vertices, because c is always bigger than a.
The asymptotes are the lines y = ±(b/a)x, and their slope is b/a. For the default, the slope is 4/3, about 1.33, so the asymptotes are the lines y = 1.33x and y = −1.33x. Far from the centre, the branches of the hyperbola get closer and closer to these lines without ever touching them — that is the defining behaviour of a hyperbola, and the asymptotes are the skeleton the curve hangs on.
The semi-axes a and b — what they set
The semi-major axis a sets how far the vertices are from the centre: the two branches start at x = −a and x = +a on the horizontal axis. A bigger a pushes the branches further apart and makes the curve wider at the middle. A smaller a pulls them together. In the default, a = 3, so the vertices are at (−3, 0) and (3, 0), and nothing of the curve exists between them — the gap from −3 to 3 is empty.
The semi-minor axis b sets how steeply the branches open. It does not mark a point on the curve — there is no vertex at (0, b) — but it sets the slope of the asymptotes, b/a, and it feeds the eccentricity and the focus distance. A bigger b makes the asymptotes steeper and the eccentricity larger, so the branches open wider. A smaller b makes the curve hug the horizontal axis.
The pair (a, b) also defines the rectangle that frames the hyperbola: a box from −a to a across and −b to b up, with the asymptotes as its diagonals. Draw that box, draw its diagonals, and you have the skeleton of the curve — the branches start at the left and right edges of the box and grow outward along the diagonals. It is the fastest way to sketch a hyperbola by hand.
A worked example: three hyperbolas, step by step
First, the default on this page. a = 3, b = 4. Eccentricity: √(1 + 16/9) = √(25/9) = 5/3, about 1.67. Focus distance: √(9 + 16) = √25 = 5, so the foci are at (±5, 0). Asymptote slope: 4 ÷ 3 = 1.33. The vertices are at (±3, 0), the curve opens left and right, and the asymptotes are y = ±1.33x. The 3-4-5 triangle hiding in these numbers is not a coincidence — it is the most famous right triangle in maths.
Second, a steeper one: a = 5, b = 12. Eccentricity: √(1 + 144/25) = √(169/25) = 13/5 = 2.6. Focus distance: √(25 + 144) = √169 = 13, so the foci are at (±13, 0). Asymptote slope: 12 ÷ 5 = 2.4. This hyperbola is much more open than the default — the eccentricity of 2.6 says the branches spread wide, and the steep asymptotes of slope 2.4 show it. The 5-12-13 triangle is another classic.
Third, the most symmetric case: a = 1, b = 1. Eccentricity: √(1 + 1) = √2, about 1.41. Focus distance: √(1 + 1) = √2, about 1.41. Asymptote slope: 1 ÷ 1 = 1, so the asymptotes are the lines y = x and y = −x, at 45 degrees. This is the rectangular hyperbola, the simplest one there is, and its asymptotes are perpendicular.
Where hyperbolas show up in real life
Comets are the classic example. A comet on an elliptical orbit returns on schedule, like Halley's. A comet on a hyperbolic orbit visits the sun once, swings around it, and flies off into space forever — its path is a hyperbola, with the sun at one focus. Astronomers use the eccentricity to tell the two apart: below 1 is an ellipse, above 1 is a hyperbola, and exactly 1 is a parabola.
Navigation used hyperbolas for decades before GPS. The LORAN system sent radio pulses from pairs of stations, and a ship measured the difference in arrival times. All the points with the same time difference lie on a hyperbola, so two pairs of stations gave two hyperbolas, and the ship was where they crossed. GPS works on the same idea in three dimensions, with spheres instead of hyperbolas, but the logic is identical.
In optics and acoustics, hyperbolic mirrors and lenses focus sound and light in ways ellipses and parabolas cannot. A hyperbolic mirror can take rays from one focus and send them out as if they came from the other, which is useful in telescopes and in lighthouse lenses. A circle calculator covers the round shapes that pair with hyperbolas in conic sections, and a Pythagorean theorem calculator checks the right triangles that hide inside every hyperbola's numbers.
Hyperbola vs ellipse — the two closed and open curves
The ellipse and the hyperbola are siblings, and the difference between them is one sign in the equation. The ellipse is x²/a² + y²/b² = 1, with a plus; the hyperbola is x²/a² − y²/b² = 1, with a minus. That one sign changes everything: the ellipse is a single closed loop, and the hyperbola is two open branches that run away forever.
The eccentricity draws the line between them. An ellipse has e < 1, a parabola has e = 1, and a hyperbola has e > 1. The same number, defined the same way, sorts all three curves into their families. For the default hyperbola, e is 1.67, comfortably above 1; for an ellipse with a = 5 and b = 3, e is 0.8, comfortably below.
The foci behave differently too. An ellipse has two foci inside the curve, and the sum of the distances from any point on the ellipse to the two foci is constant. A hyperbola also has two foci, but the difference of the distances is constant — and the points of the curve are outside, between the foci and beyond them. A ellipse area calculator gives the area of the closed cousin, and a hypotenuse calculator works out the focus distance, which is a hypotenuse of the a-b triangle.
Common hyperbola mistakes
The most common mistake is using the ellipse formula for a hyperbola, or the other way round. The hyperbola's eccentricity is √(1 + b²/a²), with a plus inside the root; the ellipse's is √(1 − b²/a²), with a minus. Swap them and the eccentricity comes out wrong — or, for the ellipse formula with b bigger than a, imaginary. Check the sign before you calculate.
Second: the focus distance. For a hyperbola, c = √(a² + b²), with a plus — the foci are further out than the vertices. For an ellipse, c = √(a² − b²), with a minus — the foci are inside. Third: the asymptote slope is b/a, not a/b. With a = 3 and b = 4, the slope is 4/3 = 1.33, not 3/4 = 0.75.
Fourth: forgetting that this calculator uses the standard hyperbola opening left and right; a hyperbola opening up and down swaps the roles of a and b, and its asymptotes are y = ±(a/b)x instead. Fifth: assuming the eccentricity of a hyperbola can be below 1. It cannot — below 1 is an ellipse, exactly 1 is a parabola, and a hyperbola is always above 1. If your eccentricity comes out below 1, you have used the ellipse formula by mistake.
How to use this hyperbola calculator
Using it takes seconds. Enter a, the semi-major axis — the distance from the centre to each vertex. Enter b, the semi-minor axis — the number that sets the asymptote slope and the eccentricity. The eccentricity, the distance to each focus, and the asymptote slope appear at once, updating live as you type.
A good check is the 3-4-5 pattern in the default: a = 3, b = 4, and the focus distance comes out as exactly 5, a whole number. If your inputs give a focus distance that is a neat number, you have probably typed them right. For sketching, draw the a-by-b rectangle, draw its diagonals as the asymptotes, mark the vertices at (±a, 0), and draw the two branches opening outward along the diagonals.
Everything runs in your browser. No account, no form, no data sent anywhere. If you need the area of the closed cousin, the ellipse area calculator is the tool, and if the triangles inside the numbers are giving you trouble, the triangle calculator checks them for you.