Brackets, parentheses, and other delimiters are essential in mathematical notation for grouping expressions, indicating function arguments, denoting sets, and representing various mathematical constructs. LaTeX provides comprehensive tools for typesetting delimiters with both automatic and manual sizing control.

This guide covers all LaTeX delimiter types—parentheses, square brackets, curly braces, angle brackets, and specialized notations like floor/ceiling—along with automatic sizing using \left and \right, manual sizing commands, and best practices for professional mathematical typesetting.

Basic Delimiters

LaTeX provides several delimiter types for mathematical expressions. Basic delimiters are fixed-size and work in any math mode.

Common Delimiter Pairs

% Parentheses (round brackets)
$(x + y)$

% Square brackets
$[x + y]$

% Curly braces (must be escaped)
$\{x + y\}$

% Angle brackets
$\langle x + y \rangle$

% Vertical bars (absolute value)
$|x|$

% Double vertical bars (norm)
$\|x\|$

All Basic Delimiter Symbols

Symbol LaTeX Code Name
( ) ( ) Parentheses
[ ] [ ] Square brackets
{ } \{ \} Curly braces
⟨ ⟩ \langle \rangle Angle brackets
| | | | Vertical bars
‖ ‖ \| \| Double bars
⌊ ⌋ \lfloor \rfloor Floor brackets
⌈ ⌉ \lceil \rceil Ceiling brackets

Simple Examples

% Function notation
$f(x)$, $g(x, y)$

% Intervals
$[0, 1]$, $(a, b)$

% Sets
$\{1, 2, 3\}$

% Inner product
$\langle u, v \rangle$

% Absolute value
$|x|$, $|-5| = 5$

% Norm
$\|v\|$

Automatic Sizing: \left and \right

The \left and \right commands automatically scale delimiters to match the height of their contents.

Basic \left \right Syntax

% Without scaling (fixed size)
$(\frac{x^2}{y^3})$

% With automatic scaling
$\left(\frac{x^2}{y^3}\right)$

Result: The scaled version has parentheses that extend to cover the entire fraction height.

Common Use Cases

% Fractions
\[
  \left(\frac{a}{b}\right) + \left(\frac{c}{d}\right)
\]

% Sums and products
\[
  \left(\sum_{i=1}^{n} x_i\right)^2
\]

% Square roots
\[
  \left(\sqrt{x^2 + y^2}\right)
\]

% Matrices
\[
  \left|\begin{matrix}
    a & b \\
    c & d
  \end{matrix}\right|
\]

Must Come in Pairs

% Correct: matched \left and \right
\[
  \left( x + y \right)
\]

% Incorrect: missing \right
% \left( x + y )  % Compilation error!

% Use \right. for invisible delimiter
\[
  \left. \frac{df}{dx} \right|_{x=0}
\]

All Delimiter Types with \left \right

% Parentheses
\left( ... \right)

% Square brackets
\left[ ... \right]

% Curly braces
\left\{ ... \right\}

% Angle brackets
\left\langle ... \right\rangle

% Vertical bars
\left| ... \right|

% Double bars
\left\| ... \right\|

% Floor
\left\lfloor ... \right\rfloor

% Ceiling
\left\lceil ... \right\rceil

Complex Expression Example

% Deeply nested with automatic sizing
\[
  \left[
    1 + \left(
      \frac{1}{1 - x} + \left\{
        \frac{x^2}{y}
      \right\}
    \right)
  \right]
\]

When NOT to Use \left \right

% Sometimes produces oversized delimiters
% Manual sizing is better:

% Too large with \left \right
$\left(\frac{1}{2}\right)$

% Better with manual sizing
$\bigl(\frac{1}{2}\bigr)$

Manual Sizing Commands

LaTeX provides commands for explicit size control when automatic sizing is inappropriate or produces poor results.

Size Commands

% From smallest to largest
\big( \Big( \bigg( \Bigg(
\big) \Big) \bigg) \Bigg)

All Size Variants

Command Relative Size Example
\big Small (1.2×) \big( \big)
\Big Medium (1.8×) \Big[ \Big]
\bigg Large (2.4×) \bigg\{ \bigg\}
\Bigg Very large (3.0×) \Bigg| \Bigg|

Left and Right Variants

% Opening delimiters (left)
\bigl( \Bigl[ \biggl\{ \Biggl\langle

% Closing delimiters (right)
\bigr) \Bigr] \biggr\} \Biggr\rangle

% Middle delimiters
\bigm| \Bigm| \biggm| \Biggm|

Size Comparison

\[
  ( \big( \Big( \bigg( \Bigg( \quad
  \text{Increasing sizes}
  \Bigg) \bigg) \Big) \big) )
\]

Using Manual Sizes

% Fraction with manually sized delimiters
\[
  \bigl(\frac{x}{y}\bigr) + \bigl(\frac{a}{b}\bigr)
\]

% Set notation
\[
  S = \bigl\{ x \in \mathbb{R} : x > 0 \bigr\}
\]

% Absolute value with nested content
\[
  \Bigl| \sum_{i=1}^{n} x_i \Bigr|
\]

When to Use Manual Sizing

  • Inline math: \left \right can create excessive spacing
  • Fine control: When automatic sizing is too large or too small
  • Consistency: Matching delimiter sizes across multiple expressions
  • Aesthetic: Better visual balance in some cases

Delimiter Types

Different delimiter types serve different mathematical purposes and conventions.

Parentheses ( )

% Function arguments
$f(x)$, $g(x, y, z)$

% Grouping in expressions
$(x + y)(x - y) = x^2 - y^2$

% Coordinates
$(x, y)$, $(r, \theta, \phi)$

% Open intervals
$(a, b)$, $(-\infty, \infty)$

Square Brackets [ ]

% Closed intervals
$[0, 1]$, $[a, b]$

% Function evaluation
$\left. f(x) \right|_{x=a}^{x=b}$

% Matrices
$\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$

% Commutators
$[A, B] = AB - BA$

Curly Braces { }

% Sets
$A = \{1, 2, 3, 4, 5\}$

% Set builder notation
$\{ x \in \mathbb{R} : x > 0 \}$

% Piecewise functions (with cases environment)
\[
  f(x) = \begin{cases}
    x^2 & \text{if } x \geq 0 \\
    -x^2 & \text{if } x < 0
  \end{cases}
\]

Angle Brackets ⟨ ⟩

% Inner product (dot product)
$\langle u, v \rangle$

% Expectation value (quantum mechanics)
$\langle \psi | H | \psi \rangle$

% Generators (algebra)
$\langle a, b \rangle$

% Average
$\langle x \rangle = \frac{1}{n}\sum_{i=1}^{n} x_i$

Vertical Bars | |

% Absolute value
$|x|$, $|-5| = 5$

% Determinant
$|A|$, $\det(A)$

% Evaluated at
$\left. \frac{d}{dx}x^2 \right|_{x=3} = 6$

% Cardinality
$|S|$ (size of set $S$)

% Divisibility
$a | b$ (a divides b)

Double Bars ‖ ‖

% Vector norm
$\|v\|$

% Matrix norm
$\|A\|$

% Function norm
$\|f\|_\infty = \sup_{x} |f(x)|$

% Distance
$\|x - y\|$

Special Delimiters

Specialized bracket types for specific mathematical notations.

Floor ⌊ ⌋ and Ceiling ⌈ ⌉

% Floor function (round down)
$\lfloor 3.7 \rfloor = 3$
$\lfloor -2.3 \rfloor = -3$

% Ceiling function (round up)
$\lceil 3.2 \rceil = 4$
$\lceil -2.7 \rceil = -2$

% With automatic sizing
\[
  \left\lfloor \frac{n}{2} \right\rfloor
\]

% Integer division
\[
  \text{quotient} = \left\lfloor \frac{a}{b} \right\rfloor
\]

Invisible Delimiters

% Use a period for invisible delimiter
% Useful for one-sided delimiters

% Derivative evaluated at point
\[
  \left. \frac{df}{dx} \right|_{x=0}
\]

% Interval notation
\[
  \left. (a, b) \right]  % Half-open interval
\]

Slashes / \backslash

% Division or fraction alternative
$a/b$ instead of $\frac{a}{b}$

% Modulo or quotient groups
$\mathbb{Z}/n\mathbb{Z}$

% Backslash (set difference)
$A \backslash B$ or $A \setminus B$

Custom Delimiters

% Use \left and \right with various symbols
\[
  \left< \text{content} \right>  % Less than / greater than
\]

% Triple bars (custom)
\[
  \left|\mkern-2mu\left|\mkern-2mu\left| A \right|\mkern-2mu\right|\mkern-2mu\right|
\]

Asymmetric Delimiters

Use different opening and closing delimiters for specific notations.

Half-Open Intervals

% Half-open intervals
$(a, b]$  % Open on left, closed on right
$[a, b)$  % Closed on left, open on right

% With automatic sizing
\[
  \left( -\infty, 0 \right]  % All non-positive reals
\]

Evaluated At Notation

% Derivative or integral evaluated
\[
  \left. F(x) \right|_a^b = F(b) - F(a)
\]

% Partial derivative
\[
  \left. \frac{\partial f}{\partial x} \right|_{(x_0, y_0)}
\]

Mixed Bracket Types

% Sometimes mathematically meaningful
\[
  \left[ a, b \right)  % Left-closed, right-open
\]

% Or for grouping clarity
\[
  \left\{ \left[ a, b \right] \cup \left[ c, d \right] \right\}
\]

One-Sided Delimiters

% Left delimiter only
\[
  \Bigl\{ x^2 + y^2  \quad \text{(no right delimiter)}
\]

% Right delimiter only
\[
  \text{(no left delimiter)} \quad x + y \Bigr\}
\]

Nested Delimiters

Use different bracket types for each nesting level to improve readability.

Standard Nesting Pattern

% Common pattern: ( [ { } ] )
\[
  \left( a + \left[ b + \left\{ c + d \right\} \right] \right)
\]

% Alternative: { [ ( ) ] }
\[
  \left\{ x + \left[ y + \left( z + w \right) \right] \right\}
\]

Complex Nested Expression

% Multiple levels with automatic sizing
\[
  \left\{
    \left[
      \left(
        \frac{a + b}{c + d}
      \right)^2
    \right]
    + e
  \right\}
\]

Function Composition

% Nested function calls
$f(g(h(x)))$

% With automatic sizing
\[
  f\left(g\left(\frac{x}{y}\right)\right)
\]

Set Operations

% Nested sets
\[
  A = \left\{ \left\{ 1, 2 \right\}, \left\{ 3, 4 \right\} \right\}
\]

% Set with interval
\[
  S = \left\{ x \in [0, 1] : x \text{ is rational} \right\}
\]

Best Practices for Nesting

  • Vary delimiter types: Use different shapes at different levels
  • Consistent pattern: Stick to one nesting convention
  • Limit depth: Excessive nesting reduces readability
  • Use sizing: Ensure outer delimiters are larger than inner

Advanced Techniques

Colored Delimiters

\usepackage{xcolor}

% Colored brackets for emphasis
\[
  \textcolor{red}{\left(} x + y \textcolor{red}{\right)}
\]

% Color-code nested delimiters
\[
  \textcolor{red}{\bigl(}
    a + \textcolor{blue}{\bigl[}
      b + c
    \textcolor{blue}{\bigr]}
  \textcolor{red}{\bigr)}
\]

Spacing Around Delimiters

% Add extra space
\[
  \left(\, x + y \,\right)  % Thin space
\]

\[
  \left(\: x + y \:\right)  % Medium space
\]

\[
  \left(\; x + y \;\right)  % Thick space
\]

Delimiters in Text Mode

% Use math mode for proper brackets in text
Use parentheses $(a, b)$ not (a, b).

% Or text mode brackets
Use parentheses (like this) in regular text.

Piecewise Functions

% Cases environment (automatic left brace)
\[
  |x| = \begin{cases}
    x & \text{if } x \geq 0 \\
    -x & \text{if } x < 0
  \end{cases}
\]

% Absolute value definition
\[
  f(x) = \begin{cases}
    x^2 & x < 0 \\
    0 & x = 0 \\
    x^3 & x > 0
  \end{cases}
\]

Matrix Delimiters

% Different bracket styles for matrices
% See matrix environments: pmatrix, bmatrix, vmatrix

% Custom delimiters around matrix
\[
  \left<
  \begin{matrix}
    a & b \\
    c & d
  \end{matrix}
  \right>
\]

Physics Notation (Dirac)

\usepackage{physics}  % Recommended for physics

% Bra-ket notation
$\ket{\psi}$, $\bra{\phi}$, $\braket{\phi|\psi}$

% Or manually
$|\psi\rangle$, $\langle\phi|$, $\langle\phi|\psi\rangle$

Stacked Delimiters

% Multiple lines within delimiters
\[
  \left(
  \begin{aligned}
    x &= a + b \\
    y &= c + d
  \end{aligned}
  \right)
\]

Troubleshooting

Unmatched \left and \right

Problem: ! Extra \right or ! Missing \right

Solution: Every \left must have matching \right:

% Wrong
\left( x + y  % Missing \right

% Correct
\left( x + y \right)

% Use \right. for invisible right delimiter
\left. \frac{df}{dx} \right|_{x=0}

Delimiters Too Large or Too Small

Problem: \left \right creates oversized delimiters.

Solution: Use manual sizing:

% Too large with \left \right
$\left(\frac{1}{2}\right)$

% Better with manual sizing
$\bigl(\frac{1}{2}\bigr)$

Delimiter Doesn't Span Entire Height

Problem: Fixed-size delimiter too small for content.

Solution: Use \left \right or manual sizing:

% Too small (fixed size)
$(\frac{x^2}{y^3})$

% Correct (automatic)
$\left(\frac{x^2}{y^3}\right)$

% Or manual
$\Big(\frac{x^2}{y^3}\Big)$

Curly Braces Not Showing

Problem: Used { } directly in math mode.

Solution: Escape with backslash:

% Wrong
${1, 2, 3}$  % Braces are grouping, not displayed

% Correct
$\{1, 2, 3\}$

Inconsistent Delimiter Sizes

Problem: Adjacent delimiters have different sizes.

Solution: Use consistent manual sizing:

% Inconsistent
$\big(\frac{a}{b}\big) + \Big(\frac{c}{d}\Big)$

% Consistent
$\Big(\frac{a}{b}\Big) + \Big(\frac{c}{d}\Big)$

\left \right Breaks Across Lines

Problem: Can't line-break between \left and \right.

Solution: Use manual sizing instead:

% Can't break here
\left( very long expression ... \right)

% Use manual sizing to allow breaking
\bigl( very long expression ...
  ... continues on next line \bigr)

Frequently Asked Questions

How do I make brackets automatically resize in LaTeX?

Use \left before the opening delimiter and \right before the closing delimiter:

% Fixed size (too small)
$(\frac{x^2}{y^3})$

% Automatic sizing
$\left(\frac{x^2}{y^3}\right)$

% Works with all delimiters
\left( \right)  % Parentheses
\left[ \right]  % Brackets
\left\{ \right\}  % Braces
\left| \right|  % Bars

LaTeX automatically scales the delimiters to match the height of the enclosed content.

What's the difference between \big, \Big, \bigg, and \Bigg?

These commands provide manual sizing at different levels:

  • \big: 1.2× normal size
  • \Big: 1.8× normal size
  • \bigg: 2.4× normal size
  • \Bigg: 3.0× normal size
% Size comparison
\[
  ( \big( \Big( \bigg( \Bigg(
\]

% Usage example
$\Big(\frac{x}{y}\Big)$

Use l/r variants for proper spacing: \bigl( \bigr) \Bigl[ \Bigr] etc.

How do I type curly braces in LaTeX math mode?

Curly braces must be escaped with backslash in math mode:

% Wrong (braces are grouping)
${1, 2, 3}$  % Won't display

% Correct (escaped)
$\{1, 2, 3\}$

% Set notation
$A = \{x \in \mathbb{R} : x > 0\}$

% With sizing
\left\{ x + y \right\}
\Big\{ x \Big\}

Without backslash, { } are used for grouping and don't print as characters.

What are floor and ceiling brackets?

Floor ⌊x⌋ rounds down to nearest integer. Ceiling ⌈x⌉ rounds up:

% Floor function
$\lfloor 3.7 \rfloor = 3$
$\lfloor -2.3 \rfloor = -3$

% Ceiling function
$\lceil 3.2 \rceil = 4$
$\lceil -2.7 \rceil = -2$

% With automatic sizing
\left\lfloor \frac{n}{2} \right\rfloor

Commonly used in computer science and discrete mathematics for integer division and rounding.

How do I use angle brackets in LaTeX?

Use \langle and \rangle commands:

% Basic angle brackets
$\langle x, y \rangle$

% Inner product
$\langle u, v \rangle$

% With automatic sizing
\left\langle \frac{a}{b} \right\rangle

% Quantum mechanics (bra-ket)
$\langle \psi | H | \psi \rangle$

Don't use < and > for angle brackets—those are comparison operators.

Why do I get "Extra \right" or "Missing \right" errors?

\left and \right must come in pairs within the same group:

% Wrong (missing \right)
\left( x + y

% Wrong (unmatched)
\left( x + y ]

% Correct
\left( x + y \right)

% Use \right. for invisible delimiter
\left. \frac{df}{dx} \right|_{x=0}

% Use \left. for invisible left
\left. \middle| \right\} \text{conditional}

Every \left requires a matching \right in the same math expression.

How do I make one-sided delimiters (evaluation bar)?

Use \left. or \right. for invisible delimiters:

% Derivative evaluated at point
\[
  \left. \frac{df}{dx} \right|_{x=0}
\]

% Definite integral evaluation
\[
  \left. F(x) \right|_a^b = F(b) - F(a)
\]

% Right side only
\[
  x + y \Bigr]
\]

The period creates an invisible delimiter to satisfy the pairing requirement.

When should I use manual sizing vs \left \right?

Use \left \right when:

  • Content varies greatly in height (fractions, sums, matrices)
  • You want guaranteed coverage of all content
  • Writing display equations

Use manual sizing when:

  • \left \right produces oversized delimiters
  • Writing inline math (avoid excessive line spacing)
  • Need consistent sizes across multiple expressions
  • Better aesthetic control desired
% Auto-sizing (sometimes too big inline)
$\left(\frac{1}{2}\right)$

% Manual (better inline)
$\bigl(\frac{1}{2}\bigr)$

How do I nest different types of brackets?

Use different bracket types at each nesting level for clarity:

% Standard pattern: ( [ { } ] )
\[
  \left( a + \left[ b + \left\{ c + d \right\} \right] \right)
\]

% With automatic sizing
\[
  \Bigl( x + \bigl[ y + \{ z \} \bigr] \Bigr)
\]

Best practice: Vary delimiter shapes and make outer delimiters larger than inner ones.

Can I color brackets in LaTeX?

Yes, use the xcolor package:

\usepackage{xcolor}

% Color brackets
\[
  \textcolor{red}{\left(} x + y \textcolor{red}{\right)}
\]

% Color-code nested brackets
\[
  \textcolor{red}{\Big(}
    a + \textcolor{blue}{\big[}
      b + c
    \textcolor{blue}{\big]}
  \textcolor{red}{\Big)}
\]

Useful for highlighting matching pairs or clarifying complex nested expressions.

Conclusion

LaTeX provides comprehensive tools for typesetting brackets, parentheses, and delimiters through both automatic sizing with \left and \right commands and manual control with \big, \Big, \bigg, and \Bigg variants. Understanding when to use each approach is key to professional mathematical typesetting.

Key takeaways: Use \left \right for guaranteed coverage of varying-height content, especially in display equations. Use manual sizing (\bigl, \Bigr, etc.) for better control in inline math, consistent sizing across expressions, and when automatic sizing produces suboptimal results. Always match delimiter types appropriately to mathematical conventions—parentheses for functions and grouping, square brackets for intervals and matrices, curly braces for sets, and specialized brackets like floor/ceiling for their specific mathematical meanings.

Remember: every \left must be paired with \right (use \right. for invisible delimiters), vary bracket types when nesting for clarity, and prioritize readability over rigid rules. With these tools and guidelines, you can typeset any mathematical expression with professional, publication-quality bracket formatting.