How this calculation works
Five planar points can determine an implicit conic only when the homogeneous coefficient system has the right rank. This calculator solves that system over exact rational numbers, verifies every point substitution and reports the conic family or degeneracy. It refuses configurations with a nonunique coefficient nullspace.
[x²,xy,y²,x,y,1]·[A,B,C,D,E,F]ᵀ=0; nullspace dimension must equal one.A worked example
The points (1,0),(0,1),(−1,0),(0,−1),(3/5,4/5) lie on x²+y²−1=0. Their unique homogeneous coefficient vector is a scalar multiple of (1,0,1,0,0,−1). The discriminant is negative, so the result belongs to the ellipse family and is specifically a circle.
Good to know
Exactly five rational points and rank-five interpolation. Coefficients are normalized by setting the free coordinate to one; sign/scale may differ from a familiar equation. Degenerate unique conics are labeled. No noisy-data least-squares fit or arbitrary additional points.
Reference: SymPy nullspace and exact matrices (opens in a new tab) ↗
Five points create a homogeneous linear system
Each point supplies one linear equation in the six implicit conic coefficients. The equations are homogeneous, so multiplying every coefficient by the same nonzero number describes the same conic. Five independent constraints leave one coefficient direction, which is the precise uniqueness condition checked before a fitted equation is reported.
Repeated points or special aligned configurations can reduce the matrix rank. A generic nullspace routine may still return several vectors, but selecting one arbitrarily would hide the fact that many conics fit the observations. This page rejects such nonunique configurations instead of drawing a convenient member of the family.
The Conic section identifier and implicit grapher covers the nearby task. Existing page classifies entered coefficients; this solves the interpolation and uniqueness problem from points.
Uniqueness requires a one-dimensional nullspace
Exact rational arithmetic makes every point substitution an equality test rather than a tolerance-based residual. The free coefficient is set to one and pivot coefficients are reconstructed accordingly. Another valid normalization may multiply the entire result by minus one or another factor without changing the geometric zero set.
The coefficient system includes the mixed xy term and both linear terms, allowing rotated and translated conics. Dropping those columns would fit a smaller, unstated family. A circle can emerge as a special ellipse-family case, but the solver does not assume a circle merely because several input points appear visually symmetric.
Classification includes degenerate possibilities
The quadratic discriminant separates nondegenerate ellipse, parabola and hyperbola families after a determinant check for degeneracy. A unique conic can still be a pair of lines or another degenerate zero set. Such an output is labeled, not rejected solely because a familiar smooth curve was expected by the user.
The rational fifth point in the default verifies a circle without introducing irrational coordinates. Independent tests construct known exact conics, sample valid rational points and check coefficient proportionality. No noisy least-squares fitting, outlier handling, arbitrary point count or guarantee that five rounded measurements lie on an intended physical conic is implied.
Set up homogeneous interpolation rather than ordinary regression
Each point (x,y) supplies one equation Ax²+Bxy+Cy²+Dx+Ey+F=0 in six unknown coefficients. Five independent equations give a one-dimensional homogeneous nullspace. Any nonzero scalar multiple represents the same zero set, so uniqueness means one conic up to coefficient scale, not one uniquely normalized coefficient vector without a convention.
The form uses exact rational row reduction and requires rank five. It sets the free coefficient to one when normalizing the nullspace representative. A familiar circle equation might therefore appear multiplied by −1 or another nonzero rational number. Compare the zero set and normalized ratios, not raw coefficient strings alone.
Verify the circle and a nonunique input
The default points (1,0),(0,1),(−1,0),(0,−1),(3/5,4/5) all satisfy x²+y²−1=0. The last point lies on the same circle because 9/25+16/25=1. Rank five leaves exactly that conic up to scale. Its quadratic discriminant is B²−4AC=−4 for this normalization.
Five distinct points all on one line are different: many conics containing that line satisfy the point conditions, so the coefficient nullspace has dimension above one. The calculator rejects nonuniqueness rather than arbitrarily returning one member. Repeating a point also repeats its equation and cannot supply an independent fifth condition.
Check degeneracy before using the discriminant family
The symmetric homogeneous matrix is [[A,B/2,D/2],[B/2,C,E/2],[D/2,E/2,F]]. A zero determinant identifies a degenerate conic, such as a pair of lines. Only after that check does B²−4AC classify the nondegenerate quadratic family as ellipse-type, parabola-type or hyperbola-type.
A unique homogeneous fit can still be degenerate. For example, three suitable points on one line and two on another can determine their line-pair union. Uniqueness therefore does not imply an ellipse or a smooth curve. The output labels degeneracy first instead of interpreting every negative or zero quadratic discriminant as an ordinary nondegenerate shape.
Choose exact interpolation only when it matches the data
Exactly five rational points are appropriate for a symbolic construction or a geometry exercise. Measured coordinates with noise generally do not justify treating one interpolated conic as the true shape. This page does not fit more points, minimize geometric distance, estimate uncertainty or robustly reject outliers.
Decimal strings are taken as their entered rational values. A small coordinate change can strongly alter an ill-conditioned geometric configuration even though exact algebra returns a valid answer. Substitute all five points into the output to verify interpolation, then assess whether the construction is stable and meaningful for the intended application. The algebraic certificate proves passage through those points, not physical accuracy.
A few questions, answered
Can five points fail to determine a conic?
Yes. A rank below five leaves more than one homogeneous coefficient direction.
Is a degenerate answer invalid?
Not necessarily. A unique pair of lines can be a valid degenerate interpolating conic.
Can a unique five-point conic be degenerate?
Yes. Rank five can determine a line pair. The calculator checks the homogeneous determinant and labels degeneration before the discriminant family.
Why are the coefficients a scaled version of x²+y²−1?
Any nonzero multiple defines the same conic. The solver normalizes its free coefficient, which need not match your preferred equation scale.