Solve a quadratic with two integer roots
Example input
a = 1, b = -5, c = 6Expected result
x₁ = 2
x₂ = 3The equation x² − 5x + 6 = 0 factors as (x − 2)(x − 3). The numeric solver returns the same two roots in increasing order.
Calculators
Solve numeric quadratic equations with real or complex roots and a stable calculation for widely different root sizes.
Loading tool…
About this tool
Solve ax² + bx + c = 0 with a nonzero quadratic coefficient. The solver scales the coefficients and uses a cancellation-resistant form for real roots. A negative discriminant produces separate real and imaginary parts for the conjugate roots, without pretending that no solution exists.
Example input
a = 1, b = -5, c = 6Expected result
x₁ = 2
x₂ = 3The equation x² − 5x + 6 = 0 factors as (x − 2)(x − 3). The numeric solver returns the same two roots in increasing order.
Features
Frequently asked questions
It means there are no real roots. The tool still displays the two complex roots as real and imaginary components. Numerical output uses floating-point arithmetic and is not an exact symbolic proof.
No. This tool is free to use without an account.
Related tools
Calculate area, perimeter, surface area or volume for common two- and three-dimensional geometric shapes.
Calculate expressions with parentheses, powers, roots, logarithms and trigonometry in degrees or radians.
Add, subtract, multiply or divide fractions with exact simplified and mixed-number results.