• Free forever
  • No sign-up
  • Private — runs in your browser

Fraction in LaTeX

The LaTeX command for fraction is \frac{a}{b}. Try it in the editor below.

Loading the math renderer…

How to write fraction in LaTeX

Use \frac{a}{b} in math mode — between $…$ in a document, or directly in the editor above.

LaTeX command\frac{a}{b}
NotesInline-size: \tfrac; display-size: \dfrac (amsmath)

Some forms need a package — add \usepackage{amsmath, amssymb} to your preamble; MathJax, Notion, Obsidian and most Markdown editors already include them.

Example

\frac{x+1}{x-1}

The editor above is pre-filled with this example — tweak it and export it as PNG, SVG or a Word equation.

More operators

SymbolCommand
±\pm
×\times
÷\div
⋅\cdot
√\sqrt{x}

See every LaTeX symbol →

Related

← Back to the full LaTeX Equation Editor