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

Bar (overline) in LaTeX

The LaTeX command for bar (overline) is \bar{x}. Try it in the editor below.

Loading the math renderer…

How to write bar (overline) in LaTeX

Use \bar{x} in math mode — between $…$ in a document, or directly in the editor above.

LaTeX command\bar{x}
NotesLong: \overline{AB}

Example

\bar{x} = \frac{1}{n}\sum x_i

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

More accents

SymbolCommand
Vector arrow\vec{v}
Hat\hat{x}
Dot (time derivative)\dot{x}
Tilde\tilde{x}

See every LaTeX symbol →

Related

← Back to the full LaTeX Equation Editor