calculator.onl
Categories50

Parabola geometry: focus and directrix

Find an axis-aligned parabola’s equation, vertex, focus, directrix and latus rectum from three geometric input forms.

A worked example

Change p from 2 to −2. The focus and the directrix swap sides of the vertex. Focus y · 2 → -2.

Vertex x · h0Vertex y · k0Focus x0Focus y2Directrix coordinate-2Latus rectum length8
Input method

Vertical uses a horizontal directrix y = d; horizontal uses a vertical directrix x = d.

Vertex x · h

Vertex y · k

Signed vertex-to-focus distance; cannot be zero.

Signed offset from the vertex across the axis, measured in multiples of |p|. The other coordinate is calculated on the parabola.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Vertex x · h

0

Calculated from your inputs

Vertex y · k0
Signed focal parameter p2
Focus x0
Focus y2
Directrix coordinate-2
Latus rectum length8
Probe-to-focus distance4
Probe-to-directrix distance4
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Reconstruct a horizontal or vertical parabola from its focus and directrix, explore a vertex-and-p form, or convert quadratic coefficients. The moving probe demonstrates why points on the curve have equal distances to the focus and directrix. For a related calculation, try Quadratic equation calculator.

What to enter

InputWhat it meansExample value
Input methodInput methodVertex and focal parameter p
Axis orientationVertical uses a horizontal directrix y = d; horizontal uses a vertical directrix x = d.Vertical · y = ax² + bx + c
Vertex x · hVertex x · h0
Vertex y · kVertex y · k0
Signed focal parameter pSigned vertex-to-focus distance; cannot be zero.2
Focus xFocus x—
Focus yFocus y—
Directrix coordinateEnter d in y = d or x = d according to the selected axis.—
Quadratic coefficient aQuadratic coefficient a—
Linear coefficient bLinear coefficient b—
Constant cConstant c—
Probe offset · multiples of |p|Signed offset from the vertex across the axis, measured in multiples of |p|. The other coordinate is calculated on the parabola.2

How the calculation works

  1. Choose the axis and enter vertex plus p, focus plus directrix, or quadratic coefficients.
  2. Read the canonical equation and check the focus, axis, opening direction and chord endpoints.
  3. Change the probe offset to compare perpendicular distance to the directrix with distance to the focus.
The formula(x−h)² = 4p(y−k) or (y−k)² = 4p(x−h); p ≠ 0

A worked example

For y² = 24x, choose horizontal, h = k = 0, p = 6. The focus is (6,0), directrix x = −6, and latus rectum endpoints (6,−12) and (6,12).

Example you can load

What to enter
Result for this example · Vertex x · h0

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

No rotated conics or xy terms. The focal parameter and quadratic coefficient must be nonzero. Very small focal distances relative to large coordinates may exceed reliable floating-point precision.

Frequently asked questions

What does a negative p mean?

The focus lies below the vertex for a vertical axis, or left of it for a horizontal axis. The parabola opens toward the focus.

How do coefficients become geometry?

For y = ax² + bx + c, h = −b/(2a), k = c − b²/(4a), and p = 1/(4a). For x = ay² + by + c the roles of x and y swap.

Does this solve quadratic roots?

This page focuses on conic geometry. Use the related quadratic calculator for roots and discriminants.