Adjust the Row Height of the Table in LaTeX
May. 24, 2025 • Updated May. 25, 2025
Method 1: by redefining the length \arraystretch
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\documentclass{article}
\begin{document}
\begin{table}
\centering
\renewcommand{\arraystretch}{2}
\begin{tabular}{|c|c|c|}
\hline
a & b & c\\ \hline
3 & 4 & 5\\ \hline
5 & 12 & 13\\ \hline
\end{tabular}
\end{table}
\end{document}
Method 2: by the \rule
command1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\documentclass{article}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|c|c|c|}
\hline
a & b & c\\ \hline
\rule{0pt}{25pt} 3 & 4 & 5\\ \hline
5 & 12 & 13\\ \hline
\end{tabular}
\end{table}
\end{document}
Method 3: by setting the length \extrarowheight
provided by the array
package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{table}
\centering
\setlength\extrarowheight{2em}
\begin{tabular}{|c|c|c|}
\hline
a & b & c\\ \hline
3 & 4 & 5\\ \hline
5 & 12 & 13\\ \hline
\end{tabular}
\end{table}
\end{document}
Method 4: by the \\
command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\documentclass{article}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|c|c|c|}
\hline
a & b & c\\ \hline
3 & 4 & 5 \\[10pt] \hline
5 & 12 & 13 \\ \hline
\end{tabular}
\end{table}
\end{document}
which is the same as the way of adjusting the line spacing of multiple-equation environments2.
Method 5: by the \parbox
command3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\documentclass{article}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|c|c|c|}
\hline
a & b & c\\ \hline
\parbox[c][50pt][c]{50pt}{\centering 3} & 4 & 5 \\ \hline
5 & 12 & 13 \\ \hline
\end{tabular}
\end{table}
\end{document}
References