FormaTeX
WarningFiles & Resources

Citation Undefined

LaTeX Warning: Citation 'XXX' on page N undefined.

What this error means

A \cite{key} command references a bibliography key that doesn't exist in the current .bib file, or BibTeX/Biber has not been run. This produces [?] in the output instead of the citation number.

Common causes

  • The citation key doesn't exist in any loaded .bib file
  • BibTeX or Biber has not been run after adding the citation
  • The .bib file path in \bibliography{} is wrong
  • Typo in the citation key (keys are case-sensitive)

How to fix it

Run the full compilation sequence: pdflatex → bibtex → pdflatex → pdflatex. Check that the key in \cite{key} exactly matches the key in your .bib file. Verify the \bibliography{} path points to the correct .bib file.

Code examples

Causes the error
\documentclass{article}
\begin{document}

See~\cite{smith2024} for details.

\bibliography{refs}
\bibliographystyle{plain}

\end{document}
Fixed
% refs.bib must contain:
% @article{smith2024,
%   author = {Smith, John},
%   title  = {My Paper},
%   year   = {2024},
% }
\documentclass{article}
\begin{document}

See~\cite{smith2024} for details.

\bibliography{refs}
\bibliographystyle{plain}

\end{document}

Related errors

Test the fix live

Paste your LaTeX into the playground and compile instantly.

One quick thing

We track anonymous usage — page views, feature usage, compilation events — to understand what works and what doesn't. No ads, no personal data, no third-party sharing.

Cookie policy