Plus Minus in LaTeX (\pm)

±\pm
LaTeX command
\pm
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
±U+00B1

Where it is used

Gives the plus-or-minus sign ±, for two alternatives or a tolerance around a value.

\pm appears in the quadratic formula x = \frac{-b \pm \sqrt{b^2-4ac}}{2a} and in measurement uncertainty like 9.81 \pm 0.02. Its counterpart \mp (minus-plus) is used when signs must flip in tandem, as in \cos(a \pm b) = \cos a \cos b \mp \sin a \sin b. It is a binary operator, so TeX spaces it like +. In tables of experimental results, align numbers around the \pm sign for readability. Finance texts use it for ranges such as a return of 5\% \pm 2\%.

Also listed under: العملات والمالية

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

cos⁡(a±b)=cos⁡acos⁡b∓sin⁡asin⁡b\cos(a \pm b) = \cos a \cos b \mp \sin a \sin b
\documentclass{article}
\begin{document}
Plus Minus: $\pm$

\[ \cos(a \pm b) = \cos a \cos b \mp \sin a \sin b \]
\end{document}

Related symbols

All الرموز الرياضية →

Frequently asked questions

How do I write Plus Minus in LaTeX?
Type \pm in math mode, for example $\cos(a \pm b) = \cos a \cos b \mp \sin a \sin b$. It works in plain LaTeX without loading any package.
Which package do I need for \pm?
None. \pm is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \pm in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\pm$ in running text. If you only need the glyph in text, paste the Unicode character ± instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث