Skip to content
notionsolutions

A practical library for building,
organizing and working in Notion.

Workflow guides

Notion Equations: Inline and Block Math, and the LaTeX That Renders

Two routes cover every equation in Notion: $$ or ctrl/cmd + shift + E inside a sentence, /math for a line of its own. Notion renders KaTeX, whose support table marks 127 of 1,140 entries Not supported. Here's what renders, what replaces align or \label, and how to fix an equation that won't.

Published
Paper cards in a white ceramic tray beside a glass paperweight and a steel ruler, one card edged in electric blue, and the headline Math that renders
Two routes cover every equation: $$ inside a sentence, /math for a line of its own.

For an inline equation in Notion, type $$, your expression and $$ again, or press ctrl/cmd + shift + E to open the equation input. For a formula on its own line, type /math and press enter to add a block equation. Notion renders both with KaTeX, so most LaTeX math works as you'd write it; use aligned for multi-line Notion blocks. I'd learn those two routes before any command list, because every equation on a Notion page is one or the other.

For a symbol or a short expression inside a sentence, choose an inline equation. For a standalone formula, a worked step or anything you'd set on its own line in a paper, choose a block equation. For a numbered, cross-referenced paper, draft in a full LaTeX editor and keep Notion for notes, problem sets and lab write-ups. This page is about typing math notation; calculations inside a database property are a separate feature with their own syntax, covered in how Notion formulas 2.0 work.

Inline or block: which equation do you need?

LaTeX draws the same line Notion does. Overleaf's guide to mathematical expressions describes inline math mode as the one “used to write formulas that are part of a paragraph” and display math mode as the one for expressions that “are not part of a paragraph, and are therefore put on separate lines.” Notion's inline equation is the first kind; its block equation is the second.

The two kinds also sit differently on the page. super.so's math cheat sheet, written by a company that sells a Notion website builder, describes the block equation as center aligned and the inline equation as left aligned. That centered layout is why people borrow block equations for page titles, a trick my guide to centering text in Notion covers. Here the block stays a block for math.

My rule: if you'd read the expression aloud as part of a sentence, such as “where v is the velocity,” it goes inline. If a reader has to check it line by line, it gets a block.

Every way to add an equation

Notion's math equations help documents the block routes, the dollar signs, the shortcut, the formatting-menu button and Turn into. Notion's keyboard shortcuts page adds two slash commands: /latex does the same job as /math, and /equation adds a TeX formula in line with your text.

Every documented way to add an equation in Notion
RouteHowResult
+ menuHover over a new line, click the + that appears on the left, scroll down and choose Block equationBlock
/math or /latexType /math (or /latex) and press enterBlock
Dollar signsType $$, then your equation, then close it with $$Inline
Shortcutctrl/cmd + shift + E opens the equation input; type your equation and press enterInline
Selected textHighlight the text, then click the √x button in the formatting menu or press ctrl/cmd + shift + EInline
/equationType /equation to add a TeX formula in line with your textInline
Turn intoOn a block that holds an inline equation, open Turn into and choose Block equationBlock

Once a block equation is on the page, click inside it to type or paste your equation, or use cmd/ctrl + enter/return. In the block menu that / or + opens, Notion's editing basics list Inline equation under Advanced blocks, so you can also pick it from that menu. I'd still learn $$ and /math first; they're the two you'll type most. The rest of the keys worth knowing are in my Notion shortcuts for Mac and Windows.

Notion text formatting toolbar with the square-root-x equation button above selected x^2 source text.
Select the source text, then click √x in the formatting toolbar to turn it into an inline equation.

Edit, convert and copy an equation

Because of that font switch, I'd keep ordinals like 23rd as plain text unless the rest of the line is already math. Notion handles the rendering; you still decide which expressions belong in the sentence and which deserve a block a reader can check step by step.

Notion inline equation input with a^2 + b^2 = c^2, the Done button and the equation inside a sentence
Click an inline equation to edit its source; the expression stays inside the sentence.

Which LaTeX commands work in Notion? A cheat sheet

Every command below is listed as rendering in KaTeX's support table, and KaTeX's list of supported functions groups the same commands by topic. Notion's help says it supports the full scope of symbols and operations in the KaTeX language, so these are safe to type into either kind of equation. Each row shows the source you type.

Fractions, roots, powers and indices

Fractions, roots, powers and indices
You wantType
Fraction\frac{a}{b}
Full-size fraction in a line\dfrac{a-1}{b-1}
Small fraction\tfrac{1}{2}
Square root, nth root\sqrt{x}, \sqrt[3]{x}
Powerx^2, e^{i\pi}
Indexa_n, x_{i+1}
Binomial coefficient\binom{n}{k}

Sums, integrals and limits

Sums, integrals and limits
You wantType
Sum, product\sum_{i=1}^{n} i, \prod_{k=1}^{n} k
Integral\int_0^1 x^2 \, dx
Double and contour integrals\iint, \oint
Limit\lim_{x \to 0} \frac{\sin x}{x}
Infinity\infty
Partial derivative, gradient\frac{\partial f}{\partial x}, \nabla f
Function names\sin, \cos, \log, \ln, \max, \det

Greek letters, relations, operators and arrows

Greek letters, relations, operators and arrows
You wantType
Lowercase Greek\alpha, \beta, \gamma, \delta, \varepsilon, \theta, \lambda, \mu, \pi, \sigma, \phi, \omega
Capital Greek\Gamma, \Delta, \Sigma, \Phi, \Omega
Relations\le, \ge, \neq, \approx, \equiv, \sim, \propto
Operators\pm, \mp, \times, \cdot, \div
Arrows\to, \rightarrow, \Rightarrow, \leftarrow, \leftrightarrow, \Leftrightarrow, \implies, \iff, \mapsto
Dots\ldots, \cdots, \vdots, \ddots
Degree, check mark90\degree, \checkmark

Brackets, sets, vectors and accents

Brackets, sets, vectors and accents
You wantType
Brackets that grow with their content\left( \dfrac{a}{b} \right)
One-sided bracket\left\lbrace \dfrac ab \right.
Angle brackets, absolute value, norm\langle x, y \rangle, \lvert x \rvert, \lVert v \rVert
Floor, ceiling\lfloor x \rfloor, \lceil x \rceil
Set braces and membership\{1, 2, 3\}, x \in A, x \notin B
Set operations\subset, \subseteq, \cup, \cap, \setminus, \emptyset
Quantifiers\forall, \exists
Number sets\mathbb{R}, \mathbb{Z}, or the short forms \R, \N, \Z
Vectors\vec{F}, \mathbf{v}
Accents\hat{x}, \bar{x}, \dot{x}, \ddot{x}, \tilde{x}, \overline{AB}
Labelled braces\underbrace{a+b+c}_{\text{note}}, \overbrace{a+b+c}^{\text{note}}

Words, operator names and fonts

Words, operator names and fonts
You wantType
Words inside math, with their spacesv = \frac{d}{t} \text{ where } d \text{ is distance}
A named operator\operatorname{asin} x
Bold\mathbf{AaBb123}, \boldsymbol{\alpha}, \textbf{bold words}
Blackboard bold\mathbb{AB} (KaTeX supports A to Z)
Upright, calligraphic\mathrm{d}x, \mathcal{L}

Size, color, boxes and cancels

Size, color, boxes and cancels
You wantType
Bigger or smaller\Large E = mc^2, \large, \small
Color\color{#0000FF} AaBb123, \textcolor{red}{x}
Colored box\colorbox{red}{Black on red}
Boxed answer\boxed{\pi=\frac c d}
Cancel a term\cancel{5}, \bcancel{5}, \xcancel{ABC}
Space between partsa \, b, a \quad b, a\qquad\qquad{b}

One color habit carries over badly from MathJax. KaTeX's common issues page notes that MathJax defines \color to be like \textcolor by default, and KaTeX doesn't. When you want one term colored, I'd write \textcolor{red}{x}, which names exactly what gets the color.

How do you write multi-line equations?

Use one block equation with the aligned environment. Notion's help answers the “align isn't working” question by quoting KaTeX: “The aligned environment offers the same functionality but in math mode, so use that instead.” Put & before each = and \\ between lines:

\begin{aligned}
2x + 3 &= 11 \\
2x &= 8 \\
x &= 4
\end{aligned}
Notion block equation input with two steps in an aligned environment and the Done button
Keep the derivation in one block: aligned lines up the equals signs, and two backslashes start the next row.

Stacked fractions in an aligned block can look cramped. The same KaTeX issues page documents that the distance between rows can be adjusted by writing \\[0.1em] instead of the standard line separator.

The plainest way to number an equation is to type the number yourself. End the line with a gap and the number, then refer to it as (1) in your text:

F = ma \qquad (1)

A piecewise function goes in cases, with & before each condition:

f(x) = \begin{cases}
x^2 & \text{if } x \ge 0 \\
-x & \text{if } x < 0
\end{cases}

Matrices use pmatrix for parentheses, bmatrix for square brackets and matrix for none. Separate columns with & and rows with \\:

\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}

For a small grid of values, KaTeX documents that the array environment supports | and : vertical separators, and \hline draws a rule between rows:

\begin{array}{c|c}
x & f(x) \\
\hline
0 & 1 \\
1 & 3
\end{array}

If you repeat a long expression, KaTeX supports \newcommand with up to nine arguments. Define it in the same equation that uses it, the way KaTeX's support table shows it: \newcommand\chk{\checkmark} \chk.

How do you write chemical equations in Notion?

Notion's help says it supports the \ce and \pu chemical equation macros from the mhchem extension. Put the chemistry inside \ce{…} and quantities with units inside \pu{…}, the way KaTeX's support table writes them:

KaTeX's table marks both as requiring an extension; that extension is the mhchem one Notion names. For a single formula inside a sentence, an ordinary inline equation is enough: H_2O is Notion's own subscript example. For reactions in a lab write-up, I'd use \ce in a block, since that's the macro Notion names for chemical equations.

How much LaTeX does Notion's KaTeX cover?

KaTeX's support table lists 1,140 entries, and 127 of them are marked Not supported: 11.1%, about one in nine. Of the remaining 1,013, some still have extension or trust requirements. The table marks \ce and \pu as needing the chemistry extension Notion includes. Seven of the 127 are deprecated commands: \and, \ang, \C, \cee, \cf, \pagecolor and \part.

Notion's help points to this table and KaTeX's function list. For multi-line Notion blocks, I'd follow its aligned guidance: KaTeX also documents display-mode environments for other integrations, so a supported entry alone doesn't establish that every editor accepts it the same way.

The reading is clear. Most notation a student types renders. What breaks is document-level LaTeX: labels and cross-references, preamble commands, box and scale commands, table spans and commands that only exist in MathJax. Each of those habits has a direct swap:

LaTeX habits that break in Notion, and what to write instead
HabitStatusWrite in Notion
\begin{align} … \end{align}Notion's help: not working in Notion\begin{aligned} … \end{aligned} with & before the = and \\ between lines
\begin{eqnarray}Not supportedaligned
\label, \ref, \eqrefNot supported (\ref, \eqref: Issue #350)Type the number yourself, e.g. \qquad (1) at the end of the line, and refer to (1) in your text
\DeclareMathOperatorNot supported\operatorname{name}
\mbox{…}Not supported\text{…}
\definecolorNot supported (Issue #750)\color{#hex} or \textcolor{color}{…} directly
\multicolumn, \cline in an arrayNot supported (Issue #269)A plain array with | separators and \hline, or a Notion simple table
\matrix{…}, \pmatrix{…}, \cases{…}Not supported; the table points to the environments\begin{matrix}, \begin{pmatrix}, \begin{cases}
\canceltoNot supported\cancel{…}
\scalebox, \rotateboxNot supported (\rotatebox: Issue #681)A size command such as \Large; no rotation
\textsc, \euroNot supported (\textsc: Issue #471)Keep small caps and the euro sign in normal text outside the equation
\require, \unicode (MathJax habits)Not supportedDrop them; \ce and \pu for chemistry are built in

The features around the math matter as much as the commands. Here's how Notion and its references describe each one:

Notion's equation features and where each is documented
FeatureDocumented behaviorDocumented by
Block equation+ on hover → Block equation, or /math (also /latex) and enter; click inside to type or paste, or cmd/ctrl + enter/returnNotion math help, shortcuts page
Inline equation$$ before and after the expression; ctrl/cmd + shift + E opens the input and enter closes it; /equation adds a TeX formula in lineNotion math help, shortcuts page
Convert existing textHighlight it, then the √x button in the formatting menu or ctrl/cmd + shift + ENotion math help
EditClick the equation; changes show live; arrow keys open and close an inline equation's input as the cursor passesNotion math help
Inline to blockA block containing an inline equation can use Turn into to become a block equationNotion math help, editing basics
Superscript and subscript^ and _, braces for more than one character; the text becomes equation fontNotion math help
CopyCopying inline LaTeX gives the source codeNotion math help
Chemistry\ce and \pu from the mhchem extensionNotion math help
Line breaksInline math breaks after relations or operators unless grouped or suppressed with \nobreak. Display math has no automatic breaks and ignores hard breaks in strict mode.KaTeX function list
PDF importEquations may appear as plain text after a PDF is converted to a pageNotion import help
APIAn equation block holds one expression, a KaTeX-compatible stringNotion API block reference
MobileNo hover states; the ••• and + icons are shown insteadNotion mobile help

My verdict from the commands above: Notion is a safe place for homework, class notes and lab write-ups, because the commands that fail cluster in habits from full papers, not in the notation those notes use. Use $$ inline for anything that lives inside a sentence and a /math block for anything you'd set on its own line, and use aligned for multi-line Notion blocks. Before you paste from a paper's source file, check the habit table above.

To try it on your own page, start small:

  1. Type one inline equation in a sentence: $$a^2 + b^2 = c^2$$.
  2. Add one block with /math and enter, then type x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.
  3. Write one three-line derivation in aligned, like the example above.
  4. Add one \ce line for a formula or reaction from your notes.
  5. Before you use any command you'd normally put in a LaTeX preamble, search for it in KaTeX's support table.

Why won't my equation render?

Check braces first, then the command's backslash and KaTeX support. If a multi-line equation fails, check the environment name too.

Overleaf's documentation is a good place to learn LaTeX, but Notion's help adds a caution: Overleaf is a full-featured LaTeX editor, so not everything in its documentation is supported in Notion. When a command comes from there, check it against KaTeX before you rely on it.

Line breaks are the other surprise. KaTeX documents that it inserts automatic line breaks in inline math after relations or binary operators such as = or +, and that braces, as in {F=ma}, or \nobreak suppress them. Hard line breaks use \\ or \newline, but KaTeX can ignore them in display math when its strict rendering option is enabled. Display math has no automatic line wrapping, so I'd split a long block equation into lines with aligned rather than let it run off the side of a narrow page.

If a function you need is missing entirely, Notion's help points requests for new functions or environments to an issue on the KaTeX GitHub project.

Equations in PDF imports, the API and on a phone

PDF imports. Notion's import help lists /import, /pdf and Settings → Import → PDF as import routes. With /pdf, choose the import option to convert the file into page content; an embedded PDF stays a file. The same help page warns that headings, equations and quotes may appear as plain text once a PDF is converted to a page. If lecture notes come in that way, I'd rebuild only the equations you'll reuse, each as a block, and leave the rest as reference text.

The API. In Notion's API block reference, an equation block has one field, expression, described as “A KaTeX compatible string.” The documented example:

{
  "type": "equation",
  "equation": {
    "expression": "e=mc^2"
  }
}

The commands in this cheat sheet go into that string as you'd type them in the editor, with one difference in raw JSON: each backslash is written twice, so \frac{a}{b} is sent as \\frac{a}{b}, because JSON uses the backslash as its escape character. A code block set to the latex language shows source, not rendered math. For the request that creates the page those blocks live on, see creating a page in a database with the Notion API.

On a phone. The hover + from the block route isn't a hover on mobile. Notion's mobile help says there are no hover states on mobile; you'll see ••• and + icons instead.

New to LaTeX? Start with four pieces

Plenty of people meet LaTeX for the first time inside Notion. In a 2021 r/Notion thread, the asker didn't know any code and was copy-pasting equations from lecture materials. The replies pointed to $$, ctrl + shift + E, the drag handle's Turn into and /math, and noted that LaTeX and KaTeX are related but not identical.

Notion's help makes the start smaller than it looks: basic arithmetic and variable names are valid LaTeX already, so 2 + 3 = 5 or a = b + c works as typed. Add four pieces and most homework is covered:

When you know what a symbol looks like but not its name, Detexify lets you draw it and look up the LaTeX code; Notion's help recommends it, and KaTeX's support table says the same. Then search that name in the support table before you rely on it. If those equations sit in class notes, the course structure around them is covered in Notion templates for college students.

When should you use a full LaTeX editor instead?

Use one when the document itself is the deliverable: a paper with numbered equations you cross-reference, a preamble of custom operators and colors, or a bibliography. In Notion you'd type every cross-reference by hand and replace each preamble command with an inline swap, and both jobs grow with every page. Notion's help calls Overleaf a full-featured LaTeX editor, and that's the kind of tool I'd draft the paper in.

Keep Notion for the work around the paper: problem sets, lecture notes, lab write-ups and the derivations you're still checking. Copying an inline equation gives you its source, so a line you worked out in Notion can move into the paper without retyping. The editor typesets the paper; you still decide which derivations are finished enough to move there.

Verdict: $$ inside sentences, /math for everything else

Use $$ inline for anything that lives inside a sentence and a /math block for anything you'd set on its own line in a paper, and use aligned for multi-line Notion blocks. Before blaming Notion, check KaTeX's support table: 127 of its 1,140 entries are marked Not supported, and the ones that trip LaTeX users are document-level habits with a direct swap in the table above. If you're new to LaTeX, plain arithmetic already works, Detexify helps identify symbols, and \frac, ^, _ and \sqrt cover most homework. For numbered, cross-referenced papers, I'd draft in a full LaTeX editor and keep Notion for notes, problem sets and lab write-ups.

Format study and technical notes