• Free forever
  • No sign-up
  • Private — runs in your browser

Absolute value in LaTeX

The LaTeX command for absolute value is \lvert x \rvert. Try it in the editor below.

Loading the math renderer…

How to write absolute value in LaTeX

Use \lvert x \rvert in math mode — between $…$ in a document, or directly in the editor above.

LaTeX command\lvert x \rvert
NotesAuto-sizing: \left| … \right|

Example

\left| \frac{a}{b} \right|

The editor above is pre-filled with this example — tweak it and export it as PNG, SVG or a Word equation.

More structures

SymbolCommand
Matrix\begin{pmatrix} a & b \\ c & d \end{pmatrix}
Cases (piecewise function)\begin{cases} a & x > 0 \\ b & x \le 0 \end{cases}
Binomial coefficient\binom{n}{k}
⌊⌋\lfloor x \rfloor
Subscripts and superscriptsx_{i}^{2}

See every LaTeX symbol →

Related

← Back to the full LaTeX Equation Editor