How to Write Math Equations in Confluence

June 26, 2025
#How To#Confluence Tutorial#Confluence
8 min
How to Write Math Equations in Confluence

This guide provides useful tips and tricks for writing math equations in Confluence using LaTeX math syntax: fractions, roots, sums, matrices, spacing, and multiline equations. Confluence has no built-in support for math formulas, so to show them on a page, you need an app such as LaTeX Math for Confluence by Stiltsoft.

Key takeaways

  • Confluence Cloud doesn’t render math equations on its own. To write them, you need to install an app from the Atlassian Marketplace such as LaTeX Math for Confluence by Stiltsoft.
  • Superscripts use ^, subscripts use _, fractions use \frac{}{} and roots use \sqrt{}.
  • \left( … \right) sizes brackets to fit the formula. \quad, \; and \, add space between elements.
  • For a multiline equation, put the lines in an align environment and end each line with \\.
  • If you don’t know a command, the symbol keyboard and the built-in AI Assistant in the app help you find it.

Why use LaTeX for math equations in Confluence

LaTeX is a widely used markup language for formatting mathematical and scientific content. It can be used in various types of documents, including resumes and posters, as well as books and technical documentation.

Here are the key advantages of using LaTeX for rendering math equations in Confluence:

  • Precise control over equations. You can define exactly how each element of an equation appears on Confluence pages.
  • Inline and block math formatting. It allows you to insert formulas directly into sentences or add them as a standalone block for better readability of complex expressions.
  • Clarity. The documentation looks professional and is easy to read, understand, and review.
  • Extensive symbol library. Supports the rendering of hundreds of math symbols.

In short, with LaTeX syntax, teams can easily add Confluence formulas wherever they need them. To learn more about the value of using LaTeX in daily documentation, see how technical teams write formulas.

The guide walks you through how to write LaTeX math equations in Confluence

How to add LaTeX to Confluence

Confluence doesn’t have native support for LaTeX syntax, so the easiest way to add math formulas to your pages is by installing an app from the Atlassian Marketplace that supports LaTeX.

LaTeX Math for Confluence by Stiltsoft renders math formulas and equations written in LaTeX syntax right inside your pages. The app is built on Forge and has the Runs on Atlassian badge, meaning that no external data processing is involved, and everything stays within Atlassian’s infrastructure. This ensures maximum security and gives you full control over your content.

Tip: Installing the app and adding your first formula takes about a minute. Our step-by-step guide shows how to add LaTeX in Confluence.


LaTeX Math for Confluence is a paid app with a free 30-day trial. Need more time to evaluate? Ask our support for a 3-month extended trial. After that, it’s around $0.70 per user/month, dropping as your team grows.


Confluence formulas with PDF Export

Common LaTeX syntax for math in Confluence

With LaTeX, you can create virtually any mathematical formula. The only requirement is to know the proper LaTeX commands. Below, we’ll show some of the most commonly used commands for writing math equations in Confluence.

Tip: The LaTeX Math for Confluence app has a keyboard that helps you quickly find the symbols you need, even if you don’t know the exact commands. You can also describe a formula in plain words and let the built-in AI Assistant write it. See how to add formulas without knowing LaTeX.

The app LaTeX Math for Confluence has a built-in keyboard and the AI Assistant that help you quickly find the symbols you need, even if you don’t know the exact commands.

Adding superscripts and subscripts

To insert superscripts and subscripts in Confluence, you should use the ^ and _ symbols, respectively. Here is an example:

  • Subscripts: x_{index}
  • Superscripts: x^{exponent}

Tip: If the index or exponent consists of just one character, you can omit the curly braces to keep the script clean: x_2 or x^2.

Adding superscripts and subscripts to Confluence using LaTeX Math commands

Now let’s have a look at some popular LaTeX commands. You should use a backslash to begin each command: \command.

Fractions and roots

The most commonly used commands are for roots and fractions:

  • n-th root: \sqrt[n]{expression} (the index n is optional)
  • fraction: \frac{numerator}{denominator}

The image shows an example of how the rendered formula will look when using these LaTeX commands.

shows how to add fractions and roots to Confluence pages using the LaTeX Math for Confluence app

Summation and integrals

The LaTeX syntax for summations and integrals is shown in the image below. Note that these operators usually appear smaller in inline mode than in block mode. For more examples, see LaTeX sums and integrals in Confluence.

The LaTeX syntax for summations and integrals is shown in the image

Matrices and Vectors

If you want to add a vector with an arrow above it, you can use the \vec{} command, for instance, \vec{x} shows a vector x with an arrow on top.

For vectors in matrix form, you can use environments such as pmatrix (for parentheses) or bmatrix (for brackets). Inside these environments, the & symbol separates columns, and each row ends with \\.

So a 3×3 matrix using pmatrix might look like this:

demonstrates how to add matrices and vectors using LaTeX Math for Confluence

For arrays and piecewise functions, see our step-by-step video guide to math formulas in Confluence.

Bracket Sizing

Small brackets around a large formula can make the whole expression look awkward and off-balance. LaTeX offers several ways to size all types of brackets properly.

To automatically size brackets for complex expressions, you can use \left( … \right) syntax. Please note that these commands must be used in pairs.

If you want more control over size, use:

  • \bigl, \Bigl, \biggl, \Biggl for the left side
  • \bigr, \Bigr, \biggr, \Biggr for the right side

This is how these sizes differ:

shows how to add different sizes of brackets using LaTeX Math for Confluence

Spacing in Confluence formulas

Sometimes the default spacing between elements in a formula doesn’t look right. You can fine-tune spacing using several LaTeX commands:

  • To add positive space (move elements further apart), use \,(small space), \;(medium space), \quad (large space), or \qquad (extra-large space)
  • To add negative space (move elements closer together), use \!

For custom spacing, you can use \hspace{length}, which accepts both positive and negative values.

You can fine-tune spacing between symbols in Confluence math formulas using the following LaTeX commands

Add text to Confluence math equations

If you’d like to include a description in your formulas, use the command: \text{…}. It enables you to display parts of a formula in plain text, similar to how inline math formatting works.

You can also add the following commands to format your text:

  • Italic text: \textit{…}
  • Bold text: \textbf{…}Add text to Confluence math equations using LaTeX Math for Confluence

Multiline equations in Confluence: add a new line with LaTeX

When writing a series of related formulas, you can use the align environment and double backslashes \\ to separate lines. Here is an example:

Shows how to insert a new line in multiline equations in Confluence using LaTeX Math for Confluence

Each \\ starts a new line. The & sign marks the point where the lines line up, usually just before the equals sign. Without &, each line is centered on its own, and the equals signs don’t line up.

Conclusion: writing math formulas in Confluence

Most math formulas in Confluence need only a few LaTeX commands. Once you know how to write fractions, roots, sums, and matrices, you can document most of the calculations your team works with. If you need a more comprehensive list of commands for writing math equations in Confluence, please refer to our LaTeX symbols guide.

You can use the same formulas outside the page text, too. Add them to Confluence tables next to the numbers they explain, and they are kept when you export the page to PDF.

👉 Try LaTeX Math for Confluence free for 30 days. Need more time to evaluate? Ask our support for a 3-month extended trial.

Math equations in Confluence: FAQ

How do I insert an equation or formula in Confluence? Confluence has no built-in tool for equations, so you need an app from the Atlassian Marketplace. With LaTeX Math for Confluence by Stiltsoft installed, type /latex on the page and choose LaTeX Inline Formulas or LaTeX Block Formulas. Type the equation in LaTeX math syntax, check the preview, and click Save.

Does Confluence have an equation editor? Confluence Cloud has no built-in equation editor. LaTeX Math for Confluence by Stiltsoft adds one, with a live preview, a symbol keyboard, and the built-in AI Assistant. The app shows formulas on the page with MathJax, an open-source engine for displaying math.

How do I write a fraction in Confluence? Use \frac{numerator}{denominator}. For example, \frac{a}{b} shows a over b.

How do I add a new line in a LaTeX equation in Confluence? Put the lines in an align environment and end each line except the last with \\. Put & before the equals sign to line the equations up.

Can I write math equations in Confluence without knowing LaTeX? Yes. The symbol keyboard in LaTeX Math for Confluence inserts commands for you, and the built-in AI Assistant writes a formula from a description in plain words. For simple formulas, you can also use the AsciiMath editor, where a fraction is a/b and a root is sqrt(x).