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
- Paste LaTeX into Word’s equation editor
- Convert a whole answer with Pandoc
- Export ChatGPT math with our extension
- Export Gemini math with our extension
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.
- Ask the AI for the source, for example: “Give me only the LaTeX for this equation in a code block, wrapped in $$.”
- Select the code block’s Copy button.
- In Word, click where the equation goes and press Alt + = on Windows or Control + = on Mac. You can also select Insert > Equation.
- On the Equation tab, in the Conversions group, choose LaTeX as the input format.
- Paste with Ctrl + V on Windows or Cmd + V on Mac.
- 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 asalignedorpmatrixdon’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.
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.
Paste it into a plain text editor and save it as
answer.md.Install Pandoc and run:
Terminal window pandoc answer.md -f markdown+tex_math_single_backslash -o answer.docxOpen
answer.docxin 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.
- Add the extension to Chrome from the Chrome Web Store.
- Open the ChatGPT conversation that contains the maths.
- Use the extension’s export control on a single response, or export the whole conversation.
- 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.
- Add the extension to Chrome.
- Open the Gemini chat with the equations.
- Export one response, or the whole conversation. To leave out your prompts, choose the option that exports only Gemini’s responses.
- 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
| Method | Best for | Works on |
|---|---|---|
| LaTeX in Word’s equation editor | One or a few equations | Word for Microsoft 365, Windows and Mac |
| Pandoc | Long answers with many equations | Any Word version that opens .docx |
| ChatGPT to Word or PDF extension | Whole ChatGPT answers or chats, no commands | Chrome on a computer |
| AI Chat to Word extension | Whole Gemini answers or chats | Chrome 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.