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

Rank in LaTeX

The LaTeX command for rank is \operatorname{rank} (rank of a matrix).

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

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

Which command should you use?

CommandPackageUse it when
\operatorname{rank}(A) recommendedamsmathOne-off use, upright with operator spacing.
\DeclareMathOperator{\rank}{rank} amsmath (preamble)In the preamble, then write \rank(A) everywhere.
Table 1. Ways to write rank in LaTeX. Every line was compiled with pdfLaTeX (TeX Live 2026) loading only the package shown.
Common mistake. Plain rank(A) is set in italics as if it were r times a times n times k; \text{rank} loses the operator spacing.

How to type Rank

Write \operatorname{rank} 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.

Example
$\operatorname{rank}(A) = n$rank⁡(A)=n\operatorname{rank}(A) = nrank(A)=n

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

Related Operators symbols

ker\kergcd\gcddeg\degarg\arghom\homsgn\operatorname{sgn}tr\operatorname{tr}diag\operatorname{diag}span\operatorname{span}argmax\operatorname*{argmax}argmin\operatorname*{argmin}lcm\operatorname{lcm}sin\sincos\cos

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

FAQ

How do you write rank (rank) in LaTeX?

Use \operatorname{rank} in math mode after adding \usepackage{amsmath} to your preamble. For example, $\operatorname{rank}(A) = n$.

Which package provides \operatorname{rank}?

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

What is the most common mistake with rank in LaTeX?

Plain rank(A) is set in italics as if it were r times a times n times k; \text{rank} loses the operator spacing.

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