How to Copy Math from ChatGPT or Gemini to Word (4 Methods)

Updated 7 min read Video

Quick answer

To copy math equations from ChatGPT or Gemini to Word, ask the AI for the LaTeX code, then in Word press Alt + = (Control + = on Mac), set the input to LaTeX on the Equation tab, paste the code and choose Convert > Professional. For a whole answer full of formulas, export it as a .docx with an extension or Pandoc.

Watch the video walkthrough

A quadratic formula that looks perfect in ChatGPT or Gemini often lands in Word as \frac{-b \pm \sqrt{b^2-4ac}}{2a}, as doubled characters, or as a flat line of symbols. The fix is to hand Word the equation in a form it can convert.

Why pasted AI math breaks in Word

ChatGPT and Gemini write maths as LaTeX code. Your browser then draws it on screen with a web math renderer, using styled HTML text and often a hidden copy in MathML.

Word stores equations in a different format: Office Math Markup Language (OMML). Only OMML gives you an equation box you can click and edit.

A normal copy and paste carries neither the code nor the equation cleanly. Depending on how you copy, you get one of these:

  • Raw LaTeX, such as \frac{a}{b} or \(x^2\), because the chat’s copy button can copy Markdown text;
  • Doubled or jumbled characters, because the visible text and the hidden copy both paste;
  • Flattened maths, with fractions, roots and superscripts collapsed onto one line.

So the reliable route is to get the LaTeX on purpose and let Word convert it, or to use a tool that writes OMML into a .docx file for you.

Pasting LaTeX into Word’s equation editor

Use this when you need one or a few equations in a document you are already writing. It needs no extension. The video at the top shows it from 03:19.

  1. Ask the AI for the source, for example: “Give me only the LaTeX for this equation in a code block, wrapped in $$.”
  2. Select the code block’s Copy button.
  3. In Word, click where the equation goes and press Alt + = on Windows or Control + = on Mac. You can also select Insert > Equation.
  4. On the Equation tab, in the Conversions group, choose LaTeX as the input format.
  5. Paste with Ctrl + V on Windows or Cmd + V on Mac.
  6. Select Convert > Professional. On Windows you can press Ctrl + =.

Result: the code turns into a native Word equation that you can click and edit.

LaTeX input is new to Word for Microsoft 365 subscribers, per Microsoft’s guide to linear format equations using UnicodeMath and LaTeX in Word. If LaTeX is missing from the Conversions group, your version only offers UnicodeMath.

In current Microsoft 365 builds, plain text wrapped in $$…$$, $…$, \[…\] or \(…\) converts to an equation as you paste it, even outside an equation box.

Microsoft’s LaTeX support reference lists the delimiters and supported commands. It names Version 2606 for Windows and 16.110 for Mac as the builds with full support.

Tip: On older builds, \begin{…} environments such as aligned or pmatrix don’t convert. Ask the AI to “avoid \begin environments”, or use Word’s \matrix{a & b \\ c & d} form.

For more ways to build formulas by hand, see how to write math equations in Word. For single characters such as π or ±, the special symbols in Word guide is faster.

Converting a whole answer with Pandoc

Use this when a long answer mixes text and many equations, and you are comfortable running one command.

  1. In ChatGPT, use the response’s Copy button, which copies Markdown with LaTeX for the maths. If a copy drops the maths, as Gemini’s sometimes does, ask for “the full answer as Markdown in a code block” and copy that.

  2. Paste it into a plain text editor and save it as answer.md.

  3. Install Pandoc and run:

    Terminal window
    pandoc answer.md -f markdown+tex_math_single_backslash -o answer.docx
  4. Open answer.docx in Word.

Result: headings, lists and every equation arrive in one file, and the equations are native Word equations.

The tex_math_single_backslash option matters. ChatGPT often wraps maths in \(…\) and \[…\], which Pandoc reads as maths only with that option; $…$ works either way. We tested this with Pandoc 3.10, and both styles became OMML equations.

To convert a full LaTeX document rather than a chat answer, see our guide to converting LaTeX to Word.

Exporting ChatGPT math to Word with our extension

Use this when you want a ChatGPT answer or a whole conversation in Word in one step, with no code or commands. This is Method 1 in the main video.

ChatGPT to Word or PDF is our Chrome extension, built by the team behind Merge Docs Pro.

  1. Add the extension to Chrome from the Chrome Web Store.
  2. Open the ChatGPT conversation that contains the maths.
  3. Use the extension’s export control on a single response, or export the whole conversation.
  4. Choose Word and open the downloaded file.

Result: the response opens in Word with its equations, tables and code blocks kept, as the video demonstrates.

Its store listing says it can also export selected messages, only ChatGPT’s responses without your prompts, and canvas or Deep research content. The second video adds tables and text to the maths:

For text and tables without equations, see how to copy ChatGPT to Word with formatting. For PDF and Google Docs too, see exporting ChatGPT to Word, PDF or Google Docs.

Exporting Gemini math to Word with our extension

Use this when your equations are in Gemini and you want them in Word without retyping them.

Gemini’s own Share & export > Export to Docs option creates a Google Doc. At the time of writing, maths often arrives there as LaTeX code rather than as equations, so it isn’t a clean route to Word.

Our AI Chat to Word, PDF & Google Docs extension for Gemini is built for this. Its listing says it keeps symbols, fractions and integrals.

  1. Add the extension to Chrome.
  2. Open the Gemini chat with the equations.
  3. Export one response, or the whole conversation. To leave out your prompts, choose the option that exports only Gemini’s responses.
  4. Choose Word and open the file.

Result: the Gemini answer opens in Word with its equations intact.

To export Gemini chats as PDF or Google Docs as well, see exporting a Gemini chat to Google Docs, PDF or Word.

Comparing the methods

MethodBest forWorks on
LaTeX in Word’s equation editorOne or a few equationsWord for Microsoft 365, Windows and Mac
PandocLong answers with many equationsAny Word version that opens .docx
ChatGPT to Word or PDF extensionWhole ChatGPT answers or chats, no commandsChrome on a computer
AI Chat to Word extensionWhole Gemini answers or chatsChrome on a computer

Windows, Mac, web and Google Docs

  • Windows: Alt + = opens an equation and Ctrl + = converts it to Professional.
  • Mac: Control + = opens an equation. Use Convert > Professional on the Equation tab.
  • Word for the web: Microsoft documents LaTeX input for the desktop apps. Select Open in Desktop App first.
  • Google Docs: its equation editor works differently. See LaTeX to Google Docs, which includes a Gemini math to Docs video, and writing math equations in Google Docs.

Troubleshooting

  • No LaTeX option on the Equation tab: you are on a non-subscription Word or an old build. Update Microsoft 365, or use Pandoc.
  • A command shows up as plain text, like \smash{x}: Word doesn’t support that command. Ask the AI to rewrite the formula without it.
  • Equation numbers vanish: Word drops \tag{} and \label{} on import. Add numbers with a Word caption instead.
  • The code pasted but didn’t convert: check that the input is set to LaTeX, not Unicode, then select Convert > Professional.
  • The maths looks right but is wrong: formatting tools don’t check maths. Verify AI-generated formulas before you submit them.

Browse more Word symbols and equations guides for related formula tips.

Frequently asked questions

Why do ChatGPT equations look broken when I paste them into Word?

The chat shows equations drawn in the browser from LaTeX code, while Word equations use its own format, OMML. A normal paste brings in the drawn pieces or the raw code, not a Word equation.

Can Word convert LaTeX to an equation?

Yes. Word for Microsoft 365 on Windows and Mac has a LaTeX input mode on the Equation tab. Paste the code into an equation box in LaTeX mode and choose Convert > Professional.

How do I get the LaTeX code from ChatGPT or Gemini?

Ask for it directly, for example: "Give me the LaTeX for this equation in a code block, wrapped in $$." Then use the code block's copy button.

Does Word for the web accept LaTeX equations?

Microsoft documents LaTeX input for Word on Windows and Mac. In Word for the web, use Open in Desktop App to paste and convert LaTeX equations.

How do I copy Gemini math to Google Docs instead?

Google Docs has its own equation editor and doesn't read LaTeX the same way. See our LaTeX to Google Docs guide, which includes a Gemini math to Docs video.