The practical difference
Inline math participates in a sentence. Display math occupies its own block and is appropriate when the expression is central, complex, numbered, or easier to read at full width.
| Situation | Choose | Reason |
|---|---|---|
| One variable or short relation in prose | Inline | Keeps the sentence continuous |
| Fraction, matrix, derivation, or long sum | Display | Provides space and clearer grouping |
| Equation referenced later by number | Display | Supports numbering and labels |
| Short definition repeated frequently | Inline | Avoids unnecessary vertical interruption |
Inline examples
Use inline delimiters supported by the destination:
The circle has area $A=\pi r^2$.
Punctuation belongs to the sentence. The period follows the inline expression because the equation is part of the grammar.
Display examples
Use a display block for a central result:
\[
A=\pi r^2
\]
For aligned derivations or numbering, use an appropriate environment:
\begin{align}
(a+b)^2 &= a^2+2ab+b^2 \\
(a-b)^2 &= a^2-2ab+b^2
\end{align}
Choose based on complexity
A short fraction may work inline, but nested fractions, tall radicals, and matrices can increase line height and disrupt reading. Display math gives the renderer more space and makes boundaries easier to inspect.
Do not make every symbol a display block. Excessive display math fragments prose and forces unnecessary scrolling, especially on mobile.
Handle numbering and references
Number only equations that the text refers to later. Use labels and references rather than typing numbers manually, because automatic numbering remains correct when equations move.
Troubleshoot layout
If an inline expression is clipped, inspect line height and font metrics. If a display equation overflows on mobile, place it in a scrollable container or break the derivation at meaningful operators. If raw delimiters appear, the destination has not enabled the expected math extension.
Common mistakes
- Using display math for a single variable.
- Placing a large matrix inline.
- Adding punctuation inside source in a way that changes the equation.
- Manually spacing a derivation instead of using alignment points.
- Assuming every Markdown renderer supports the same delimiters.
Verify the final page
Read the paragraph aloud to confirm inline equations fit its grammar. Test display equations at narrow widths, high zoom, and with copy selection. Confirm that numbering, punctuation, and accessible reading order remain correct in the production renderer.
Make the choice from the surrounding expression
For inline vs display math, do not decide from glyph shape alone. Read the operands, the mathematical subject, and the sentence around the notation. The same mark can represent different ideas in algebra, probability, set theory, analysis, or typography.
Verification questions
- Does the proposed meaning produce a mathematically valid sentence?
- Are the operands the right type for that meaning?
- Does a nearby definition or legend establish a local convention?
- Would replacing the mark with words preserve the intended statement?
Publishing check
Use the exact Unicode character or structured command, then inspect the final PDF, page, or presentation at normal and enlarged zoom. A font substitution can make distinct characters look similar even when their encoded identities differ.
How this guide was checked
Review method: Intent alignment review, notation/source verification, worked-example check, cross-format rendering review, and duplicate-content comparison for Inline Math vs Display Math
Verified against: Official standards, primary documentation, and the page-specific sources listed below
What changed: Removed repeated sitewide boilerplate and added content-type-specific decision, verification, and applicability guidance for this exact task.
Page purpose: inline vs display math — Compare similar symbols, formats, or mathematical concepts
Automated quality check: Passed critical indexing checks.
Verification references
These primary standards and official documentation pages were used to check character identity, syntax, or platform behavior described above.
- Unicode Technical Report #25: Unicode Support for MathematicsUnicode Consortium — Mathematical character usage, variants, and notation support.
- LaTeX Project DocumentationThe LaTeX Project — LaTeX syntax, authoring model, and official documentation links.
- MathML CoreW3C — Semantic web mathematics elements and browser behavior.
- Digital Library of Mathematical FunctionsNational Institute of Standards and Technology — Definitions, notation, identities, and reference material for mathematical functions.