Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Operators›Sgn

Sgn in LaTeX

The LaTeX command for sgn is \operatorname{sgn} (sign function).

sgn⁡\operatorname{sgn}sgn
\operatorname{sgn}
Operators · needs amsmath

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

How to type Sgn

Write \operatorname{sgn} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amsmath package, so add \usepackage{amsmath} to your preamble.

\operatorname{sgn} sets the name upright with operator spacing; typed as plain letters it would print in italics, as a product of variables.

Example
$\operatorname{sgn}_{i=1}^{n} x_i$sgn⁡i=1nxi\operatorname{sgn}_{i=1}^{n} x_isgni=1n​xi​

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Related Operators symbols

det\detdim\dimker\kergcd\gcddeg\degarg\arghom\homtr\operatorname{tr}rank\operatorname{rank}diag\operatorname{diag}span\operatorname{span}argmax\operatorname*{argmax}argmin\operatorname*{argmin}lcm\operatorname{lcm}

Math operators in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write sgn (sgn) in LaTeX?

Use \operatorname{sgn} in math mode after adding \usepackage{amsmath} to your preamble. For example, $\operatorname{sgn}_{i=1}^{n} x_i$.

Which package provides \operatorname{sgn}?

It comes from the amsmath package: add \usepackage{amsmath} to your preamble.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms