How-to

How to Double Space in LaTeX

The fix

To double space in LaTeX, load \usepackage{setspace} and add \doublespacing in the preamble (use \onehalfspacing for 1.5 spacing). For a specific region only, wrap it in \begin{spacing}{2} ... \end{spacing}. Many thesis offices require double or 1.5 spacing.

Not sure it worked on your document? Paste it into LetX and compile it, free and in the browser.

Example

\usepackage{setspace}
\doublespacing          % whole document
% \onehalfspacing       % 1.5 spacing

% Local region:
\begin{spacing}{1.5}
Just this part is 1.5-spaced.
\end{spacing}

Frequently asked questions

How do I set 1.5 line spacing?

Load setspace and use \onehalfspacing, or \setstretch{1.5} for an exact factor. \doublespacing gives double spacing.

Why does double spacing also stretch my table of contents?

setspace affects everything. Wrap the TOC or references in \begin{singlespace} ... \end{singlespace} to keep them single-spaced while the body stays double.

Related LaTeX fixes

Browse all LaTeX problems & fixes, or start with the LaTeX guide.

Learn the topic properly

Try the fix in LetX

Open the editor, paste your code, and compile in seconds to see the error clear. Free, in your browser.

Open LetX Free