Math and Equations

How to write rho symbol in LaTeX?

Write the rho symbol in LaTeX with the rho command inside math mode, the varrho variant, subscripts, bold rho, and why capital rho has no command.

On this page
  1. Lowercase rho in math mode
  2. The variant \varrho
  3. Subscripts and superscripts
  4. Bold rho
  5. Rho in common formulas
  6. Typing rho directly
  7. Common errors

Type $\rho$ in math mode to get the lowercase Greek letter rho, ρ. LaTeX has no separate capital command, because the capital form of rho looks like the Latin letter R. To write it, type the letter R.

Lowercase rho in math mode

The mass density is $\rho = \frac{m}{V}$, where $m$ is mass and $V$ is volume.

The variant \varrho

\varrho gives a variant form of rho, ϱ. Authors who use both forms usually define which one stands for what, the first time it appears in a document.

Subscripts and superscripts

Rho takes subscripts and superscripts like any other symbol:

$\rho_1$, $\rho_{XY}$, and $\rho^{*}$

How to use subscript in LaTeX covers the braces rule for longer indices.

Bold rho

Load the bm package and use \boldsymbol:

\usepackage{bm}

$\boldsymbol{\rho}$

\mathbf usually leaves Greek letters unchanged in the default setup, so \boldsymbol is the reliable choice. The bm package also provides \bm as a shorter form.

Rho in common formulas

Two formulas use rho often:

  • Density: ρ = m/V, mass divided by volume.
  • Pearson correlation coefficient: the correlation between two random variables X and Y, written ρ with subscripts for the pair.
\[
  \rho_{XY} = \frac{\operatorname{Cov}(X,Y)}{\sigma_X \sigma_Y}
\]

\operatorname comes from amsmath.

Typing rho directly

With XeLaTeX or LuaLaTeX and a Unicode math font, you can often type ρ straight into the source. With pdfLaTeX, typing the Unicode character inside math may not work, so use \rho. The unicode-math package sets up Unicode math fonts for XeLaTeX and LuaLaTeX. Packages for mathematics in LaTeX describes it.

Common errors

  • Missing $ inserted: \rho appears in running text. Wrap it in $...$.
  • Undefined control sequence for \Rho: there is no capital rho command. Type the letter R.
  • Subscript in running text: \rho_1 needs math mode, so wrap it in $...$ like any other subscript.

For more on the Greek letters and symbols in this cluster, see the advanced mathematics guide and set, number and currency symbols.

The complete guide to math and equations

Advanced Mathematics in LaTeX: Operators, Theorems and Proofs
Read the guide

Keep exploring

Guides from other topics

All topics →