Plus Minus Sign in LaTeX
Write the plus-minus sign ± with \pm in math mode: $x = 3 \pm 2$. Its mirror image, minus-plus ∓, is \mp. Both are built into LaTeX; no package is needed.
Plus-minus commands
\pmPlus or minus ±, math mode.
\mpMinus or plus ∓, the opposite sign of a neighboring ±.
- Text mode, no math preview
\textpm± in running text (textcomp, loaded by current LaTeX).
{\pm}Braced ± when the sign starts an expression, so it is spaced as a unary sign.
\pm\inftyPlus or minus infinity.
Try it live
Change the formula and the preview redraws as you type. Copy the LaTeX, download a PNG or SVG, copy it for Word, or use Edit here on any example below to load it.
Plus-minus sign examples
Each result below is drawn from the LaTeX under it. Copy the code, edit it on this page, or open it in the full editor.
Quadratic formula
LaTeXx = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}Measurement with uncertainty
LaTeXL = (5.00 \pm 0.02)\,\mathrm{m}Paired signs
LaTeX\sin(\alpha \pm \beta) = \sin\alpha\cos\beta \pm \cos\alpha\sin\betaPlus-minus with minus-plus
LaTeX\cos(\alpha \pm \beta) = \cos\alpha\cos\beta \mp \sin\alpha\sin\betaSquare root solutions
LaTeXx^2 = 9 \implies x = \pm 3Limits at both infinities
LaTeX\lim_{x \to \pm\infty} \frac{1}{x} = 0
When to use \mp
Use \mp when a second sign must be the opposite of an earlier \pm, as in the cosine sum formula: the upper signs go together and the lower signs go together. Using \pm twice would suggest the signs are independent.
Plus-minus in text and in tables
In a sentence, write $\pm$ or \textpm. For measured values, siunitx formats uncertainties consistently: \num{5.00 +- 0.02} prints 5.00 ± 0.02, and \qty{5.00 +- 0.02}{\metre} adds the unit.
Typing the ± character itself works in text with XeLaTeX, LuaLaTeX and current pdfLaTeX, but in math mode pdfLaTeX treats it as a text symbol, so \pm is the reliable choice inside formulas.
\usepackage{siunitx}
...
The rod is \qty{5.00 +- 0.02}{\metre} long.Common mistakes
+-prints a plus followed by a minus. LaTeX has no ASCII shortcut for ±.Instead ofx = 3 +- 2Writex = 3 \pm 2\pmis a math command; in text it stops with "Missing $ inserted".Instead ofThe error is \pm 0.1 mm.WriteThe error is $\pm 0.1$~mm.The second sign is the opposite of the first, which is exactly what
\mpsays.Instead of\cos(\alpha \pm \beta) = \cos\alpha\cos\beta \pm \sin\alpha\sin\betaWrite\cos(\alpha \pm \beta) = \cos\alpha\cos\beta \mp \sin\alpha\sin\beta
In Overleaf, MathJax and Word
Overleaf and pdfLaTeX
\pmand\mpwork in any document.\textpmworks in text in current TeX Live;\num{… +- …}needs\usepackage{siunitx}.MathJax and KaTeX
MathJax and KaTeX render
\pmand\mpdirectly, in Markdown between$ … $too.Microsoft Word
In a Word equation, type
\pmand press Space to get ±. Outside equations, Insert › Symbol has ±. Copy for Word from the editor here pastes a formula with ± as an editable equation.
Plus-minus sign in LaTeX: questions
- How do I write ± in LaTeX?
- Use
\pminside math mode, for example$a \pm b$. - What does \mp mean?
- It is the minus-plus sign ∓: minus where the neighboring ± means plus, and plus where it means minus.
- How do I write plus or minus outside math mode?
- Write
$\pm$in the sentence or use\textpm. For values with units,siunitxhandles the spacing. - Do I need a package for \pm?
- No.
\pmand\mpare part of standard LaTeX math.
Related LaTeX reference
- Multiplication Symbol in LaTeX\times, \cdot, \ast and \div, when each is used, and how to write scientific notation and products.
- Greater Than or Equal to in LaTeXGreater than or equal to (\geq), less than or equal to (\leq), plain < and >, much less than, slanted and negated forms.
- Square Root in LaTeX\sqrt{x} for square roots, \sqrt[n]{x} for cube and nth roots, nested radicals, and \vphantom to even out root heights.
- LaTeX equation editorSymbol panel, live preview, and PNG, SVG, MathML or Word export.
- All LaTeX reference pagesSymbols, math structures and text formatting in one list.
Have the formula as a picture?
Paste a screenshot or photo of the equation and get its LaTeX, ready to copy or open in the editor.
Convert an image to LaTeX