If you have ever opened a LaTeX file and felt lost before you typed a single word, this guide is for you. Learning how to use Overleaf for LaTeX is the easiest way into professional academic typesetting, because Overleaf runs entirely in your browser — no installation, no configuration, and no error messages from a TeX setup you did not ask for. In the next fifteen minutes you will create a free account, start your first project, and compile a real document you can download as a PDF.
What Is Overleaf, and Why Do Researchers Use It?
LaTeX is the typesetting system behind most published papers in mathematics, physics, computer science, engineering, and economics. It produces beautifully formatted equations, tables, and references, and it handles long documents far better than a word processor. The catch has always been the setup: installing a TeX distribution, choosing an editor, and fixing configuration errors before writing a single sentence.
Overleaf removes that barrier. It is an online LaTeX editor, so everything happens in your browser. You write on the left, and a compiled PDF appears on the right every time you press Recompile. Nothing is installed on your computer, your work is saved automatically, and you can open the same project from any device. Journals and universities increasingly expect LaTeX submissions, and Overleaf’s template gallery includes ready-made formats for journal articles, theses, CVs, and presentations, so you rarely start from a blank page.
Overleaf also has two editing modes. The Code Editor shows raw LaTeX, which experienced users prefer. The Visual Editor hides most of the markup behind familiar formatting buttons, which makes it a gentle starting point if you have never seen LaTeX before. You can switch between the two at any time in the same project.
Step 1: Create Your Free Overleaf Account
Go to overleaf.com and register with your email address — many universities also let you sign in with your institutional account, which is worth trying because some institutions provide upgraded access. The free plan is genuinely free: you can create unlimited projects and compile them without paying anything. Its limits are modest and mostly affect collaboration: each project allows one invited collaborator, the version history only reaches back 24 hours, and very long documents can hit the basic compile-time limit. Paid plans raise those limits and add integrations such as Zotero, Mendeley, Git, and Dropbox, but you do not need any of them to write your first paper.
Step 2: Start Your First Project
Once you are signed in, click New Project. You have two sensible choices:
- Blank Project: the best choice for learning. Give it a name such as “My First LaTeX Document” and Overleaf opens a minimal article template you can edit freely.
- Template: browse the gallery for a journal article, thesis, or CV template when you have a real document to produce. Templates save hours of formatting, but they contain many files and commands that can confuse a first-time user.
For this guide, choose Blank Project. Overleaf creates a file called main.tex — the file that will become your document.
Step 3: Meet the Editor
The screen has three main areas. On the left is the file panel, listing every file in your project: your .tex source files, images, and bibliography files. In the middle is the source editor, where you type LaTeX. On the right is the PDF preview, which updates when you click Recompile (or automatically, if you turn on auto-compile in the Menu).
Three controls matter most for beginners. The Menu button (top left) holds the settings: the compiler (leave it on pdfLaTeX unless a template tells you otherwise), spell-check language, and word count. The Recompile button builds your PDF. The Logs panel at the bottom shows errors and warnings — when something goes wrong, the first error listed is almost always the one to fix. The Upload button in the file panel adds images and bibliography files to your project, and the Download options in the Menu let you save the finished PDF or the whole project as a .zip file.
Step 4: Write Your First Document — The Essential Commands
A LaTeX document is plain text plus commands, and every command starts with a backslash. The blank project already contains the skeleton; here is what each part does:
\documentclass{article}
\title{My First Paper}
\author{Your Name}
\date{December 2026}
\begin{document}
\maketitle
\section{Introduction}
This is my first paragraph. I can make text \textbf{bold}
or \textit{italic}, and I can make lists:
\begin{itemize}
\item First point
\item Second point
\end{itemize}
\end{document}The rules behind this are simple. \documentclass{article} picks the document type. \title, \author, and \date store information that \maketitle prints. \section{} creates a numbered heading, and LaTeX numbers sections for you. Everything between \begin{document} and \end{document} is your content, and anything after a % is a comment LaTeX ignores. Press Recompile and your text appears as a formatted PDF — title, heading, and list included. If you are used to word processors, the biggest adjustment is that you describe structure (this is a heading, this is a list) and LaTeX decides the exact spacing and layout.
Step 5: Worked Example — A One-Page Mini Paper
Let us put it together. The short document below is a complete mini paper: title, abstract, a section with an equation, and a small table. Paste it into a blank project, recompile, and you will see a professional-looking page.
\documentclass{article}
\title{Does Study Time Predict Exam Scores?}
\author{Your Name}
\date{December 2026}
\begin{document}
\maketitle
\begin{abstract}
This short example shows how a title, an abstract,
an equation, and a table fit together in LaTeX.
\end{abstract}
\section{Method}
We surveyed 40 students and recorded weekly study
hours and exam scores. The relationship was modelled
as a simple linear regression:
\begin{equation}
Score = 45 + 3.2 \times Hours
\end{equation}
\section{Results}
Table 1 summarises the average scores by study group.
\begin{table}[h]
\centering
\begin{tabular}{lcc}
\hline
Group & Hours & Mean score \\
\hline
Low & 0--5 & 58 \\
Medium & 6--10 & 71 \\
High & 11+ & 84 \\
\hline
\end{tabular}
\caption{Mean exam scores by weekly study hours.}
\end{table}
\end{document}Notice three things. First, the equation environment numbers the formula automatically and centres it — no manual formatting needed. Second, the table is built from plain text with & separating columns and \\ ending each row; \hline draws the lines. Third, \caption{} labels the table, and LaTeX numbers it as Table 1. The numbers in this example are illustrative, for learning the format — replace them with your own results. Once this compiles, you understand the core of LaTeX: text, structure, maths, and tables, all from readable source code.
Step 6: Add References with BibTeX
Academic writing needs citations, and LaTeX handles them through a separate bibliography file. In the file panel, create a new file called references.bib and add an entry like this:
@article{smith2020,
author = {Smith, Jane},
title = {Study Habits and Academic Performance},
journal = {Journal of Educational Research},
year = {2020},
volume = {45},
pages = {112--128}
}Then cite it in your text with \cite{smith2020} and add two lines before \end{document}: \bibliographystyle{plain} and \bibliography{references}. Recompile twice — the first pass collects the citations, the second prints the reference list — and your citation and reference list appear, formatted consistently. The easiest way to fill a .bib file is to export it from a reference manager: if you already use Zotero, see our beginner’s guide to organising your references with Zotero, which can export your whole library in BibTeX format. For the rules behind the reference list itself, our guide to the APA reference list format explains what each entry should contain.
Step 7: Share Your Project and Collaborate
Click Share at the top of the editor and invite a co-author by email, or turn on link sharing so anyone with the link can view the project. On the free plan you can invite one collaborator per project, which is enough for a supervisor-student pair or a two-author paper. Collaborators edit the same document at the same time, and you can see each other’s cursors, leave comments on selected text, and use the in-document chat to discuss changes without leaving the editor. Two habits make collaboration smooth: agree in advance who is editing which section, and label important versions (in the History panel) before a big rewrite — on the free plan the automatic history only goes back 24 hours, so a labelled version is your safety net.
Step 8: Download and Submit Your PDF
When the paper is ready, click PDF above the preview to download the finished document, or use Menu, then Download, then Source to save the entire project as a .zip file — useful as a backup and for working offline. If you are submitting to a journal, check its author guidelines first: many journals provide an official Overleaf template, and some accept direct submission from Overleaf, which saves you from downloading and re-uploading files. For a thesis, the same workflow applies — start from a thesis template, keep each chapter in its own file, and include them with \input{chapter1} so the project stays manageable.
Common Mistakes Beginners Make
- Ignoring the error log: when a compile fails, read the logs panel and fix the first error only — later errors are often knock-on effects of the first one.
- Mismatched braces or environments: every
\begin{...}needs its\end{...}, and every opening brace needs a closing one. One missing brace can break the whole document. - Unescaped special characters: the characters
%,&,$,#, and_have special meanings in LaTeX. To print them, write\%,\&,\$,\#, and\_. - Writing a thesis in a single file: split chapters into separate files and include them with
\input{}. A single 200-page file is slow to navigate and painful to debug. - Forgetting to recompile twice after adding references: new citations and cross-references only appear correctly on the second compile, so a missing reference in the preview usually means you need one more Recompile, not a broken .bib file.
Frequently Asked Questions
Is Overleaf really free?
Yes. The free plan lets you create unlimited projects, write, compile, and download PDFs without paying. Its limits are one invited collaborator per project, 24 hours of version history, and a basic compile-time limit. Paid plans add more collaborators, full history, longer compiles, and integrations such as Zotero and Git.
Do I need to install LaTeX on my computer to use Overleaf?
No. Overleaf runs entirely in the browser, which is its main advantage for beginners. You only need an internet connection. If you later want to work offline, download the project source as a .zip file and compile it with a local TeX installation.
Can I use Overleaf for my thesis?
Yes, and many students do. Start from a thesis template, keep each chapter in its own file, and label versions before major rewrites. Very long documents with many figures can hit the free plan’s compile-time limit — if that happens, compile individual chapters separately while drafting, or consider a paid plan.
How do I fix a compile error?
Open the logs panel, read the first error message, and look at the line number it points to. Most beginner errors are a missing brace, a missing \end{}, or an unescaped special character. Fix that one error and recompile before worrying about anything else in the log.
Can I find papers to cite while I work?
Yes — use Google Scholar to track down sources and export their BibTeX entries straight into your .bib file. Our guide on using Google Scholar effectively shows the export and alert tricks most researchers miss.
Your First Document Is Fifteen Minutes Away
That is the whole workflow: create a free account, start a blank project, write structured text with a handful of commands, recompile, and download a PDF that looks like it came from a journal. The commands you learned here — sections, lists, equations, tables, and citations — cover most of what a thesis or paper needs. From here, the natural next steps are learning to make your figures publication-ready, which our guide to the best free data visualization tools for researchers covers, and exploring AI helpers for the literature review in our comparison of the best AI tools for literature review. For everything else in this series, start at the Research Tools & AI hub. Open Overleaf, start a blank project, and compile your first page today — the second page is much easier than the first.