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} |
|---|---|
| Notes | Inline-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
| Symbol | Command |
|---|---|
| ± | \pm |
| × | \times |
| ÷ | \div |
| ⋅ | \cdot |
| √ | \sqrt{x} |


