How to write A Plus-Minus Symbol in LaTeX

How to write A Plus-Minus Symbol in LaTeX

This post may contain affiliate links that allow us to earn a commission at no expense to you. Learn more

This article aims to show you the simplest and easiest way to create a plus-minus symbol in LaTeX.

LaTeX allows you to write documents that include equations, symbols, tables, and more. And sometimes, if you are tabulating data from an experiment, you will need the plus/minus sign or symbol.

With LaTeX you can include the plus-minus in your document, we are going to look at how to insert it in LaTeX.

Plus-Minus Symbol 

Most of the time in mathematics and science, the plus together with the minus, also known as the plus/minus symbol, is used and can have multiple meanings. 

In mathematics you use the plus minus symbol, if you have the algebraic solution of a second order polynomial, or a square root solution. This is the most common appearance of the symbol. 

Meanwhile in physics, you may need the plus minus symbol for measurement if you are tabulating values or a quantity with uncertainty errors. For example

plus-minus symbol in latex

Syntax

The plus-minus is generated using a command, no extra package or argument is required, it is a built-in LaTeX command. The command is \pm or \mp ,for example

\begin{document}
    $$ x = \pm 2 $$
    $$ x = \mp 2 $$
\end{document}
plus-minus symbol in latex

LaTex Plus/Minus

The plus-minus symbol must not be confused with the minus plus, they are different. The \pm command generates plus over minus. 

Minus/Plus

The LaTex minus plus sign is the opposite, minus overplus. This occurs if you are simplifying an equation, and the plus-minus goes to the other side of the equation. It is generated with \mp command. Another example 

\begin{align}
    x^2 \pm y &=0 \\
    x^2 &= \mp y
\end{align}

The aligned environment in the document is possible with the package amsmath.

plus-minus symbol in latex

Symbol minus plus, minus sign is above the plus

Math mode vs Text mode

Now, you usually work in math mode, denoted by $, $$, or \[ \] when you need to use a command for a properties value symbol, thus we cannot use the \pm command or \mp command outside math mode

Therefore you always have to open the math mode within the text mode to use it, using a $ to open and a $ to close. For example

%minus plus sign/symbol\[
  x^2+bx+c=0 \implies x=\frac{-b \mp \sqrt{b^2-4c}}{2}
\]
%plus minus sign
$$
  x^2+bx+c=0 \implies x=\frac{-b \pm \sqrt{b^2-4c}}{2}
$$% quadratic formula in a LaTeX document
In Text mode we open Math mode to use the $\pm$, $\mp$ symbol.
plus-minus symbol in latex
Plus and minus sign

Wherever you write the command in the LaTeX document, the symbol will be there. Remember it does not require an argument.

There are exceptions to using it in text mode but they require external packages, and sometimes it is better to use already built-in LaTeX commands.

You now know how to insert this useful symbol in LaTeX. Surely this tutorial was helpful in guiding you in LaTeX.


Further Reading

LaTex Tutorial on Symbols

  1. How To Create A Cross Product Symbol In LaTeX
  2. How to create a hat symbol in LaTeX?
  3. How to create a prime symbol in LaTeX?
  4. How to create an absolute value symbol in LaTeX?
  5. How to create an approximate symbol in LaTeX?
  6. How to create an intersection symbol in LaTeX?
  7. How to create the empty set symbol in LaTeX?
  8. How to write a degree symbol in LaTeX?
  9. How to write a dot product in LaTeX?
  10. How to Write a Greater Than Symbol in LaTeX?
  11. How to write a norm symbol in LaTeX?
  12. How to write a proportional to symbol in LaTeX?
  13. How to write a real number symbol in LaTeX?
  14. How to write a tilde symbol in LaTeX?
  15. How to write a union symbol in LaTeX?
  16. How to write a vector in LaTeX?
  17. How to write an infinity symbol in LaTeX?
  18. How to write bold text in LaTeX?
  19. How To Write Dots Symbols In LaTeX?
  20. How to write the arrow symbols in LaTeX
  21. How to write the Degree celsius symbol in LaTeX?
  22. How to write the equal or not equal symbol in LaTeX?
  23. How to write the Euro symbol in LaTeX?
  24. How to write the floor symbol in LaTeX?
  25. How to write the gradient operator symbol in LaTeX
  26. How To Write The Greater Than Or Equal To Symbol In LaTeX?
  27. How to write the integer number symbol in LaTeX?
  28. How to write the less than symbol in LaTeX?
  29. How to write the Natural numbers symbol in LaTeX?
  30. How to write the parallel symbol in LaTeX?
  31. How to write the percent symbol in LaTeX?
  32. How to write the square root symbol in LaTeX?
  33. How To Write The Symbol For A Subset In LaTeX?
  34. How to write the symbol for therefore in LaTeX?
  35. How to write with the mathbb in LaTeX?

Photo of author
Author
Joannah W.
Joannah has been a science publisher with close to 20 years of experience. She wants to help students and researchers stay ahead of the trends and developments in the science community by making science more accessible to everyone.

Leave a Comment