How to Write Math Equations in Google Docs (3 Methods)

Updated 4 min read Video

Quick answer

To write a math equation in Google Docs, click Insert > Symbols > Equation, then pick symbols from the equation toolbar or type shortcuts such as \alpha, \frac or \sqrt followed by a space. Type ^ for a superscript and _ for a subscript. Equations can be inserted and edited only in Google Docs on a computer.

Watch the video walkthrough

Google Docs has a built-in equation editor for formulas, fractions, roots and Greek letters. It is quick for a handful of formulas. You can build them with the mouse, with keyboard shortcuts, or by copying them from an AI chat.

Methods in this guide:

Writing equations with the equation toolbar

Use this when you are new to the editor or need a symbol whose name you don’t know.

  1. Open your document in Google Docs on a computer.
  2. Click where the equation should go.
  3. Click Insert > Symbols > Equation. A grey equation box appears and the equation toolbar opens above the page.
  4. Pick symbols and structures from the toolbar menus: Greek letters, Miscellaneous operations, Relations, Math operators and Arrows.
  5. Type numbers and variables into the empty boxes. Press the arrow keys to move between boxes.
  6. Click New equation on the toolbar to start a second equation box.

Result: An editable equation sits in line with your text. Click it any time to change it.

The Math operators menu holds structures such as fractions, roots, sums and integrals. These are the menus listed in Google’s guide to using equations in a document.

Note: In older layouts of the Insert menu, Equation sits directly under Insert. If the toolbar disappears, click View > Show equation toolbar.

Typing equations with backslash shortcuts

Use this when you write equations often and want to keep your hands on the keyboard.

  1. Insert an equation box with Insert > Symbols > Equation.
  2. Type a backslash, the symbol name and a space. For example, \alpha followed by Space becomes α.
  3. Type ^ (Shift + 6) for a superscript or _ (Shift + -) for a subscript, then type its contents.
  4. Press the right arrow key to step out of a superscript, subscript, fraction or root.

Result: x^2 + y^2 = r^2, typed this way, shows as a properly formatted equation.

These shortcuts work in most cases:

Type this, then SpaceYou get
\alpha, \beta, \theta, \piα, β, θ, π
\fracA fraction with numerator and denominator boxes
\sqrtA square root
\sum, \intSummation and integral signs
\times, \div, \pm×, ÷, ±
\leq, \geq, \neq, \approx≤, ≥, ≠, ≈
\infty, \rightarrow∞, →

If a name doesn’t convert, insert that symbol from the toolbar menu instead. The shortcuts borrow LaTeX names, but the editor is not a LaTeX engine.

Tip: To turn a whole LaTeX paper into a Google Doc, the equation editor isn’t the right tool. See how to convert LaTeX to Google Docs with Pandoc or an add-on.

Copying equations from ChatGPT into Google Docs

Use this when ChatGPT has already written the formula and you don’t want to retype it.

Copying a math answer from ChatGPT usually pastes raw LaTeX code or broken symbols. The video shows our Chrome extension, ChatGPT to Google Docs, Word or PDF, which exports a chat with its equations formatted.

  1. Install the extension from the Chrome Web Store.
  2. Open the ChatGPT conversation that contains the equations.
  3. Use the extension’s export button and choose Google Docs.

Result: The answer opens as a Google Doc with readable equations. Check each one before you share the document.

Need the equations in Word instead? See how to copy ChatGPT or Gemini math to Word.

Comparing the methods

MethodBest forWorks on
Equation toolbarOccasional formulas, finding unfamiliar symbolsGoogle Docs on a computer
Backslash shortcutsFast typing of frequent formulasGoogle Docs on a computer
ChatGPT export extensionFormulas already written in ChatGPTChrome on a computer

Platform differences

  • Windows, Mac and ChromeOS: the editor works the same in any browser. On non-US keyboards, ^ and _ may sit on different keys.
  • Android, iPhone and iPad: Google’s help says that to edit equations, you must open the document on a computer.
  • Microsoft Word: Word’s equation editor also accepts LaTeX and UnicodeMath linear formats. See how to write math equations in Word if you need longer formulas.

Troubleshooting equations in Google Docs

  • You can’t find Equation in the Insert menu: look under Insert > Symbols. Older menu layouts list Equation directly under Insert.
  • A shortcut stays as plain text: you typed it outside the equation box, or the name isn’t supported. Click inside the grey box and try again, or use the menu.
  • Text keeps going into the exponent: press the right arrow key to leave the superscript before typing the next term.
  • Only need a simple x² or H₂O: you don’t need an equation. Use superscript and subscript formatting in Google Docs instead.

For more formatting and layout guides, browse the Google Docs guides.

Frequently asked questions

Where is the equation editor in Google Docs?

Click Insert > Symbols > Equation on a computer. If the equation toolbar doesn't appear, click View > Show equation toolbar.

Can I type LaTeX in Google Docs?

Only symbol shortcuts. Inside an equation box, a backslash plus a symbol name and a space, such as \pi, inserts that symbol. You can't paste a full LaTeX formula and have it convert.

How do I write an exponent in a Google Docs equation?

Inside the equation box, type the base, then ^ (Shift + 6 on a US keyboard) and the exponent. Use _ (Shift + -) for a subscript. Press the right arrow key to leave it.

Can I insert equations on the Google Docs mobile app?

No. Google says equations can be edited only when you open the document on a computer.

How do I write a fraction in Google Docs?

In an equation box, type \frac and press Space, then type the numerator, move to the denominator with the arrow keys and type it. You can also choose a fraction from the Math operators menu.