How to Change Font Size in LaTeX
Set the base size for the whole document in the class options: \documentclass[12pt]{article}. For part of the text use a size command inside braces: {\large bigger text}. The commands run from \tiny to \Huge; for an exact size use \fontsize{14}{17}\selectfont.
Size commands (pt in a 10pt / 11pt / 12pt document)
- Text mode, no math preview
\tiny5 / 6 / 6 pt.
- Text mode, no math preview
\scriptsize7 / 8 / 8 pt.
- Text mode, no math preview
\footnotesize8 / 9 / 10 pt.
- Text mode, no math preview
\small9 / 10 / 10.95 pt.
- Text mode, no math preview
\normalsize10 / 10.95 / 12 pt (the base size).
- Text mode, no math preview
\large12 / 12 / 14.4 pt.
- Text mode, no math preview
\Large14.4 / 14.4 / 17.28 pt.
- Text mode, no math preview
\LARGE17.28 / 17.28 / 20.74 pt.
- Text mode, no math preview
\huge20.74 / 20.74 / 24.88 pt.
- Text mode, no math preview
\Huge24.88 / 24.88 / 24.88 pt.
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.
Font size 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.
Sizes side by side
LaTeX{\small x^2} \quad x^2 \quad {\large x^2} \quad {\Large x^2} \quad {\huge x^2}MathJax accepts the size commands in math; in LaTeX documents they belong in text, see below.
Display style in a fraction
LaTeX\frac{\displaystyle \sum_{k=1}^{n} k}{2} \quad \text{vs} \quad \frac{\sum_{k=1}^{n} k}{2}Smaller limits with textstyle
LaTeX\textstyle \sum_{i=1}^{n} x_i
In a LaTeX document
These commands work in the text of a .tex document (Overleaf, TeX Live, MiKTeX), not inside math. The box on the right shows what the compiled PDF looks like.
Whole document at 12pt
LaTeX\documentclass[12pt]{article}Size for part of the text
LaTeXNormal text, {\large larger text}, and {\small smaller text}. \begin{small} A whole small paragraph. \end{small}Compiled resultNormal text, larger text, and smaller text.
A whole small paragraph.
Exact size with \fontsize
LaTeX{\fontsize{14}{17}\selectfont Fourteen-point text on 17pt line spacing.\par}
Scope
Size commands are switches: they change everything that follows until the group ends. Put them inside braces {\large …} or an environment \begin{large} … \end{large}. End the paragraph (\par or a blank line) inside the group so the line spacing changes too.
The standard classes only accept 10pt, 11pt and 12pt. For other base sizes use the extsizes classes (extarticle with 14pt, 17pt, 20pt) or scrartcl with fontsize=13pt.
Size in math
In LaTeX, text size commands cannot be used inside math mode; set the size around the equation instead, or switch between \displaystyle, \textstyle, \scriptstyle and \scriptscriptstyle, which change how big sums, fractions and limits are drawn.
Common mistakes
\largetakes no argument; without the outer braces everything after it becomes large.Instead of\large{Some text}Write{\large Some text}article only supports 10pt, 11pt and 12pt; 14pt is silently ignored.
Instead of\documentclass[14pt]{article}Write\documentclass[14pt]{extarticle}\fontsizetakes effect only after\selectfont.Instead of\fontsize{14}{17} TextWrite\fontsize{14}{17}\selectfont Text
In Overleaf, MathJax and Word
Overleaf and pdfLaTeX
All size commands work without packages; extsizes is available for 14pt and larger documents.
MathJax and KaTeX
MathJax and KaTeX accept
\tinyto\Hugeinside formulas (unlike LaTeX), plus\displaystyleand\textstyle.Microsoft Word
In Word set the size in Home › Font Size; for equations, select the equation and change the size the same way.
Already have the whole document?
Move complete papers between PDF, Word and LaTeX without retyping; every equation stays editable.
- PDF to LaTeXTurn a paper or textbook PDF into a .tex project with every equation.10 credits per page
- Word to LaTeXA .docx with Word equations becomes LaTeX ready for Overleaf.10 credits per page
- LaTeX to WordA whole .tex file becomes a .docx whose equations open in Word.5 credits per file
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.
Font size in LaTeX: questions
- How do I change the font size in LaTeX?
- Set
12ptin the document class for the whole document, or use{\large …}and similar commands for parts. - What is the largest font size command?
\Huge. For anything bigger use\fontsize{40}{48}\selectfont.- How do I make an equation smaller?
- Put the size command around it, for example
{\small $…$}, or use\textstyleinside display math.
Related LaTeX reference
- How to Bold in LaTeX\textbf for bold text, \mathbf for upright bold math, \boldsymbol or \bm for bold italic and Greek symbols.
- Italics in LaTeX\textit and \emph for italic text, \itshape for longer passages, and upright vs italic letters in math mode.
- How to Write Code in LaTeXInline code with \verb, code blocks with verbatim, listings and minted, line numbers, colors and code from files.
- 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