Brackets and Parentheses in LaTeX - Complete Guide
Master all types of brackets and parentheses in LaTeX. Learn automatic sizing, manual control, and advanced techniques for mathematical expressions.
Master all types of brackets and parentheses in LaTeX mathematical expressions. This comprehensive guide covers everything from basic parentheses to advanced delimiter sizing techniques, with visual examples for every concept.
Quick start: LaTeX provides various bracket types and automatic sizing with \left
and \right
. For basic parentheses use ()
, for square brackets []
, and for curly braces \{\}
.
Prerequisites: Basic LaTeX math mode knowledge. See Mathematical Expressions for math mode basics.
What You’ll Learn
- ✅ All bracket and delimiter types in LaTeX
- ✅ Automatic sizing with
\left
and\right
- ✅ Manual size control for fine-tuning
- ✅ Multi-line equations with balanced delimiters
- ✅ Special cases and advanced techniques
- ✅ Common errors and how to fix them
- ✅ Best practices for readable mathematics
Types of Brackets and Delimiters
Complete Visual Reference
All LaTeX Bracket Types
Type | LaTeX Code | Output | Common Use |
---|---|---|---|
Parentheses | ( ) | ( ) | General grouping |
Square brackets | [ ] | [ ] | Arrays, intervals |
Curly braces | { } | Sets, systems | |
Angle brackets | \langle \rangle | ⟨ ⟩ | Inner products |
Vertical bars | | | or \vert \vert | | | | Absolute value |
Double bars | | | or \Vert \Vert | ‖ ‖ | Norms |
Floor | \lfloor \rfloor | ⌊ ⌋ | Floor function |
Ceiling | \lceil \rceil | ⌈ ⌉ | Ceiling function |
Basic Examples
Rendered output:
Automatic Delimiter Sizing
The \left
and \right
Commands
LaTeX can automatically size delimiters to match their content using \left
and \right
:
Rendered output:
Important Rules for \left
and \right
Critical: Every \left
must have a matching \right
in the same math environment. They must be balanced like opening and closing HTML tags.
Invisible Delimiters
Sometimes you need an invisible delimiter to balance the equation:
Rendered output:
Manual Size Control
Size Commands
When automatic sizing doesn’t give the desired result, use manual size commands:
Delimiter Size Commands (smallest to largest)
\big | 50% larger than normal |
\Big | 2x normal size |
\bigg | 2.5x normal size |
\Bigg | 3x normal size |
Size Comparison
Rendered output:
Left and Right Variants
Use l
and r
suffixes for proper spacing: \bigl(
, \bigr)
, \Bigl[
, \Bigr]
, etc. This ensures correct spacing around the delimiters.
Advanced Techniques
Nested Brackets
Rendered output:
Poor: [1 + [2 + [3 + 4]]]
Better: [1 + [2 + [3 + 4]]]
Best: [1 + [2 + [3 + 4]]]
Multi-line Equations with Brackets
For equations that span multiple lines, you need special handling:
Rendered output:
f(x) = {
Matrix Delimiters
Rendered output:
a | b |
c | d |
a | b |
c | d |
a | b |
c | d |
a | b |
c | d |
a | b |
c | d |
Special Use Cases
Set Notation
Rendered output:
Interval Notation
Physics and Engineering
Common Errors and Solutions
Error: Missing \right. inserted
Error: Missing \right. inserted
Problem: Every \left
needs a matching \right
, even across line breaks.
Solution: Use \right.
for an invisible right delimiter:
Brackets too large with \left...\right
Brackets too large with \left...\right
Problem: Automatic sizing makes brackets unnecessarily large.
Solution: Use manual sizing instead:
Curly braces not showing
Curly braces not showing
Problem: {
and }
have special meaning in LaTeX.
Solution: Escape them with backslash:
Mismatched bracket sizes in aligned equations
Mismatched bracket sizes in aligned equations
Problem: Brackets don’t match across aligned lines.
Solution: Use phantom brackets:
Best Practices
1. Choose the Right Delimiter
✅ Good Delimiter Choices
- Parentheses: General grouping, function arguments
- Square brackets: Matrices, commutators, intervals
- Curly braces: Sets, systems of equations
- Angle brackets: Inner products, averages
- Vertical bars: Absolute values, determinants, norms
2. Sizing Guidelines
- Use
\left...\right
for complex expressions with varying heights - Use manual sizing (
\big
,\Big
, etc.) for simple expressions - Be consistent within the same document
- Don’t oversize—readability is key
3. Spacing Considerations
4. Semantic Markup
Use meaningful commands when available:
Quick Reference Card
Brackets Quick Reference
Basic Delimiters
( ) [ ] { }
\langle \rangle
| | | |
\lfloor \rfloor
\lceil \rceil
Automatic Sizing
\left( … \right)
\left. … \right|
\left{ … \right.
Manual Sizes
\big \Big \bigg \Bigg
\bigl( \bigr)
\Bigl[ \Bigr]
Matrix Environments
pmatrix ()
bmatrix []
Bmatrix
vmatrix ||
Related Topics
Mathematical Expressions
Learn math mode basics and expressions
Matrices Guide
Complete guide to matrices and arrays
Equations
Multi-line and numbered equations
Math Symbols
Comprehensive symbol reference
LaTeX Cloud Studio automatically handles package loading! The amsmath
package is pre-loaded, so all bracket commands work immediately without manual package management.