Quadratic Formula Copy Paste

Press Copy for the one-line formula, or take it as LaTeX, a typed fraction, spreadsheet cells or code.

x = (−b ± √(b² − 4ac)) / 2aOne line, 2a read as one numberReady to copy

112 lines and signs. Tap one to copy it.

One line 13

Plain keys 7

In words 4

As a fraction, in text 7

LaTeX and MathJax 14

For an equation box 7

For a web page 2

Spreadsheet: a in A1, b in B1, c in C1 7

Code 3

Discriminant 9

Its parts 14

The equation and its forms 10

Where it comes from 4

Worked through 11

All lines and signs

One line

  • x = (−b ± √(b² − 4ac)) / 2a One line, 2a read as one number
  • x = (−b ± √(b² − 4ac)) / (2a) 2a in brackets too
  • x = [−b ± √(b² − 4ac)] / (2a) Square brackets round the top
  • x₁ = (−b + √(b² − 4ac)) / (2a) The root with the plus
  • x₂ = (−b − √(b² − 4ac)) / (2a) The root with the minus
  • x₁,₂ = (−b ± √(b² − 4ac)) / (2a) Both roots, numbered
  • x = (−b ± √Δ) / (2a) With Δ for b² − 4ac
  • x = (−b ± √D) / (2a) With D for b² − 4ac
  • 𝑥 = (−𝑏 ± √(𝑏² − 4𝑎𝑐)) / (2𝑎) Letters in math italic
  • x = −b/(2a) ± √(b² − 4ac)/(2a) In two parts
  • x = −b/(2a) ± √((b/(2a))² − c/a) With b/(2a) used twice
  • x = 2c / (−b ∓ √(b² − 4ac)) The same roots, c not 0
  • x = −p/2 ± √((p/2)² − q) For x² + px + q = 0

Plain keys

  • x = (-b +- sqrt(b^2 - 4ac)) / (2a) Plus or minus as +-
  • x = (-b +/- sqrt(b^2 - 4ac)) / (2a) Plus or minus as +/-
  • x = (-b + sqrt(b^2 - 4ac)) / (2a) The root with the plus
  • x = (-b - sqrt(b^2 - 4ac)) / (2a) The root with the minus
  • x = (-b +- (b^2 - 4ac)^(1/2)) / (2a) The root as a power of 1/2
  • D = b^2 - 4ac Discriminant
  • ax^2 + bx + c = 0 The equation

In words

  • x equals negative b, plus or minus the square root of b squared minus four a c, all over two a To read aloud
  • x equals minus b, plus or minus root b squared minus four a c, over two a Shorter
  • The discriminant is b squared minus four a c Under the root
  • a x squared plus b x plus c equals zero The equation

As a fraction, in text

  • With one bar Three lines.
  • Fraction in plain keys Three lines.
  • With the roof of the root Four lines.
  • First root as a fraction Three lines.
  • Second root as a fraction Three lines.
  • Fraction with Δ Three lines.
  • Fraction to fill in Three lines.

LaTeX and MathJax

  • x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} The formula
  • \(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\) In a sentence
  • \[x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\] On a line of its own
  • $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ In a sentence, with dollars
  • $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ On its own line, with dollars
  • x = {-b \pm \sqrt{b^2-4ac} \over 2a} With \over
  • \begin{equation} x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \end{equation} Numbered, in LaTeX
  • x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} Both roots, numbered
  • x_1 = \frac{-b + \sqrt{b^2 - 4ac}}{2a} The root with the plus
  • x_2 = \frac{-b - \sqrt{b^2 - 4ac}}{2a} The root with the minus
  • x = \frac{-b \pm \sqrt{\Delta}}{2a} With Δ
  • \Delta = b^2 - 4ac Discriminant
  • ax^2 + bx + c = 0, \quad a \neq 0 The equation
  • y = a(x - h)^2 + k Vertex form

For an equation box

  • x=(-b±√(b^2-4ac))/2a The formula
  • x=(-b\pm\sqrt(b^2-4ac))/2a Typed without ± and √
  • x_1=(-b+√(b^2-4ac))/2a The root with the plus
  • x_2=(-b-√(b^2-4ac))/2a The root with the minus
  • x=(-b±√Δ)/2a With Δ
  • Δ=b^2-4ac Discriminant
  • ax^2+bx+c=0 The equation

For a web page

  • x = (&minus;b &plusmn; &radic;(b<sup>2</sup> &minus; 4ac)) / (2a) One line, in HTML
  • <math display="block"><mi>x</mi><mo>=</mo><mfrac><mrow><mo>−</mo><mi>b</mi><mo>±</mo><msqrt><msup><mi>b</mi><mn>2</mn></msup><mo>−</mo><mn>4</mn><mi>a</mi><mi>c</mi></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></math> As a fraction, in MathML

Spreadsheet: a in A1, b in B1, c in C1

  • =B1^2-4*A1*C1 For D1: the discriminant
  • =IF(D1<0,"no real root",(-B1+SQRT(D1))/(2*A1)) For E1: the first root
  • =IF(D1<0,"no real root",(-B1-SQRT(D1))/(2*A1)) For F1: the second root
  • =(-B1+SQRT(B1^2-4*A1*C1))/(2*A1) First root, D1 not needed
  • =(-B1-SQRT(B1^2-4*A1*C1))/(2*A1) Second root, D1 not needed
  • =IF(D1>0,2,IF(D1=0,1,0)) How many real roots
  • =-B1/(2*A1) Axis of the parabola

Code

  • Python Nine lines.
  • Python, complex roots too Six lines.
  • JavaScript Seven lines.

Discriminant

  • b² − 4ac Under the root
  • Δ = b² − 4ac Named Δ
  • D = b² − 4ac Named D
  • b² − 4ac > 0 Two real roots
  • b² − 4ac = 0 One real root
  • b² − 4ac < 0 No real root
  • (−5)² − 4·1·6 = 1 x² − 5x + 6 = 0 has two
  • (−2)² − 4·1·1 = 0 x² − 2x + 1 = 0 has one
  • 0² − 4·1·1 = −4 x² + 1 = 0 has none

Its parts

  • Plus or minus U+00B1, named plus-minus sign. Stands for both roots at once.
  • Minus or plus U+2213, named minus-or-plus sign. In the form with the root underneath.
  • Square root U+221A. Put what is under it in brackets: √(b² − 4ac).
  • Squared U+00B2, superscript two.
  • Minus U+2212, minus sign, not the hyphen of the keyboard.
  • Delta U+0394, Greek capital letter delta, a name for the discriminant.
  • First root U+0078 and U+2081, x with a subscript one.
  • Second root U+0078 and U+2082, x with a subscript two.
  • Not equal U+2260. For a ≠ 0.
  • Times U+00B7, middle dot, for 4·a·c.
  • −b Negative b
  • √(b² − 4ac) The root
  • −b ± √(b² − 4ac) All of the top
  • (2a) The bottom

The equation and its forms

  • ax² + bx + c = 0 The equation it solves
  • ax² + bx + c = 0, a ≠ 0 With the condition
  • y = ax² + bx + c Standard form
  • f(x) = ax² + bx + c As a function
  • y = a(x − h)² + k Vertex form, vertex (h, k)
  • y = a(x − x₁)(x − x₂) Factored form
  • x = −b/(2a) Axis of symmetry
  • k = c − b²/(4a) Height of the vertex
  • x₁ + x₂ = −b/a Sum of the roots
  • x₁ · x₂ = c/a Product of the roots

Where it comes from

  • x² + (b/a)x = −c/a Divide by a, move c/a across
  • x² + (b/a)x + (b/(2a))² = (b/(2a))² − c/a Complete the square
  • (x + b/(2a))² = (b² − 4ac) / (4a²) Both sides as one term
  • x + b/(2a) = ±√(b² − 4ac) / (2a) Take the root of both sides

Worked through

  • x² − 5x + 6 = 0 To solve
  • a = 1, b = −5, c = 6 Read off
  • x = (−(−5) ± √((−5)² − 4·1·6)) / (2·1) Put in, with brackets
  • x = (5 ± √1) / 2 Work out
  • x = 3 or x = 2 Both roots
  • 3² − 5·3 + 6 = 0 ✓ Check the first
  • 2² − 5·2 + 6 = 0 ✓ Check the second
  • x² − 2x + 1 = 0 ⇒ x = (2 ± √0) / 2 = 1 One root
  • x² + 1 = 0 ⇒ x = (0 ± √(−4)) / 2 = ±i Two complex roots
  • a = ___, b = ___, c = ___ To fill in
  • x = (−(__) ± √((__)² − 4·__·__)) / (2·__) To fill in, one line

How this list was compiled: The formula, its two roots apart, the form with b/(2a) used twice, the form with the root underneath, the discriminant and its three cases, the axis of symmetry and the steps of the proof: en.wikipedia.org; D as a name, the reduced equation with p and q, the sum and the product of the roots: en.wikipedia.org; standard, vertex and factored form and the vertex: en.wikipedia.org. Names and code points are from UnicodeData.txt, version 18.0.0 (unicode.org). Equation box lines follow Unicode Technical Note 28, version 3.3 (unicode.org), which has the formula as an example. Alt and =, and Convert: support.microsoft.com. Delimiters and the line with \over: docs.mathjax.org. Read on November 30, 2026. The typed fractions, the spoken lines, the spreadsheet cells, the blanks, the example equations and the order are this page’s own. License: own work (facts from the Unicode Character Database, Unicode License v3, unicode.org, and from Wikipedia, CC BY-SA 4.0, restated in this site’s own words)

How it works

To copy and paste the quadratic formula as plain text, take x = (−b ± √(b² − 4ac)) / 2a. It gives both roots of ax² + bx + c = 0, as long as a is not 0.

Read the full guide

Which form for which box

A message or a form field takes One line. A box that drops ±, √ or ² takes Plain keys. A site that typesets math takes LaTeX and MathJax. As a fraction, in text needs a font of one width, such as a code block, or its bar slips.

Why all the brackets

A written fraction shows what is on top and what is below. On one line the brackets do that. The whole top is in one pair, and the pair after √ says how far the root goes. A reader takes / 2a as over 2a. Code reads / 2*a as divide by 2, then multiply by a, so there it is / (2a) or / (2*a).

  • A negative b goes in with brackets: b = −5 gives −(−5) = 5 and (−5)² = 25.

Questions and answers

How do I put the quadratic formula in Word?

Press Alt and = for an equation box, paste x=(-b±√(b^2-4ac))/2a and choose Convert, then Professional. By the rules of the linear format the outer brackets go when the fraction is built, and 2a needs none.

What is the quadratic formula in LaTeX?

x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. For MathJax put it between \( and \) in a sentence, or between $$ and $$ on its own line. MathJax does not read single dollars unless the page turns them on.

How do I use the quadratic formula in a spreadsheet?

Put a, b and c in A1, B1 and C1, and **=B1^2-4*A1*C1** in D1. E1 and F1 take the two formulas that test D1 first and say no real root below zero.

What does b² − 4ac tell you?

How many real roots there are; it is the discriminant, D or Δ. Positive means two: x² − 5x + 6 = 0 has 1. Zero means one: x² − 2x + 1 = 0. Negative means none: x² + 1 = 0 has −4.

Is the first sign a hyphen?

In the one-line forms it is the minus sign, U+2212. Plain keys, LaTeX, cells and code have the hyphen instead, because programs read that one.