Skip to content
All LaTeX symbols

Hat / circumflex accent (â, x̂)

Accents & decorations

x̂

LaTeX command

\hat{x}

single letter

Use inside math mode: $\hat{x}$ — base LaTeX, KaTeX and MathJax

The hat marks estimators in statistics (x̂ for an estimate of x), unit vectors in physics (n̂) and Fourier transforms. \widehat stretches over a group; \hat sits on one character.

All ways to write it

CommandUsePackageCopy
\hat{x}single letternone
\widehat{xyz}wide hatnone
\hat{\mathbf{n}}unit vectornone
\^{a}text mode ânone

Example

\hat{\beta} = (X^T X)^{-1} X^T y

The least-squares estimator, hat marking the estimate.

Questions

Why does \widehat look the same as \hat on one letter?

On a single letter they coincide. \widehat only grows over two or more characters.

Related symbols

Using hat in Confluence

Confluence Cloud has no built-in LaTeX. With LaTeX Math for Confluence you add a math macro to any page, type \hat{x} and it renders inline or as a block, with a live preview while you edit. Every command on this page renders there without extra packages.