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.

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.

Try the fix in LetX

Open the editor, paste your code, and compile in 1 second to see the error clear — free, in your browser.

Open LetX Free