Skip to main content
v2026.11,986 entries · CC-BY 4.0

Approximate LaTeX: Math Commands and Symbols

Master typing the approximate symbol in LaTeX. Learn approx, sim, simeq, and amssymb packages with exact syntax, math mode rules, and worked examples.

Written and maintained by CASRAI Editorial Board

Published

On this page

Typesetting mathematical expressions in academic research requires precise notation for estimates, asymptotic limits, and numerical approximations. In LaTeX, approximation relationships are handled through dedicated relational math commands rather than arbitrary typographic accents. This ensures that the TeX formatting engine automatically balances spacing around the symbol according to mathematical publishing conventions.

What it is used for in research

In quantitative academic disciplines—including physics, engineering, statistics, computer science, and economics—researchers routinely communicate values that are close to, but not strictly identical with, theoretical constants or measured data. Standard LaTeX defines approximation symbols as binary relation operators (classified internally as mathrel), which governs how spacing is applied relative to adjacent variables, operators, and numerals.

Different research contexts require distinct approximation relations:

  • Numerical approximation (approx): Denotes that two numerical quantities are approximately equal, such as reporting rounded empirical values, physical constants, or truncated decimal expansions (e.g., ( pi approx 3.1416 )).
  • Statistical distribution and similarity (sim): Indicates that a random variable follows a specific distribution (e.g., ( X sim mathcal{N}(0, 1) )) or represents proportional scaling. For broader context on related relational notations, see our guide to proportional symbol in LaTeX and the index of LaTeX math signs.
  • Asymptotic equality (simeq): Represents “similar or equal to”, frequently applied in asymptotic analysis when two functions converge at a shared rate.
  • Congruence and isomorphism (cong): Designates geometric congruence, modular equivalence in number theory, or structural isomorphism in abstract algebra.
  • Asymptotic equivalence (asymp): Denotes asymptotic equivalence in analytic number theory and algorithm complexity analysis.
  • Ordering and inequalities: Often paired with inequalities when bounding approximation errors, such as relations described in greater than in LaTeX.

Install or access (official source only)

LaTeX typesetting tools are freely available across major operating systems through official distributions maintained by the Comprehensive TeX Archive Network (CTAN) and the TeX Users Group (TUG):

  • TeX Live: The comprehensive, cross-platform TeX distribution for Linux, macOS (distributed as MacTeX), and Windows. Download from CTAN at https://www.ctan.org/pkg/texlive.
  • MiKTeX: An open-source distribution primarily for Windows, macOS, and Linux that includes automatic on-the-fly package installation. Available from https://miktex.org.
  • Overleaf: A web-based cloud platform providing collaborative LaTeX authoring directly inside modern web browsers at https://www.overleaf.com.

Core approximation commands—including approx, sim, simeq, cong, and asymp—are built directly into the base LaTeX2e kernel and require no external package installations. Extended variants such as thickapprox, approxeq, lessapprox, gtrapprox, and napprox are supplied by the American Mathematical Society (AMS) font library through the standard amssymb package, which comes pre-installed in all standard TeX distributions.

Step-by-step task (numbered, with menu names or commands exactly as in the current docs)

Follow these steps to insert and format approximation symbols within a LaTeX document:

  1. Open your document in your chosen LaTeX environment: Create or open a .tex source file in your editor (e.g., TeXworks, TeXstudio, Visual Studio Code with the LaTeX Workshop extension, or Overleaf).
  2. Configure required packages in the document preamble: While approx requires no extra packages, import the standard AMS math packages before begin{document} to access extended symbols and display math environments:
    documentclass{article}
    usepackage{amsmath}
    usepackage{amssymb}
    begin{document}
  3. Insert inline approximation symbols using math mode: Approximation symbols are valid only inside math mode. Enclose the command within inline math delimiters ( ... ) or $ ... $:
    The estimated critical temperature is ( T_c approx 4.2 text{ K} ).
  4. Select the specific command matching your mathematical intent: Choose from the standard LaTeX kernel and amssymb symbol set:

    Approximate symbol LaTeX commands and packages

    Symbol LaTeX Command Required Package Standard Mathematical Usage
    ≈ approx None (LaTeX2e core) Approximately equal to; numerical approximation
    ∼ sim None (LaTeX2e core) Similar to; distributed as (statistics)
    ≃ simeq None (LaTeX2e core) Asymptotically equal to; similar or equal
    ≅ cong None (LaTeX2e core) Congruent to; isomorphic
    ≍ asymp None (LaTeX2e core) Asymptotically equivalent
    ≊ approxeq amssymb Approximately equal or equivalent
    ≈ (thick) thickapprox amssymb Bold or emphasized approximately equal
    ⪅ lessapprox amssymb Less than or approximately equal to
    ⪆ gtrapprox amssymb Greater than or approximately equal to
    ≉ notapprox None (LaTeX2e core) Not approximately equal (generic slash overlay)
    ≉ napprox amssymb Not approximately equal (dedicated negated glyph)
  5. Typeset multi-line or display equations: For standalone equations, use [ ... ] or the equation and align* environments provided by amsmath:
    begin{equation}
      f(x) approx f(x_0) + f'(x_0)(x - x_0)
    end{equation}
  6. (Optional) Define semantic macro shortcuts: If you write recurring approximation statements, you can create a custom macro in your preamble using newcommand, as detailed in our guide to new command in LaTeX:
    newcommand{approxval}{mathrel{approx}}
  7. Compile your document: Run pdflatex, xelatex, or lualatex on your document to produce the compiled PDF.

Output and how to read it

When LaTeX processes an approximation command, it formats the glyph according to strict typographical principles:

  • Automatic relational spacing: Because LaTeX classifies approx as a binary relation (mathrel), it automatically inserts horizontal spacing of thickmuskip (5/18 of an em) on either side of the symbol in display and text math modes. You do not need to insert manual spaces like ; or quad around the command.
  • Glyph rendering: The command approx outputs the standard double-wave approximation glyph (≈, Unicode U+2248). In standard Computer Modern math fonts, the upper and lower waves are symmetrically balanced.
  • Display vs. script size: When used in superscripts or subscripts (for example, ( A_{x approx 0} )), LaTeX scales the symbol down automatically to script or scriptscript size, maintaining legibility without distorting line thickness.
  • Reading semantic differences in compiled output: In peer-reviewed manuscripts, readers differentiate between a single wavy tilde (∼, indicating distribution or proportionality), a tilde above a horizontal line (≃, indicating asymptotic equality), and the double wave (≈, indicating numerical approximation). Selecting the exact command ensures your published figures and proofs reflect standard disciplinary conventions.

Troubleshooting

The following compilation errors and typographical issues are common when working with approximation symbols in LaTeX:

  • Error: ! LaTeX Error: approx allowed only in math mode.
    Cause: The command was entered in ordinary paragraph text without entering math mode (for example, The speed is approx 300 m/s.).
    Solution: Place the command inside math delimiters: The speed is ( approx 300 text{ m/s} ).
  • Error: ! Undefined control sequence: approxeq or napprox
    Cause: Extended relational commands require the AMS symbol fonts, which are not loaded by default.
    Solution: Add usepackage{amssymb} to the document preamble before begin{document}.
  • Collapsing spacing around the symbol:
    Cause: Placing the symbol inside curly braces (e.g., x{approx}y) or wrapping it in text formatting macros converts the atom type from mathrel to mathord (ordinary math atom), stripping the automatic thickmuskip spacing.
    Solution: Write the command directly between variables (x approx y), or explicitly restore relation spacing by wrapping custom constructions in mathrel{...}.
  • Misaligned negation slash with notapprox:
    Cause: The core LaTeX not macro superimposes a generic slash glyph over the following character, which can appear off-center over wavy approximation symbols.
    Solution: Load amssymb and use the dedicated pre-composed negation command napprox instead.

Free alternatives (table)

Researchers have several free and open-source options for typesetting approximation symbols across diverse workflows, from traditional TeX engines to web and modern markup systems:

Tool / System Approximation Command / Syntax Package Requirements Primary Technical Advantages Deployment / Platform
Core LaTeX (pdfLaTeX) approx, sim, simeq None (LaTeX2e base) Universal compatibility across publisher submission portals; zero configuration Cross-platform (TeX Live, MiKTeX, MacTeX)
AMS-LaTeX thickapprox, approxeq, napprox usepackage{amssymb} Extensive AMS symbol coverage; high-precision font metrics Bundled with all standard TeX distributions
Modern Unicode TeX (XeLaTeX / LuaLaTeX) approx or literal ≈ usepackage{unicode-math} Native OpenType math font support; allows direct UTF-8 character entry Included in modern TeX Live and MacTeX
Typst approx or ~= or literal ≈ None (built-in) Sub-second compilation speeds, modern syntax, and built-in package management Open source CLI and web application
KaTeX / MathJax approx, sim, simeq None (JavaScript library) Fast client-side equation rendering for research websites, blogs, and notebooks Web browsers, Jupyter Notebooks, Markdown

FAQ

What is the command for the approximately equal sign in LaTeX?
The standard command is approx. It must be typed in math mode (for example, ( x approx y ) or $x approx y$), rendering the double-wave symbol (≈).

Do I need to import a package to use approx in LaTeX?
No. The approx command is built directly into the base LaTeX2e kernel and requires no package imports. However, extended symbols like approxeq, thickapprox, and napprox require usepackage{amssymb}.

What is the difference between approx, sim, and simeq in LaTeX?
In mathematical typesetting, approx (≈) represents numerical approximation or “almost equal to”. The command sim (∼) represents a similarity relation, an asymptotic relation, or a probability distribution. The command simeq (≃) represents asymptotic equality, combining a tilde over a single horizontal bar.

How do I write “not approximately equal” in LaTeX?
In base LaTeX, write notapprox. If you have loaded the amssymb package, use the dedicated command napprox, which provides a cleaner, pre-composed negated glyph.

How do I type the approximate symbol in text without entering math mode?
LaTeX does not provide a native text-mode command for the approximation symbol. The standard approach is to enter inline math mode briefly using (approx). When compiling with XeLaTeX or LuaLaTeX and the fontspec package, you can also paste the literal UTF-8 character ≈ directly into your text.

Sources (official docs)

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about Approximate LaTeX: Math Commands and Symbols

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →