Brackets in LaTeX
Parentheses and square brackets are typed directly: (x), [x]. Curly braces need a backslash: \{x\}, and angle brackets are \langle x \rangle. To make brackets grow with tall content write \left( and \right) around it, or pick a size with \big, \Big, \bigg or \Bigg.
Bracket types
(x)\ [x]Round and square brackets, typed directly.
\{x\}Curly braces; plain
{ }group code and print nothing.\langle x \rangleAngle brackets (not the < and > signs).
\lvert x \rvert\ \lVert x \rVertSingle and double bars for absolute value and norm.
\lfloor x \rfloor\ \lceil x \rceilFloor and ceiling.
\left( \frac{a}{b} \right)Brackets sized to the content.
\big( \Big( \bigg( \Bigg(Four fixed sizes, larger each step.
Try it live
Change the formula and the preview redraws as you type. Copy the LaTeX, download a PNG or SVG, copy it for Word, or use Edit here on any example below to load it.
Brackets and parentheses examples
Each result below is drawn from the LaTeX under it. Copy the code, edit it on this page, or open it in the full editor.
Auto-sized parentheses
LaTeX\left( \frac{x^2}{2} \right)Fixed sizes compared
LaTeX( \big( \Big( \bigg( \Bigg(Set-builder with a middle bar
LaTeX\left\{ \frac{p}{q} \;\middle|\; p, q \in \mathbb{Z},\ q \neq 0 \right\}Evaluation bar
LaTeX\left. \frac{d}{dx} x^2 \right|_{x=3} = 6Inner product
LaTeX\langle u, v \rangle = \sum_i u_i v_iNested brackets
LaTeX\Bigl[ \bigl( a + b \bigr) c \Bigr]^2
\left … \right
Every \left needs a matching \right in the same line of the formula; use \left. or \right. for an invisible side, as in the evaluation bar. \middle| adds a bar that grows with the pair.
\left and \right sometimes make brackets too large or add space before the opening bracket after a function name. For a precise look, choose the size with \bigl … \bigr (the l and r tell LaTeX which side is which).
Braces that span a formula
To label part of a formula with a horizontal brace, use \underbrace{…}_{\text{label}} or \overbrace{…}^{\text{label}}. For a brace on the left of several lines, use the cases environment.
Common mistakes
Unescaped braces only group; they print nothing.
Instead of{x \mid x > 0}Write\{x \mid x > 0\}Less-than and greater-than signs are relations with wide spacing, not brackets.
Instead of<u, v>Write\langle u, v \rangle\leftand\rightcannot cross a line break; split them or use\bigl/\bigron each line.Instead of\left( \frac{a}{b} \\ c \right)Write\left( \frac{a}{b} \right) \\ c
In Overleaf, MathJax and Word
Overleaf and pdfLaTeX
All commands work in math mode without packages;
\lvert,\rvert,\lVert,\rVertneed amsmath.MathJax and KaTeX
MathJax and KaTeX support
\left,\right,\middle, and the\bigfamily.Microsoft Word
In a Word equation, brackets typed around a fraction grow automatically; Insert › Equation › Bracket offers the other shapes.
Have this math on paper, in a PDF or a photo?
Retyping formulas is slow. These converters read whole pages and handwriting and give you LaTeX or Word with every equation editable.
- Handwritten math to LaTeXPhotograph notes or a whiteboard and get LaTeX for every line.1 credit per image
- PDF to LaTeXTurn a paper or textbook PDF into a .tex project with every equation.10 credits per page
- Image to WordA screenshot or photo of a page becomes Word with editable equations.10 credits per image
Single printed formulas are free: 3 a day without an account, 6 with a free account. New accounts get 30 credits to try handwriting, pages and documents; failed conversions return their credits. See plans and credit prices.
Brackets and parentheses in LaTeX: questions
- How do I write curly braces in LaTeX?
\{and\}, or\lbraceand\rbrace.- How do I make big parentheses?
- Wrap the content in
\left( … \right), or choose a size with\big(,\Big(,\bigg(or\Bigg(. - Why do I get "Missing \right. inserted"?
- A
\lefthas no matching\right. Add one, using\right.if no bracket should show.
Related LaTeX reference
- Absolute Value in LaTeX|x|, \lvert x \rvert, bars that stretch with \left| \right|, double bars for norms, and an \abs macro with mathtools.
- How to Write a Norm in LaTeX‖x‖ with \lVert … \rVert or \|, auto-sizing with \left/\right, subscripted norms and a reusable \norm macro.
- Piecewise Function in LaTeXThe cases environment: one line per piece, & before each condition, \text for words, dcases and rcases variants.
- How to Add Space in LaTeX EquationsThe math spacing commands from \! to \qquad with their widths, \hspace, \text{ } and \phantom.
- LaTeX equation editorSymbol panel, live preview, and PNG, SVG, MathML or Word export.
- All LaTeX reference pagesSymbols, math structures and text formatting in one list.
Have the formula as a picture?
Paste a screenshot or photo of the equation and get its LaTeX, ready to copy or open in the editor.
Convert an image to LaTeX