LaTeX Word Count Online
Counting words in LaTeX is harder than in a word processor: a raw word count of a .tex file also counts commands like \begin{itemize}, labels and equations. This free LaTeX word counter reads the source the way a TeX-aware tool should, ignoring markup and math, and gives you a word count of the text a reader actually sees.
What is counted
- Text. Words in paragraphs, lists and footnotes, including the text inside formatting commands such as \textbf{...} and \emph{...}. This is the main number most word limits refer to.
- Headers. Words in \section, \subsection, \chapter and similar headings, reported separately so you can include or exclude them.
- Captions. Words in figure and table captions written with \caption{...}, also reported separately.
- Not counted. Commands and their options, labels, references and citation keys (\label, \ref, \cite), comments after %, and math: inline $...$ and displayed equations are formulas, not words, so an equation never inflates the total.
How to count words in LaTeX
- Paste your LaTeX source. Paste the whole .tex file, preamble included, or just the section you want to measure into the editor.
- Let it count. The count updates automatically as you type. Your source is run through texcount, the counter that ships with TeX Live and that Overleaf uses, so commands and markup are stripped correctly.
- Read the breakdown. See the total word count plus separate numbers for body text, headers and captions, and use the one your journal, course or thesis office asks for.
LaTeX word count FAQ
- How do I get a word count for a LaTeX document?
- Paste your .tex source into the LaTeX word counter above and the count appears straight away, with separate totals for body text, headers and captions. Offline, run texcount on the file from the command line: texcount -inc -total main.tex.
- Does the LaTeX word count include equations?
- No. Inline math such as $E = mc^2$ and displayed equations are treated as formulas rather than words, so they are not added to the word count.
- How does this compare to texcount and Overleaf's word count?
- It runs texcount, the Perl script shipped with TeX Live and MiKTeX, so the numbers match texcount -total on your machine; Overleaf's word count is also built on texcount, so totals should agree closely. The difference is that you do not need a local TeX installation or an account.
- Are the bibliography and comments included in the word count?
- No. Comments after % are ignored, and texcount skips the bibliography by default, so references from \bibliography or a thebibliography environment are not counted. Citation keys inside \cite{...} are not counted as words either.
Need the document in another format? Try the LaTeX to Word converter if your submission needs a .docx, or browse the LaTeX symbol reference.