Overleaf Compile Timeout: Limits, Messages and Fixes

Last updated 8 min read

By

Overleaf compile timeout message on the free plan showing on the desktop screen

The Overleaf compile timeout is 10 seconds on the free plan and 240 seconds (4 minutes) on paid plans: if your project takes longer to compile, Overleaf stops and shows “Your compile timed out”. The most common causes are compile errors and large images, and a timeout can often be fixed without upgrading.

Overleaf compile timeout limit

The compile timeout is the longest Overleaf will spend turning your project into a PDF. Overleaf’s plan limits give these values:

PlanCompile timeoutName on Overleaf’s plans page
Free10 secondsBasic compile timeout
Paid (Student, Standard, Pro and group plans)240 seconds (4 minutes)24x Basic compile timeout

The “24x more compile time” in Overleaf’s upgrade messages is this difference: 240 seconds is 24 times 10. Paid plans also compile on Overleaf’s fastest available servers.

  • The limit comes from the project owner’s plan, not yours. A free user invited to a paid user’s project gets 240 seconds in that project, and a paid user working in a free user’s project gets 10.
  • Overleaf cut the free limit to 10 seconds in 2025. It announced the change on 16 June 2025, and the limit has applied to all free users since 8 September 2025.

What each Overleaf timeout message means

Overleaf words the message differently for project owners, collaborators and paid plans. Find the one you see.

Your project exceeded the compile timeout limit on our free plan

Your compile timed out

Your project exceeded the compile timeout limit on our free plan. Upgrade to get more compile time (plus additional collaborators, higher AI allowance, track changes, and more).

You own the project, it is on the free plan, and the compile ran for more than 10 seconds, so Overleaf stopped it. Try the fixes below first; the upgrade in the message is the other way out.

This project exceeded the compile timeout limit on our free plan

Your compile timed out

This project exceeded the compile timeout limit on our free plan. Tell the project owner and ask them to upgrade their Overleaf plan if you need more compile time.

You are a collaborator. The project gets the owner’s compile time, so your own plan does not change it. Either the owner upgrades, or someone removes what makes the project slow: the fixes below work for any editor of the project.

Sorry, your compile took too long to run and timed out

Sorry, your compile took too long to run and timed out. The most common causes of timeouts are:

This is the timeout message on paid plans, where the limit is 240 seconds. Overleaf lists two causes under it: large or high-resolution images, and a fatal compile error that blocks the compile. The fixes below apply here too. A project that needs more than 240 seconds has to be compiled on your own computer (see the last section).

That took a while… Your project is near the compile timeout limit

That took a while…

Your project is near the compile timeout limit for our free plan. Upgrade to get more compile time.

This is a warning: the PDF did compile. Overleaf shows it to the owner of a free-plan project when a compile takes more than 7 of the 10 seconds, and hides it for a day if you dismiss it. A few more pages or figures can now push the project over the limit, so this is the time to apply the fixes below.

A previous compile is still running

A previous compile is still running. Please wait a minute and try compiling again.

Your earlier compile of this project has not finished, and Overleaf will not start another one until it does. Wait, then recompile. If you see this often, your compiles are running long: check the fixes below.

The compile server for your project was temporarily unavailable

Sorry, the compile server for your project was temporarily unavailable. Please try again in a few moments.

The problem is on Overleaf’s side, not in your files. Try again after a few moments, and if it keeps failing, check the Overleaf status page. During maintenance the message reads “The compile servers are down for maintenance, and will be back shortly.”

Get your thesis formatted by LaTeX experts with 10+ years of experience

We format theses and dissertations in your university’s LaTeX template and test every file on Overleaf and a local TeX installation before delivery. You pay after you review the first draft.

See thesis formatting →

How to fix an Overleaf compile timeout

Work through these in the order of Overleaf’s guide to fixing compile timeouts: errors first, then images, then slow drawings and packages.

Turn on Stop on first error

Some errors block the compile until it times out. Click the small triangle next to Recompile and choose Stop on first error. Overleaf then stops at the first error and shows it, instead of trying to make a PDF despite errors. Fix that error, recompile, and repeat until the project compiles.

The setting applies only to you and this project. To switch back, choose Try to compile despite errors in the same menu. If the first error is one you don’t recognize, see common LaTeX compilation errors.

Compile in Fast [draft] mode

In the same menu, choose Fast [draft]. Overleaf replaces every image with an empty box, so the compile skips image processing. If the project compiles in Fast [draft] but times out in Normal mode, your images are the cause.

LaTeX has the same switch. \documentclass[draft]{article} turns it on for the whole document, and \setkeys{Gin}{draft} turns it on for the images that follow it:

\setkeys{Gin}{draft}
% images from here on print as boxes
\setkeys{Gin}{draft=false}
% images from here on print in full

The same image compiled normally and in draft mode, where it becomes an empty box with its file name

For a large project, Overleaf also suggests compiling in two stages: first in Fast [draft] mode, then in Normal mode.

Make your images faster to compile

Overleaf gives these rules for images:

  • Use PDF for diagrams and plots, and JPEG for photographs.
  • Resize raster images larger than 1 MB, for example to 1200 pixels on the long side.
  • Convert EPS and SVG files to PDF. pdfLaTeX converts EPS with Ghostscript, and SVG needs the svg package and Inkscape; both conversions add to the compile time.

Externalize TikZ and pgfplots drawings

TikZ and pgfplots drawings can take a long time to compile. The TikZ external library saves each drawing as a PDF, so LaTeX does not redraw it on every compile. Put this in the project’s main .tex file:

\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=tikz/]

Then create a folder named tikz in the project and put any file in it, for example an empty foo.txt: on Overleaf the folder needs a file before TikZ can write to it. If the folder is missing, the compile stops with:

! I can't write on file `tikz/output-figure0.md5'.

The first compile after this still draws every picture, so it can time out too. Overleaf’s page on reducing the compile time for diagrams gives two ways round it: compile the project on your computer once and upload the generated files to the tikz folder (Overleaf names them output-figure0.pdf and so on, each with a .md5 and a .dpth file), or draw the figures in a separate Overleaf project and include its PDF one page at a time with \includegraphics[page=1]{tikzpics.pdf}.

Replace slow packages

Overleaf’s guide names these as slow:

Package or commandWhy it is slowWhat to do
mhchemRecent versions take longer to compileSwitch to chemformula (below)
tabularrayRuns very slowly, especially for large tablesUse the standard table commands
acro version 3Slow to load acronym declarationsOverleaf suggests \usepackage{acro}[=v2]; in our TeX Live 2026 test, version 2 stopped with an error
\tracingallWrites a lot of data to the .log fileRemove it

To switch from mhchem to chemformula and keep your \ce commands:

% \usepackage{mhchem}
\usepackage{chemformula}
\let\ce\ch

Some syntax differs: \ce{2H2O} has to become \ce{2 H2O}, with a space after the number.

Look for errors that make LaTeX loop

Overleaf lists these mistakes as causes of fatal errors and endless loops that end in a timeout:

  • A blank line inside \title, \author or \date.
  • Many figures or tables placed with [H] from the float package. Replace [H] with [hbt!], and add \clearpage where figures pile up.
  • \caption inside a tabular environment when the caption package is loaded. Put the caption outside the tabular.
  • The dmath environment of the breqn package. Use align and break the lines yourself.
  • A command that calls itself, such as \newcommand{\foo}{\foo}.
  • babel language shorthands clashing with math. Load babel with the shorthands=off option.
  • Accented letters in .bib journal names when the template uses jabbrv. Write them as LaTeX commands, such as Biolog{\'i}a.

Recompile from scratch

If the project compiled before and now times out, clear the generated files: choose Recompile from scratch in the Recompile menu. Then open History to see what changed since the last good compile, and check that change first.

Compile one chapter at a time

For a thesis or book split into chapter files with \include, list the chapters you are working on in \includeonly. LaTeX skips the other chapters, but page numbers and cross-references still work, because it still reads their .aux files from the last full compile.

\includeonly{chapters/methods,chapters/results}

\begin{document}
\include{chapters/introduction}
\include{chapters/methods}
\include{chapters/results}
\end{document}

Write the file names without spaces around the commas, and remove \includeonly before the final compile. To set up a thesis in chapter files, see how to format a PhD thesis in LaTeX.

When your project needs more than 10 seconds

Some projects need more time than the free plan gives, even after these fixes. There are two ways to get it:

  • A paid plan. The compile time follows the project owner’s plan, so the owner has to upgrade; everyone working in the project then gets 240 seconds.
  • Your own computer. Download the project from Overleaf and compile it with a TeX distribution such as TeX Live, which has no time limit. Overleaf suggests this for projects that need more time than even its paid plans give.

Frequently asked questions

Trusted by 1100+ researchers, professors, universities, and journals.