Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0, including complex roots.
Results update as you type.
Game da wannan Kalkulator
This calculator solves a quadratic equation ax² + bx + c = 0 using the quadratic formula x = (−b ± √(b² − 4ac)) / 2a. Enter the coefficients a, b and c and it returns both roots, the discriminant, the nature of the roots, the parabola's vertex and axis of symmetry, and the factored form, along with a plot of the curve.
The discriminant b² − 4ac decides everything: a positive value gives two distinct real roots, zero gives one repeated real root, and a negative value gives a pair of complex conjugate roots written with i. Take x² − 5x + 6 = 0 (the defaults, a = 1, b = −5, c = 6): the discriminant is 25 − 24 = 1, so there are two real roots, x = 3 and x = 2, the vertex is at (2.5, −0.25) with axis of symmetry x = 2.5, and the factored form is (x − 3)(x − 2). If a is 0 the equation is linear, not quadratic, and the formula does not apply.
Quadratics model projectile paths, areas, profit-maximizing prices and many optimization problems. The vertex gives the maximum or minimum point of the parabola, while the roots are where it crosses the x-axis.
Tambayoyi da ake yi da yawa
Me ya gaya mini game da mai rarrabẽwa?
Ma'ana b² − 4ac na yanke hukunci kan tushe: na zahiri yana nufin matsaloli biyu na gaskiya, na sifar yana nufin matsaloli biyu na sake-sauya, kuma na baƙin ciki yana nufin matsaloli biyu na haɗari.
Me ya faru idan a shi ne zero?
Then the equation is linear, not quadratic, and the quadratic formula does not apply. Enter a non-zero value for a.
What is the vertex of the parabola?
Shi ne maɓallin juyawa (h, k) inda ƙuƙumma ke kaiwa mafi girma ko mafi ƙaranci. Wannan kayan aiki na ba da rahoton shi tare da maɓallin daidaita, layin x = h.
Me ake nunawa a cikin siffar da aka raba?
When the roots are real, the equation is rewritten as a(x − r₁)(x − r₂). For x² − 5x + 6 = 0 that is (x − 3)(x − 2).
Mẽne ne ƙuƙumma mai haɗari?
Idan an yi amfani da wannan tsari, to, za a iya samun ma'ana ta hanyar amfani da ma'anar da aka yi amfani da ita a cikin kalmar, da kuma ma'anar da aka yi amfani da ita a cikin kalmar.
Solve x² − 5x + 6 = 0.
The discriminant is 1, giving two real roots, x = 3 and x = 2 — the default example shown by this calculator.
API — amfani da wannan calculator daga code
Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →
Endpoint
GET https://calculator.free/api/v1/quadratic-formula/
curl
curl "https://calculator.free/api/v1/quadratic-formula/?a=1&b=-5&c=6"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/quadratic-formula/?" + new URLSearchParams({
"a": "1",
"b": "-5",
"c": "6"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.