LaTeX Brackets: \left and \right Sizing

How to make a delimiter grow to fit what is inside it, which of the six sizing commands to use when you want manual control, and the empty-partner trick for evaluation bars.

A bracket in LaTeX does not know how tall its contents are — unless you ask it to measure. \left … \right turns a pair of delimiters into a matched, self-sizing unit; a bare ( stays the height of a parenthesis no matter what sits between. The manual sizes exist for the cases where automatic sizing is slightly too eager, and both decisions show up wherever a tall object is enclosed: Fractions, Determinant Notation, Set Notation.

Which one to use

Situation Write this Because
Anything that might grow
\left( … \right)
Sizes itself to whatever is inside.
A deliberate fixed size
\big( … \big)
Manual control, four steps.
A bar on one side only
\left. … \right|_{x=0}
Invisible partner plus a vertical bar.
Absolute value
\lvert x \rvert
Beats |x|, which can read as a divider.
Norm
\lVert v \rVert
Double bar with correct spacing.
Floor and ceiling
\lfloor x \rfloor
Named delimiters rather than brackets.

The commands

What Type this Renders as
Auto-pair The pair has to match: opening with \left( and closing with \Big] is an error, not a style choice.
\left( \frac{a}{b} \right)
\left( \frac{a}{b} \right)
Auto braces Braces are special characters, so they need a backslash even inside \left.
\left\{ x^2 \right\}
\left\{ x^2 \right\}
Empty partner A dot stands for "no delimiter here", letting one side size itself against the other.
\left. f \right|_{x=1}
\left. f \right|_{x=1}
Absolute value Semantic bars. Plain | works but confuses Markdown tables and some converters.
\lvert -5 \rvert
\lvert -5 \rvert
Norm Double bars for vector length, distinct from two ordinary vertical rules.
\lVert v \rVert
\lVert v \rVert
Rounding brackets Floor and ceiling have their own glyphs; a clipped-corner [ is not one of them.
\lfloor 2.7 \rfloor \quad \lceil 2.7 \rceil
\lfloor 2.7 \rfloor \quad \lceil 2.7 \rceil
Manual sizes Four steps of fixed growth, each also available in l/r halves such as \bigl and \Bigr.
\big( \Big[ \bigg\{ \Bigg)
\big( \Big[ \bigg\{ \Bigg)
Inner products Angle brackets are a command pair; < and > print as relations instead.
\langle u, v \rangle
\langle u, v \rangle
Divider bar Only valid between a \left and its \right; it sizes with the pair.
\left( \frac{x}{y} \middle| z \right)
\left( \frac{x}{y} \middle| z \right)

Worked examples

Where auto-sizing earns its keep

\left( \frac{1 + \sqrt{3}}{2} \right)^{2}
\left( \frac{1 + \sqrt{3}}{2} \right)^{2}

Fixed brackets would sit shorter than the stacked fraction and the expression would read as though the exponent belonged to part of it.

Absolute value bars on an expression

\left| \frac{dy}{dx} \right| < \epsilon
\left| \frac{dy}{dx} \right| < \epsilon

Without \left and \right the bars stay x-high while the fraction towers over them.

Evaluation at a point

\left. x^2 + 3x \right|_{0}^{2}
\left. x^2 + 3x \right|_{0}^{2}

The invisible left delimiter is the only way to get a full-height bar with nothing on the other side.

Nested groups

\left[ n - \left( m + 1 \right) \right]
\left[ n - \left( m + 1 \right) \right]

Inner pairs size to their own contents, so the outer pair grows once more to cover the result.

Common mistakes

  • Opening with \left( and closing with \right]. KaTeX and LaTeX both reject the mismatch; pick one delimiter type per pair.
  • Wrapping every bracket in \left/\right. Each adds thin inner spacing, so a line of simple parenthesised terms looks loosely kerned.
  • Forgetting the backslash before braces: \left{ a \right} is a syntax error, \left\{ a \right\} is not.
  • Using |x| for a norm and ||v|| for absolute value. The glyphs differ by weight and by intent, and readers of linear algebra will misread the flat form.

Questions about this notation

What is the difference between \left( and \big(?
\left( measures the material it wraps and grows to match, while \big( is one of four fixed enlargement steps chosen by the author. Auto sizing is convenient; fixed sizing is predictable, which is why published texts mix the two rather than using \left everywhere.
Why does my absolute value look like a division sign?
It probably was typed as a bare pipe character. Some pipelines treat | as a table or delimiter marker and rewrite it. Use \lvert and \rvert, which exist only as bars.
How do I write a bracket on only one side?
Pair the real delimiter with a dot: \left. ... \right) or \left( ... \right.. The dot means an invisible delimiter of matching height, which is also how the evaluate-at-a-point vertical bar is produced.
How do I write floor, ceiling and inner-product brackets?
Floor and ceiling have their own commands: \lfloor x \rfloor and \lceil x \rceil, and inner products use \langle v, w \rangle. All three print at a fixed size. To make them grow with the content inside, wrap them the same way you would a parenthesis: \left\lfloor \frac{x}{2} \right\rfloor. The three pairs come from amsfonts, which most preambles load already.

Keep reading

Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.