Tx · LaTeX & TikZ

How to Make Letters the Same Size in LaTeX

Updated 13 October 2026

At a glance

  1. 1. Check the math style

    Letters in subscripts and superscripts are intentionally smaller; use the same math style when equal sizing is needed.

  2. 2. Choose one font

    Use the same math alphabet for letters that should match, such as ordinary math italics or upright roman.

  3. 3. Use text commands

    For words inside equations, use text mode rather than mixing text letters with mathematical symbols.

  4. 4. Scale only if needed

    Use graphicx scaling for an exceptional glyph, but expect its shape and spacing to change.

Title: How to Make Letters the Same Size in LaTeX Category: latex

---- ARTICLE BODY ----

LaTeX may make letters look different in size because they are in different math styles, use different font alphabets, or have different glyph designs. A subscript is meant to be smaller than a main variable, for example; a calligraphic capital will also look different from a standard italic letter.

For a consistent result, first make sure the letters are in the same math style and use the same alphabet. Use text-mode commands for words, and reserve manual scaling for a specific glyph that genuinely needs adjustment.

Why letters look different

In math mode, LaTeX chooses a style based on where a symbol appears. Main expressions use text or display style, while subscripts and superscripts use smaller script styles. For example, the ii in xix_i is intentionally smaller than the xx. Changing the size of the whole formula does not make a subscript the same size as its base.

Math alphabet commands also change the glyph design. Ordinary math letters are generally italic; commands such as \mathrm, \mathsf, \mathtt, and \mathcal select other alphabets. These alphabets do not necessarily have matching apparent heights, even when they are set at the same nominal point size. Uppercase and lowercase letters can differ in height by design, too.

An accent usually does not change the size of the letter beneath it. It adds a mark and positions it according to the glyph’s width and shape. Use commands such as \hat{x} for a short accent and \widehat{xy} when the accent should span a longer expression. The accented result may look taller, but the base letter is not enlarged.

Match the style and alphabet

If letters are meant to match, keep them in the same math style and use a consistent alphabet. Use \text{...} for ordinary words within an equation; it is provided by the amsmath package. Use \operatorname{...} for named mathematical operators, since it gives them upright text-like letters and appropriate spacing.

Here is a complete example using amsmath for text and operator formatting, and graphicx for the optional scaling example:

\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}

\begin{document}

\[
  \mathit{ABC} \qquad \mathrm{ABC} \qquad \mathsf{ABC}
\]

\[
  x + \widehat{y} \qquad \text{naïve text} \qquad
  \operatorname{rank}(A)
\]

\[
  \scalebox{1.15}{$\mathit{x}$} + y
\]

\end{document}

The first line deliberately shows three different math alphabets, so their shapes and apparent sizes may not match. The second uses a math accent, a text phrase, and an operator name for different purposes. In the final line, \scalebox enlarges just the boxed italic xx by 15 percent; it is an example of a manual adjustment, not the usual way to format a formula.

When to scale a letter

If one glyph must be visually larger or smaller, the graphicx package provides \scalebox. Its first argument sets the horizontal scale factor; an optional second argument sets the vertical scale factor. If the second argument is omitted, the vertical factor defaults to the first. For instance, \scalebox{1.1}{$x$} enlarges the contents by 10 percent. Use such adjustments sparingly: scaling changes the glyph’s proportions and can make its stroke weight or spacing look inconsistent with surrounding symbols.

The example starts a small, separate math expression inside the box. That is suitable for a simple display like the one shown, but can behave unexpectedly in scripts or more complex formulas. In those cases, prefer a consistent font and math style, or ask whether the apparent size difference is intentional before adding a custom scaling command.

Accented letters and mixed text

For an accented mathematical variable, use a math accent such as \hat{x} or \acute{e}. For an accented word, use text mode, such as \text{naïve} in a modern LaTeX setup. The math accent and a text-font diacritic are not interchangeable: they come from different contexts and may look different.

If the problem is specifically that one symbol comes from a different font, changing its alphabet or choosing a math font that contains a matching glyph is usually better than scaling it. For example, \mathrm{x} selects an upright math letter, while \text{x} inserts a text letter. They may resemble each other, but they serve different typographic roles.

Common mistakes

  • Using \large or \Large in math mode. These are text-size declarations, not commands for changing one math symbol. To change text size, use them in text mode; for a single mathematical glyph, consider \scalebox only if matching fonts and styles is not enough.
  • Expecting \displaystyle to equalize every symbol. It changes the style of the main expression, but subscripts and superscripts remain in smaller styles.
  • Using \text for a mathematical operator. Prefer \operatorname{rank} to get operator spacing, or define a named operator for repeated use.
  • Scaling an entire formula to fix one letter. This also changes the size of every other symbol and can disrupt the layout. Target only the glyph that needs correction.
  • Treating different alphabets as size commands. \mathcal and \mathsf change letterforms; they are not reliable ways to enlarge or shrink a character.

For most equations, consistent math style and font choice produce the cleanest result. Manual scaling is a local correction, not a substitute for selecting the right typographic role.

References

  1. The amsmath package
  2. The graphicx package

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.