Binomials

    This tutorial explains how to create binomials in LaTeX.

    Walkthrough

    Binomial coefficients

    In LaTeX, binomial coefficients are created using the \binom command from the amsmath package.

    Snippet
    \binom{n}{k}
    Output

    Loading output…

    Using generalized fractions for binomials

    You can also create binomial coefficients using the \genfrac command from the amsmath package by setting the left and right delimiters to parentheses, line thickness to 0pt, and style to empty.

    Snippet
    \genfrac{(}{)}{0pt}{}{n}{k}
    Output

    Loading output…

    Displaystyle binomials

    To force a binomial coefficient to be in display style, regardless of the surrounding math style, use \dbinom from the amsmath package.

    Snippet
    This would normally be an inline binomial $\dbinom{n}{k}$ but is now in display style.
    Output

    Loading output…

    Text-style binomials

    To force a binomial coefficient to be in text style, regardless of the surrounding math style, use \tbinom from the amsmath package.

    Snippet
    This would normally be a display binomial \[\tbinom{n}{k}\] but is now in text style.
    Output

    Loading output…

    Keep exploring

    Jump to closely related tutorials or compare this topic against the wider LaTeX docs people actually use.

    Related tutorials

    Fractions

    This tutorial explains how to create fractions in LaTeX.

    Read tutorial

    Inline vs. display math

    This article explains the difference between inline and display math in LaTeX, and when to use each

    Read tutorial

    LaTeX Matrices

    Create LaTeX matrices with pmatrix and bmatrix. Copy working examples for brackets, determinants, augmented matrices, inline matrices, and common errors.

    Read tutorial

    External references

    Overleaf Learn: Mathematical expressions

    Examples for core math mode syntax, layout, and notation.

    overleaf.com

    Open reference

    CTAN: amsmath

    The primary package reference for display math, alignment, matrices, and more.

    ctan.org

    Open reference