Stage 3 · Mathematics 23 / 48 ≈ 14 min read

How to Size Brackets in LaTeX: left, right, big and Bigg

Auto-sizing measures a box and picks the next available size; manual sizing is a decision. This lesson covers what \left...\right can and cannot do, the big/Big/bigg/Bigg ladder, and the delimiter names that carry meaning.

    What the automatic pair actually does

    \left and \right are not size commands. They are markers that turn the following delimiter into an opening or closing atom and tell TeX to build the fence from the sizes the math font provides, choosing the smallest one tall enough for the material in between. The rule is arithmetical: for enclosed material of height h and depth d, the fence must be at least the larger of (h+d) × delimiterfactor/1000 and (h+d) − delimitershortfall, with the defaults 1000 and 15pt — so it can fall short by 15pt, but never by a percentage, and it then rounds up to the next height the font offers. So it is structurally biased one rung high, and the sizes are discrete, not continuous — past the font's largest piece TeX starts assembling delimiters out of copies, which is where "my bracket looks like it is made of segments" comes from.

    The second effect is easy to miss and is the reason style guides dislike the construct: a \left( is a fence atom, and a \right) is a closing atom, and the group between them behaves like an \mathinner. That changes the space TeX puts on either side, so f\left(x\right) is not the same line as f(x) — there is a little extra air, and it accumulates across a page of formulas. The mleftright package exists specifically to keep auto-sizing while restoring sane spacing (\mleft( … \mright)).

    What the pair is genuinely good at is content whose height you cannot predict or would rather not re-measure every edit: a cases block, a fraction built from stacked material, an array column under a brace. In those places the fence has to grow and \left tracks it through a revision. Everywhere the enclosed height is stable, choose the size yourself.

    \left( \frac{a}{b} \right)
    \left( \frac{a}{b} \right)
    Three cases where \left and \right fail or mislead: a broken line, an over-inflated pair around a fraction, and a one-sided delimiter 1 · It cannot cross a line break — the two halves must be in one math list \begin{aligned} f(x) &= \left( a + b \right. \\ &\left. + c \right) \end{aligned} ! Missing \right. inserted — or, worse, a silently wrong brace on the previous row Fix by hand on the split lines: \bigl( on the row that opens, \bigr) on the row that closes. Only \left.\right. pairs may be split, and only when each row keeps its own pair. 2 · Auto-sizing reads the bounding box, so a fraction buys you a parenthesis three lines tall ( 1 2 ) \left( \frac{1}{2} \right) the box includes the fraction's raised numerator and lowered denominator, and \left then jumps to the next size up that covers it — always one step too many ( 1 2 ) \bigl( \tfrac{1}{2} \bigr) one size chosen for the tallest thing you actually put inside: this is the default in print 3 · One-sided delimiters need the invisible mate \left. — zero-width, no glyph dy dx | x=0 \left. \frac{dy}{dx} \right|_{x=0} the bar must carry \right, because \left sized it: without the pair the bar stays x-height and clips the fraction's descender The same mate closes an underbrace-free cases block, and it is how you put a single brace on a matrix row. there is no \left\right-free form of this: \bigl. \dots \bigr| is the manual twin
    The three cases where auto-sizing bites: a broken line, a fraction that inflates the fence, and a delimiter needed on one side only.

    Four things the pair cannot do

    First, it cannot cross a line break. A \left( in one row of aligned, split or gathered and its \right) in the next is an error, because each row is its own maths list — TeX either inserts a missing \right. or points at a line you did not touch. The fix is mechanical: give each row its own pair, sized by hand, or open the whole block inside one \left\{ \begin{aligned}…\end{aligned} \right. construct where the pair does enclose a single list.

    Second, it cannot have one side. Delimiters come in pairs, and the null delimiter . is how you say "nothing on this side": \left. \frac{x^{2}}{2} \right|_{0}^{1} for an evaluation bar, \left\{ \begin{array}{l} … \end{array} \right. for a one-sided brace in front of a system. There is no \leftone; a missing half is a real error, not an accepted shorthand.

    Third, it sizes each fence from its own contents only, so a \left[ on row one and a \right] on row two of an aligned block can come out different heights, and a \left( enclosing a fraction inherits the whole two-storey box. That is the "my brackets are huge" complaint in one sentence: \left(\frac{a}{b}\right) is never the size a typesetter would choose.

    Fourth, it cannot express intent. A delimiter is sometimes punctuation, sometimes grouping, sometimes a norm or an interval, and the height a reader should see depends on which. \left only knows pixels.

    \left\{ \begin{array}{l} a \quad \text{if } x \gt 0 \\ b \quad \text{if } x \le 0 \end{array} \right.
    \left\{ \begin{array}{l} a \quad \text{if } x \gt 0 \\ b \quad \text{if } x \le 0 \end{array} \right.
    \left. \frac{x^{2}}{2} \right|_{0}^{1} \qquad \bigl. \, u \, \bigr|_{0}^{1}
    \left. \frac{x^{2}}{2} \right|_{0}^{1} \qquad \bigl. \, u \, \bigr|_{0}^{1}

    The manual ladder and the l/r difference

    amsmath gives four sizes — \big, \Big, \bigg, \Bigg — and each of them three variants: plain, \bigl (left, opening) and \bigr (right, closing), plus \bigm for a separator that should be spaced as a relation. Each rung is a fixed box height derived from the current base size, stepping up by a constant amount, so the ladder scales with the surrounding type: \Bigl inside a subscript is not the same physical height as \Bigl in a display.

    The l/r distinction is spacing, not shape. \big( x \big) builds an inner-class atom, which earns a little space on both sides and visibly loosens \big( x \big) + 1; \bigl( x \bigr) is a true open/close pair, glues to its content and lets the + do its work. In practice: always use the l/r forms for fences, and reserve \bigm for vertical bars used as separators — \bigm\vert, \Bigm\|.

    The sizing decision itself is one rule: pick the first rung that clears the tallest thing you enclosed, and stop. Text-height content needs no sizing at all — plain ( ) is \big-ish and correct. A \tfrac wants \bigl. A display \frac wants \Bigl. A one-line \sum with upper and lower bounds, or a \substack, wants \biggl. Two-storey constructions, \Biggl. A delimiter more than about a fifth taller than its content reads as an error even when nobody can say why.

    \bigl( \tfrac{a}{b} \bigr) \quad \Bigl( \frac{a}{b} \Bigr) \quad \biggl( \dfrac{a}{b} \biggr) \quad \Biggl( \frac{1}{\sqrt{2}} \Biggr)
    \bigl( \tfrac{a}{b} \bigr) \quad \Bigl( \frac{a}{b} \Bigr) \quad \biggl( \dfrac{a}{b} \biggr) \quad \Biggl( \frac{1}{\sqrt{2}} \Biggr)
    \big( x \big) + 1 \qquad \bigl( x \bigr) + 1
    \big( x \big) + 1 \qquad \bigl( x \bigr) + 1
    The delimiter sizing ladder: big Big bigg Bigg with their left and right forms, matched against the content heights they are meant to cover Four steps, each about 1.2× the previous: pick the first one that clears your content ascender math axis baseline descender ( x ) [ x ] { x } ⟦ x ⟧ ⟨ x ⟩ \bigl \bigr \Bigl \Bigr \biggl \biggr \Biggl \Biggr plain text, \tfrac, short words \dfrac, a cases block, one \sum a stacked matrix or \substack bound l / r is not decoration \big( x \big) + 1 \big is a fence with the class of an inner box, so TeX adds spacing on both sides of the +. \bigl( x \bigr) + 1 open and close forms glue the delimiter to its content instead. Matching the content, not the neighbour content box: from its tallest item to its deepest descender A delimiter that is 15% taller than its content looks emphatic; 40% taller looks like a bug. \left ... \right cannot know that. Sizes are absolute per style: the same \Bigl is bigger in a display than in a subscript — scriptstyle scales the whole atom amsmath adds \bigm / \Bigm for relations used as separators: \bigm\vert, \Bigm\|
    Four rungs, the reference heights each one covers, and why the left and right forms matter more than the size.

    Every delimiter name, and what each one needs

    In maths mode (, ), [ and ] are ordinary characters and need nothing; \{ and \} must be escaped, because a bare brace is a grouping token — so \left\{ x \right\} is right and \left{ x \right} is a compile error. The named forms are worth knowing because the plain ones are ambiguous: \lbrace/\rbrace, \langle/\rangle (angle brackets: inner products, expectations, generators; needs amssymb in LaTeX), \lvert/\rvert and \lVert/\rVert (absolute value and norm, and the reason \lvert beats \vert is that the latter is also used for divisibility), \lfloor/\rfloor and \lceil/\rceil for the rounding functions, \lbrack/\rbrack when you need the name rather than the character, and \llbracket/\rrbracket from stmaryrd for the double brackets used in Iverson brackets and coarsenings.

    For vertical bars, three commands look similar and space differently. \mid is a relation: balanced thick space, correct in \{x \mid P(x)\} and in \Pr(A \mid B). : is punctuation: tight on the left, thin on the right, which is why the set builder \{x : x \gt 0\} looks slightly huddled. \colon is for maps. And \middle is the auto-sizing counterpart of \left/\right for a bar in the middle of a construct: \left\{ x \;\middle\vert\; x \in \mathbb{Z} \right\} scales the bar with the braces.

    A last group is "delimiters that are really operators": the floor/ceiling pair is unambiguous, but \lbrack used as a commutator, an interval or an Iverson bracket is a notation clash you resolve by shape and size, not by hoping.

    \left\{ x \;\middle\vert\; x \in \mathbb{Z} \right\} \qquad \{x \in \mathbb{Z} : x \gt 0\}
    \left\{ x \;\middle\vert\; x \in \mathbb{Z} \right\} \qquad \{x \in \mathbb{Z} : x \gt 0\}
    \llbracket 0, 1 \rrbracket \qquad \lfloor x \rfloor \qquad \lceil x \rceil
    \llbracket 0, 1 \rrbracket \qquad \lfloor x \rfloor \qquad \lceil x \rceil

    Depth and meaning: which bracket at which level

    The professional way to handle nesting is to change the shape at each level and keep the size driven by content: \bigl( \bigl\langle x, y \bigr\rangle \, z \bigr) rather than three increasingly enormous parentheses. Repeating one shape at escalating sizes is what \left( \left( \cdots \right) \right) naturally produces, and the result is a line where the delimiters dominate the algebra. Deeply nested material is usually a signal to define intermediate quantities.

    Meaning sits in the choice, not the size. Square brackets mean a closed interval, [a, b], and a commutator, [A, B] = AB - BA, and the Iverson bracket; round brackets mean an open interval or ordinary grouping; the mixed [a, b) and (a, b] are half-open intervals and are perfectly legal inside \left[ … \right) — the two halves of an auto pair do not have to be the same shape, only the same class. Angle brackets are inner products or expectation values; double vertical bars are norms; single bars are absolute value, cardinality or divisibility, and the only cure for that ambiguity is a definition near the first use.

    This is also where \left cannot help: it will happily size a delimiter whose shape is wrong for the meaning. The commands are typographic; the semantics are yours.

    \left[ 0, \frac{1}{2} \right) \qquad \left\langle u, v \right\rangle \qquad \left\lVert A x \right\rVert_{2}
    \left[ 0, \frac{1}{2} \right) \qquad \left\langle u, v \right\rangle \qquad \left\lVert A x \right\rVert_{2}
    \left( \left( \frac{a}{b} \right)^{2} \right) \qquad \Bigl( \bigl( \tfrac{a}{b} \bigr)^{2} \Bigr)
    \left( \left( \frac{a}{b} \right)^{2} \right) \qquad \Bigl( \bigl( \tfrac{a}{b} \bigr)^{2} \Bigr)

    Keeping delimiters consistent across lines

    Because \left sizes each pair from its own row, a derivation split over three lines gets three different fence heights and the eye notices. The standard tools are invisible struts: \vphantom{\frac{a}{b}} inside the row that needs to look tall, or \mathstrut (which is \vphantom{(}) when you just want every parenthesis on the line to clear an x-height plus descender. Both give the row a box that is as tall as the tallest thing you are pretending to contain, without printing anything.

    In the other direction, use \smash{} when a superscript or a stacked fraction is inflating a fence it does not belong to, and reach for the manual ladder when a row has a stable content height — \Bigl( … \Bigr) on every row of an aligned block will line up exactly, which is what a reader expects from a continuation.

    A useful global check: after finishing a derivation, look at the fences only, squinting. If they come in sizes that seem arbitrary, replace the whole block with manual sizing; if they are all one rung too big, you have \left measuring a descender or an accent. Both symptoms are far easier to see in the rendered page than in the source.

    \left( \vphantom{\frac{a}{b}} x \right)^{2} \qquad \left( \frac{a}{b} \right)^{-1}
    \left( \vphantom{\frac{a}{b}} x \right)^{2} \qquad \left( \frac{a}{b} \right)^{-1}
    \documentclass[11pt,a4paper]{article}
    \usepackage[T1]{fontenc}
    \usepackage{amsmath,amssymb}
    
    % \left … \right does not scale continuously. For enclosed material of height
    % h and depth d it picks the smallest available delimiter size that is at
    % least the larger of
    %     (h + d) * \delimiterfactor / 1000      and      (h + d) - \delimitershortfall
    % and it then rounds up to a size the font actually offers. The defaults are
    % \delimiterfactor=1000 and \delimitershortfall=15pt, which is why an
    % automatic fence lands one rung too high around a fraction.
    %
    % Lowering the factor makes every delimiter in the document shorter; it is a
    % global change, so test it before you commit it.
    \delimiterfactor=900
    \delimitershortfall=10pt
    
    \title{How automatic delimiter sizing really works}
    \author{A. Student}
    \date{\today}
    
    \begin{document}
    \maketitle
    
    \section{Content is measured, not judged}
    \[
      \left( \frac{a}{b} \right) \quad
      \left( a + b \right) \quad
      \left( \sum_{n=1}^{\infty} \frac{1}{n^{2}} \right) \quad
      \left( x \right)
    \]
    The second and fourth pairs are the same size as the first only because the
    rule above rounds up to the next available height; the tallest item inside
    is what the fence is answering.
    
    \section{Past the largest piece}
    \[
      \left( \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}
        \begin{pmatrix} a \\ b \end{pmatrix} \right)
      = \left( \begin{array}{c@{\quad}c} a & b \\ c & d \end{array} \right)
    \]
    Delimiters are assembled from pieces of the font, so above the tallest one
    TeX stacks copies of the largest glyph. That is where a segmented, slightly
    misaligned bracket comes from, and it is the signal to size the fence by hand.
    
    \end{document}

    Which construct to reach for, by situation

    Concrete defaults, in the order most style guides converge on. Ordinary grouping in running text: nothing but ( ). A \tfrac or one-line \sum in a sentence: \bigl( \bigr). A display \frac, a single \sum with limits, a short \substack: \Bigl( \Bigr). Two-storey material: \biggl/\biggr. An array or cases block under a brace, a matrix whose rows you rewrite often, or an aligned block that is genuinely one object: \left/\right, with \mleft/\mright or a following \mathclose{} if the spacing bothers you.

    Where a delimiter is a semantic object, wrap it in a macro and the sizing decision stops being per-occurrence: \DeclarePairedDelimiter{\abs}{\lvert}{\rvert} from mathtools gives \abs{…} at normal size and \abs*{…} auto-sized, so a document can be reviewed for delimiter policy by grepping for one character.

    The last row of the table is the honest one: for the fraction case, the fix is usually the content, not the fence. \bigl(\tfrac{a}{b}\bigr) inline and \Bigl(\frac{a}{b}\Bigr) in a display are the typographically correct pairs, which is why every worked example in a maths textbook looks tighter than the default output of \left.

    \biggl\| \sum_{n=1}^{N} x_n \biggr\| \qquad \left\| \sum_{n=1}^{N} x_n \right\|
    \biggl\| \sum_{n=1}^{N} x_n \biggr\| \qquad \left\| \sum_{n=1}^{N} x_n \right\|
    \left( \frac{\partial f}{\partial x} \right)_{T} \qquad \Bigl[ A, B \Bigr] = AB - BA
    \left( \frac{\partial f}{\partial x} \right)_{T} \qquad \Bigl[ A, B \Bigr] = AB - BA
    \documentclass[11pt,a4paper]{article}
    \usepackage[T1]{fontenc}
    \usepackage{amsmath,amssymb}
    \usepackage{mleftright}     % \mleft \mright: auto-size, ordinary spacing
    \usepackage{stmaryrd}       % \llbracket \rrbracket
    \usepackage{mathtools}
    
    \DeclarePairedDelimiter{\abs}{\lvert}{\rvert}       % \abs{} manual, \abs*{} auto
    \DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
    \DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
    \DeclarePairedDelimiterX{\set}[2]{\lbrace}{\rbrace}{#1 \mid #2}
    
    \title{Delimiters: three strategies}
    \author{A. Student}
    \date{\today}
    
    \begin{document}
    \maketitle
    
    \section{Manual sizing: the print default}
    \[
      \bigl\lvert \tfrac{1}{2} \bigr\rvert
      \qquad
      \Bigl\lvert \frac{1}{2} \Bigr\rvert
      \qquad
      \biggl\lvert \dfrac{1}{1+\sqrt{2}} \biggr\rvert
    \]
    
    \section{Automatic sizing, and what it costs}
    \[
      \left| \frac{1}{1+\sqrt{2}} \right|
      \quad \text{and note the extra air in} \quad
      f\left(x\right) \quad \text{versus} \quad f(x)
    \]
    The package option \verb|\mleftright| (or the explicit \verb|\mleft| and
    \verb|\mright| commands) keeps the sizing while restoring the spacing a
    plain fence would have had.
    
    \section{Paired macros, so the policy is written once}
    \[
      \abs{\frac{1}{2}} \qquad \abs*{\frac{1}{2}} \qquad
      \norm{A x}_{2} \qquad \ceil{\frac{n}{2}} \qquad
      \set{x}{\abs{x} < 1} \qquad \set*{\frac{x}{2}}{x \in \mathbb{R}}
    \]
    Unstarred takes a manual size; the starred form is the one that reaches for
    \verb|\left| and \verb|\right|, so a whole document can be reviewed for
    delimiter policy with one search.
    
    \end{document}

    Lesson cheat sheet

    One key line of code from each section — jump to it or copy it straight from here.

    Section Key code
    \left( \frac{a}{b} \right)
    \left\{ \begin{array}{l} a \quad \text{if } x \gt 0 \\ b \quad \text{if } x \le 0 \end{array} \right.
    \bigl( \tfrac{a}{b} \bigr) \quad \Bigl( \frac{a}{b} \Bigr) \quad \biggl( \dfrac{a}{b} \biggr) \quad \Biggl( \frac{1}{\sqrt{2}} \Biggr)
    \left\{ x \;\middle\vert\; x \in \mathbb{Z} \right\} \qquad \{x \in \mathbb{Z} : x \gt 0\}
    \left[ 0, \frac{1}{2} \right) \qquad \left\langle u, v \right\rangle \qquad \left\lVert A x \right\rVert_{2}
    \documentclass[11pt,a4paper]{article}

    Common mistakes

    • \left( … \right) split across two rows of aligned or align: each row is its own maths list, so TeX reports a missing \right. or silently fixes the previous line. Give each row its own pair, or wrap a single construct.
    • A missing null mate where one side is wanted: \left. … \right\vert and \left\{ … \right. are the correct forms, and the \left/\right half you "do not need" is exactly what does the sizing.
    • \left{ x \right} — an unescaped brace is a grouping token, not a delimiter. \left\{ x \right\} is what you meant to type, and this error is common enough that every LaTeX course keeps it on the list.
    • Using \big and \Big where the l/r variants belong: the plain forms build an inner atom, so \big( x \big) + 1 has a visible gap the typesetter did not order.
    • \left( \frac{a}{b} \right) as a habit. The fence sizes to the two-storey box and lands one rung too big; the correct pair in a display is \Bigl( \frac{a}{b} \Bigr), in text \bigl( \tfrac{a}{b} \bigr).
    • Identical-looking delimiters with different meanings in one document — |x| as absolute value, |V| as cardinality and a \mid b as divisibility. Pick the specific commands (\lvert, \mid) and define what each one means at first use.
    • Wrapping \left inside \text{…}: that argument is typeset in text mode, where the pair does not exist as a construct. Do the sizing in the maths and keep the words plain.

    Questions about this lesson

    What is the difference between \left( \right) and \bigl( \bigr)?
    \left … \right measures the enclosed box and picks the next available delimiter size automatically; \bigl … \bigr is one fixed size you have chosen. The automatic pair also changes the atom class of the group, which is why it adds a little space, and it cannot span a line break or appear on one side without the null delimiter \left. or \right..
    Why are my brackets so big around a fraction?
    Because a fraction is a two-storey box: the numerator is raised and the denominator lowered, and \left sizes to that whole height before rounding up to the next rung. The fix is to pick the size yourself — \Bigl( \frac{a}{b} \Bigr) in a display, \bigl( \tfrac{a}{b} \bigr) inline — or to shrink the enclosed content with \tfrac.
    How do I put a delimiter on only one side?
    Use the period as a null delimiter: \left. F(x) \right|_{a}^{b} for an evaluation bar, \left\{ \begin{array}{l} … \end{array} \right. for a one-sided brace. The invisible mate is what keeps the visible one auto-sized; its manual equivalent is \bigl. … \bigr|, which is the form that stays consistent across lines.
    Can \left and \right cross a line break in align or aligned?
    No. Every row is its own maths list, so the pair must close inside the row it opened. Either size each row by hand, or enclose a single construct — \left\{ \begin{aligned} … \end{aligned} \right. — where the whole block sits inside one maths list.
    Is there a better alternative to \left and \right?
    For most documents, yes: the mleftright package supplies \mleft and \mright, which auto-size without turning the enclosed material into an inner atom, so f\mleft(x\right) keeps the spacing of f(x). mathtools paired delimiters go further and let you make the policy a macro: \abs{} manual, \abs*{} automatic.
    How do I typeset angle brackets, floors and double brackets?
    \langle and \rangle for angle brackets (amssymb), \lfloor \rfloor and \lceil \rceil for the rounding functions, \lVert \rVert for norms, and \llbracket \rrbracket from the stmaryrd package for double brackets. All of them work with \left and \right, so sizing is independent of the shape you chose.

    Live playground: edit the LaTeX, see it render

    The preview updates as you type — break it on purpose to see how errors look.

    KaTeX error
    Try an example

    Keep reading

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