Skip to content

Free tool

LaTeX Equation Editor

Type LaTeX maths and see it typeset as you write. Insert symbols and structures from the palette, then copy code that compiles or download the equation as an image. No account needed.

Write the maths without $ signs. Pasted delimiters are removed for you.

2. Choose how it sits in the document

Preview

Loading the preview…

LaTeX code

\[ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \]

No extra packages needed.

The preview is drawn by MathJax in your browser. pdfLaTeX sets the final fonts and spacing.

Compile it

See the equation in a real PDF

LaTeX Cloud Studio opens a starter article in the browser with TeX Live. Paste the equation into main.tex and compile it next to your text, without installing anything.

Inline, display or numbered

LaTeX has three common ways to place maths. $…$ keeps it inside the sentence. \[…\] sets it on its own centred line. The equation environment does the same and adds a number; give it a \label{eq:result} and refer to it with Equation~\eqref{eq:result}.

Several lines that line up at the equals sign belong in align from the amsmath package. Put & before each aligned symbol and \\ at the end of each line. align is display maths by itself, so the editor does not wrap it in \[…\].

When the equation does not compile

  • Missing $ inserted: maths outside maths mode, or a blank line inside an equation.
  • Undefined control sequence: the command comes from a package that is not loaded, for example \mathbb without amssymb or \text without amsmath.
  • Missing } inserted or Extra }: the braces do not pair up. The preview names the first error it finds.
  • Environment align undefined: add \usepackage{amsmath} to the preamble.

The preview understands the common maths packages. Your document still needs the packages listed under the code.

Learn the syntax

Questions

How do I write an equation in LaTeX?

Put short maths inside a sentence between dollar signs, $a^2 + b^2 = c^2$. Put an equation on its own line between \[ and \]. Use the equation environment when the equation needs a number you can refer to with \label and \ref.

What is the difference between inline and display maths?

Inline maths sits in the line of text, so LaTeX keeps it low: fractions are small and limits go beside the sum sign. Display maths gets its own centred line with full-size fractions and limits above and below. The same code looks different in the two modes, which the preview shows when you switch.

Which packages do my equations need?

Plain LaTeX covers fractions, roots, sums, integrals and Greek letters. Add \usepackage{amsmath} for align, cases, matrices, \text and \dfrac, and \usepackage{amssymb} for \mathbb and extra symbols. The editor lists the packages the current formula needs under the code.

Why does LaTeX say "Missing $ inserted"?

A maths command such as ^, _ or \frac appears outside maths mode, or there is a blank line inside an equation. Wrap the maths in $…$ or \[…\] and remove blank lines between \[ and \]. The editor removes blank lines from the code it gives you.

Can I use the equation in Word, PowerPoint or Google Slides?

Yes. Download the equation as a PNG, or copy it as an image and paste it. PNG works in all three. SVG stays sharp at any size in programs that accept it. Choose a transparent PNG for coloured slide backgrounds.

Is what I type sent to a server?

No. The preview and the image export run in your browser with MathJax. Nothing you type is uploaded, and you do not need an account.