Line Spacing in LaTeX
Use the setspace package for double spacing, 1.5 spacing, or any custom line spacing.
Quick Answer
latex
\usepackage{setspace} % in preamble
\doublespacing % apply to whole documentDocument-Wide Spacing
latex
\usepackage{setspace}
% In preamble (after \usepackage{setspace}):
\singlespacing % 1× (LaTeX default)
\onehalfspacing % 1.5× spacing
\doublespacing % 2× spacing
% Custom multiplier:
\setstretch{1.25} % 1.25× spacingLocal Spacing
Use environments to change spacing for specific sections while keeping the rest at the default.
latex
Main body text at normal spacing.
\begin{doublespace}
This paragraph has double spacing.
\end{doublespace}
\begin{singlespace}
Block quotes and code listings are often single-spaced
even in a double-spaced document.
\end{singlespace}
\begin{spacing}{1.3}
Custom 1.3× spacing for this block.
\end{spacing}Writing your thesis in LaTeX?
MonsterWriter's LaTeX Workspace gives you real-time PDF preview with no compile limits — at a fraction of Overleaf's price. Works just like Overleaf, costs 11× less.
Try MonsterWriter freeFootnotes & Captions
Most style guides (APA, Chicago) require footnotes and figure captions to remain single-spaced even in a double-spaced document. setspace handles this automatically.
latex
% setspace automatically keeps footnotes single-spaced.
% No extra code needed — just \doublespacing in the preamble.Paragraph Spacing
To add space between paragraphs instead of indentation:
latex
\usepackage{parskip}
% Automatically sets \parskip and removes \parindent
% Or manually:
\setlength{\parskip}{6pt}
\setlength{\parindent}{0pt}Raw Baseline Stretch
Without the setspace package, you can stretch the baseline directly — but this affects footnotes too.
latex
% Low-level approach (not recommended for full documents):
\renewcommand{\baselinestretch}{1.5}
\normalsize % must follow to take effectRelated Topics
More LaTeX Topics
Bold TextItalic TextUnderline TextStrikethroughFont SizeText ColorText AlignmentHyperlinksSectionsTable of ContentsNew PageNew LineMarginsPage NumbersHeaders & FootersMinipageTablesFigures & ImagesListsEquationsFractionsSquare RootSubscript & SuperscriptSummationIntegralMatrixGreek LettersArrowsTilde (~)Delta (δ, Δ)Hash (#)BibliographyCross-ReferencesFootnotes